#include <fp_Run.h>
Public Member Functions | |
fp_AnnotationRun (fl_BlockLayout *pBL, UT_uint32 iOffsetFirst, UT_uint32 iLen) | |
virtual | ~fp_AnnotationRun () |
virtual FP_HYPERLINK_TYPE | getHyperlinkType (void) const |
UT_uint32 | getPID (void) |
const char * | getValue (void) |
void | recalcValue (void) |
virtual bool | canBreakAfter (void) const |
virtual bool | canBreakBefore (void) const |
UT_sint32 | getRealWidth (void) const |
void | cleanDraw (dg_DrawArgs *) |
UT_sint32 | calcWidth (void) |
Protected Member Functions | |
virtual void | _draw (dg_DrawArgs *) |
virtual void | _clearScreen (bool bFullLineHeightRect) |
virtual bool | _recalcWidth (void) |
bool | _setValue (void) |
virtual void | _setWidth (UT_sint32 iWidth) |
virtual bool | _letPointPass (void) const |
virtual bool | _canContainPoint (void) const |
virtual void | _lookupProperties (const PP_AttrProp *pSpanAP, const PP_AttrProp *pBlockAP, const PP_AttrProp *pSectionAP, GR_Graphics *pG) |
Private Attributes | |
UT_uint32 | m_iPID |
UT_UTF8String | m_sValue |
UT_sint32 | m_iRealWidth |
fp_AnnotationRun::fp_AnnotationRun | ( | fl_BlockLayout * | pBL, | |
UT_uint32 | iOffsetFirst, | |||
UT_uint32 | iLen | |||
) |
fp_AnnotationRun::~fp_AnnotationRun | ( | ) | [virtual] |
References DELETEPV, and fp_HyperlinkRun::m_pTarget.
bool fp_AnnotationRun::_canContainPoint | ( | void | ) | const [protected, virtual] |
Reimplemented from fp_HyperlinkRun.
void fp_AnnotationRun::_clearScreen | ( | bool | bFullLineHeightRect | ) | [protected, virtual] |
Reimplemented from fp_HyperlinkRun.
References GR_Graphics::DGP_SCREEN, fp_Run::Fill(), fp_Run::getGraphics(), fp_Line::getHeight(), fp_Run::getLine(), fp_Line::getScreenOffsets(), fp_Run::getWidth(), and UT_ASSERT.
void fp_AnnotationRun::_draw | ( | dg_DrawArgs * | pDA | ) | [protected, virtual] |
Reimplemented from fp_HyperlinkRun.
References fp_Run::_getColorFG(), fp_Run::_getFont(), fp_Run::_getView(), fp_Run::displayAnnotations(), GR_Painter::drawChars(), fp_Run::drawDecors(), fp_Run::Fill(), GR_Painter::fillRect(), fp_Run::getAscent(), fp_Run::getBlock(), fp_Run::getBlockOffset(), fp_Run::getDescent(), fp_Run::getGraphics(), fp_Run::getLine(), FV_View::getPoint(), fl_BlockLayout::getPosition(), fp_Line::getScreenOffsets(), FV_View::getSelectionAnchor(), fp_Run::getWidth(), fl_BlockLayout::isContainedByTOC(), fp_Run::isInSelectedTOC(), fp_HyperlinkRun::m_bIsStart, m_sValue, dg_DrawArgs::pG, GR_Graphics::setColor(), GR_Graphics::setFont(), UT_UCS4String::size(), UT_UCS4String::ucs4_str(), UT_UTF8String::ucs4_str(), UT_ASSERT, UT_MAX, UT_MIN, dg_DrawArgs::xoff, and dg_DrawArgs::yoff.
bool fp_AnnotationRun::_letPointPass | ( | void | ) | const [protected, virtual] |
Reimplemented from fp_HyperlinkRun.
void fp_AnnotationRun::_lookupProperties | ( | const PP_AttrProp * | pSpanAP, | |
const PP_AttrProp * | pBlockAP, | |||
const PP_AttrProp * | pSectionAP, | |||
GR_Graphics * | pG | |||
) | [protected, virtual] |
bool fp_AnnotationRun::_recalcWidth | ( | void | ) | [protected, virtual] |
Reimplemented from fp_Run.
References _setWidth(), calcWidth(), fp_Run::clearScreen(), fp_Run::displayAnnotations(), fp_Run::getBlock(), fp_Run::getLine(), fp_Run::getWidth(), fp_HyperlinkRun::m_bIsStart, m_iRealWidth, fp_Run::markAsDirty(), fl_BlockLayout::setNeedsRedraw(), and fp_Line::setNeedsRedraw().
Referenced by recalcValue().
bool fp_AnnotationRun::_setValue | ( | void | ) | [protected] |
References UT_String::c_str(), FL_DocLayout::getAnnotationVal(), fp_Run::getBlock(), fl_BlockLayout::getDocLayout(), getPID(), m_sValue, and UT_String_sprintf().
Referenced by calcWidth().
void fp_AnnotationRun::_setWidth | ( | UT_sint32 | iWidth | ) | [protected, virtual] |
Reimplemented from fp_Run.
References UT_DEBUGMSG.
Referenced by _recalcWidth(), and fp_AnnotationRun().
UT_sint32 fp_AnnotationRun::calcWidth | ( | void | ) |
bool fp_AnnotationRun::canBreakAfter | ( | void | ) | const [virtual] |
Reimplemented from fp_HyperlinkRun.
bool fp_AnnotationRun::canBreakBefore | ( | void | ) | const [virtual] |
Reimplemented from fp_HyperlinkRun.
void fp_AnnotationRun::cleanDraw | ( | dg_DrawArgs * | ) |
virtual FP_HYPERLINK_TYPE fp_AnnotationRun::getHyperlinkType | ( | void | ) | const [inline, virtual] |
Reimplemented from fp_HyperlinkRun.
UT_uint32 fp_AnnotationRun::getPID | ( | void | ) | [inline] |
UT_sint32 fp_AnnotationRun::getRealWidth | ( | void | ) | const [inline] |
Referenced by fl_BlockLayout::getTextIndent().
const char * fp_AnnotationRun::getValue | ( | void | ) |
References m_sValue, and UT_UTF8String::utf8_str().
void fp_AnnotationRun::recalcValue | ( | void | ) |
References _recalcWidth(), calcWidth(), fp_Run::displayAnnotations(), and m_iRealWidth.
Referenced by FL_DocLayout::addAnnotation(), fl_BlockLayout::getTextIndent(), and FL_DocLayout::removeAnnotation().
UT_uint32 fp_AnnotationRun::m_iPID [private] |
Referenced by fp_AnnotationRun().
UT_sint32 fp_AnnotationRun::m_iRealWidth [private] |
Referenced by _recalcWidth(), and recalcValue().
UT_UTF8String fp_AnnotationRun::m_sValue [private] |
Referenced by _draw(), _setValue(), calcWidth(), and getValue().