#include <AbiLasemMathView.h>
Public Member Functions | |
LasemMathView (GR_LasemMathManager *pMathMan) | |
virtual | ~LasemMathView (void) |
void | render (UT_Rect &rec) |
void | setFont (const GR_Font *pFont) |
void | setColor (const UT_RGBColor &c) |
void | setDisplayMode (AbiDisplayMode mode) |
void | setItex (char *itex) |
void | loadBuffer (UT_UTF8String &sMathml) |
void | SetRun (fp_Run *pRun) |
fp_Run * | getRun () |
void | SetGuru (GtkWidget *guru) |
UT_ConstByteBufPtr | exportToSVG () |
UT_ConstByteBufPtr | getSnapShot () |
UT_sint32 | getWidth () |
UT_sint32 | getHeight () |
UT_sint32 | getAscent () |
UT_sint32 | getDescent () |
Private Attributes | |
GR_LasemMathManager * | m_pMathMan |
char * | itex |
char * | font |
char * | color |
bool | compact |
LsmDomDocument * | mathml |
LsmDomNode * | math_element |
LsmDomNode * | style_element |
LsmDomView * | view |
UT_sint32 | width |
UT_sint32 | height |
UT_sint32 | ascent |
UT_sint32 | descent |
UT_sint32 | m_y |
fp_Run * | m_pRun |
GtkWidget * | m_Guru |
LasemMathView::LasemMathView | ( | GR_LasemMathManager * | pMathMan | ) |
UT_ConstByteBufPtr LasemMathView::exportToSVG | ( | ) |
UT_sint32 LasemMathView::getHeight | ( | ) | [inline] |
UT_ConstByteBufPtr LasemMathView::getSnapShot | ( | ) |
References abi_CairoWrite(), ascent, descent, m_y, UT_LAYOUT_RESOLUTION, UT_return_val_if_fail, view, and width.
void LasemMathView::loadBuffer | ( | UT_UTF8String & | sMathml | ) |
References UT_UTF8String::length(), math_element, style_element, UT_UTF8String::utf8_str(), and view.
Referenced by GR_LasemMathManager::_loadMathMl().
void LasemMathView::render | ( | UT_Rect & | rec | ) |
References ascent, GR_Graphics::beginPaint(), GR_Graphics::endPaint(), GR_CairoGraphics::getCairo(), GR_EmbedManager::getGraphics(), UT_Rect::height, UT_Rect::left, m_pMathMan, m_y, GR_Graphics::tdu(), UT_Rect::top, UT_LAYOUT_RESOLUTION, UT_return_if_fail, view, width, and UT_Rect::width.
Referenced by GR_LasemMathManager::render().
void LasemMathView::setColor | ( | const UT_RGBColor & | c | ) |
References UT_HashColor::setColor(), style_element, UT_return_if_fail, view, and xxx_UT_DEBUGMSG.
void LasemMathView::setDisplayMode | ( | AbiDisplayMode | mode | ) |
References compact, style_element, and UT_return_if_fail.
Referenced by GR_LasemMathManager::setDisplayMode().
void LasemMathView::setFont | ( | const GR_Font * | pFont | ) |
References ascent, descent, font, GR_PangoFont::getPangoDescription(), m_y, style_element, UT_DEBUGMSG, UT_LAYOUT_RESOLUTION, UT_return_if_fail, view, width, and xxx_UT_DEBUGMSG.
Referenced by GR_LasemMathManager::setFont().
void LasemMathView::SetGuru | ( | GtkWidget * | guru | ) | [inline] |
References m_Guru.
void LasemMathView::setItex | ( | char * | itex | ) |
void LasemMathView::SetRun | ( | fp_Run * | pRun | ) | [inline] |
References m_pRun.
Referenced by GR_LasemMathManager::setRun().
UT_sint32 LasemMathView::ascent [private] |
Referenced by getAscent(), getSnapShot(), LasemMathView(), render(), and setFont().
char* LasemMathView::color [private] |
bool LasemMathView::compact [private] |
Referenced by setDisplayMode().
UT_sint32 LasemMathView::descent [private] |
Referenced by getDescent(), getSnapShot(), LasemMathView(), and setFont().
char* LasemMathView::font [private] |
Referenced by LasemMathView(), and setFont().
UT_sint32 LasemMathView::height [private] |
char* LasemMathView::itex [private] |
Referenced by LasemMathView().
GtkWidget* LasemMathView::m_Guru [private] |
Referenced by LasemMathView(), SetGuru(), and ~LasemMathView().
GR_LasemMathManager* LasemMathView::m_pMathMan [private] |
Referenced by render().
fp_Run* LasemMathView::m_pRun [private] |
UT_sint32 LasemMathView::m_y [private] |
Referenced by getSnapShot(), render(), and setFont().
LsmDomNode* LasemMathView::math_element [private] |
Referenced by loadBuffer().
LsmDomDocument* LasemMathView::mathml [private] |
LsmDomNode* LasemMathView::style_element [private] |
Referenced by loadBuffer(), setColor(), setDisplayMode(), and setFont().
LsmDomView* LasemMathView::view [private] |
Referenced by getSnapShot(), LasemMathView(), loadBuffer(), render(), setColor(), setFont(), and ~LasemMathView().
UT_sint32 LasemMathView::width [private] |
Referenced by getSnapShot(), getWidth(), LasemMathView(), render(), and setFont().