#include <fp_DirectionMarkerRun.h>
Public Member Functions | |
fp_DirectionMarkerRun (fl_BlockLayout *pBL, UT_uint32 iOffsetFirst, UT_UCS4Char cMarker) | |
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 UT_sint32 | getDrawingWidth () const |
virtual bool | doesContainNonBlankData (void) const |
Protected Member Functions | |
virtual void | _lookupProperties (const PP_AttrProp *pSpanAP, const PP_AttrProp *pBlockAP, const PP_AttrProp *pSectionAP, GR_Graphics *pG) |
virtual void | _draw (dg_DrawArgs *) |
virtual void | _clearScreen (bool bFullLineHeightRect) |
virtual bool | _recalcWidth (void) |
virtual bool | _letPointPass (void) const |
virtual bool | _deleteFollowingIfAtInsPoint () const |
Private Attributes | |
UT_uint32 | m_iXoffText |
UT_uint32 | m_iYoffText |
UT_uint32 | m_iDrawWidth |
UT_UCS4Char | m_iMarker |
fp_DirectionMarkerRun::fp_DirectionMarkerRun | ( | fl_BlockLayout * | pBL, | |
UT_uint32 | iOffsetFirst, | |||
UT_UCS4Char | cMarker | |||
) |
void fp_DirectionMarkerRun::_clearScreen | ( | bool | bFullLineHeightRect | ) | [protected, virtual] |
bool fp_DirectionMarkerRun::_deleteFollowingIfAtInsPoint | ( | ) | const [protected, virtual] |
Reimplemented from fp_Run.
References fp_Run::_getView(), and FV_View::getShowPara().
void fp_DirectionMarkerRun::_draw | ( | dg_DrawArgs * | pDA | ) | [protected, virtual] |
Draw Direction marker graphical representation
pDA | Draw arguments Draws the < or > character in show paragraphs mode. |
Implements fp_Run.
References fp_Run::_findPrevPropertyRun(), fp_Run::_getColorPG(), fp_Run::_getView(), fp_Run::_setHeight(), GR_Painter::drawChars(), GR_Painter::fillRect(), FL_DocLayout::findFont(), FPRUN_TEXT, fp_Run::getAscent(), fp_Run::getBlock(), fp_Run::getBlockAP(), fp_Run::getBlockOffset(), FV_View::getColorShowPara(), fl_BlockLayout::getDocLayout(), fp_TextRun::getFont(), GR_Graphics::getFontAscent(), fp_Run::getGraphics(), fp_Run::getHeight(), fp_Run::getLine(), FV_View::getPoint(), fl_BlockLayout::getPosition(), fp_Run::getRevisions(), FV_View::getSelectionAnchor(), FV_View::getShowPara(), fp_Run::getSpanAP(), fp_Run::getType(), m_iDrawWidth, m_iMarker, m_iXoffText, m_iYoffText, GR_Graphics::measureString(), dg_DrawArgs::pG, GR_Graphics::setColor(), GR_Graphics::setFont(), UCS_LRM, UT_ASSERT_HARMLESS, UT_MAX, UT_MIN, dg_DrawArgs::xoff, xxx_UT_DEBUGMSG, and dg_DrawArgs::yoff.
bool fp_DirectionMarkerRun::_letPointPass | ( | void | ) | const [protected, virtual] |
Reimplemented from fp_Run.
void fp_DirectionMarkerRun::_lookupProperties | ( | const PP_AttrProp * | pSpanAP, | |
const PP_AttrProp * | pBlockAP, | |||
const PP_AttrProp * | pSectionAP, | |||
GR_Graphics * | pG | |||
) | [protected, virtual] |
Implements fp_Run.
References fp_Run::_findPrevPropertyRun(), fp_Run::_inheritProperties(), fp_Run::_setRevisions(), FL_DocLayout::findFont(), FPRUN_TEXT, gchar, PP_AttrProp::getAttribute(), fp_Run::getBlock(), fl_BlockLayout::getDocLayout(), fp_TextRun::getFont(), fp_Run::getGraphics(), fp_Run::getType(), fp_Run::getWidth(), m_iDrawWidth, m_iMarker, GR_Graphics::measureString(), GR_Graphics::setFont(), UCS_LRM, and xxx_UT_DEBUGMSG.
bool fp_DirectionMarkerRun::_recalcWidth | ( | void | ) | [protected, virtual] |
Reimplemented from fp_Run.
References fp_Run::_getView(), fp_Run::_setWidth(), FV_View::getShowPara(), fp_Run::getWidth(), m_iDrawWidth, and xxx_UT_DEBUGMSG.
bool fp_DirectionMarkerRun::canBreakAfter | ( | void | ) | const [virtual] |
Implements fp_Run.
bool fp_DirectionMarkerRun::canBreakBefore | ( | void | ) | const [virtual] |
Implements fp_Run.
virtual bool fp_DirectionMarkerRun::doesContainNonBlankData | ( | void | ) | const [inline, virtual] |
Reimplemented from fp_Run.
void fp_DirectionMarkerRun::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::_findPrevPropertyRun(), fp_Run::findPointCoords(), FPRUN_TEXT, fp_Run::getHeight(), fp_Run::getLine(), fp_Line::getOffsets(), fp_Run::getType(), and fp_Run::getVisDirection().
virtual UT_sint32 fp_DirectionMarkerRun::getDrawingWidth | ( | void | ) | const [inline, virtual] |
Reimplemented from fp_Run.
void fp_DirectionMarkerRun::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().
UT_uint32 fp_DirectionMarkerRun::m_iDrawWidth [private] |
Referenced by _clearScreen(), _draw(), _lookupProperties(), and _recalcWidth().
UT_UCS4Char fp_DirectionMarkerRun::m_iMarker [private] |
Referenced by _draw(), _lookupProperties(), and fp_DirectionMarkerRun().
UT_uint32 fp_DirectionMarkerRun::m_iXoffText [private] |
Referenced by _draw().
UT_uint32 fp_DirectionMarkerRun::m_iYoffText [private] |
Referenced by _draw().