#include <fp_Line.h>

| fp_Line::fp_Line | ( | fl_SectionLayout * | pSectionLayout | ) |
| fp_Line::~fp_Line | ( | ) |
| fl_BlockLayout* fp_Line::getBlock | ( | void | ) | const [inline] |
Referenced by _calculateWidthOfRun(), _doClearScreenFromRunToEnd(), fp_Container::addCon(), clearScreen(), clearScreenFromRunToEnd(), draw(), getAnnotationContainers(), fp_FrameContainer::getBlocksAroundFrame(), getFootnoteContainers(), FV_VisualDragText::getImageFromSelection(), getLastRun(), getLastTextRun(), getMarginAfter(), getMarginBefore(), FV_View::gotoTarget(), fb_Alignment_justify::initialize(), fb_Alignment_right::initialize(), fb_Alignment_left::initialize(), fp_Container::insertConAt(), fp_Column::layout(), fp_VerticalContainer::mapXYToPosition(), recalcHeight(), recalcMaxWidth(), removeRun(), setReformat(), and fp_Page::updatePageForWrapping().
| virtual UT_sint32 fp_Line::getHeight | ( | void | ) | const [inline, virtual] |
Return height of line as it will appear on screen.
Implements fp_ContainerObject.
References fp_Run::m_iHeight.
Referenced by fb_LineBreaker::_breakTheLineAtLastRunToKeep(), fp_FieldRun::_clearScreen(), fp_ImageRun::_clearScreen(), fp_MathRun::_clearScreen(), fp_EmbedRun::_clearScreen(), fp_AnnotationRun::_clearScreen(), _doClearScreenFromRunToEnd(), fp_TabRun::_draw(), fp_MathRun::_draw(), fp_EmbedRun::_draw(), fp_TextRun::_fillRect(), FV_View::_moveInsPtNextPrevLine(), clearScreen(), FV_View::convertPositionedToInLine(), fl_BlockLayout::formatWrappedFromHere(), fp_FrameContainer::getBlocksAroundFrame(), fl_BlockLayout::getHeightOfBlock(), FV_VisualDragText::getImageFromSelection(), getScreenRect(), fl_BlockLayout::getXYOffsetToLine(), fp_Column::layout(), recalcHeight(), fl_BlockLayout::setFramesOnPage(), setMaxWidth(), and fp_TOCContainer::wantVBreakAt().
| virtual UT_sint32 fp_Line::getX | ( | void | ) | const [inline, virtual] |
Implements fp_ContainerObject.
References fp_Run::m_iX.
Referenced by fb_LineBreaker::_breakTheLineAtLastRunToKeep(), Defun(), findNextTabStop(), findPrevTabStop(), fl_BlockLayout::formatWrappedFromHere(), genOverlapRects(), FV_FrameEdit::getFrameStrings(), FV_VisualDragText::getImageFromSelection(), fl_BlockLayout::getNextWrappedLine(), fp_Column::layout(), mapXYToPosition(), fp_VerticalContainer::mapXYToPosition(), and fl_BlockLayout::setFramesOnPage().
| virtual UT_sint32 fp_Line::getY | ( | void | ) | const [inline, virtual] |
Implements fp_ContainerObject.
References fp_Run::m_iY.
Referenced by fp_ImageRun::_draw(), fp_ImageRun::_lookupProperties(), FV_View::_moveInsPtNextPrevScreen(), clearScreen(), Defun(), fl_BlockLayout::formatWrappedFromHere(), fp_FrameContainer::getBlocksAroundFrame(), fp_Column::layout(), mapXYToPosition(), fp_VerticalContainer::mapXYToPosition(), remove(), fl_BlockLayout::setFramesOnPage(), fp_Page::updatePageForWrapping(), and fp_TOCContainer::wantVBreakAt().
| UT_sint32 fp_Line::getMaxWidth | ( | void | ) | const [inline] |
Referenced by fb_LineBreaker::_breakTheLineAtLastRunToKeep(), fp_TextRun::_clearScreen(), fp_ForcedPageBreakRun::_clearScreen(), fp_ForcedColumnBreakRun::_clearScreen(), _doClearScreenFromRunToEnd(), fp_ForcedPageBreakRun::_draw(), fp_ForcedColumnBreakRun::_draw(), fb_LineBreaker::breakParagraph(), fp_VerticalContainer::bumpContainers(), calculateWidthOfRun(), clearScreen(), findNextTabStop(), findPrevTabStop(), fl_BlockLayout::formatWrappedFromHere(), genOverlapRects(), FV_VisualDragText::getImageFromSelection(), fl_BlockLayout::getNextWrappedLine(), getScreenRect(), fb_Alignment_justify::initialize(), fb_Alignment_right::initialize(), fb_Alignment_center::initialize(), layout(), fp_Column::layout(), fp_VerticalContainer::mapXYToPosition(), setContainer(), and setSameYAsPrevious().
| UT_sint32 fp_Line::getAscent | ( | void | ) | const [inline] |
References fp_Run::m_iAscent.
Referenced by fp_ImageRun::_draw(), fp_TabRun::_draw(), fp_MathRun::_draw(), fp_EmbedRun::_draw(), fp_TabRun::_drawArrow(), FV_View::_drawOrClearBetweenPositions(), fp_TextRun::_fillRect(), FV_View::_getMouseContext(), draw(), fp_AnnotationContainer::draw(), fp_Run::drawDecors(), FV_VisualInlineImage::getImageFromSelection(), FV_View::getInsertionPointContext(), and recalcHeight().
| UT_sint32 fp_Line::getDescent | ( | void | ) | const [inline] |
| UT_sint32 fp_Line::getNumRunsInLine | ( | void | ) | const [inline] |
Referenced by fb_LineBreaker::_breakTheLineAtLastRunToKeep().
| UT_sint32 fp_Line::getColumnGap | ( | void | ) |
Return the gap between columns.
References getColumn().
| void fp_Line::setAssignedScreenHeight | ( | UT_sint32 | iHeight | ) | [virtual] |
Set height assigned to line on screen
| iHeight | Height in screen units |
This function allows the line representation to reflect the actual screen layout size, which improves the precision of XY/position conversion functions.
Implements fp_Container.
References m_iScreenHeight.
Referenced by fp_Column::layout().
| bool fp_Line::assertLineListIntegrity | ( | void | ) |
| void fp_Line::setMaxWidth | ( | UT_sint32 | iMaxWidth | ) |
References fp_ContainerObject::getGraphics(), getHeight(), isSameYAsPrevious(), m_iClearLeftOffset, m_iClearToPos, m_iMaxWidth, GR_Graphics::tlu(), UT_ASSERT, UT_DEBUGMSG, and xxx_UT_DEBUGMSG.
Referenced by fl_BlockLayout::formatWrappedFromHere(), fl_BlockLayout::getNextWrappedLine(), recalcMaxWidth(), and setContainer().
| void fp_Line::setX | ( | UT_sint32 | i, | |
| bool | bDontClearIfNeeded = false | |||
| ) | [virtual] |
Implements fp_ContainerObject.
References clearScreen(), m_iX, UT_DEBUGMSG, and xxx_UT_DEBUGMSG.
Referenced by fl_BlockLayout::formatWrappedFromHere(), fl_BlockLayout::getNextWrappedLine(), and recalcMaxWidth().
| void fp_Line::setY | ( | UT_sint32 | iY | ) | [virtual] |
Implements fp_ContainerObject.
References clearScreen(), and m_iY.
Referenced by fp_Column::layout(), and remove().
| void fp_Line::setContainer | ( | fp_Container * | pContainer | ) | [virtual] |
Reimplemented from fp_Container.
References clearScreen(), fp_Container::getContainer(), fp_Container::getFillType(), getMaxWidth(), getPage(), fp_ContainerObject::getWidth(), fp_Container::setContainer(), setMaxWidth(), fg_FillType::setParent(), and xxx_UT_DEBUGMSG.
Referenced by fl_BlockLayout::_removeLine(), fl_BlockLayout::getNextWrappedLine(), and remove().
| void fp_Line::setBlock | ( | fl_BlockLayout * | pBlock | ) |
| fp_Container * fp_Line::getColumn | ( | void | ) |
Returns the column containing this line. This takes account of broken tables.
References FP_CONTAINER_CELL, FP_CONTAINER_FRAME, fp_CellContainer::getColumn(), fp_Container::getColumn(), fp_Container::getContainer(), fp_ContainerObject::getContainerType(), fp_Page::getNthColumnLeader(), and getPage().
Referenced by FV_View::_getDocPosFromPoint(), FV_View::_moveInsPtNextPrevLine(), fp_FieldTableSumCols::calculateValue(), fp_FieldTableSumRows::calculateValue(), FV_View::cmdInsertPositionedGraphic(), Defun(), getColumnGap(), FV_FrameEdit::getFrameStrings(), getPage(), FV_View::notifyListeners(), fl_BlockLayout::setFramesOnPage(), and fp_Page::updatePageForWrapping().
| fp_Page * fp_Line::getPage | ( | void | ) |
Returns the page containing this line. Takes account of broken tables.
References getColumn(), and fp_Container::getPage().
Referenced by _doClearScreenFromRunToEnd(), FV_View::_drawOrClearBetweenPositions(), FV_View::_findPositionCoords(), FV_View::_getCurrentPage(), FV_View::_moveInsPtNextPrevLine(), FV_View::_moveInsPtNextPrevScreen(), fp_FieldTOCNumRun::calculateValue(), clearScreen(), Defun(), fp_Run::Fill(), FL_DocLayout::fillLayouts(), FV_View::getColorAnnotation(), getColumn(), FV_View::getCurrentPage(), FV_VisualDragText::getImageFromSelection(), FV_View::getLeftRulerInfo(), fl_TableLayout::insertTableContainer(), recalcMaxWidth(), setContainer(), fl_BlockLayout::setFramesOnPage(), and fp_CellContainer::wantVBreakAt().
| virtual void fp_Line::setWidth | ( | UT_sint32 | ) | [inline, virtual] |
Implements fp_ContainerObject.
| virtual void fp_Line::setHeight | ( | UT_sint32 | i | ) | [inline, virtual] |
Implements fp_ContainerObject.
References fp_Run::m_iHeight.
Referenced by fl_BlockLayout::getNextWrappedLine(), and recalcHeight().
| virtual UT_sint32 fp_Line::getWidth | ( | void | ) | const [inline, virtual] |
Implements fp_ContainerObject.
References fp_Run::m_iWidth.
Referenced by clearScreen(), draw(), fl_BlockLayout::format(), fp_Column::layout(), and recalcMaxWidth().
| UT_sint32 fp_Line::getDrawingWidth | ( | void | ) | const [virtual] |
Reimplemented from fp_ContainerObject.
References FPRUN_ENDOFPARAGRAPH, getLastRun(), fp_Run::getType(), isLastLineInBlock(), m_iWidth, and UT_return_val_if_fail.
| UT_sint32 fp_Line::getFilledWidth | ( | void | ) |
References UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), fp_Run::getWidth(), and m_vecRuns.
Referenced by fb_LineBreaker::breakParagraph().
| virtual bool fp_Line::isVBreakable | ( | void | ) | [inline, virtual] |
Implements fp_ContainerObject.
| virtual bool fp_Line::isHBreakable | ( | void | ) | [inline, virtual] |
Implements fp_ContainerObject.
Implements fp_ContainerObject.
Implements fp_ContainerObject.
| virtual fp_ContainerObject* fp_Line::VBreakAt | ( | UT_sint32 | ) | [inline, virtual] |
Implements fp_ContainerObject.
| virtual fp_ContainerObject* fp_Line::HBreakAt | ( | UT_sint32 | ) | [inline, virtual] |
Implements fp_ContainerObject.
Implements fp_Container.
| fp_Container * fp_Line::getNextContainerInSection | ( | void | ) | const [virtual] |
| fp_Container * fp_Line::getPrevContainerInSection | ( | void | ) | const [virtual] |
Implements fp_ContainerObject.
References FL_CONTAINER_ENDNOTE, FL_CONTAINER_FRAME, FP_CONTAINER_TABLE, FP_HIDDEN_FOLDED, fp_ContainerObject::getContainerType(), fl_ContainerLayout::getContainerType(), fl_ContainerLayout::getLastContainer(), fp_Container::getNext(), fl_ContainerLayout::getPrev(), fp_Container::getPrev(), fl_ContainerLayout::isHidden(), and m_pBlock.
Referenced by _doClearScreenFromRunToEnd(), and fl_BlockLayout::formatWrappedFromHere().
Return a pointer to the run given by runIndex in the line
| runIndex | the nth run in the line |
References UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), and m_vecRuns.
Referenced by containsAnnotations(), containsFootnoteReference(), getAnnotationContainers(), and getFootnoteContainers().
| bool fp_Line::containsForcedColumnBreak | ( | void | ) | const |
References FPRUN_FORCEDCOLUMNBREAK, getLastRun(), fp_Run::getPrevRun(), fp_Run::getType(), and isEmpty().
Referenced by fb_ColumnBreaker::breakSection().
| bool fp_Line::containsForcedPageBreak | ( | void | ) | const |
References FPRUN_FORCEDPAGEBREAK, getLastRun(), fp_Run::getPrevRun(), fp_Run::getType(), and isEmpty().
Referenced by fb_ColumnBreaker::breakSection(), and fl_TableLayout::insertTableContainer().
| bool fp_Line::containsFootnoteReference | ( | void | ) |
References countRuns(), FPRUN_FIELD, fp_FieldRun::getFieldType(), getRunFromIndex(), and fp_Run::getType().
Referenced by fb_ColumnBreaker::breakSection(), fp_TableContainer::containsAnnotations(), fp_TableContainer::containsFootnoteReference(), fp_CellContainer::containsFootnoteReference(), fp_TableContainer::getFootnoteContainers(), fp_CellContainer::getFootnoteContainers(), and fp_CellContainer::wantVBreakAt().
| bool fp_Line::getFootnoteContainers | ( | UT_GenericVector< fp_FootnoteContainer * > * | pvecFoots | ) |
References UT_GenericVector< T >::addItem(), countRuns(), FL_DocLayout::findFootnoteLayout(), FPRUN_FIELD, getBlock(), fp_Run::getBlockOffset(), fl_BlockLayout::getDocLayout(), fl_EmbedLayout::getDocPosition(), fp_FieldRun::getFieldType(), fl_ContainerLayout::getFirstContainer(), getFirstRun(), getLastRun(), fp_Run::getLength(), fp_FieldFootnoteRefRun::getPID(), fl_BlockLayout::getPosition(), getRunFromIndex(), fp_Run::getType(), UT_ASSERT, and xxx_UT_DEBUGMSG.
Referenced by fb_ColumnBreaker::breakSection(), fl_BlockLayout::findLineWithFootnotePID(), fp_TableContainer::getFootnoteContainers(), fp_CellContainer::getFootnoteContainers(), and fp_CellContainer::wantVBreakAt().
| bool fp_Line::containsAnnotations | ( | void | ) |
References countRuns(), FPRUN_HYPERLINK, fp_HyperlinkRun::getHyperlinkType(), fp_AnnotationRun::getPID(), getRunFromIndex(), fp_Run::getType(), and HYPERLINK_ANNOTATION.
Referenced by fb_ColumnBreaker::breakSection(), fp_CellContainer::containsAnnotations(), fp_TableContainer::getAnnotationContainers(), fp_CellContainer::getAnnotationContainers(), and fp_CellContainer::wantVBreakAt().
| bool fp_Line::getAnnotationContainers | ( | UT_GenericVector< fp_AnnotationContainer * > * | pvecAnnotations | ) |
References UT_GenericVector< T >::addItem(), countRuns(), FL_DocLayout::findAnnotationLayout(), FPRUN_HYPERLINK, getBlock(), fp_Run::getBlockOffset(), fl_BlockLayout::getDocLayout(), fl_EmbedLayout::getDocPosition(), fl_ContainerLayout::getFirstContainer(), getFirstRun(), fp_HyperlinkRun::getHyperlinkType(), getLastRun(), fp_Run::getLength(), fp_AnnotationRun::getPID(), fl_BlockLayout::getPosition(), getRunFromIndex(), fp_Run::getType(), HYPERLINK_ANNOTATION, UT_ASSERT, and xxx_UT_DEBUGMSG.
Referenced by fb_ColumnBreaker::breakSection(), fp_TableContainer::getAnnotationContainers(), fp_CellContainer::getAnnotationContainers(), and fp_CellContainer::wantVBreakAt().
| void fp_Line::addRun | ( | fp_Run * | pNewRun | ) |
References addDirectionUsed(), UT_GenericVector< T >::addItem(), UT_GenericVector< T >::findItem(), FPRUN_FIELD, fp_Run::getDirection(), fp_FieldRun::getFieldType(), fp_Run::getType(), m_bContainsFootnoteRef, m_vecRuns, fp_Run::setLine(), and UT_ASSERT.
Referenced by fl_BlockLayout::_breakLineAfterRun(), fb_LineBreaker::_breakTheLineAtLastRunToKeep(), fl_BlockLayout::_insertEndOfParagraphRun(), fl_BlockLayout::_stuffAllRunsOnALine(), fb_LineBreaker::breakParagraph(), fl_BlockLayout::doclistener_insertBlock(), and fl_BlockLayout::formatWrappedFromHere().
References addDirectionUsed(), UT_GenericVector< T >::findItem(), FPRUN_FIELD, fp_Run::getDirection(), fp_FieldRun::getFieldType(), fp_Run::getType(), UT_GenericVector< T >::insertItemAt(), m_bContainsFootnoteRef, m_vecRuns, fp_Run::setLine(), and UT_ASSERT.
Referenced by fl_BlockLayout::_doInsertRun(), fl_BlockLayout::_doInsertTOCHeadingRun(), fl_BlockLayout::_doInsertTOCListLabelRun(), and fl_BlockLayout::_doInsertTOCListTabRun().
| void fp_Line::insertRun | ( | fp_Run * | pNewRun | ) |
| bool fp_Line::removeRun | ( | fp_Run * | pRun, | |
| bool | bTellTheRunAboutIt = true | |||
| ) |
References UT_GenericVector< T >::deleteNthItem(), UT_GenericVector< T >::findItem(), fl_BlockLayout::forceSectionBreak(), FPRUN_FORCEDPAGEBREAK, getBlock(), fp_Run::getDirection(), fp_Run::getType(), m_vecRuns, removeDirectionUsed(), fp_Run::setLine(), and UT_return_val_if_fail.
Referenced by fl_BlockLayout::_breakLineAfterRun(), fb_LineBreaker::_breakTheLineAtLastRunToKeep(), fl_BlockLayout::_delete(), fl_BlockLayout::_deleteFmtMark(), fl_BlockLayout::_truncateLayout(), fb_LineBreaker::breakParagraph(), fl_BlockLayout::doclistener_deleteStrux(), and fp_TextRun::mergeWithNext().
| bool fp_Line::isEmpty | ( | void | ) | const [inline] |