#include <fp_Run.h>
Public Member Functions | |
fp_HyperlinkRun (fl_BlockLayout *pBL, UT_uint32 iOffsetFirst, UT_uint32 iLen) | |
virtual | ~fp_HyperlinkRun () |
virtual FP_HYPERLINK_TYPE | getHyperlinkType (void) const |
bool | isStartOfHyperlink () const |
const gchar * | getTarget () const |
const gchar * | getTitle () const |
virtual bool | canBreakAfter (void) const |
virtual bool | canBreakBefore (void) const |
virtual void | mapXYToPosition (UT_sint32 x, UT_sint32 y, 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 | hasLayoutProperties (void) 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=NULL) |
virtual void | _clearScreen (bool) |
virtual void | _draw (dg_DrawArgs *) |
virtual bool | _letPointPass (void) const |
virtual bool | _canContainPoint (void) const |
virtual bool | _deleteFollowingIfAtInsPoint () const |
void | _setTarget (const gchar *pTarget) |
void | _setTitle (const gchar *pTitle) |
void | _setTargetFromAPAttribute (const gchar *pAttrName) |
void | _setTitleFromAPAttribute (const gchar *pAttrName) |
Protected Attributes | |
bool | m_bIsStart |
gchar * | m_pTarget |
gchar * | m_pTitle |
fp_HyperlinkRun::fp_HyperlinkRun | ( | fl_BlockLayout * | pBL, | |
UT_uint32 | iOffsetFirst, | |||
UT_uint32 | iLen | |||
) |
bool fp_HyperlinkRun::_canContainPoint | ( | void | ) | const [protected, virtual] |
Reimplemented from fp_Run.
Reimplemented in fp_AnnotationRun, and fp_RDFAnchorRun.
void fp_HyperlinkRun::_clearScreen | ( | bool | ) | [protected, virtual] |
Implements fp_Run.
Reimplemented in fp_AnnotationRun, and fp_RDFAnchorRun.
bool fp_HyperlinkRun::_deleteFollowingIfAtInsPoint | ( | ) | const [protected, virtual] |
Reimplemented from fp_Run.
void fp_HyperlinkRun::_draw | ( | dg_DrawArgs * | ) | [protected, virtual] |
Implements fp_Run.
Reimplemented in fp_AnnotationRun, and fp_RDFAnchorRun.
bool fp_HyperlinkRun::_letPointPass | ( | void | ) | const [protected, virtual] |
Reimplemented from fp_Run.
Reimplemented in fp_AnnotationRun, and fp_RDFAnchorRun.
void fp_HyperlinkRun::_lookupProperties | ( | const PP_AttrProp * | pSpanAP, | |
const PP_AttrProp * | pBlockAP, | |||
const PP_AttrProp * | pSectionAP, | |||
GR_Graphics * | pG = NULL | |||
) | [protected, virtual] |
Implements fp_Run.
Reimplemented in fp_AnnotationRun, and fp_RDFAnchorRun.
void fp_HyperlinkRun::_setTarget | ( | const gchar * | pTarget | ) | [protected] |
References DELETEPV, gchar, and m_pTarget.
Referenced by _setTargetFromAPAttribute(), and fp_RDFAnchorRun::fp_RDFAnchorRun().
void fp_HyperlinkRun::_setTargetFromAPAttribute | ( | const gchar * | pAttrName | ) | [protected] |
References fp_Run::_setHyperlink(), _setTarget(), gchar, PP_AttrProp::getNthAttribute(), fp_Run::getSpanAP(), m_bIsStart, and m_pTarget.
Referenced by fp_AnnotationRun::fp_AnnotationRun(), fp_HyperlinkRun(), and fp_RDFAnchorRun::fp_RDFAnchorRun().
void fp_HyperlinkRun::_setTitle | ( | const gchar * | pTitle | ) | [protected] |
References DELETEPV, gchar, and m_pTitle.
Referenced by _setTitleFromAPAttribute().
void fp_HyperlinkRun::_setTitleFromAPAttribute | ( | const gchar * | pAttrName | ) | [protected] |
References _setTitle(), gchar, PP_AttrProp::getAttribute(), fp_Run::getSpanAP(), and m_pTitle.
Referenced by fp_HyperlinkRun().
bool fp_HyperlinkRun::canBreakAfter | ( | void | ) | const [virtual] |
Implements fp_Run.
Reimplemented in fp_AnnotationRun, and fp_RDFAnchorRun.
bool fp_HyperlinkRun::canBreakBefore | ( | void | ) | const [virtual] |
Implements fp_Run.
Reimplemented in fp_AnnotationRun, and fp_RDFAnchorRun.
virtual bool fp_HyperlinkRun::doesContainNonBlankData | ( | void | ) | const [inline, virtual] |
Reimplemented from fp_Run.
void fp_HyperlinkRun::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::findPointCoords(), fp_Run::getNextRun(), and UT_ASSERT.
virtual FP_HYPERLINK_TYPE fp_HyperlinkRun::getHyperlinkType | ( | void | ) | const [inline, virtual] |
Reimplemented in fp_AnnotationRun, and fp_RDFAnchorRun.
Referenced by FV_View::_deleteHyperlink(), FV_View::_deleteXMLID(), FV_View::cmdHyperlinkJump(), FV_View::cmdHyperlinkStatusBar(), fp_Line::containsAnnotations(), Defun(), fp_Run::draw(), fl_BlockLayout::format(), fp_Line::getAnnotationContainers(), fl_AnnotationLayout::getAnnotationRun(), FV_View::getColorAnnotation(), FV_View::getColorRDFAnchor(), fp_Run::getFGColor(), IE_Imp_RTF::insertStrux(), and fl_BlockLayout::recalculateFields().
const gchar* fp_HyperlinkRun::getTarget | ( | ) | const [inline] |
References gchar.
Referenced by FV_View::cmdHyperlinkCopyLocation(), FV_View::cmdHyperlinkJump(), FV_View::cmdHyperlinkStatusBar(), and s_doHyperlinkDlg().
const gchar* fp_HyperlinkRun::getTitle | ( | void | ) | const [inline] |
References gchar.
Referenced by s_doHyperlinkDlg().
virtual bool fp_HyperlinkRun::hasLayoutProperties | ( | void | ) | const [inline, virtual] |
Reimplemented from fp_Run.
bool fp_HyperlinkRun::isStartOfHyperlink | ( | ) | const [inline] |
void fp_HyperlinkRun::mapXYToPosition | ( | UT_sint32 | x, | |
UT_sint32 | y, | |||
PT_DocPosition & | pos, | |||
bool & | bBOL, | |||
bool & | bEOL, | |||
bool & | isTOC | |||
) | [virtual] |
Implements fp_Run.
References fp_Run::getNextRun(), fp_Run::mapXYToPosition(), and UT_ASSERT.
bool fp_HyperlinkRun::m_bIsStart [protected] |
gchar* fp_HyperlinkRun::m_pTarget [protected] |
gchar* fp_HyperlinkRun::m_pTitle [protected] |
Referenced by _setTitle(), _setTitleFromAPAttribute(), and ~fp_HyperlinkRun().