Public Member Functions | Protected Member Functions | Protected Attributes

fp_MathRun Class Reference

#include <fp_MathRun.h>

Inheritance diagram for fp_MathRun:
fp_Run fp_ContainerObject

List of all members.

Public Member Functions

 fp_MathRun (fl_BlockLayout *pBL, PT_BlockOffset iOffsetFirst, PT_AttrPropIndex indexAP, pf_Frag_Object *oh)
virtual ~fp_MathRun (void)
virtual void mapXYToPosition (UT_sint32 xPos, UT_sint32 yPos, PT_DocPosition &pos, bool &bBOL, bool &bEOL, bool &isTOC)
virtual void findPointCoords (UT_uint32 iOffset, UT_sint32 &x, UT_sint32 &y, UT_sint32 &x2, UT_sint32 &y2, UT_sint32 &height, bool &bDirection)
virtual bool canBreakAfter (void) const
virtual bool canBreakBefore (void) const
virtual bool isSuperscript (void) const
virtual bool isSubscript (void) const
virtual bool hasLayoutProperties (void) const
GR_EmbedManagergetMathManager (void)
virtual void updateVerticalMetric ()
const char * getDataID (void) const
UT_sint32 getUID (void) const

Protected Member Functions

virtual void _lookupProperties (const PP_AttrProp *pSpanAP, const PP_AttrProp *pBlockAP, const PP_AttrProp *pSectionAP, GR_Graphics *pG=NULL)
void _lookupLocalProperties ()
virtual void _draw (dg_DrawArgs *)
virtual void _clearScreen (bool bFullLineHeightRect)
virtual bool _letPointPass (void) const
void _drawResizeBox (UT_Rect box)
UT_sint32 _getLayoutPropFromObject (const char *szProp)
bool _updatePropValuesIfNeeded (void)
virtual bool _recalcWidth (void)

Protected Attributes

UT_sint32 m_iPointHeight
const PP_AttrPropm_pSpanAP
UT_uint32 m_iGraphicTick
const gchar * m_pszDataID
UT_UTF8String m_sMathML
GR_EmbedManagerm_pMathManager
UT_sint32 m_iMathUID
PT_AttrPropIndex m_iIndexAP
FL_DocLayoutm_pDocLayout
bool m_bNeedsSnapshot
pf_Frag_Objectm_OH

Constructor & Destructor Documentation

fp_MathRun::fp_MathRun ( fl_BlockLayout pBL,
PT_BlockOffset  iOffsetFirst,
PT_AttrPropIndex  indexAP,
pf_Frag_Object oh 
)
fp_MathRun::~fp_MathRun ( void   )  [virtual]

Member Function Documentation

void fp_MathRun::_clearScreen ( bool  bFullLineHeightRect  )  [protected, virtual]
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::_letPointPass ( void   )  const [protected, virtual]

Reimplemented from fp_Run.

void fp_MathRun::_lookupLocalProperties (  )  [protected]
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(), ABI_DISPLAY_BLOCK, ABI_DISPLAY_INLINE, 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(), PP_PropertyTypeColor::getColor(), 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(), GR_EmbedManager::isDefault(), 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(), PP_evalPropertyType(), Property_type_color, GR_Graphics::queryProperties(), GR_EmbedManager::releaseEmbedView(), GR_EmbedManager::setColor(), GR_EmbedManager::setDefaultFontSize(), GR_EmbedManager::setDisplayMode(), GR_EmbedManager::setFont(), fp_Line::setNeedsRedraw(), GR_EmbedManager::setRun(), UT_convertToLogicalUnits(), UT_DEBUGMSG, and xxx_UT_DEBUGMSG.

Referenced by _lookupLocalProperties().

bool fp_MathRun::_recalcWidth ( void   )  [protected, virtual]
bool fp_MathRun::canBreakAfter ( void   )  const [virtual]

Implements fp_Run.

bool fp_MathRun::canBreakBefore ( void   )  const [virtual]

Implements fp_Run.

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]
const char * fp_MathRun::getDataID ( void   )  const

References m_pszDataID.

GR_EmbedManager * fp_MathRun::getMathManager ( void   ) 
UT_sint32 fp_MathRun::getUID ( void   )  const [inline]
bool fp_MathRun::hasLayoutProperties ( void   )  const [virtual]

Reimplemented from fp_Run.

bool fp_MathRun::isSubscript ( void   )  const [virtual]

Reimplemented from fp_Run.

bool fp_MathRun::isSuperscript ( void   )  const [virtual]

Reimplemented from fp_Run.

void fp_MathRun::mapXYToPosition ( UT_sint32  xPos,
UT_sint32  yPos,
PT_DocPosition pos,
bool &  bBOL,
bool &  bEOL,
bool &  isTOC 
) [virtual]
void fp_MathRun::updateVerticalMetric (  )  [virtual]

Member Data Documentation

bool fp_MathRun::m_bNeedsSnapshot [protected]

Referenced by _draw(), and _lookupProperties().

const PP_AttrProp* fp_MathRun::m_pSpanAP [protected]

Referenced by _lookupProperties().

const gchar* fp_MathRun::m_pszDataID [protected]

Referenced by _lookupProperties(), and getDataID().

Referenced by _draw().


The documentation for this class was generated from the following files: