#include <fp_Run.h>
Public Member Functions | |
fp_FmtMarkRun (fl_BlockLayout *pBL, UT_uint32 iOffsetFirst) | |
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 |
Protected Member Functions | |
virtual void | _lookupProperties (const PP_AttrProp *pSpanAP, const PP_AttrProp *pBlockAP, const PP_AttrProp *pSectionAP, GR_Graphics *pG=NULL) |
virtual void | _draw (dg_DrawArgs *) |
virtual void | _clearScreen (bool bFullLineHeightRect) |
virtual bool | _letPointPass (void) const |
Private Types | |
enum | { TEXT_POSITION_NORMAL, TEXT_POSITION_SUPERSCRIPT, TEXT_POSITION_SUBSCRIPT } |
Private Attributes | |
UT_Byte | m_fPosition |
anonymous enum [private] |
fp_FmtMarkRun::fp_FmtMarkRun | ( | fl_BlockLayout * | pBL, | |
UT_uint32 | iOffsetFirst | |||
) |
References fp_Run::lookupProperties().
void fp_FmtMarkRun::_clearScreen | ( | bool | bFullLineHeightRect | ) | [protected, virtual] |
Implements fp_Run.
References GR_Graphics::fillRect(), fp_Run::getGraphics(), fp_Run::getLine(), fp_Line::getScreenOffsets(), and fp_Run::m_iHeight.
void fp_FmtMarkRun::_draw | ( | dg_DrawArgs * | ) | [protected, virtual] |
Implements fp_Run.
References GR_Graphics::drawLine(), fp_Run::getAscent(), fp_Run::getGraphics(), fp_Run::getHeight(), and GR_Graphics::setColor().
bool fp_FmtMarkRun::_letPointPass | ( | void | ) | const [protected, virtual] |
Reimplemented from fp_Run.
void fp_FmtMarkRun::_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::_setAscent(), fp_Run::_setDescent(), fp_Run::_setDirection(), fp_Run::_setHeight(), FL_DocLayout::findFont(), gchar, fp_Run::getAscent(), fp_Run::getBlock(), fp_Run::getDescent(), fl_BlockLayout::getDocLayout(), fl_Layout::getDocument(), GR_Graphics::getFontAscent(), GR_Graphics::getFontDescent(), GR_Graphics::getFontHeight(), fp_Run::getGraphics(), m_fPosition, PP_evalProperty(), UT_BIDI_WS, and xxx_UT_DEBUGMSG.
bool fp_FmtMarkRun::canBreakAfter | ( | void | ) | const [virtual] |
Implements fp_Run.
bool fp_FmtMarkRun::canBreakBefore | ( | void | ) | const [virtual] |
Implements fp_Run.
virtual bool fp_FmtMarkRun::hasLayoutProperties | ( | void | ) | const [inline, virtual] |
Reimplemented from fp_Run.
bool fp_FmtMarkRun::isSubscript | ( | void | ) | const [virtual] |
Reimplemented from fp_Run.
References m_fPosition, and TEXT_POSITION_SUBSCRIPT.
bool fp_FmtMarkRun::isSuperscript | ( | void | ) | const [virtual] |
Reimplemented from fp_Run.
References m_fPosition, and TEXT_POSITION_SUPERSCRIPT.
void fp_FmtMarkRun::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(), and fl_BlockLayout::getPosition().
UT_Byte fp_FmtMarkRun::m_fPosition [private] |
Referenced by _lookupProperties(), findPointCoords(), isSubscript(), and isSuperscript().