#include <fp_MathRun.h>

| fp_MathRun::fp_MathRun | ( | fl_BlockLayout * | pBL, | |
| PT_BlockOffset | iOffsetFirst, | |||
| PT_AttrPropIndex | indexAP, | |||
| PL_ObjectHandle | oh | |||
| ) |
| fp_MathRun::~fp_MathRun | ( | void | ) | [virtual] |
References getMathManager(), m_iMathUID, GR_EmbedManager::releaseEmbedView(), and xxx_UT_DEBUGMSG.
| void fp_MathRun::mapXYToPosition | ( | UT_sint32 | xPos, | |
| UT_sint32 | yPos, | |||
| PT_DocPosition & | pos, | |||
| bool & | bBOL, | |||
| bool & | bEOL, | |||
| bool & | isTOC | |||
| ) | [virtual] |
Implements fp_Run.
References fp_Run::getBlock(), fp_Run::getBlockOffset(), fp_Run::getLength(), fl_BlockLayout::getPosition(), and fp_Run::getWidth().
| void fp_MathRun::findPointCoords | ( | UT_uint32 | iOffset, | |
| UT_sint32 & | x, | |||
| UT_sint32 & | y, | |||
| UT_sint32 & | x2, | |||
| UT_sint32 & | y2, | |||
| UT_sint32 & | height, | |||
| bool & | bDirection | |||
| ) | [virtual] |
Implements fp_Run.
References fp_Run::getBlockOffset(), fp_Run::getLength(), fp_Run::getLine(), fp_Line::getOffsets(), fp_Run::getVisDirection(), fp_Run::getWidth(), m_iPointHeight, UT_ASSERT, and UT_BIDI_LTR.
| bool fp_MathRun::canBreakAfter | ( | void | ) | const [virtual] |
Implements fp_Run.
| bool fp_MathRun::canBreakBefore | ( | void | ) | const [virtual] |
Implements fp_Run.
| bool fp_MathRun::isSuperscript | ( | void | ) | const [virtual] |
Reimplemented from fp_Run.
| bool fp_MathRun::isSubscript | ( | void | ) | const [virtual] |
Reimplemented from fp_Run.
| bool fp_MathRun::hasLayoutProperties | ( | void | ) | const [virtual] |
Reimplemented from fp_Run.
| GR_EmbedManager * fp_MathRun::getMathManager | ( | void | ) |
References m_pMathManager.
Referenced by _draw(), _lookupProperties(), _recalcWidth(), _updatePropValuesIfNeeded(), updateVerticalMetric(), and ~fp_MathRun().
| void fp_MathRun::updateVerticalMetric | ( | ) | [virtual] |
Reimplemented from fp_Run.
References _lookupLocalProperties(), fp_Run::_setRecalcWidth(), getMathManager(), m_iMathUID, and GR_EmbedManager::releaseEmbedView().
| const char * fp_MathRun::getDataID | ( | void | ) | const |
References m_pszDataID.
| void fp_MathRun::_lookupProperties | ( | const PP_AttrProp * | pSpanAP, | |
| const PP_AttrProp * | pBlockAP, | |||
| const PP_AttrProp * | pSectionAP, | |||
| GR_Graphics * | pG = NULL | |||
| ) | [protected, virtual] |
Implements fp_Run.
References fp_Run::_getFont(), _getLayoutPropFromObject(), fp_Run::_setAscent(), fp_Run::_setDescent(), fp_Run::_setFont(), fp_Run::_setHeight(), fp_Run::_setWidth(), _updatePropValuesIfNeeded(), FL_DocLayout::countPages(), GR_Graphics::DGP_PAPER, FL_DocLayout::findFont(), gchar, GR_EmbedManager::getAscent(), fp_Run::getAscent(), PP_AttrProp::getAttribute(), fp_Run::getBlock(), fp_Run::getBlockAP(), fl_DocSectionLayout::getBottomMargin(), GR_EmbedManager::getDescent(), fp_Run::getDescent(), fl_SectionLayout::getDocLayout(), fl_BlockLayout::getDocLayout(), fl_BlockLayout::getDocSectionLayout(), fl_Layout::getDocument(), FL_DocLayout::getEmbedManager(), fl_DocSectionLayout::getFirstContainer(), GR_Graphics::getFontAscent(), GR_Graphics::getFontDescent(), fp_Run::getGraphics(), fp_Page::getHeight(), fl_DocSectionLayout::getLeftMargin(), fp_Run::getLine(), getMathManager(), FL_DocLayout::getNthPage(), fp_Container::getPage(), PP_AttrProp::getProperty(), FL_DocLayout::getQuickPrintEmbedManager(), fl_DocSectionLayout::getRightMargin(), fl_DocSectionLayout::getTopMargin(), fp_Page::getWidth(), GR_EmbedManager::getWidth(), fp_Run::getWidth(), GR_EmbedManager::initializeEmbedView(), FL_DocLayout::isQuickPrint(), GR_EmbedManager::loadEmbedData(), m_bNeedsSnapshot, m_iIndexAP, m_iMathUID, m_iPointHeight, m_pDocLayout, m_pMathManager, m_pSpanAP, m_pszDataID, GR_EmbedManager::makeEmbedView(), fp_Run::markAsDirty(), PP_evalProperty(), GR_Graphics::queryProperties(), GR_EmbedManager::releaseEmbedView(), GR_EmbedManager::setDefaultFontSize(), fp_Line::setNeedsRedraw(), UT_convertToLogicalUnits(), UT_DEBUGMSG, and xxx_UT_DEBUGMSG.
Referenced by _lookupLocalProperties().
| void fp_MathRun::_lookupLocalProperties | ( | ) | [protected] |
References _lookupProperties(), fp_Run::getBlock(), fp_Run::getBlockAP(), fp_Run::getGraphics(), and fp_Run::getSpanAP().
Referenced by _recalcWidth(), and updateVerticalMetric().
| void fp_MathRun::_draw | ( | dg_DrawArgs * | pDA | ) | [protected, virtual] |
Implements fp_Run.
References fp_Run::_getView(), GR_Graphics::DGP_PAPER, GR_Graphics::DGP_SCREEN, fp_Run::Fill(), GR_Painter::fillRect(), fp_Run::getAscent(), fp_Line::getAscent(), fp_Run::getBlock(), fl_BlockLayout::getDocLayout(), fp_Run::getFGColor(), fp_Run::getGraphics(), fp_Run::getHeight(), fp_Line::getHeight(), fp_Run::getLine(), getMathManager(), fp_Run::getOffsetFirstVis(), FV_View::getPoint(), fl_BlockLayout::getPosition(), fp_Line::getScreenOffsets(), FV_View::getSelectionAnchor(), fp_Run::getWidth(), UT_Rect::height, GR_EmbedManager::isDefault(), fp_Run::isInSelectedTOC(), FL_DocLayout::isQuickPrint(), UT_Rect::left, m_bNeedsSnapshot, m_iMathUID, m_sMathML, GR_EmbedManager::makeSnapShot(), dg_DrawArgs::pG, GR_Graphics::queryProperties(), GR_EmbedManager::render(), GR_EmbedManager::setColor(), UT_Rect::top, UT_ASSERT, UT_DEBUGMSG, UT_MAX, UT_MIN, UT_return_if_fail, UT_UTF8String::utf8_str(), UT_Rect::width, dg_DrawArgs::xoff, xxx_UT_DEBUGMSG, and dg_DrawArgs::yoff.
| void fp_MathRun::_clearScreen | ( | bool | bFullLineHeightRect | ) | [protected, virtual] |
| bool fp_MathRun::_letPointPass | ( | void | ) | const [protected, virtual] |
Reimplemented from fp_Run.
| void fp_MathRun::_drawResizeBox | ( | UT_Rect | box | ) | [protected] |
References GR_Graphics::CAP_BUTT, GR_Painter::drawLine(), GR_Painter::fillRect(), fp_Run::getGraphics(), UT_Rect::height, GR_Graphics::JOIN_MITER, UT_Rect::left, GR_Graphics::LINE_SOLID, GR_Graphics::setColor(), GR_Graphics::setLineProperties(), GR_Graphics::tlu(), GR_Graphics::tluD(), UT_Rect::top, and UT_Rect::width.
| UT_sint32 fp_MathRun::_getLayoutPropFromObject | ( | const char * | szProp | ) | [protected] |
This method is used to determine the value of the layout properties of the math runs. The values returned are in logical units. The properties are "height","width","ascent","decent". If the propeties are not defined return -1
References PD_Document::getAPIFromSOH(), PD_Document::getAttrProp(), fp_Run::getBlock(), fl_Layout::getDocument(), PP_AttrProp::getProperty(), and m_OH.
Referenced by _lookupProperties().
| bool fp_MathRun::_updatePropValuesIfNeeded | ( | void | ) | [protected] |
Returns true if the properties are changed in the document.
References PD_Document::changeObjectFormatNoUpdate(), PD_Document::getAPIFromSOH(), fp_Run::getAscent(), PD_Document::getAttrProp(), fp_Run::getBlock(), fp_Run::getDescent(), fl_Layout::getDocument(), fp_Run::getHeight(), getMathManager(), PP_AttrProp::getProperty(), fp_Run::getWidth(), m_OH, PTC_AddFmt, UT_return_val_if_fail, UT_UTF8String_sprintf(), and UT_UTF8String::utf8_str().
Referenced by _lookupProperties().
| bool fp_MathRun::_recalcWidth | ( | void | ) | [protected, virtual] |
Reimplemented from fp_Run.
References fp_Run::_getRecalcWidth(), _lookupLocalProperties(), getMathManager(), fp_Run::getWidth(), m_iMathUID, and GR_EmbedManager::releaseEmbedView().
UT_sint32 fp_MathRun::m_iPointHeight [protected] |
Referenced by _lookupProperties(), and findPointCoords().
const PP_AttrProp* fp_MathRun::m_pSpanAP [protected] |
Referenced by _lookupProperties().
UT_uint32 fp_MathRun::m_iGraphicTick [protected] |
const gchar* fp_MathRun::m_pszDataID [protected] |
Referenced by _lookupProperties(), and getDataID().
UT_UTF8String fp_MathRun::m_sMathML [protected] |
Referenced by _draw().
GR_EmbedManager* fp_MathRun::m_pMathManager [protected] |
Referenced by _lookupProperties(), and getMathManager().
UT_sint32 fp_MathRun::m_iMathUID [protected] |
Referenced by _draw(), _lookupProperties(), _recalcWidth(), updateVerticalMetric(), and ~fp_MathRun().
PT_AttrPropIndex fp_MathRun::m_iIndexAP [protected] |
Referenced by _lookupProperties().
FL_DocLayout* fp_MathRun::m_pDocLayout [protected] |
Referenced by _lookupProperties().
bool fp_MathRun::m_bNeedsSnapshot [protected] |
Referenced by _draw(), and _lookupProperties().
PL_ObjectHandle fp_MathRun::m_OH [protected] |
Referenced by _getLayoutPropFromObject(), and _updatePropValuesIfNeeded().
1.5.5