fp_EndOfParagraphRun Class Reference

#include <fp_Run.h>

Inheritance diagram for fp_EndOfParagraphRun:

fp_Run fp_ContainerObject

List of all members.

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


Constructor & Destructor Documentation

fp_EndOfParagraphRun::fp_EndOfParagraphRun ( fl_BlockLayout pBL,
UT_uint32  iOffsetFirst,
UT_uint32  iLen 
)


Member Function Documentation

void fp_EndOfParagraphRun::mapXYToPosition ( UT_sint32  xPos,
UT_sint32  yPos,
PT_DocPosition pos,
bool &  bBOL,
bool &  bEOL,
bool &  isToc 
) [virtual]

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]

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.

virtual UT_sint32 fp_EndOfParagraphRun::getDrawingWidth ( void   )  const [inline, 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]

void fp_EndOfParagraphRun::_draw ( dg_DrawArgs pDA  )  [protected, virtual]

Draw end-of-paragraph Run graphical representation

Parameters:
pDA Draw arguments Draws the pilcrow character (reverse P) in show paragraphs mode. Make it use the same typeface as preceding text.
Note:
This _draw function is special in that it does (partly) lookup as well. That's because the pilcrow's typeface is controlled by the preceding character. Eventually, when the PT learns about EOP, it should be possible to just deal with this in the lookup function.

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(), UCS_PILCROW, UT_ASSERT, UT_BIDI_RTL, UT_MAX, UT_MIN, UT_UCS4_strlen(), dg_DrawArgs::xoff, xxx_UT_DEBUGMSG, and dg_DrawArgs::yoff.

void fp_EndOfParagraphRun::_clearScreen ( bool  bFullLineHeightRect  )  [protected, virtual]

bool fp_EndOfParagraphRun::_letPointPass ( void   )  const [protected, virtual]

Reimplemented from fp_Run.

bool fp_EndOfParagraphRun::_recalcWidth ( void   )  [protected, virtual]

Reimplemented from fp_Run.


Member Data Documentation

Referenced by _draw().

Referenced by _draw().


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

Generated on Tue Oct 7 00:06:57 2008 for AbiWord by  doxygen 1.5.5