#include <AbiGOChart.h>
Public Member Functions | |
GOChartView (GR_GOChartManager *pGOMan) | |
virtual | ~GOChartView (void) |
void | render (UT_Rect &rec) |
void | loadBuffer (UT_UTF8String &sGOChartXM) |
void | setDefaultFontSize (UT_sint32 iSize) |
void | modify (void) |
void | SetRun (fp_Run *pRun) |
fp_Run * | getRun () |
void | SetGuru (GtkWidget *guru) |
UT_ByteBufPtr | exportToPNG () |
UT_ByteBufPtr | exportToSVG () |
UT_sint32 | getWidth () |
UT_sint32 | getHeight () |
Private Attributes | |
GR_GOChartManager * | m_pGOMan |
GogGraph * | m_Graph |
GogRenderer * | m_Renderer |
GR_Image * | m_Image |
UT_sint32 | width |
UT_sint32 | height |
UT_sint32 | pix_width |
UT_sint32 | pix_height |
fp_Run * | m_pRun |
GtkWidget * | m_Guru |
GOChartView::GOChartView | ( | GR_GOChartManager * | pGOMan | ) |
References m_Graph, m_Guru, m_Image, m_Renderer, pix_height, pix_width, and width.
GOChartView::~GOChartView | ( | void | ) | [virtual] |
References m_Graph, m_Guru, m_Image, and m_Renderer.
UT_ByteBufPtr GOChartView::exportToPNG | ( | ) |
References abi_CairoWrite(), m_Graph, m_Renderer, UT_return_val_if_fail, and width.
UT_ByteBufPtr GOChartView::exportToSVG | ( | ) |
References abi_CairoWrite(), m_Graph, m_Renderer, UT_return_val_if_fail, and width.
UT_sint32 GOChartView::getHeight | ( | ) | [inline] |
void GOChartView::loadBuffer | ( | UT_UTF8String & | sGOChartXM | ) |
References UT_UTF8String::byteLength(), m_Graph, m_Renderer, pix_height, pix_width, and UT_UTF8String::utf8_str().
Referenced by GR_GOChartManager::_loadGOChartXML().
void GOChartView::modify | ( | void | ) |
References ABI_CONTROL_GUI, ABI_TYPE_CONTROL_GUI, XAP_App::getApp(), XAP_Frame::getCurrentDoc(), XAP_Frame::getFrameImpl(), XAP_App::getLastFocussedFrame(), XAP_UnixFrameImpl::getTopLevelWindow(), m_Graph, _AbiControlGUI::pDoc, _AbiControlGUI::pView, SetGuru(), and UT_return_if_fail.
Referenced by GR_GOChartManager::modify().
void GOChartView::render | ( | UT_Rect & | rec | ) |
References GR_Graphics::beginPaint(), GR_Graphics::endPaint(), GR_CairoGraphics::getCairo(), GR_EmbedManager::getGraphics(), GR_Graphics::getZoomPercentage(), UT_Rect::height, UT_Rect::left, m_Graph, m_pGOMan, m_Renderer, GR_Graphics::tdu(), UT_Rect::top, UT_return_if_fail, width, and UT_Rect::width.
Referenced by GR_GOChartManager::render().
void GOChartView::setDefaultFontSize | ( | UT_sint32 | iSize | ) |
Referenced by GR_GOChartManager::setDefaultFontSize().
void GOChartView::SetRun | ( | fp_Run * | pRun | ) | [inline] |
References m_pRun.
Referenced by GR_GOChartManager::setRun().
UT_sint32 GOChartView::height [private] |
GogGraph* GOChartView::m_Graph [private] |
Referenced by exportToPNG(), exportToSVG(), GOChartView(), loadBuffer(), modify(), render(), and ~GOChartView().
GtkWidget* GOChartView::m_Guru [private] |
Referenced by GOChartView(), SetGuru(), and ~GOChartView().
GR_Image* GOChartView::m_Image [private] |
Referenced by GOChartView(), and ~GOChartView().
GR_GOChartManager* GOChartView::m_pGOMan [private] |
Referenced by render().
fp_Run* GOChartView::m_pRun [private] |
GogRenderer* GOChartView::m_Renderer [private] |
Referenced by exportToPNG(), exportToSVG(), GOChartView(), loadBuffer(), render(), and ~GOChartView().
UT_sint32 GOChartView::pix_height [private] |
Referenced by GOChartView(), and loadBuffer().
UT_sint32 GOChartView::pix_width [private] |
Referenced by GOChartView(), and loadBuffer().
UT_sint32 GOChartView::width [private] |
Referenced by exportToPNG(), exportToSVG(), getWidth(), GOChartView(), and render().