#include <fp_Run.h>
Public Member Functions | |
fp_EndOfParagraphRun (fl_BlockLayout *pBL, UT_uint32 iOffsetFirst, UT_uint32 iLen) | |
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 |
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 |
virtual bool | _recalcWidth (void) |
Private Attributes | |
UT_uint32 | m_iXoffText |
UT_uint32 | m_iYoffText |
UT_uint32 | m_iDrawWidth |
fp_EndOfParagraphRun::fp_EndOfParagraphRun | ( | fl_BlockLayout * | pBL, | |
UT_uint32 | iOffsetFirst, | |||
UT_uint32 | iLen | |||
) |
void fp_EndOfParagraphRun::_clearScreen | ( | bool | bFullLineHeightRect | ) | [protected, virtual] |
Implements fp_Run.
References GR_Graphics::DGP_SCREEN, fp_Run::Fill(), fp_Run::getBlock(), fp_Run::getGraphics(), fp_Run::getHeight(), fp_Run::getLine(), fp_Line::getScreenOffsets(), m_iDrawWidth, UT_ASSERT, and UT_BIDI_RTL.
void fp_EndOfParagraphRun::_draw | ( | dg_DrawArgs * | pDA | ) | [protected, virtual] |
Draw end-of-paragraph Run graphical representation
pDA | Draw arguments Draws the pilcrow character (reverse P) in show paragraphs mode. Make it use the same typeface as preceding text. |
Implements fp_Run.
References fp_Run::_findPrevPropertyRun(), fp_Run::_getView(), fp_Run::_setHeight(), GR_Graphics::DGP_SCREEN, GR_Painter::drawChars(), fp_Run::Fill(), 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(), fp_Run::isInSelectedTOC(), FV_View::isShowRevisions(), m_iDrawWidth, m_iXoffText, m_iYoffText, GR_Graphics::measureString(), GR_Graphics::setColor(), GR_Graphics::setFont(), UT_ASSERT, UT_BIDI_RTL, UT_MAX, UT_MIN, UT_UCS4_strlen(), dg_DrawArgs::xoff, xxx_UT_DEBUGMSG, and dg_DrawArgs::yoff.
bool fp_EndOfParagraphRun::_letPointPass | ( | void | ) | const [protected, virtual] |
Reimplemented from fp_Run.
void fp_EndOfParagraphRun::_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::_findPrevPropertyRun(), fp_Run::_getView(), 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::getHeight(), FV_View::getShowPara(), fp_Run::getType(), fp_Run::getWidth(), m_iDrawWidth, GR_Graphics::measureString(), GR_Graphics::setFont(), UT_UCS4_strlen(), and xxx_UT_DEBUGMSG.
bool fp_EndOfParagraphRun::_recalcWidth | ( | void | ) | [protected, virtual] |
Reimplemented from fp_Run.
bool fp_EndOfParagraphRun::canBreakAfter | ( | void | ) | const [virtual] |
Implements fp_Run.
References UT_ASSERT, and UT_SHOULD_NOT_HAPPEN.
bool fp_EndOfParagraphRun::canBreakBefore | ( | void | ) | const [virtual] |
Implements fp_Run.
References UT_ASSERT, and UT_SHOULD_NOT_HAPPEN.
void fp_EndOfParagraphRun::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(), fp_Run::getHeight(), fp_Run::getLine(), fp_Line::getOffsets(), fp_Run::getType(), and xxx_UT_DEBUGMSG.
virtual UT_sint32 fp_EndOfParagraphRun::getDrawingWidth | ( | void | ) | const [inline, virtual] |
Reimplemented from fp_Run.
void fp_EndOfParagraphRun::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_uint32 fp_EndOfParagraphRun::m_iDrawWidth [private] |
Referenced by _clearScreen(), _draw(), and _lookupProperties().
UT_uint32 fp_EndOfParagraphRun::m_iXoffText [private] |
Referenced by _draw().
UT_uint32 fp_EndOfParagraphRun::m_iYoffText [private] |
Referenced by _draw().