#include <fp_Run.h>
Public Member Functions | |
fp_TabRun (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 bool | hasLayoutProperties (void) const |
void | setTabWidth (UT_sint32) |
void | setLeader (eTabLeader iTabType) |
eTabLeader | getLeader (void) |
void | setTabType (eTabType iTabType) |
eTabType | getTabType (void) const |
bool | isTOCTab (void) |
void | setTOCTab (void) |
void | setTOCTabListLabel (void) |
bool | isTOCTabListLabel (void) const |
Protected Member Functions | |
virtual void | _drawArrow (UT_uint32 iLeft, UT_uint32 iTop, UT_uint32 iWidth, UT_uint32 iHeight) |
virtual void | _draw (dg_DrawArgs *) |
virtual void | _clearScreen (bool bFullLineHeightRect) |
virtual void | _lookupProperties (const PP_AttrProp *pSpanAP, const PP_AttrProp *pBlockAP, const PP_AttrProp *pSectionAP, GR_Graphics *pG=NULL) |
virtual bool | _letPointPass (void) const |
Private Attributes | |
eTabLeader | m_leader |
eTabType | m_TabType |
bool | m_bIsTOC |
bool | m_bIsTOCListLabel |
fp_TabRun::fp_TabRun | ( | fl_BlockLayout * | pBL, | |
UT_uint32 | iOffsetFirst, | |||
UT_uint32 | iLen | |||
) |
References fp_Run::lookupProperties().
void fp_TabRun::_clearScreen | ( | bool | bFullLineHeightRect | ) | [protected, virtual] |
Implements fp_Run.
References GR_Graphics::DGP_SCREEN, fp_Run::Fill(), fp_Run::getGraphics(), fp_Run::getHeight(), fp_Run::getLine(), fp_Line::getScreenOffsets(), fp_Run::getWidth(), and UT_ASSERT.
void fp_TabRun::_draw | ( | dg_DrawArgs * | pDA | ) | [protected, virtual] |
Implements fp_Run.
References _drawArrow(), fp_Run::_getFont(), fp_Run::_getView(), GR_Graphics::DGP_PAPER, GR_Graphics::DGP_SCREEN, GR_Painter::drawChars(), fp_Run::drawDecors(), fp_Run::Fill(), GR_Painter::fillRect(), FL_LEADER_DOT, FL_LEADER_HYPHEN, FL_LEADER_NONE, FL_LEADER_UNDERLINE, FL_TAB_BAR, fp_Run::getAscent(), fp_Line::getAscent(), fp_Run::getBlock(), fp_Run::getBlockAP(), fl_BlockLayout::getDocLayout(), fl_Layout::getDocument(), GR_Graphics::getFontAscent(), fp_Run::getGraphics(), fp_Line::getHeight(), fp_Run::getLine(), fp_Run::getOffsetFirstVis(), FV_View::getPoint(), fl_BlockLayout::getPosition(), fp_Line::getScreenOffsets(), FV_View::getSelectionAnchor(), FV_View::getShowPara(), fp_Run::getSpanAP(), getTabType(), fp_Run::getToplineThickness(), fp_Run::getWidth(), fp_Run::isInSelectedTOC(), FL_DocLayout::isQuickPrint(), m_leader, GR_Graphics::measureString(), dg_DrawArgs::pG, PP_evalProperty(), GR_Graphics::queryProperties(), GR_Graphics::setColor(), GR_Graphics::setFont(), UT_ASSERT, UT_MAX, UT_MIN, UT_parseColor(), dg_DrawArgs::xoff, xxx_UT_DEBUGMSG, and dg_DrawArgs::yoff.
void fp_TabRun::_drawArrow | ( | UT_uint32 | iLeft, | |
UT_uint32 | iTop, | |||
UT_uint32 | iWidth, | |||
UT_uint32 | iHeight | |||
) | [protected, virtual] |
References fp_Run::_getView(), GR_Graphics::DGP_SCREEN, GR_Painter::fillRect(), fp_Line::getAscent(), fp_Run::getAscent(), fp_Run::getGraphics(), fp_Run::getLine(), fp_Run::getVisDirection(), NPOINTS, GR_Painter::polygon(), GR_Graphics::tlu(), UT_BIDI_LTR, UT_MAX, UT_MIN, UT_Point::x, xxx_UT_DEBUGMSG, and UT_Point::y.
Referenced by _draw().
bool fp_TabRun::_letPointPass | ( | void | ) | const [protected, virtual] |
Reimplemented from fp_Run.
void fp_TabRun::_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::_getColorFG(), fp_Run::_getDecorations(), fp_Run::_getFont(), fp_Run::_orDecorations(), fp_Run::_setAscent(), fp_Run::_setColorFG(), fp_Run::_setDecorations(), fp_Run::_setDescent(), fp_Run::_setDirection(), fp_Run::_setField(), fp_Run::_setFont(), fp_Run::_setHeight(), fp_Run::_setLineWidth(), fp_Run::clearScreen(), fd, FL_DocLayout::findFont(), gchar, fp_Run::getBlock(), fp_Run::getBlockOffset(), fp_Run::getDirection(), fl_BlockLayout::getDocLayout(), fl_Layout::getField(), GR_Graphics::getFontAscent(), GR_Graphics::getFontDescent(), GR_Graphics::getFontHeight(), fp_Run::getGraphics(), fp_Run::getToplineThickness(), PP_evalProperty(), fp_Run::TEXT_DECOR_BOTTOMLINE, fp_Run::TEXT_DECOR_LINETHROUGH, fp_Run::TEXT_DECOR_OVERLINE, fp_Run::TEXT_DECOR_TOPLINE, fp_Run::TEXT_DECOR_UNDERLINE, UT_ASSERT, UT_BIDI_WS, and UT_parseColor().
bool fp_TabRun::canBreakAfter | ( | void | ) | const [virtual] |
Implements fp_Run.
bool fp_TabRun::canBreakBefore | ( | void | ) | const [virtual] |
Implements fp_Run.
eTabLeader fp_TabRun::getLeader | ( | void | ) |
References m_leader.
bool fp_TabRun::hasLayoutProperties | ( | void | ) | const [virtual] |
Reimplemented from fp_Run.
bool fp_TabRun::isTOCTab | ( | void | ) |
References m_bIsTOC.
Referenced by fp_Line::_calculateWidthOfRun().
bool fp_TabRun::isTOCTabListLabel | ( | void | ) | const [inline] |
Referenced by fp_Line::_calculateWidthOfRun().
void fp_TabRun::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().
void fp_TabRun::setLeader | ( | eTabLeader | iTabType | ) |
References fp_Run::clearScreen(), and m_leader.
Referenced by fp_Line::_calculateWidthOfRun().
void fp_TabRun::setTabType | ( | eTabType | iTabType | ) |
References m_TabType.
Referenced by fp_Line::_calculateWidthOfRun().
void fp_TabRun::setTabWidth | ( | UT_sint32 | iWidth | ) |
References fp_Run::_setWidth(), and fp_Run::clearScreen().
Referenced by fp_Line::_calculateWidthOfRun().
void fp_TabRun::setTOCTab | ( | void | ) | [inline] |
void fp_TabRun::setTOCTabListLabel | ( | void | ) |
References fp_Run::_setLength(), m_bIsTOCListLabel, m_leader, and m_TabType.
bool fp_TabRun::m_bIsTOC [private] |
Referenced by isTOCTab().
bool fp_TabRun::m_bIsTOCListLabel [private] |
Referenced by setTOCTabListLabel().
eTabLeader fp_TabRun::m_leader [private] |
Referenced by _draw(), getLeader(), setLeader(), and setTOCTabListLabel().
eTabType fp_TabRun::m_TabType [private] |
Referenced by getTabType(), setTabType(), and setTOCTabListLabel().