#include <AbiMathView.h>
GR_MathManager::GR_MathManager | ( | GR_Graphics * | pG | ) |
References UT_GenericVector< T >::clear(), m_vecItems, and m_vecMathView.
Referenced by create().
GR_MathManager::~GR_MathManager | ( | ) | [virtual] |
References DELETEP, m_pAbiContext, m_vecItems, and UT_VECTOR_PURGEALL.
UT_sint32 GR_MathManager::_getNextUID | ( | void | ) | [private] |
void GR_MathManager::_loadMathML | ( | UT_sint32 | uid, | |
UT_UTF8String & | sMathBuf | |||
) | [private, virtual] |
References UT_GenericVector< T >::getNthItem(), m_vecMathView, UT_DEBUGMSG, UT_return_if_fail, and UT_UTF8String::utf8_str().
Referenced by loadEmbedData().
UT_sint32 GR_MathManager::_makeMathView | ( | void | ) | [private, virtual] |
References UT_GenericVector< T >::addItem(), create(), UT_GenericVector< T >::getItemCount(), m_pLogger, m_pMathGraphicDevice, m_pOperatorDictionary, m_vecMathView, and UT_ASSERT.
Referenced by makeEmbedView().
bool GR_MathManager::convert | ( | UT_uint32 | iConv, | |
UT_ByteBuf & | From, | |||
UT_ByteBuf & | To | |||
) | [virtual] |
Reimplemented from GR_EmbedManager.
References XAP_Dialog_MessageBox::a_OK, UT_UTF8String::appendBuf(), XAP_Dialog_MessageBox::b_O, IE_Imp_MathML_EntityTable::convert(), EntityTable(), XAP_App::getApp(), XAP_App::getLastFocussedFrame(), itex2MML_free_string(), itex2MML_parse(), XAP_Frame::showMessageBox(), UT_UTF8String::size(), UT_DEBUGMSG, and UT_UTF8String::utf8_str().
GR_EmbedManager * GR_MathManager::create | ( | GR_Graphics * | pG | ) | [virtual] |
Reimplemented from GR_EmbedManager.
References GR_MathManager().
Referenced by _makeMathView(), and initialize().
bool GR_MathManager::createPNGSnapshot | ( | AD_Document * | pDoc, | |
UT_Rect & | rec, | |||
const char * | szDataID | |||
) |
const IE_Imp_MathML_EntityTable& GR_MathManager::EntityTable | ( | ) | const [inline] |
References m_EntityTable.
Referenced by AbiMathView_FileInsert(), and convert().
Reimplemented from GR_EmbedManager.
References GR_EmbedManager::getGraphics(), UT_GenericVector< T >::getNthItem(), m_pAbiContext, m_vecMathView, GR_Abi_RenderingContext::toAbiLayoutUnits(), and UT_DEBUGMSG.
Reimplemented from GR_EmbedManager.
References UT_GenericVector< T >::getNthItem(), m_pAbiContext, m_vecMathView, and GR_Abi_RenderingContext::toAbiLayoutUnits().
const char * GR_MathManager::getObjectType | ( | void | ) | const [virtual] |
Reimplemented from GR_EmbedManager.
Referenced by abi_plugin_unregister().
Reimplemented from GR_EmbedManager.
References UT_GenericVector< T >::getNthItem(), m_pAbiContext, m_vecMathView, and GR_Abi_RenderingContext::toAbiLayoutUnits().
void GR_MathManager::initialize | ( | void | ) | [virtual] |
void GR_MathManager::initializeEmbedView | ( | UT_sint32 | uid | ) | [virtual] |
Reimplemented from GR_EmbedManager.
References UT_GenericVector< T >::getNthItem(), m_vecMathView, and UT_return_if_fail.
bool GR_MathManager::isDefault | ( | void | ) | [virtual] |
Reimplemented from GR_EmbedManager.
Referenced by createPNGSnapshot(), and updatePNGSnapshot().
void GR_MathManager::loadEmbedData | ( | UT_sint32 | uid | ) | [virtual] |
Reimplemented from GR_EmbedManager.
References _loadMathML(), UT_UTF8String::appendBuf(), PP_AttrProp::getAttribute(), PD_Document::getAttrProp(), PD_Document::getDataItemDataByName(), UT_GenericVector< T >::getNthItem(), GR_AbiMathItems::m_iAPI, m_pDoc, m_vecItems, m_vecMathView, UT_DEBUGMSG, UT_return_if_fail, and UT_UTF8String::utf8_str().
UT_sint32 GR_MathManager::makeEmbedView | ( | AD_Document * | pDoc, | |
UT_uint32 | api, | |||
const char * | szDataID | |||
) | [virtual] |
Reimplemented from GR_EmbedManager.
References _makeMathView(), UT_GenericVector< T >::addItem(), UT_GenericVector< T >::getItemCount(), GR_AbiMathItems::m_bHasSnapshot, GR_AbiMathItems::m_iAPI, m_pDoc, m_vecItems, and UT_ASSERT.
Reimplemented from GR_EmbedManager.
References createPNGSnapshot(), GR_Graphics::DGP_SCREEN, PP_AttrProp::getAttribute(), PD_Document::getAttrProp(), GR_EmbedManager::getGraphics(), UT_GenericVector< T >::getNthItem(), GR_AbiMathItems::m_bHasSnapshot, GR_AbiMathItems::m_iAPI, m_pDoc, m_vecItems, updatePNGSnapshot(), UT_ASSERT, and UT_return_if_fail.
bool GR_MathManager::modify | ( | UT_sint32 | uid | ) | [virtual] |
Reimplemented from GR_EmbedManager.
void GR_MathManager::releaseEmbedView | ( | UT_sint32 | uid | ) | [virtual] |
Reimplemented from GR_EmbedManager.
References UT_GenericVector< T >::getNthItem(), m_vecMathView, and UT_return_if_fail.
Reimplemented from GR_EmbedManager.
References GR_Abi_RenderingContext::fromAbiX(), GR_Abi_RenderingContext::fromAbiY(), UT_GenericVector< T >::getNthItem(), UT_Rect::left, m_pAbiContext, m_vecMathView, UT_Rect::top, and UT_return_if_fail.
void GR_MathManager::setColor | ( | UT_sint32 | uid, | |
UT_RGBColor | c | |||
) | [virtual] |
References m_pAbiContext, and GR_Abi_RenderingContext::setColor().
Reimplemented from GR_EmbedManager.
References UT_GenericVector< T >::getNthItem(), m_vecMathView, and UT_return_if_fail.
bool GR_MathManager::updatePNGSnapshot | ( | AD_Document * | pDoc, | |
UT_Rect & | rec, | |||
const char * | szDataID | |||
) |
UT_sint32 GR_MathManager::m_CurrentUID [private] |
Referenced by EntityTable().
Referenced by getAscent(), getDescent(), getWidth(), initialize(), render(), setColor(), and ~GR_MathManager().
PD_Document* GR_MathManager::m_pDoc [private] |
Referenced by loadEmbedData(), makeEmbedView(), and makeSnapShot().
SmartPtr<AbstractLogger> GR_MathManager::m_pLogger [private] |
Referenced by _makeMathView(), and initialize().
SmartPtr<GR_Abi_MathGraphicDevice> GR_MathManager::m_pMathGraphicDevice [private] |
Referenced by _makeMathView(), and initialize().
SmartPtr<MathMLOperatorDictionary> GR_MathManager::m_pOperatorDictionary [private] |
Referenced by _makeMathView(), and initialize().
UT_GenericVector<GR_AbiMathItems *> GR_MathManager::m_vecItems [private] |
Referenced by GR_MathManager(), loadEmbedData(), makeEmbedView(), makeSnapShot(), and ~GR_MathManager().