#include <fl_BlockLayout.h>

| fl_BlockLayout::fl_BlockLayout | ( | PL_StruxDocHandle | sdh, | |
| fl_ContainerLayout * | pPrev, | |||
| fl_SectionLayout * | pSectionLayout, | |||
| PT_AttrPropIndex | indexAP, | |||
| bool | bIsHdrFtr = false | |||
| ) |
References _insertEndOfParagraphRun(), fl_ContainerLayout::_insertIntoList(), FL_DocLayout::addOrRemoveBlockFromTOC(), FL_CONTAINER_TOC, fl_GrammarSquiggles, FL_SECTION_HDRFTR, fl_SpellSquiggles, fl_ContainerLayout::getAP(), PP_AttrProp::getAttribute(), PD_Style::getBasedOn(), fl_ContainerLayout::getContainerType(), fl_TOCLayout::getCurrentLevel(), fl_SectionLayout::getDocLayout(), getDocSectionLayout(), FL_DocLayout::getDocument(), fl_ContainerLayout::getFirstLayout(), getSectionLayout(), fl_Layout::getStruxDocHandle(), PD_Document::getStyle(), fl_SectionLayout::getType(), isHdrFtr(), isNotTOCable(), fl_ContainerLayout::lookupProperties(), m_bIsHdrFtr, m_bIsTOC, m_bStyleInTOC, m_iTOCLevel, fl_Layout::m_pDoc, m_pLayout, m_pSectionLayout, m_szStyle, fl_ContainerLayout::myContainingLayout(), PT_STYLE_ATTRIBUTE_NAME, fl_Layout::setAttrPropIndex(), fl_ContainerLayout::setNext(), fl_ContainerLayout::setPrev(), setUpdatableField(), updateEnclosingBlockIfNeeded(), PD_Style::used(), UT_ASSERT, UT_ASSERT_HARMLESS, UT_DEBUGMSG, and xxx_UT_DEBUGMSG.
Referenced by main().
| fl_BlockLayout::~fl_BlockLayout | ( | ) |
References DELETEP, dequeueFromSpellCheck(), fl_Layout::getStruxDocHandle(), isNotTOCable(), m_bIsTOC, m_pAlignment, fl_Layout::m_pDoc, m_pLayout, m_vecTabs, FL_DocLayout::notifyBlockIsBeingDeleted(), purgeLayout(), FL_DocLayout::removeBlockFromTOC(), UT_ASSERT_HARMLESS, UT_VECTOR_PURGEALL, and xxx_UT_DEBUGMSG.
| fl_BlockLayout::fl_BlockLayout | ( | FL_DocLayout * | l | ) | [inline] |
| fl_BlockLayout::fl_BlockLayout | ( | FL_DocLayout * | l | ) | [inline] |
| void fl_BlockLayout::formatAll | ( | void | ) |
References format(), and m_iNeedsReformat.
| void fl_BlockLayout::format | ( | void | ) | [virtual] |
Format paragraph: split the content into lines which will fit in the container.
Implements fl_ContainerLayout.
References _assertRunListIntegrity(), _insertEndOfParagraphRun(), _removeAllEmptyLines(), _stuffAllRunsOnALine(), UT_GenericVector< T >::addItem(), FL_DocLayout::addOrRemoveBlockFromTOC(), fb_LineBreaker::breakParagraph(), fp_Line::calculateWidthOfLine(), fp_Run::clearIfNeeded(), fl_SectionLayout::clearNeedsReformat(), fp_Line::clearScreen(), coalesceRuns(), collapse(), FB_ALIGNMENT_JUSTIFY, FB_ALIGNMENT_LEFT, FL_CONTAINER_BLOCK, FL_CONTAINER_CELL, FL_CONTAINER_DOCSECTION, FL_CONTAINER_FRAME, FL_CONTAINER_SHADOW, fl_ContainerLayout::format(), FP_CONTAINER_LINE, FP_HIDDEN_FOLDED, FPRUN_ENDOFPARAGRAPH, FPRUN_FIELD, FPRUN_HYPERLINK, fp_Run::getBlockOffset(), fp_ContainerObject::getContainerType(), fl_ContainerLayout::getContainerType(), getDocSectionLayout(), fl_ContainerLayout::getFirstContainer(), getHeightOfBlock(), fp_HyperlinkRun::getHyperlinkType(), UT_GenericVector< T >::getItemCount(), fl_ContainerLayout::getLastContainer(), fp_Run::getLength(), fp_Run::getLine(), fp_Container::getNext(), fp_Run::getNextRun(), UT_GenericVector< T >::getNthItem(), fp_Container::getPage(), fl_ContainerLayout::getPrev(), fl_ContainerLayout::getPrevBlockInDocument(), getSectionLayout(), fp_Run::getType(), fb_Alignment::getType(), fp_Run::getWidth(), fp_Line::getWidth(), fp_Run::getX(), fp_Run::getY(), HYPERLINK_ANNOTATION, fl_CellLayout::isDoingFormat(), fl_ContainerLayout::isHidden(), FL_DocLayout::isLayoutFilling(), isListLabelInBlock(), isNotTOCable(), fp_Line::layout(), fp_Run::lookupProperties(), m_bIsCollapsed, m_bIsTOC, m_bListLabelCreated, m_Breaker, m_bStyleInTOC, m_iNeedsReformat, m_pAlignment, fl_Layout::m_pAutoNum, m_pFirstRun, m_pLayout, m_pSectionLayout, fl_ContainerLayout::myContainingLayout(), fp_FieldRun::needsFrequentUpdates(), recalculateFields(), fp_Run::recalcWidth(), fp_Line::resetJustification(), fl_SectionLayout::setNeedsReformat(), fl_DocSectionLayout::setNeedsSectionBreak(), fp_Run::setTmpLine(), fp_Run::setTmpWidth(), fp_Run::setTmpX(), fp_Run::setTmpY(), setUpdatableField(), UT_ASSERT, UT_DEBUGMSG, and xxx_UT_DEBUGMSG.
Referenced by doclistener_changeFmtMark(), doclistener_changeObject(), doclistener_changeSpan(), doclistener_changeStrux(), doclistener_deleteFmtMark(), doclistener_deleteObject(), doclistener_deleteSpan(), fl_FrameLayout::doclistener_deleteStrux(), doclistener_deleteStrux(), doclistener_insertFmtMark(), doclistener_insertFrame(), doclistener_insertObject(), doclistener_insertSpan(), formatAll(), listUpdate(), redrawUpdate(), remItemFromList(), and fp_Page::updatePageForWrapping().
Reformat a block from the line given.
References _removeAllEmptyLines(), _removeLine(), fp_Line::addRun(), BIG_NUM_BLOCKBL, fb_LineBreaker::breakParagraph(), FB_ALIGNMENT_JUSTIFY, fp_Container::findCon(), FP_CONTAINER_LINE, FP_CONTAINER_TABLE, fp_Container::getContainer(), fp_ContainerObject::getContainerType(), getDominantDirection(), fl_ContainerLayout::getFirstContainer(), fp_Line::getFirstRun(), fp_Line::getHeight(), fl_ContainerLayout::getLastContainer(), fp_Line::getLastRun(), getLeftMargin(), getLeftRightForWrapping(), fp_Line::getMarginAfter(), fp_Line::getMaxWidth(), getMinWrapWidth(), getNewContainer(), fp_Container::getNext(), fp_Run::getNextRun(), getNextWrappedLine(), fl_ContainerLayout::getPrev(), fp_Container::getPrev(), fp_Line::getPrevContainerInSection(), getRightMargin(), fp_VerticalContainer::getScreenRect(), fp_Line::getScreenRect(), getTextIndent(), fb_Alignment::getType(), fp_VerticalContainer::getWidth(), fp_Line::getX(), fp_Line::getY(), UT_Rect::height, FL_DocLayout::isLayoutFilling(), fp_Line::isSameYAsPrevious(), UT_Rect::left, m_Breaker, m_bSameYAsPrevious, m_iAccumulatedHeight, m_iAdditionalMarginAfter, m_iLinePosInContainer, m_iNeedsReformat, m_pAlignment, m_pLayout, m_pVertContainer, fp_Line::recalcHeight(), fp_Line::resetJustification(), fp_Line::setBlock(), fl_ContainerLayout::setFirstContainer(), fl_ContainerLayout::setLastContainer(), fp_Line::setMaxWidth(), fp_Container::setPrev(), fp_Line::setSameYAsPrevious(), fp_Line::setX(), UT_Rect::top, UT_ASSERT, UT_BIDI_LTR, UT_DEBUGMSG, UT_Rect::width, and xxx_UT_DEBUGMSG.
Referenced by fp_Page::updatePageForWrapping().
Create a new line that will fit between positioned objects on the page. iX is the position of the last X coordinate of the previous Line relative to it's container. The X location of wrapped line will be greater than this. iHeight is the assumed height of the line (at first approximation this is the height of the previous line). pPage Pointer to the page with the positioned objects.
References BIG_NUM_BLOCKBL, fp_Container::findCon(), findLineInBlock(), fp_Container::getContainer(), getDominantDirection(), fl_ContainerLayout::getFirstContainer(), fl_ContainerLayout::getLastContainer(), getLeftMargin(), getLeftRightForWrapping(), fp_Line::getMaxWidth(), getMinWrapWidth(), getNewContainer(), fl_ContainerLayout::getPrev(), getRightMargin(), fp_Page::getScreenOffsets(), fp_VerticalContainer::getScreenRect(), getSectionLayout(), getTextIndent(), fp_VerticalContainer::getWidth(), fp_Line::getX(), UT_Rect::height, fp_Container::insertConAt(), fp_VerticalContainer::insertContainerAfter(), fp_Line::isSameYAsPrevious(), fp_Line::isWrapped(), m_bSameYAsPrevious, m_iAccumulatedHeight, m_iAdditionalMarginAfter, m_iLinePosInContainer, m_pVertContainer, fp_Line::setAdditionalMargin(), fp_Line::setBlock(), fp_Line::setContainer(), fl_ContainerLayout::setFirstContainer(), fp_Line::setHeight(), fl_ContainerLayout::setLastContainer(), fp_Line::setMaxWidth(), fp_Container::setNext(), fp_Container::setPrev(), fp_Line::setSameYAsPrevious(), fp_Line::setWrapped(), fp_Line::setX(), UT_Rect::top, UT_ASSERT, UT_BIDI_LTR, and xxx_UT_DEBUGMSG.
Referenced by fb_LineBreaker::_breakTheLineAtLastRunToKeep(), and formatWrappedFromHere().
| void fl_BlockLayout::getLeftRightForWrapping | ( | UT_sint32 | iX, | |
| UT_sint32 | iHeight, | |||
| UT_sint32 & | iMinLeft, | |||
| UT_sint32 & | iMinRight, | |||
| UT_sint32 & | iMinWidth | |||
| ) |
Given the x-position (iX) and the height of the line (iHeight) this Method returns the width of the line that fits at the current screen position.
The dimensions of all the parameters are logical units.
(input) (iX)The position relative the container holding the line of the left edge of the line. (input) (iHeight) The assumed height of the line.
(output) The width of the line that fits between the image is iMinWidth (output) iMinLeft is the left-most edge of the line that fits (output) iMinRight is the right-most edge of the line that fits
References BIG_NUM_BLOCKBL, fp_Page::countAboveFrameContainers(), fl_FrameLayout::getBoundingSpace(), getDominantDirection(), fl_ContainerLayout::getFirstContainer(), FL_DocLayout::getGraphics(), fp_ContainerObject::getHeight(), fl_ContainerLayout::getLastContainer(), getLeftMargin(), fp_FrameContainer::getLeftPad(), getMinWrapWidth(), fp_Page::getNthAboveFrameContainer(), fp_Container::getPage(), getRightMargin(), fp_FrameContainer::getRightPad(), fp_Page::getScreenOffsets(), fp_VerticalContainer::getScreenRect(), fp_ContainerObject::getSectionLayout(), getTextIndent(), fp_VerticalContainer::getWidth(), UT_Rect::height, UT_Rect::intersectsRect(), fp_FrameContainer::isLeftWrapped(), fp_FrameContainer::isRightWrapped(), fp_FrameContainer::isTightWrapped(), fp_FrameContainer::isWrappingSet(), UT_Rect::left, m_iAccumulatedHeight, m_iAdditionalMarginAfter, m_pLayout, m_pVertContainer, fp_FrameContainer::overlapsRect(), GR_Graphics::tlu(), UT_Rect::top, UT_ASSERT, UT_BIDI_LTR, UT_Rect::width, and xxx_UT_DEBUGMSG.
Referenced by formatWrappedFromHere(), and getNextWrappedLine().
| bool fl_BlockLayout::recalculateFields | ( | UT_uint32 | iUpdateCount | ) | [virtual] |
Implements fl_ContainerLayout.
References _assertRunListIntegrity(), fp_FieldRun::calculateValue(), FPRUN_FIELD, FPRUN_HYPERLINK, fp_Run::getHyperlink(), fp_HyperlinkRun::getHyperlinkType(), fp_Run::getNextRun(), fp_Run::getType(), fp_Run::getWidth(), HYPERLINK_ANNOTATION, m_pFirstRun, fp_FieldRun::needsFrequentUpdates(), fp_Run::recalcWidth(), and xxx_UT_DEBUGMSG.
Referenced by _doInsertFieldRun(), and format().
| void fl_BlockLayout::redrawUpdate | ( | void | ) | [virtual] |
Implements fl_ContainerLayout.
References fp_Line::draw(), FB_ALIGNMENT_JUSTIFY, format(), fl_ContainerLayout::getFirstContainer(), fp_Run::getGraphics(), fp_Container::getNext(), fb_Alignment::getType(), isHdrFtr(), m_bNeedsRedraw, m_pAlignment, m_pFirstRun, markAllRunsDirty(), fp_Line::needsRedraw(), needsReformat(), fp_Line::redrawUpdate(), and xxx_UT_DEBUGMSG.
| virtual void fl_BlockLayout::updateLayout | ( | bool | ) | [inline, virtual] |
Implements fl_ContainerLayout.
| fp_Container * fl_BlockLayout::getNewContainer | ( | fp_Container * | pCon = NULL |
) | [virtual] |
Implements fl_ContainerLayout.
References findLineInBlock(), FL_CONTAINER_ANNOTATION, FL_CONTAINER_ENDNOTE, FL_CONTAINER_FOOTNOTE, FL_CONTAINER_FRAME, FP_CONTAINER_ANNOTATION, FP_CONTAINER_ENDNOTE, FP_CONTAINER_FOOTNOTE, FP_CONTAINER_FRAME, FP_CONTAINER_LINE, FP_CONTAINER_TABLE, FP_CONTAINER_TOC, fp_Container::getContainer(), fl_ContainerLayout::getContainerType(), fp_ContainerObject::getContainerType(), fl_ContainerLayout::getFirstContainer(), fl_ContainerLayout::getLastContainer(), fl_SectionLayout::getNewContainer(), fl_ContainerLayout::getNewContainer(), fl_ContainerLayout::getNext(), fl_ContainerLayout::getPrev(), fp_ContainerObject::getSectionLayout(), getSectionLayout(), fp_VerticalContainer::getWidth(), fp_VerticalContainer::insertContainer(), fp_VerticalContainer::insertContainerAfter(), m_pSectionLayout, fl_ContainerLayout::myContainingLayout(), fp_Line::recalcMaxWidth(), fp_Line::setBlock(), fl_ContainerLayout::setFirstContainer(), fl_ContainerLayout::setLastContainer(), fp_Container::setNext(), fp_Container::setPrev(), UT_ASSERT, UT_ASSERT_HARMLESS, UT_DEBUGMSG, and UT_return_val_if_fail.
Referenced by fb_LineBreaker::_breakTheLineAtLastRunToKeep(), _insertEndOfParagraphRun(), _stuffAllRunsOnALine(), formatWrappedFromHere(), and getNextWrappedLine().
| FV_View* fl_BlockLayout::getView | ( | void | ) | const [inline] |
References UT_return_val_if_fail.
Referenced by _createListLabel(), _insertEndOfParagraphRun(), _lookupMarginProperties(), _lookupProperties(), TOCEntry::calculateLabel(), fl_DocListener::change(), debugFlashing(), doclistener_changeFmtMark(), doclistener_deleteFmtMark(), doclistener_deleteObject(), doclistener_deleteSpan(), doclistener_insertBlock(), doclistener_insertFirstBlock(), doclistener_insertFmtMark(), doclistener_insertFrame(), doclistener_insertObject(), doclistener_insertSection(), doclistener_insertSpan(), doclistener_insertTable(), fp_Run::getGraphics(), itemizeSpan(), prependList(), fl_DocListener::processDeferredNotifications(), remItemFromList(), resumeList(), setFramesOnPage(), StartList(), StopListInBlock(), and GOComponentView::update().
| const char * fl_BlockLayout::getProperty | ( | const gchar * | pszName, | |
| bool | bExpandStyles = true | |||
| ) | const |
References fl_ContainerLayout::getAP(), fl_Layout::m_pDoc, m_pSectionLayout, and PP_evalProperty().
Referenced by FV_View::_charInsert(), _lookupMarginProperties(), _lookupProperties(), Defun1(), getListPropertyVector(), getPreviousListOfSameMargin(), FV_View::getTopRulerInfo(), FV_View::processSelectedBlocks(), FV_View::setBlockIndents(), StartList(), and StopListInBlock().
| const PP_PropertyType * fl_BlockLayout::getPropertyType | ( | const gchar * | szName, | |
| tProperty_type | Type, | |||
| bool | bExpandStyles = true | |||
| ) | const |
References fl_ContainerLayout::getAP(), fl_Layout::m_pDoc, and PP_evalPropertyType().
Referenced by _lookupMarginProperties(), and _lookupProperties().
| void fl_BlockLayout::setAlignment | ( | UT_uint32 | iAlignCmd | ) |
| UT_sint32 fl_BlockLayout::getLength | ( | void | ) | const |
This method returns the length of the Block, including the initial strux. so if "i" is the position of the block strux, i+getLength() will be the position of the strux (whatever it might be), following this block. The length includes any embedded struxes (like footnotes and endnotes).
References PD_Document::getBounds(), PD_Document::getFragFromPosition(), PD_Document::getNextStrux(), getPosition(), fl_Layout::getStruxDocHandle(), PD_Document::getStruxPosition(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), fl_Layout::m_pDoc, pf_Frag::PFT_Strux, and PTX_EndTOC.
Referenced by fl_TOCLayout::_addBlockInVec(), FV_View::_adjustDeletePosition(), FV_View::_deleteSelection(), _doInsertTextSpan(), FV_View::cmdInsertHyperlink(), FV_View::cmdTextToTable(), Defun(), Defun_EV_GetToolbarItemState_Fn(), FV_View::getFrameLayout(), FV_View::getNumRowsInSelection(), FV_View::getTextBetweenPos(), HyperLinkOK(), FV_View::insertAnnotation(), IE_Imp_RTF::insertStrux(), isLastRunInBlock(), FV_View::isPointLegal(), and FV_View::toggleCase().
| bool fl_BlockLayout::isEmbeddedType | ( | void | ) | const |
This method returns true if the block is contained with a section embedded in a block, like a footnote or a table or frame with text wrapping.
References FL_CONTAINER_ANNOTATION, FL_CONTAINER_ENDNOTE, FL_CONTAINER_FOOTNOTE, fl_ContainerLayout::getContainerType(), and fl_ContainerLayout::myContainingLayout().
Referenced by getEnclosingBlock(), FV_VisualDragText::getImageFromSelection(), and updateEnclosingBlockIfNeeded().
| bool fl_BlockLayout::isNotTOCable | ( | void | ) | const |
This method returns true if the block is contained with a section embedded that should not be included in TOC like, footnote,endnotes,HdrFtr's and other TOC's.
References FL_CONTAINER_ANNOTATION, FL_CONTAINER_CELL, FL_CONTAINER_ENDNOTE, FL_CONTAINER_FOOTNOTE, FL_CONTAINER_HDRFTR, FL_CONTAINER_SHADOW, FL_CONTAINER_TOC, fl_ContainerLayout::getContainerType(), and fl_ContainerLayout::myContainingLayout().
Referenced by _lookupProperties(), doclistener_deleteObject(), doclistener_deleteSpan(), doclistener_insertObject(), doclistener_insertSpan(), fl_BlockLayout(), format(), and ~fl_BlockLayout().
| bool fl_BlockLayout::isLastRunInBlock | ( | fp_Run * | pRun | ) | const |
Returns true if this run is at the last position of the block.
References fp_Run::getBlockOffset(), and getLength().
Referenced by _doInsertForcedColumnBreakRun(), and _doInsertForcedPageBreakRun().
| void fl_BlockLayout::updateOffsets | ( | PT_DocPosition | posEmbedded, | |
| UT_uint32 | iEmbeddedSize, | |||
| UT_sint32 | iSuggestDiff | |||
| ) |
This method scans through the list of runs from the first position listed and updates the offsets. This is used following an operation on an embedded type section (Like a footnote). Also updates the char widths and the POB's in the squiggles.
| posEmbedded | the position of the embedded Section. | |
| iEmbeddedSize | the size of the embedded Section. |
References FPRUN_FMTMARK, FPRUN_TEXT, fp_Run::getBlockOffset(), getFirstRun(), fp_Run::getLength(), fp_Run::getNextRun(), getPosition(), fp_Run::getPrevRun(), fp_Run::getType(), fp_Run::setBlockOffset(), setNeedsReformat(), updateEnclosingBlockIfNeeded(), UT_ASSERT, UT_DEBUGMSG, UT_return_if_fail, UT_SHOULD_NOT_HAPPEN, UT_UNUSED, and xxx_UT_DEBUGMSG.
Referenced by fl_EmbedLayout::doclistener_deleteStrux(), and updateEnclosingBlockIfNeeded().
| void fl_BlockLayout::updateEnclosingBlockIfNeeded | ( | void | ) |
This method updates the enclosing Block which contains the embedded Section which in turn contains this Block. If this is not a block in an embedded section type, we just return and do nothing.
References FL_CONTAINER_ANNOTATION, FL_CONTAINER_BLOCK, FL_CONTAINER_ENDNOTE, FL_CONTAINER_FOOTNOTE, fl_ContainerLayout::getContainerType(), fl_Layout::getDocument(), FL_DocLayout::getLID(), PD_Document::getNextStruxOfType(), fl_EmbedLayout::getOldSize(), fl_Layout::getStruxDocHandle(), PD_Document::getStruxOfTypeFromPosition(), PD_Document::getStruxPosition(), isEmbeddedType(), fl_EmbedLayout::isEndFootnoteIn(), m_pLayout, fl_ContainerLayout::myContainingLayout(), PTX_Block, PTX_EndAnnotation, PTX_EndEndnote, PTX_EndFootnote, fl_EmbedLayout::setOldSize(), updateOffsets(), UT_ASSERT, UT_return_if_fail, and xxx_UT_DEBUGMSG.
Referenced by fl_EmbedLayout::bl_doclistener_insertEndEmbed(), doclistener_changeFmtMark(), doclistener_changeSpan(), doclistener_changeStrux(), doclistener_deleteFmtMark(), doclistener_deleteObject(), doclistener_deleteSpan(), doclistener_deleteStrux(), doclistener_insertBlock(), doclistener_insertFirstBlock(), doclistener_insertFrame(), doclistener_insertObject(), doclistener_insertSection(), doclistener_insertSpan(), doclistener_insertTable(), doclistener_populateObject(), doclistener_populateSpan(), fl_BlockLayout(), fl_DocListener::populateStrux(), and updateOffsets().
| fl_BlockLayout * fl_BlockLayout::getEnclosingBlock | ( | void | ) | const |
Get the enclosing block of this if this block is in a footnote-type strux Return NULL is not an embedded type
References FL_CONTAINER_ANNOTATION, FL_CONTAINER_BLOCK, FL_CONTAINER_ENDNOTE, FL_CONTAINER_FOOTNOTE, fl_ContainerLayout::getContainerType(), fl_Layout::getDocument(), FL_DocLayout::getLID(), PD_Document::getNextStruxOfType(), fl_Layout::getStruxDocHandle(), PD_Document::getStruxOfTypeFromPosition(), PD_Document::getStruxPosition(), isEmbeddedType(), fl_EmbedLayout::isEndFootnoteIn(), m_pLayout, fl_ContainerLayout::myContainingLayout(), PTX_Block, PTX_EndAnnotation, PTX_EndEndnote, PTX_EndFootnote, UT_ASSERT, UT_return_val_if_fail, and xxx_UT_DEBUGMSG.
Referenced by FV_View::getCellAtPos(), and FV_View::isInTable().
| UT_sint32 fl_BlockLayout::getEmbeddedOffset | ( | UT_sint32 | offset, | |
| fl_ContainerLayout *& | pEmbedCL | |||
| ) | const |
This method returns the offset of the next embedded strux within the the block. (Like a footnote or endnote) It returns -1 if none is found. Also returns the id of the embedded strux.
References FL_CONTAINER_TOC, fl_ContainerLayout::getContainerType(), getDocSectionLayout(), fl_ContainerLayout::getDocSectionLayout(), PD_Document::getEmbeddedOffset(), FL_DocLayout::getLID(), PD_Document::getNthFmtHandle(), fl_Layout::getStruxDocHandle(), fl_Layout::m_pDoc, m_pLayout, UT_ASSERT_HARMLESS, and UT_SHOULD_NOT_HAPPEN.
Referenced by FV_View::countWords(), and shuffleEmbeddedIfNeeded().
| void fl_BlockLayout::shuffleEmbeddedIfNeeded | ( | fl_BlockLayout * | pBlock, | |
| UT_uint32 | blockOffset | |||
| ) |
This method shuffles any emebedded containers in the block to be placed after the supplied block.
If they are before the insert point they must be moved to be immediately after this block (and hence before the new block)
References FL_CONTAINER_ANNOTATION, FL_CONTAINER_ENDNOTE, FL_CONTAINER_FOOTNOTE, FL_CONTAINER_TOC, fl_ContainerLayout::getContainerType(), getDocSectionLayout(), fl_Layout::getDocument(), getEmbeddedOffset(), fl_ContainerLayout::getNext(), PD_Document::getNextStruxOfType(), fl_ContainerLayout::getPrev(), fl_Layout::getStruxDocHandle(), PD_Document::getStruxPosition(), PTX_EndAnnotation, PTX_EndEndnote, PTX_EndFootnote, PTX_EndTOC, fl_DocSectionLayout::setNeedsSectionBreak(), fl_ContainerLayout::setNext(), fl_ContainerLayout::setPrev(), and UT_return_if_fail.
Referenced by doclistener_deleteStrux(), and doclistener_insertBlock().
| bool fl_BlockLayout::getXYOffsetToLine | ( | UT_sint32 & | xoff, | |
| UT_sint32 & | yoff, | |||
| fp_Line * | pLine | |||
| ) | const |
This returns the distance from the first line in the block to the line presented here.
References fl_ContainerLayout::getFirstContainer(), fp_Line::getHeight(), fp_Line::getMarginAfter(), fp_Line::getMarginBefore(), and fp_Container::getNext().
Referenced by Defun(), and FV_FrameEdit::getFrameStrings().
| bool fl_BlockLayout::setFramesOnPage | ( | fp_Line * | pLastLine | ) |
This method is called at the end of the layout method in fp_VerticalContainer. It places the frames pointed to within the block at the appropriate place on the appropriate page. Since we don't know where this is until the lines in the block are placed in a column we have to wait until both the column and lines are placed on the page.
pLastLine is the last line placed inthe column. If the frame should be placed after this line we don't place any frames that should be below this line now. In this case we wait until pLastLine is below the frame.
If pLastLine is NULL we place all the frames in this block on the screen.
References fp_Page::findFrameContainer(), FL_DocLayout::findPage(), FL_CONTAINER_FRAME, FL_FRAME_POSITIONED_TO_BLOCK, FL_FRAME_POSITIONED_TO_COLUMN, FL_FRAME_POSITIONED_TO_PAGE, FP_VISIBLE, fl_DocSectionLayout::getBottomMargin(), fp_Line::getColumn(), fp_Container::getContainer(), fl_ContainerLayout::getContainerType(), getDocLayout(), getDocSectionLayout(), fl_ContainerLayout::getFirstContainer(), fl_FrameLayout::getFramePositionTo(), fl_FrameLayout::getFrameXColpos(), fl_FrameLayout::getFrameXPagepos(), fl_FrameLayout::getFrameXpos(), fl_FrameLayout::getFrameYColpos(), fl_FrameLayout::getFrameYPagepos(), fl_FrameLayout::getFrameYpos(), FL_DocLayout::getGraphics(), fp_Page::getHeight(), fp_Line::getHeight(), fl_ContainerLayout::getLastContainer(), fp_Line::getMarginAfter(), fp_Line::getMarginBefore(), fp_Container::getNext(), fp_Page::getNthColumnLeader(), fl_ContainerLayout::getNthFrameContainer(), fl_ContainerLayout::getNthFrameLayout(), FL_DocLayout::getNthPage(), fl_ContainerLayout::getNumFrames(), fp_VerticalContainer::getOffsets(), fp_Line::getPage(), fp_FrameContainer::getPreferedPageNo(), fp_Container::getPrev(), fl_DocSectionLayout::getTopMargin(), getView(), fp_ContainerObject::getX(), fp_Line::getX(), fp_ContainerObject::getY(), fp_Line::getY(), fp_Page::insertFrameContainer(), fl_ContainerLayout::isHidden(), FL_DocLayout::isLayoutFilling(), fl_FrameLayout::isRelocate(), m_pLayout, FL_DocLayout::relocateFrame(), fl_ContainerLayout::removeFrame(), fp_FrameContainer::setPreferedPageNo(), fp_VerticalContainer::setX(), fp_VerticalContainer::setY(), UT_ASSERT_HARMLESS, UT_DEBUGMSG, UT_return_val_if_fail, and UT_SHOULD_NOT_HAPPEN.
Referenced by fl_FrameLayout::format(), and fp_Column::layout().
| UT_sint32 fl_BlockLayout::getMinWrapWidth | ( | void | ) | const |
Minimum width of a line we'll try to fit a wrapped line within
Referenced by formatWrappedFromHere(), getLeftRightForWrapping(), and getNextWrappedLine().
| UT_sint32 fl_BlockLayout::getHeightOfBlock | ( | void | ) |
Calculate the height of the all the text contained by this block Lines can force a sectionbreak by setting the m_bForceSectionBreak. If a line height changes or an ascent/descent changes we must do a section break.
References fl_ContainerLayout::getFirstContainer(), fp_Line::getHeight(), fp_Line::getMarginAfter(), fp_Line::getMarginBefore(), fp_Container::getNext(), fp_Line::isSameYAsPrevious(), and m_bForceSectionBreak.
Referenced by format().
| UT_sint32 fl_BlockLayout::getMaxNonBreakableRun | ( | void | ) | const |
References FL_CONTAINER_BLOCK, fl_ContainerLayout::getContainerType(), fl_ContainerLayout::getFirstContainer(), fl_ContainerLayout::getFirstLayout(), fl_ContainerLayout::getLastLayout(), fl_ContainerLayout::getNext(), fp_Container::getNext(), m_pSectionLayout, UT_ASSERT_HARMLESS, UT_return_val_if_fail, and UT_SHOULD_NOT_HAPPEN.
| void fl_BlockLayout::appendTextToBuf | ( | UT_GrowBuf & | buf | ) | const [virtual] |
This method extracts all the text from the current block and appends it to the supplied growbuf.
Reimplemented from fl_ContainerLayout.
References fp_TextRun::appendTextToBuf(), FPRUN_TEXT, fp_Run::getNextRun(), fp_Run::getType(), and m_pFirstRun.
Referenced by fl_ContainerLayout::appendTextToBuf(), appendUTF8String(), and FV_View::getTextInCurrentBlock().
| void fl_BlockLayout::appendUTF8String | ( | UT_UTF8String & | sText | ) | const |
This method will append the text in the block to the UTF8 string supplied
References appendTextToBuf(), UT_UTF8String::appendUCS4(), UT_GrowBuf::getLength(), and UT_GrowBuf::getPointer().
Referenced by AbiGrammar::notify().
| virtual fp_Run* fl_BlockLayout::getFirstRun | ( | void | ) | const [inline, virtual] |
Reimplemented from fl_ContainerLayout.
Referenced by FV_View::_clearBetweenPositions(), FV_View::_deleteBookmark(), _deleteListLabel(), FV_View::_drawOrClearBetweenPositions(), FV_View::_findPositionCoords(), FV_View::_getHyperlinkInRange(), _lookupProperties(), FV_View::_populateThisHdrFtr(), fl_TOCLayout::addBlock(), fp_FieldPageReferenceRun::calculateValue(), fp_FieldTableSumCols::calculateValue(), fp_FieldTableSumRows::calculateValue(), clearPrint(), FV_View::cmdAcceptRejectRevision(), FV_View::cmdHyperlinkJump(), FV_View::cmdHyperlinkStatusBar(), FL_DocLayout::considerSmartQuoteCandidateAt(), doclistener_deleteStrux(), doclistener_insertSpan(), fl_AutoNum::doesItemHaveLabel(), FV_View::doesSelectionContainRevision(), FL_DocLayout::fillTOC(), findPointCoords(), findRunAtOffset(), FV_View::fontMetricsChange(), FV_View::getAnnotationText(), FV_View::getCharFormat(), FV_View::getEditableBounds(), Abi_GrammarCheck::GetEnglishText(), fl_ContainerLayout::getFirstRun(), FV_FrameEdit::getFrameStrings(), fp_Line::getLastRun(), fp_Line::getLastTextRun(), getMaxNonBreakableRun(), FV_View::getSelectedImage(), FV_View::getSelectedObject(), FV_View::getStyle(), FV_View::gotoTarget(), FV_View::insertFootnote(), FV_View::isCurrentListBlockEmpty(), fp_VerticalContainer::mapXYToPosition(), fl_Squiggles::markForRedraw(), FV_View::processPageNumber(), FV_View::processSelectedBlocks(), refreshRunProperties(), FV_View::remeasureCharsWithoutRebuild(), s_updateMailMergeFields(), StopListInBlock(), updateOffsets(), and fp_Page::updatePageForWrapping().
| void fl_BlockLayout::setFirstRun | ( | fp_Run * | pRun | ) | [inline] |
| void fl_BlockLayout::clearPrint | ( | void | ) | const |
References fp_Run::clearPrint(), getFirstRun(), and fp_Run::getNextRun().
Referenced by FL_DocLayout::setQuickPrint().
| bool fl_BlockLayout::isListItem | ( | void | ) | const [inline] |
Referenced by AP_Dialog_Lists::_createPreviewFromGC(), FV_View::_deleteSelection(), AP_Dialog_Lists::Apply(), Defun1(), Defun_EV_GetToolbarItemState_Fn(), fl_ContainerLayout::getLevelInList(), getListType(), getNextList(), getPreviousList(), getPreviousListOfSameMargin(), FV_View::isCurrentListBlockEmpty(), FV_View::isPointBeforeListLabel(), FV_View::isTabListBehindPoint(), AP_Dialog_Lists::PopulateDialogData(), FV_View::processSelectedBlocks(), FV_View::setStyleAtPos(), StopListInBlock(), and transferListFlags().
| bool fl_BlockLayout::isFirstInList | ( | void | ) | const |
References fl_AutoNum::getFirstItem(), fl_Layout::getStruxDocHandle(), and fl_Layout::m_pAutoNum.
Referenced by getPreviousList().
| void fl_BlockLayout::getListAttributesVector | ( | UT_GenericVector< const gchar * > * | va | ) | const |
References UT_GenericVector< T >::addItem(), gchar, fl_ContainerLayout::getAP(), PP_AttrProp::getAttribute(), fl_Layout::getAutoNum(), fl_AutoNum::getLevel(), PT_LISTID_ATTRIBUTE_NAME, PT_STYLE_ATTRIBUTE_NAME, and style.
Referenced by AP_Dialog_Lists::fillDialogFromBlock(), prependList(), and resumeList().
| void fl_BlockLayout::getListPropertyVector | ( | UT_GenericVector< const gchar * > * | vp | ) | const |
References UT_GenericVector< T >::addItem(), gchar, getProperty(), m_iDomDirection, and UT_BIDI_RTL.
Referenced by AP_Dialog_Lists::fillDialogFromBlock(), prependList(), remItemFromList(), resumeList(), and StopListInBlock().
| void fl_BlockLayout::refreshRunProperties | ( | void | ) | const |
This method is used to reset the colorization such as what occurs when showAuthors state is changed.
References getFirstRun(), fp_Run::getNextRun(), and fp_Run::lookupProperties().
Referenced by FL_DocLayout::refreshRunProperties().
| char * fl_BlockLayout::getFormatFromListType | ( | FL_ListType | iListType | ) | const |
References fl_AutoLists::getFmtList(), and NOT_A_LIST.
| void fl_BlockLayout::remItemFromList | ( | void | ) |
References PD_Document::changeStruxFmt(), format(), FREEP, gchar, fl_Layout::getAutoNum(), fl_AutoNum::getID(), UT_GenericVector< T >::getItemCount(), getLevel(), getListPropertyVector(), fl_ContainerLayout::getNextBlockInDocument(), UT_GenericVector< T >::getNthItem(), fl_AutoNum::getParent(), getPosition(), getPreviousList(), fl_Layout::getStruxDocHandle(), getView(), id, PD_Document::listUpdate(), m_bListItem, m_bListLabelCreated, fl_Layout::m_pDoc, PTC_AddFmt, PTX_Block, setStopping(), UT_ASSERT, and UT_calloc().
Referenced by FV_View::cmdCharDelete().
| void fl_BlockLayout::listUpdate | ( | void | ) | [virtual] |
Reimplemented from fl_Layout.
References _createListLabel(), FL_SECTION_HDRFTR, format(), getSectionLayout(), fl_Layout::getType(), m_bForceSectionBreak, m_bListLabelCreated, m_bStartList, m_bStopList, fl_Layout::m_pAutoNum, and fl_AutoNum::update().
Referenced by StartList(), AP_Dialog_Lists::StartList(), and AP_Dialog_Lists::StopList().
| void fl_BlockLayout::resumeList | ( | fl_BlockLayout * | prevList | ) |
References PD_Document::changeStruxFmt(), FREEP, gchar, fl_Layout::getAutoNum(), UT_GenericVector< T >::getItemCount(), getListAttributesVector(), getListPropertyVector(), UT_GenericVector< T >::getNthItem(), getPosition(), fl_Layout::getStruxDocHandle(), getView(), PD_Document::listUpdate(), m_bListItem, m_bListLabelCreated, m_bStartList, m_bStopList, fl_Layout::m_pDoc, PTC_AddFmt, PTX_Block, UT_ASSERT, UT_calloc(), and UT_return_if_fail.
Referenced by AP_Dialog_Lists::Apply(), FV_View::processSelectedBlocks(), and FV_View::setStyleAtPos().
| void fl_BlockLayout::prependList | ( | fl_BlockLayout * | nextList | ) |
References PD_Document::changeStruxFmt(), FREEP, gchar, UT_GenericVector< T >::getItemCount(), getListAttributesVector(), getListPropertyVector(), UT_GenericVector< T >::getNthItem(), getPosition(), fl_Layout::getStruxDocHandle(), getView(), PD_Document::listUpdate(), m_bListItem, m_bListLabelCreated, m_bStartList, m_bStopList, fl_Layout::m_pDoc, PTC_AddFmt, PTX_Block, UT_ASSERT, UT_calloc(), and UT_return_if_fail.
Referenced by FV_View::setStyleAtPos().
| FL_ListType fl_BlockLayout::decodeListType | ( | char * | listformat | ) | const |
References fl_AutoLists::getFmtList(), fl_AutoLists::getFmtListsSize(), and NOT_A_LIST.
| FL_ListType fl_BlockLayout::getListType | ( | void | ) | const |
References fl_Layout::getAutoNum(), fl_AutoNum::getType(), isListItem(), and NOT_A_LIST.
Referenced by FV_View::_charInsert(), and Defun_EV_GetToolbarItemState_Fn().
| gchar * fl_BlockLayout::getListStyleString | ( | FL_ListType | iListType | ) | const |
References gchar, fl_AutoLists::getXmlList(), NOT_A_LIST, and style.
Referenced by AP_Dialog_Lists::Apply(), FV_View::changeListStyle(), FV_View::processSelectedBlocks(), StartList(), AP_Dialog_Lists::StartList(), and StopListInBlock().
| FL_ListType fl_BlockLayout::getListTypeFromStyle | ( | const gchar * | style | ) | const |
| fl_BlockLayout * fl_BlockLayout::getNextList | ( | UT_uint32 | id | ) | const |
References fl_Layout::getAutoNum(), fl_AutoNum::getID(), fl_ContainerLayout::getNextBlockInDocument(), and isListItem().
Referenced by _lookupProperties().
| bool fl_BlockLayout::isListLabelInBlock | ( | void | ) | const |
References FPRUN_FIELD, fp_FieldRun::getFieldType(), fp_Run::getNextRun(), fp_Run::getType(), and m_pFirstRun.
Referenced by _createListLabel(), and format().
| void fl_BlockLayout::StartList | ( | const gchar * | style, | |
| PL_StruxDocHandle | prevSDH = NULL | |||
| ) |
Start a list with the paragraph definition container in the style defined by "style"
| const | XML_CHar * style the name of the paragraph style for this block. |
References gchar, fl_AutoNum::getID(), fl_AutoNum::getLevel(), PD_Document::getListsCount(), getListTypeFromStyle(), PD_Document::getNthList(), getProperty(), PD_Style::getProperty(), PD_Document::getStyle(), IS_NUMBERED_LIST_TYPE, fl_AutoNum::isItem(), LIST_DEFAULT_INDENT, LIST_DEFAULT_INDENT_LABEL, m_iDomDirection, fl_Layout::m_pAutoNum, fl_Layout::m_pDoc, UT_ASSERT, UT_BIDI_LTR, UT_BIDI_RTL, UT_convertToInches(), and xxx_UT_DEBUGMSG.
Referenced by FV_View::_charInsert(), AP_Dialog_Lists::Apply(), FV_View::cmdStartList(), FV_View::processSelectedBlocks(), and FV_View::setStyleAtPos().
| void fl_BlockLayout::StartList | ( | FL_ListType | lType, | |
| UT_uint32 | start, | |||
| const gchar * | lDelim, | |||
| const gchar * | lDecimal, | |||
| const gchar * | fFont, | |||
| float | Align, | |||
| float | indent, | |||
| UT_uint32 | iParentID = 0, |
|||
| UT_uint32 | level = 0 | |||
| ) |
References UT_GenericVector< T >::addItem(), PD_Document::addList(), PD_Document::changeStruxFmt(), DIM_IN, fl_AutoNum::fixHierarchy(), FREEP, gchar, fl_ContainerLayout::getAP(), PP_AttrProp::getAttribute(), UT_GenericVector< T >::getItemCount(), PD_Document::getListByID(), getListStyleString(), UT_GenericVector< T >::getNthItem(), getPosition(), fl_Layout::getStruxDocHandle(), PD_Document::getUID(), getView(), UT_UniqueId::List, PD_Document::listUpdate(), listUpdate(), m_bListItem, m_iDomDirection, fl_Layout::m_pAutoNum, fl_Layout::m_pDoc, PT_LISTID_ATTRIBUTE_NAME, PTC_AddFmt, PTX_Block, setStarting(), style, UT_ASSERT, UT_BIDI_RTL, UT_calloc(), UT_convertInchesToDimensionString(), UT_DEBUGMSG, UT_return_if_fail, and xxx_UT_DEBUGMSG.
| void fl_BlockLayout::StopListInBlock | ( | void | ) |
References FV_View::_setPoint(), UT_GenericVector< T >::addItem(), PD_Document::changeSpanFmt(), PD_Document::changeStruxFmt(), DIM_IN, FREEP, gchar, fl_Layout::getAutoNum(), fp_Run::getBlockOffset(), getFirstRun(), fl_AutoNum::getID(), UT_GenericVector< T >::getItemCount(), getLevel(), fl_AutoNum::getLevel(), getListPropertyVector(), getListStyleString(), fl_ContainerLayout::getNextBlockInDocument(), fp_Run::getNextRun(), UT_GenericVector< T >::getNthItem(), fl_AutoNum::getParent(), FV_View::getPoint(), getPosition(), fl_ContainerLayout::getPrevBlockInDocument(), getProperty(), PD_Style::getProperty(), fl_Layout::getStruxDocHandle(), PD_Document::getStyle(), fl_AutoNum::getType(), getView(), PD_Document::hasListStopped(), id, FV_View::isActive(), isListItem(), FV_View::isPreview(), LIST_DEFAULT_INDENT, LIST_DEFAULT_INDENT_LABEL, PD_Document::listUpdate(), m_bListItem, m_iDomDirection, fl_Layout::m_pDoc, PTC_AddFmt, PTC_RemoveFmt, PTX_Block, PD_Document::setHasListStopped(), setStopping(), FV_View::updateCarets(), UT_ASSERT, UT_BIDI_RTL, UT_calloc(), UT_convertInchesToDimensionString(), and UT_convertToInches().
| void fl_BlockLayout::deleteListLabel | ( | void | ) |
| UT_UCSChar * fl_BlockLayout::getListLabel | ( | void | ) | const |
References fl_AutoNum::getLabel(), fl_Layout::getStruxDocHandle(), and fl_Layout::m_pAutoNum.
Referenced by fp_FieldListLabelRun::calculateValue(), and AP_Dialog_Lists::PopulateDialogData().
| void fl_BlockLayout::transferListFlags | ( | void | ) |
| UT_uint32 fl_BlockLayout::getLevel | ( | void | ) | const |
| void fl_BlockLayout::setStarting | ( | bool | bValue | ) |
| void fl_BlockLayout::setStopping | ( | bool | bValue | ) |
| fl_BlockLayout * fl_BlockLayout::getPreviousList | ( | UT_uint32 | id | ) | const |
Find the most recent block with the list ID given.
| UT_uint32 | id the identifier of the list |
References fl_Layout::getAutoNum(), fl_AutoNum::getID(), fl_AutoNum::getParent(), fl_ContainerLayout::getPrevBlockInDocument(), fl_Layout::getStruxDocHandle(), isFirstInList(), fl_AutoNum::isItem(), isListItem(), fl_Layout::m_pAutoNum, and UT_ASSERT.
| fl_BlockLayout * fl_BlockLayout::getPreviousList | ( | void | ) | const |
Find the most recent block with a list item.
References fl_ContainerLayout::getPrevBlockInDocument(), and isListItem().
Referenced by _lookupProperties(), getParentItem(), remItemFromList(), and transferListFlags().
| fl_BlockLayout * fl_BlockLayout::getPreviousListOfSameMargin | ( | void | ) | const |
Returns the most recent Block containing a list item of the closest match of left-margin to this one.
References DIM_IN, fl_ContainerLayout::getPrevBlockInDocument(), getProperty(), isListItem(), m_iDomDirection, UT_BIDI_RTL, and UT_convertToDimension().
Referenced by AP_Dialog_Lists::Apply().
| fl_BlockLayout * fl_BlockLayout::getParentItem | ( | void | ) | const |
References fl_AutoNum::getActiveParent(), fl_AutoNum::getID(), getPreviousList(), fl_Layout::m_pAutoNum, and UT_return_val_if_fail.
Referenced by _lookupProperties().
| PT_DocPosition fl_BlockLayout::getPosition | ( | bool | bActualBlockPos = false |
) | const [virtual] |
Get block's position in document
| bActualBlockPos | When true return block's position. When false return position of first run in block |
Reimplemented from fl_ContainerLayout.
References fl_BLOCK_STRUX_OFFSET, fl_Layout::getStruxDocHandle(), PD_Document::getStruxPosition(), and fl_Layout::m_pDoc.
Referenced by fl_TOCLayout::_addBlockInVec(), FV_View::_adjustDeletePosition(), FV_View::_BlockOffsetToPos(), FV_View::_charMotion(), FV_View::_cmdEditHdrFtr(), _createListLabel(), fp_FieldRun::_defaultDraw(), FV_View::_deleteBookmark(), FV_View::_deleteHyperlink(), _deleteListLabel(), FV_View::_deleteSelection(), fp_TextRun::_draw(), fp_ImageRun::_draw(), fp_EndOfParagraphRun::_draw(), fp_BookmarkRun::_draw(), fp_ForcedLineBreakRun::_draw(), fp_TabRun::_draw(), fp_MathRun::_draw(), fp_EmbedRun::_draw(), fp_DirectionMarkerRun::_draw(), fp_AnnotationRun::_draw(), FV_View::_drawOrClearBetweenPositions(), PD_Document::_exportFindVisDirectionRunAtPos(), PD_Document::_exportInitVisDirection(), FV_View::_findGetNextBlockBuffer(), FV_View::_findGetPrevBlockBuffer(), FV_View::_findNext(), FV_View::_findPositionCoords(), FV_View::_findPrev(), FV_View::_fixInsertionPointCoords(), FV_View::_getDocPosFromPoint(), FV_View::_getHyperlinkInRange(), FV_View::_getMouseContext(), FV_View::_insertSectionBreak(), FV_View::_isSpaceBefore(), FV_View::_populateThisHdrFtr(), fl_TOCLayout::addBlock(), fp_Container::addCon(), fp_TextRun::adjustCaretPosition(), fp_TextRun::adjustDeletePosition(), FL_DocLayout::AnchoredObjectHelper(), fl_Squiggles::clear(), FV_View::cmdAcceptRejectRevision(), FV_View::cmdCharDelete(), FV_View::cmdEditAnnotationWithDialog(), FV_View::cmdFindRevision(), FV_View::cmdHyperlinkJump(), FV_View::cmdHyperlinkStatusBar(), FV_View::cmdInsertBookmark(), FV_View::cmdInsertHyperlink(), FV_View::cmdInsertPositionedGraphic(), FV_View::cmdInsertTOC(), FV_View::cmdSelect(), FV_View::cmdSelectColumn(), FV_View::cmdTextToTable(), FL_DocLayout::considerSmartQuoteCandidateAt(), FV_View::convertInLineToPositioned(), FV_View::convertPositionedToInLine(), FV_View::countWords(), Defun(), doclistener_insertBlock(), doclistener_insertSection(), doclistener_insertSpan(), FV_View::doesSelectionContainRevision(), FL_DocLayout::fillTOC(), findNextTabStop(), findPointCoords(), fp_Line::getAnnotationContainers(), FV_View::getAttributes(), FV_View::getAttrPropForPoint(), FV_View::getBlocksInSelection(), fp_BookmarkRun::getBookmarkedDocPosition(), FV_View::getCharFormat(), fl_EmbedLayout::getContainingBlock(), FV_View::getEditableBounds(), fp_Page::getFirstLastPos(), fp_Line::getFootnoteContainers(), FV_View::getFrameLayout(), FV_FrameEdit::getFrameStrings(), FV_View::getHyperLinkRun(), FV_View::getInsertionPointContext(), getLength(), FV_View::getLineBounds(), getNextTableElement(), FV_View::getNumRowsInSelection(), fl_ContainerLayout::getPosition(), TOCEntry::getPositionInDoc(), FV_View::getSelectedImage(), FV_View::getSelectionText(), FV_View::getStyle(), FV_View::getTextBetweenPos(), FV_View::gotoTarget(), FV_View::insertAnnotation(), fp_Container::insertConAt(), FV_View::insertHeaderFooter(), IE_Imp_RTF::insertStrux(), FV_View::isInTable(), FV_View::isPointLegal(), AP_Dialog_Spell::makeWordVisible(), fp_TextRun::mapXYToPosition(), fp_ForcedPageBreakRun::mapXYToPosition(), fp_ForcedColumnBreakRun::mapXYToPosition(), fp_FieldRun::mapXYToPosition(), fp_ImageRun::mapXYToPosition(), fp_EndOfParagraphRun::mapXYToPosition(), fp_FieldEndRun::mapXYToPosition(), fp_FieldStartRun::mapXYToPosition(), fp_ForcedLineBreakRun::mapXYToPosition(), fp_TabRun::mapXYToPosition(), fp_MathRun::mapXYToPosition(), fp_DummyRun::mapXYToPosition(), fp_FmtMarkRun::mapXYToPosition(), fp_EmbedRun::mapXYToPosition(), fp_DirectionMarkerRun::mapXYToPosition(), FV_VisualInlineImage::mouseCut(), FV_FrameEdit::mouseRelease(), AP_TopRuler::mouseRelease(), AP_LeftRuler::mouseRelease(), prependList(), FV_View::processPageNumber(), FV_View::processSelectedBlocks(), FV_View::queryCharFormat(), remItemFromList(), resumeList(), AP_Dialog_Spell::runModal(), s_doHyperlinkDlg(), FV_View::selectAnnotation(), FV_View::setCellFormat(), FV_View::setCharFormat(), fp_TextRun::setDirOverride(), setDominantDirection(), FV_View::setStyleAtPos(), StartList(), StopListInBlock(), FV_View::toggleCase(), and updateOffsets().
| fp_Run * fl_BlockLayout::findPointCoords | ( | PT_DocPosition | iPos, | |
| bool | bEOL, | |||
| UT_sint32 & | x, | |||
| UT_sint32 & | y, | |||
| UT_sint32 & | x2, | |||
| UT_sint32 & | y2, | |||
| UT_sint32 & | height, | |||
| bool & | bDirection | |||
| ) | const |
Compute insertion point (caret) coordinates and size
| iPos | Document position of cursor | |
| bEOL | Set if EOL position is wanted |
| x | X position (LTR) | |
| y | Y position (LTR) | |
| x2 | X position (RTL) | |
| y2 | Y position (RTL) | |
| height | Height of carret | |
| bDirection | Editing direction (true = LTR, false = RTL) |
References fp_Run::canContainPoint(), fp_Run::findPointCoords(), FPRUN_FMTMARK, fp_Run::getBlockOffset(), fl_ContainerLayout::getFirstContainer(), getFirstRun(), fl_ContainerLayout::getLastContainer(), fp_Run::getLength(), fp_Run::getLine(), fp_Run::getNextRun(), getPosition(), fp_Run::getPrevRun(), fp_Run::getType(), fp_Run::letPointPass(), m_pFirstRun, UT_ASSERT, and UT_SHOULD_NOT_HAPPEN.
Referenced by FV_View::_findPositionCoords(), FV_View::_fixInsertionPointCoords(), s_RTF_ListenerWriteDoc::_getFieldValue(), FV_View::cmdDeleteCol(), FV_View::cmdFindRevision(), FV_View::cmdInsertPositionedGraphic(), FV_View::cmdInsertRow(), FV_View::cmdSelect(), FV_View::cmdUpdateEmbed(), FV_View::convertInLineToPositioned(), Defun(), Defun1(), dlgEditLatexEquation(), FV_View::insertSymbol(), FV_View::isPointBeforeListLabel(), FV_VisualInlineImage::mouseCopy(), FV_VisualInlineImage::mouseCut(), FV_VisualInlineImage::mouseLeftPress(), AP_Dialog_SplitCells::setAllSensitivities(), and AP_Dialog_MergeCells::setAllSensitivities().
References fp_Run::getBlockOffset(), getFirstRun(), fp_Run::getLength(), fp_Run::getNextRun(), and UT_return_val_if_fail.
Referenced by FV_View::_adjustDeletePosition(), FV_View::_charMotion(), PD_Document::_exportFindVisDirectionRunAtPos(), PD_Document::_exportInitVisDirection(), fl_DocListener::change(), FV_View::cmdCharDelete(), FV_View::getAttrPropForPoint(), FV_View::getHyperLinkRun(), isSentenceSeparator(), isWordDelimiter(), fl_DocListener::populate(), and FV_View::toggleCase().
| bool fl_BlockLayout::getBlockBuf | ( | UT_GrowBuf * | pgb | ) | const |
References PD_Document::getBlockBuf(), fl_Layout::getStruxDocHandle(), and fl_Layout::m_pDoc.
Referenced by AP_Dialog_Paragraph::_createPreviewFromGC(), FV_View::_findGetNextBlockBuffer(), FV_View::_findGetPrevBlockBuffer(), FV_View::_getDocPosFromPoint(), FV_View::_isSpaceBefore(), fp_TextRun::appendTextToBuf(), FV_View::cmdTextToTable(), FL_DocLayout::considerSmartQuoteCandidateAt(), FV_View::countWords(), debugFlashing(), FV_View::getAnnotationText(), FV_View::getSelectionText(), FV_View::getTextBetweenPos(), and FV_View::toggleCase().
| void fl_BlockLayout::clearScreen | ( | GR_Graphics * | ) | const |
| void fl_BlockLayout::getStyle | ( | UT_UTF8String & | sStyle | ) | const |
References m_szStyle.
Referenced by fl_TOCLayout::addBlock(), FL_DocLayout::addOrRemoveBlockFromTOC(), and FL_DocLayout::fillTOC().
| UT_sint32 fl_BlockLayout::getTextIndent | ( | void | ) | const |
References FL_CONTAINER_ANNOTATION, fl_AnnotationLayout::getAnnotationRun(), fl_ContainerLayout::getContainerType(), fl_ContainerLayout::getFirstLayout(), fp_AnnotationRun::getRealWidth(), m_iTextIndent, fl_ContainerLayout::myContainingLayout(), and fp_AnnotationRun::recalcValue().
Referenced by _lookupMarginProperties(), _lookupProperties(), findNextTabStop(), findPrevTabStop(), formatWrappedFromHere(), fp_Line::genOverlapRects(), getLeftRightForWrapping(), getNextWrappedLine(), FV_View::getTopRulerInfo(), and fp_Line::recalcMaxWidth().
| UT_sint32 fl_BlockLayout::getLeftMargin | ( | void | ) | const [inline] |
| UT_sint32 fl_BlockLayout::getRightMargin | ( | void | ) | const [inline] |
| UT_sint32 fl_BlockLayout::getTopMargin | ( | void | ) | const [inline] |
Referenced by fp_Line::getMarginBefore().
| UT_sint32 fl_BlockLayout::getBottomMargin | ( | void | ) | const [inline] |
Referenced by fp_Line::getMarginAfter().
| fb_Alignment* fl_BlockLayout::getAlignment | ( | void | ) | const [inline] |
| virtual FL_DocLayout* fl_BlockLayout::getDocLayout | ( | void | ) | const [inline, virtual] |
Reimplemented from fl_ContainerLayout.
Referenced by fp_TextRun::_draw(), fp_ImageRun::_draw(), fp_EndOfParagraphRun::_draw(), fp_ForcedLineBreakRun::_draw(), fp_TabRun::_draw(), fp_MathRun::_draw(), fp_DirectionMarkerRun::_draw(), fp_TextRun::_drawInvisibleSpaces(), fp_Run::_inheritProperties(), fp_TextRun::_lookupProperties(), fp_FieldRun::_lookupProperties(), fp_ImageRun::_lookupProperties(), fp_EndOfParagraphRun::_lookupProperties(), fp_ForcedLineBreakRun::_lookupProperties(), fp_TabRun::_lookupProperties(), fp_MathRun::_lookupProperties(), fp_DummyRun::_lookupProperties(), fp_FmtMarkRun::_lookupProperties(), fp_EmbedRun::_lookupProperties(), fp_DirectionMarkerRun::_lookupProperties(), fp_AnnotationRun::_lookupProperties(), fp_AnnotationRun::_setValue(), fp_FieldTOCNumRun::calculateValue(), fp_FieldTableSumCols::calculateValue(), fp_FieldTableSumRows::calculateValue(), fp_FieldListLabelRun::calculateValue(), fl_Squiggles::clear(), fp_Run::displayAnnotations(), fp_Run::draw(), fp_ImageRun::fp_ImageRun(), fp_Run::fp_Run(), fp_Line::getAnnotationContainers(), fp_Run::getAscent(), FV_View::getBlockFromSDH(), fp_Run::getDescent(), fp_Run::getFGColor(), fp_Line::getFootnoteContainers(), fp_Run::getGraphics(), fl_Squiggles::join(), fp_ImageRun::regenerateImage(), setFramesOnPage(), fl_Squiggles::split(), fl_Squiggles::textDeleted(), fl_Squiggles::textInserted(), and fl_Squiggles::textRevised().
| virtual fl_SectionLayout* fl_BlockLayout::getSectionLayout | ( | void | ) | const [inline, virtual] |
Implements fl_ContainerLayout.
Referenced by _breakLineAfterRun(), FV_View::_doPaste(), _lookupProperties(), FV_View::_moveInsPtNextPrevLine(), fl_SectionLayout::bl_doclistener_insertSection(), doclistener_deleteStrux(), doclistener_insertBlock(), doclistener_insertFrame(), doclistener_insertSection(), doclistener_insertTable(), FL_DocLayout::findBlockAtPosition(), FL_DocLayout::findBlockAtPositionReverse(), fl_BlockLayout(), format(), FV_View::getAllBlocksInList(), FV_View::getBlockFormat(), getDocSectionLayout(), getNewContainer(), getNextWrappedLine(), getTOCNumType(), getTOCTabLeader(), getTOCTabPosition(), FV_View::insertAnnotation(), FV_View::insertFootnote(), isHdrFtr(), listUpdate(), FV_View::notifyListeners(), FV_Selection::pasteRowOrCol(), setNeedsRedraw(), and setNeedsReformat().
| fl_DocSectionLayout * fl_BlockLayout::getDocSectionLayout | ( | void | ) | const [virtual] |
This method returns the DocSectionLayout that this block is associated with
Reimplemented from fl_ContainerLayout.
References FL_SECTION_ANNOTATION, FL_SECTION_CELL, FL_SECTION_DOC, FL_SECTION_ENDNOTE, FL_SECTION_FOOTNOTE, FL_SECTION_FRAME, FL_SECTION_HDRFTR, FL_SECTION_SHADOW, FL_SECTION_TOC, fl_HdrFtrSectionLayout::getDocSectionLayout(), fl_ContainerLayout::getHdrFtrSectionLayout(), getSectionLayout(), fl_SectionLayout::getType(), fl_Layout::getType(), m_pSectionLayout, UT_ASSERT_HARMLESS, and UT_SHOULD_NOT_HAPPEN.
Referenced by fp_Line::_doClearScreenFromRunToEnd(), fp_ImageRun::_draw(), AP_UnixDialog_Lists::_gatherData(), FV_View::_insertSectionBreak(), fp_ImageRun::_lookupProperties(), fp_MathRun::_lookupProperties(), fp_EmbedRun::_lookupProperties(), _removeLine(), fp_Line::clearScreen(), FV_View::cmdFindRevision(), FV_View::cmdInsertPositionedGraphic(), collapse(), FV_View::createThisHdrFtr(), Defun(), Defun1(), Defun_EV_GetMenuItemState_Fn(), doclistener_changeStrux(), doclistener_deleteStrux(), doclistener_insertFrame(), doclistener_insertSection(), doclistener_insertSpan(), fl_BlockLayout(), format(), getEmbeddedOffset(), FV_VisualDragText::getImageFromSelection(), FV_View::getSectionFormat(), FV_View::getTextInCurrentSection(), fl_DocListener::populateStrux(), FV_View::populateThisHdrFtr(), FV_View::queryCharFormat(), fp_Line::recalcMaxWidth(), fp_Line::remove(), FV_View::removeThisHdrFtr(), AP_Dialog_Spell::runModal(), setFramesOnPage(), and shuffleEmbeddedIfNeeded().
| void fl_BlockLayout::setSectionLayout | ( | fl_SectionLayout * | pSectionLayout | ) |
| void fl_BlockLayout::getLineSpacing | ( | double & | dSpacing, | |
| eSpacingPolicy & | eSpacing | |||
| ) | const |
| UT_uint32 fl_BlockLayout::getProp_Orphans | ( | void | ) | const [inline] |
Referenced by fb_ColumnBreaker::_breakSection().
| UT_uint32 fl_BlockLayout::getProp_Widows | ( | void | ) | const [inline] |
Referenced by fb_ColumnBreaker::_breakSection().
| bool fl_BlockLayout::getProp_KeepTogether | ( | void | ) | const [inline] |
Referenced by fb_ColumnBreaker::_breakSection().
| bool fl_BlockLayout::getProp_KeepWithNext | ( | void | ) | const [inline] |
| UT_BidiCharType fl_BlockLayout::getDominantDirection | ( | void | ) | const [inline] |
Referenced by fp_Line::_createMapOfRuns(), fp_Line::_doClearScreenFromRunToEnd(), AP_TopRuler::_drawLeftIndentMarker(), AP_TopRuler::_drawParagraphProperties(), AP_TopRuler::_drawRightIndentMarker(), FV_View::_getMouseContext(), AP_TopRuler::_getParagraphMarkerRects(), AP_TopRuler::_getParagraphMarkerXCenters(), AP_TopRuler::_getTabStopXAnchor(), AP_TopRuler::_setTabStops(), fp_FieldRun::_setValue(), fp_Line::calculateWidthOfRun(), fp_Line::calculateWidthOfTrailingSpaces(), FV_View::cmdCharInsert(), fp_Line::countJustificationPoints(), Defun1(), AP_Lists_preview::draw(), formatWrappedFromHere(), fp_EndOfParagraphRun::fp_EndOfParagraphRun(), fp_FieldEndnoteAnchorRun::fp_FieldEndnoteAnchorRun(), fp_FieldEndnoteRefRun::fp_FieldEndnoteRefRun(), fp_FieldFootnoteAnchorRun::fp_FieldFootnoteAnchorRun(), fp_FieldFootnoteRefRun::fp_FieldFootnoteRefRun(), fp_FieldListLabelRun::fp_FieldListLabelRun(), fp_FieldTOCHeadingRun::fp_FieldTOCHeadingRun(), fp_FieldTOCListLabelRun::fp_FieldTOCListLabelRun(), fp_FieldTOCNumRun::fp_FieldTOCNumRun(), fp_Line::genOverlapRects(), getLeftRightForWrapping(), getNextWrappedLine(), fp_Run::getVisDirection(), fp_Line::getWorkingDirectionAndTabstops(), fb_Alignment_justify::initialize(), fb_Alignment_right::initialize(), fb_Alignment_left::initialize(), AP_TopRuler::isMouseOverTab(), fp_Line::justify(), fp_Line::layout(), fp_TextRun::mapXYToPosition(), AP_TopRuler::mouseMotion(), AP_TopRuler::mousePress(), AP_TopRuler::mouseRelease(), FV_View::processSelectedBlocks(), fp_Line::recalcMaxWidth(), sActualMoveLeft(), sActualMoveRight(), FV_View::setBlockIndents(), and AP_TopRuler::setTableLineDrag().
| void fl_BlockLayout::setDominantDirection | ( | UT_BidiCharType | iDirection | ) |
References PD_Document::changeStruxFmt(), gchar, fl_Layout::getDocument(), getPosition(), m_iDomDirection, PTC_AddFmt, PTX_Block, UT_BIDI_RTL, and UT_DEBUGMSG.
| bool fl_BlockLayout::isHdrFtr | ( | void | ) | const |
References FL_SECTION_HDRFTR, getSectionLayout(), fl_Layout::getType(), and m_bIsHdrFtr.
Referenced by FV_View::_findBlockAtPosition(), _truncateLayout(), fl_SectionLayout::bl_doclistener_insertSection(), clearScreen(), doclistener_changeFmtMark(), doclistener_changeObject(), doclistener_changeStrux(), doclistener_insertBlock(), doclistener_insertSection(), fl_BlockLayout(), FV_View::getCurrentPage(), fl_Squiggles::join(), redrawUpdate(), FV_View::setStyleAtPos(), fl_Squiggles::split(), fl_Squiggles::textDeleted(), fl_Squiggles::textInserted(), and fl_Squiggles::textRevised().
| void fl_BlockLayout::setHdrFtr | ( | void | ) | [inline] |
Referenced by doclistener_insertBlock().
| void fl_BlockLayout::clearHdrFtr | ( | void | ) | [inline] |
| void fl_BlockLayout::debugFlashing | ( | void | ) |
Squiggle block being checked (for debugging)
Trivial background checker which puts on and takes off squiggles from the entire block that's being checked. This sort of messes up the spelling squiggles, but it's just a debug thing anyhow. Enable it by setting a preference DebugFlash="1"
References getBlockBuf(), UT_GrowBuf::getLength(), getView(), FV_View::updateScreen(), UT_ASSERT, UT_usleep, and xxx_UT_DEBUGMSG.
| bool fl_BlockLayout::findNextTabStop | ( | UT_sint32 | iStartX, | |
| UT_sint32 | iMaxX, | |||
| UT_sint32 & | iPosition, | |||
| eTabType & | iType, | |||
| eTabLeader & | iLeader | |||
| ) | const |
References FL_LEADER_NONE, FL_TAB_LEFT, FL_TAB_RIGHT, UT_GenericVector< T >::getItemCount(), fl_TabStop::getLeader(), UT_GenericVector< T >::getNthItem(), getPosition(), fl_TabStop::getPosition(), getTextIndent(), fl_TabStop::getType(), isContainedByTOC(), m_iDefaultTabInterval, m_iDomDirection, m_iLeftMargin, m_iRightMargin, m_vecTabs, UT_ASSERT, UT_BIDI_RTL, and UT_continue_if_fail.
Referenced by fp_Line::findNextTabStop().
| bool fl_BlockLayout::findPrevTabStop | ( | UT_sint32 | iStartX, | |
| UT_sint32 | iMaxX, | |||
| UT_sint32 & | iPosition, | |||
| eTabType & | iType, | |||
| eTabLeader & | iLeader | |||
| ) | const |
References FL_LEADER_NONE, FL_TAB_LEFT, FL_TAB_RIGHT, UT_GenericVector< T >::getItemCount(), fl_TabStop::getLeader(), UT_GenericVector< T >::getNthItem(), fl_TabStop::getPosition(), getTextIndent(), fl_TabStop::getType(), m_iDefaultTabInterval, m_iDomDirection, m_iLeftMargin, m_iRightMargin, m_vecTabs, UT_ASSERT, UT_BIDI_RTL, UT_continue_if_fail, UT_return_val_if_fail, and xxx_UT_DEBUGMSG.
Referenced by fp_Line::findPrevTabStop().
| bool fl_BlockLayout::hasUpdatableField | ( | void | ) | [inline] |
| void fl_BlockLayout::setUpdatableField | ( | bool | bValue | ) | [inline] |
Referenced by fl_BlockLayout(), and format().
| UT_sint32 fl_BlockLayout::getDefaultTabInterval | ( | void | ) | const [inline] |
Referenced by FV_View::getTopRulerInfo().
| UT_sint32 fl_BlockLayout::getTabsCount | ( | void | ) | const [inline] |
Referenced by FV_View::getTopRulerInfo().
| bool fl_BlockLayout::doclistener_populateSpan | ( | const PX_ChangeRecord_Span * | pcrs, | |
| PT_BlockOffset | blockOffset, | |||
| UT_uint32 | len | |||
| ) |
References _assertRunListIntegrity(), _doInsertBookmarkRun(), _doInsertDirectionMarkerRun(), _doInsertFieldEndRun(), _doInsertFieldStartRun(), _doInsertForcedColumnBreakRun(), _doInsertForcedLineBreakRun(), _doInsertForcedPageBreakRun(), _doInsertTabRun(), _doInsertTextSpan(), collapse(), FP_HIDDEN_FOLDED, PX_ChangeRecord_Span::getBufIndex(), fl_ContainerLayout::getLastContainer(), PD_Document::getPointer(), fl_ContainerLayout::getPrev(), fl_ContainerLayout::isHidden(), fl_Layout::m_pDoc, setNeedsReformat(), UCS_BOOKMARKEND, UCS_BOOKMARKSTART, UCS_FF, UCS_FIELDEND, UCS_FIELDSTART, UCS_LF, UCS_LRE, UCS_LRM, UCS_LRO, UCS_PDF, UCS_RLE, UCS_RLM, UCS_RLO, UCS_TAB, UCS_VTAB, updateEnclosingBlockIfNeeded(), UT_ASSERT, UT_SHOULD_NOT_HAPPEN, and xxx_UT_DEBUGMSG.
| bool fl_BlockLayout::doclistener_populateObject | ( | PT_BlockOffset | blockOffset, | |
| const PX_ChangeRecord_Object * | pcro | |||
| ) |
References _assertRunListIntegrity(), _doInsertAnnotationRun(), _doInsertBookmarkRun(), _doInsertEmbedRun(), _doInsertFieldRun(), _doInsertHyperlinkRun(), _doInsertImageRun(), _doInsertMathRun(), collapse(), FG_Graphic::createFromChangeRecord(), FP_HIDDEN_FOLDED, PX_ChangeRecord::getIndexAP(), PX_ChangeRecord_Object::getObjectHandle(), PX_ChangeRecord_Object::getObjectType(), fl_ContainerLayout::isHidden(), PTO_Annotation, PTO_Bookmark, PTO_Embed, PTO_Field, PTO_Hyperlink, PTO_Image, PTO_Math, updateEnclosingBlockIfNeeded(), UT_ASSERT, UT_DEBUGMSG, UT_SHOULD_NOT_HAPPEN, and xxx_UT_DEBUGMSG.
| bool fl_BlockLayout::doclistener_insertSpan | ( | const PX_ChangeRecord_Span * | pcrs | ) |
References _assertRunListIntegrity(), _doInsertBookmarkRun(), _doInsertDirectionMarkerRun(), _doInsertFieldEndRun(), _doInsertFieldStartRun(), _doInsertForcedColumnBreakRun(), _doInsertForcedLineBreakRun(), _doInsertForcedPageBreakRun(), _doInsertTabRun(), _doInsertTextSpan(), FV_View::_setPoint(), PD_Document::beginUserAtomicGlob(), FL_DocLayout::bgcrSmartQuotes, FL_DocLayout::considerSmartQuoteCandidateAt(), doclistener_insertSpan(), PD_Document::endUserAtomicGlob(), format(), FPRUN_TEXT, PX_ChangeRecord_Span::getBlockOffset(), PX_ChangeRecord_Span::getBufIndex(), getDocSectionLayout(), fl_ContainerLayout::getFirstContainer(), getFirstRun(), UT_GenericVector< T >::getItemCount(), PX_ChangeRecord_Span::getLength(), FL_DocLayout::getMatchingBlocksFromTOCs(), fp_Run::getNextRun(), UT_GenericVector< T >::getNthItem(), FL_DocLayout::getOffsetForSmartQuote(), fp_Container::getPage(), FL_DocLayout::getPendingBlockForSmartQuote(), FV_View::getPoint(), PD_Document::getPointer(), PX_ChangeRecord::getPosition(), getPosition(), fl_ContainerLayout::getPrev(), fp_Run::getType(), PX_ChangeRecord::getType(), getView(), FL_DocLayout::hasBackgroundCheckReason(), FV_View::isActive(), PD_Document::isDoingPaste(), PD_Document::isDoingTheDo(), isNotTOCable(), FV_View::isPreview(), m_bIsTOC, m_bStyleInTOC, m_iNeedsReformat, fl_Layout::m_pDoc, m_pLayout, PX_ChangeRecord::PXT_InsertSpan, fl_DocSectionLayout::setNeedsSectionBreak(), FL_DocLayout::setPendingSmartQuote(), UCS_BOOKMARKEND, UCS_BOOKMARKSTART, UCS_FF, UCS_FIELDEND, UCS_FIELDSTART, UCS_LF, UCS_LRE, UCS_LRM, UCS_LRO, UCS_PDF, UCS_RLE, UCS_RLM, UCS_RLO, UCS_TAB, UCS_VTAB, FV_View::updateCarets(), updateEnclosingBlockIfNeeded(), UT_ASSERT, UT_isSmartQuotableCharacter(), UT_return_val_if_fail, UT_SHOULD_NOT_HAPPEN, and xxx_UT_DEBUGMSG.
Referenced by doclistener_insertSpan().
| bool fl_BlockLayout::doclistener_deleteSpan | ( | const PX_ChangeRecord_Span * | pcrs | ) |
References _assertRunListIntegrity(), _delete(), FV_View::_resetSelection(), FV_View::_setPoint(), doclistener_deleteSpan(), format(), PX_ChangeRecord_Span::getBlockOffset(), UT_GenericVector< T >::getItemCount(), PX_ChangeRecord_Span::getLength(), FL_DocLayout::getMatchingBlocksFromTOCs(), UT_GenericVector< T >::getNthItem(), FV_View::getPoint(), PX_ChangeRecord::getPosition(), PX_ChangeRecord::getType(), getView(), FV_View::isActive(), isNotTOCable(), FV_View::isPreview(), m_bIsTOC, m_bStyleInTOC, m_iNeedsReformat, m_pLayout, PX_ChangeRecord::PXT_DeleteSpan, FV_View::updateCarets(), updateEnclosingBlockIfNeeded(), UT_ASSERT, UT_return_val_if_fail, and xxx_UT_DEBUGMSG.
Referenced by doclistener_deleteSpan().
| bool fl_BlockLayout::doclistener_changeSpan | ( | const PX_ChangeRecord_SpanChange * | pcrsc | ) |
Change runs in the given span
| pcrsc | Specifies the span |
References _assertRunListIntegrity(), UT_GenericVector< T >::addItem(), UT_GenericVector< T >::clear(), fp_Line::clearScreen(), UT_GenericVector< T >::findItem(), format(), FPRUN_IMAGE, FPRUN_TAB, FPRUN_TEXT, fp_Run::getBlockOffset(), PX_ChangeRecord_SpanChange::getBlockOffset(), UT_GenericVector< T >::getItemCount(), fp_Run::getLength(), PX_ChangeRecord_SpanChange::getLength(), fp_Run::getLine(), fp_Run::getNextRun(), UT_GenericVector< T >::getNthItem(), fp_Run::getType(), PX_ChangeRecord::getType(), PX_ChangeRecord_SpanChange::isRevisionDelete(), fp_Run::lookupProperties(), m_iNeedsReformat, m_pFirstRun, PX_ChangeRecord::PXT_ChangeSpan, fp_TextRun::split(), updateEnclosingBlockIfNeeded(), UT_ASSERT, UT_return_val_if_fail, and UT_SHOULD_NOT_HAPPEN.
| bool fl_BlockLayout::doclistener_deleteStrux | ( | const PX_ChangeRecord_Strux * | pcrx | ) |
Delete strux Run
| pcrx | Change record for the operation |
References _assertRunListIntegrity(), FV_View::_setPoint(), fl_ContainerLayout::addFrame(), FL_DocLayout::addOrRemoveBlockFromTOC(), FV_View::clearHdrFtrEdit(), clearScreen(), FL_CONTAINER_BLOCK, FL_CONTAINER_FRAME, FL_CONTAINER_TOC, format(), FPRUN_ENDOFPARAGRAPH, fp_Run::getBlockOffset(), fl_ContainerLayout::getContainerType(), fl_SectionLayout::getDocLayout(), getDocSectionLayout(), FV_View::getEditShadow(), fl_ContainerLayout::getFirstContainer(), getFirstRun(), FL_DocLayout::getGraphics(), fl_ContainerLayout::getLastContainer(), fl_ContainerLayout::getLastLayout(), fp_Run::getLength(), fp_Run::getLine(), fl_ContainerLayout::getNext(), fp_Run::getNextRun(), fl_ContainerLayout::getNthFrameLayout(), fl_ContainerLayout::getNumFrames(), fp_Container::getPage(), FV_View::getPoint(), PX_ChangeRecord::getPosition(), fl_ContainerLayout::getPrev(), fl_ContainerLayout::getPrevBlockInDocument(), getSectionLayout(), fl_Layout::getStruxDocHandle(), PX_ChangeRecord_Strux::getStruxType(), fp_Run::getType(), PX_ChangeRecord::getType(), FL_DocLayout::getView(), FV_View::isActive(), FL_DocLayout::isBlockInTOC(), FV_View::isHdrFtrEdit(), fl_AutoNum::isItem(), FV_View::isPreview(), fp_Run::lookupProperties(), fl_Layout::m_pAutoNum, m_pFirstRun, m_pLayout, fl_ContainerLayout::myContainingLayout(), PTX_Block, purgeLayout(), PX_ChangeRecord::PXT_DeleteStrux, fl_ContainerLayout::remove(), FL_DocLayout::removeBlockFromTOC(), fl_ContainerLayout::removeFrame(), fl_AutoNum::removeItem(), fp_Line::removeRun(), fp_Run::setBlock(), fp_Run::setBlockOffset(), fl_ContainerLayout::setNeedsRedraw(), setNeedsReformat(), fl_ContainerLayout::setNeedsReformat(), fl_DocSectionLayout::setNeedsSectionBreak(), fp_Run::setNextRun(), fp_Run::setPrevRun(), shuffleEmbeddedIfNeeded(), FV_View::updateCarets(), updateEnclosingBlockIfNeeded(), UT_ASSERT, UT_DEBUGMSG, and xxx_UT_DEBUGMSG.
| bool fl_BlockLayout::doclistener_changeStrux | ( | const PX_ChangeRecord_StruxChange * | pcrxc | ) |
References _assertRunListIntegrity(), clearScreen(), collapse(), format(), getDocSectionLayout(), fl_ContainerLayout::getFirstContainer(), FL_DocLayout::getGraphics(), PX_ChangeRecord::getIndexAP(), fp_Container::getNext(), fp_Run::getNextRun(), fp_Container::getPage(), fl_ContainerLayout::getPrev(), fl_ContainerLayout::getPrevBlockInDocument(), PX_ChangeRecord::getType(), PD_Document::isDoingPaste(), isHdrFtr(), fp_Run::lookupProperties(), fl_ContainerLayout::lookupProperties(), m_iDomDirection, fl_Layout::m_pDoc, m_pFirstRun, m_pLayout, m_szStyle, PX_ChangeRecord::PXT_ChangeStrux, fp_Line::recalcHeight(), fp_Line::recalcMaxWidth(), fp_Run::recalcWidth(), fl_Layout::setAttrPropIndex(), fp_Line::setMapOfRunsDirty(), setNeedsReformat(), fl_ContainerLayout::setNeedsReformat(), fl_DocSectionLayout::setNeedsSectionBreak(), updateEnclosingBlockIfNeeded(), UT_ASSERT, and xxx_UT_DEBUGMSG.
| bool fl_BlockLayout::doclistener_insertFirstBlock | ( | const PX_ChangeRecord_Strux * | pcrx, | |
| PL_StruxDocHandle | sdh, | |||
| PL_ListenerId | lid, | |||
| void(*)(PL_StruxDocHandle sdhNew, PL_ListenerId lid, PL_StruxFmtHandle sfhNew) | pfnBindHandles | |||
| ) |
References _assertRunListIntegrity(), FV_View::_setPoint(), fl_BLOCK_STRUX_OFFSET, FV_View::getPoint(), PX_ChangeRecord::getPosition(), getView(), FV_View::isActive(), FV_View::isPreview(), setNeedsReformat(), FV_View::updateCarets(), and updateEnclosingBlockIfNeeded().
Referenced by fl_SectionLayout::bl_doclistener_insertBlock(), and fl_HdrFtrSectionLayout::bl_doclistener_insertFirstBlock().
| bool fl_BlockLayout::doclistener_insertBlock | ( | const PX_ChangeRecord_Strux * | pcrx, | |
| PL_StruxDocHandle | sdh, | |||
| PL_ListenerId | lid, | |||
| void(*)(PL_StruxDocHandle sdhNew, PL_ListenerId lid, PL_StruxFmtHandle sfhNew) | pfnBindHandles | |||
| ) |
References _assertRunListIntegrity(), _insertEndOfParagraphRun(), _purgeEndOfParagraphRun(), FV_View::_setPoint(), _stuffAllRunsOnALine(), _truncateLayout(), fl_ContainerLayout::addFrame(), fp_Line::addRun(), coalesceRuns(), collapse(), fl_BLOCK_STRUX_OFFSET, FL_CONTAINER_BLOCK, FPRUN_FMTMARK, FPRUN_TEXT, fp_Run::getBlockOffset(), fl_ContainerLayout::getContainerType(), PX_ChangeRecord::getIndexAP(), fp_Run::getLength(), fp_Run::getLine(), fl_ContainerLayout::getNext(), fp_Run::getNextRun(), fl_ContainerLayout::getNthFrameLayout(), fl_ContainerLayout::getNumFrames(), FV_View::getPoint(), getPosition(), PX_ChangeRecord::getPosition(), fl_ContainerLayout::getPrev(), fp_Run::getPrevRun(), getSectionLayout(), PX_ChangeRecord_Strux::getStruxType(), fp_Run::getType(), PX_ChangeRecord::getType(), getView(), FV_View::isActive(), isHdrFtr(), FV_View::isPreview(), m_pFirstRun, m_pLayout, fl_ContainerLayout::myContainingLayout(), PTX_Block, PX_ChangeRecord::PXT_InsertStrux, fl_ContainerLayout::removeFrame(), fp_Run::setBlockOffset(), setHdrFtr(), setNeedsReformat(), fp_Run::setNextRun(), fp_Run::setPrevRun(), shuffleEmbeddedIfNeeded(), FV_View::updateCarets(), updateEnclosingBlockIfNeeded(), UT_ASSERT, UT_DEBUGMSG, UT_return_val_if_fail, UT_SHOULD_NOT_HAPPEN, and xxx_UT_DEBUGMSG.
| bool fl_BlockLayout::doclistener_insertSection | ( | const PX_ChangeRecord_Strux * | pcrx, | |
| SectionType | iType, | |||
| PL_StruxDocHandle | sdh, | |||
| PL_ListenerId | lid, | |||
| void(*)(PL_StruxDocHandle sdhNew, PL_ListenerId lid, PL_StruxFmtHandle sfhNew) | pfnBindHandles | |||
| ) |
References _assertRunListIntegrity(), FV_View::_setPoint(), fl_ContainerLayout::add(), FL_DocLayout::addHdrFtrSection(), fl_DocSectionLayout::collapse(), fl_ContainerLayout::collapse(), fl_HdrFtrSectionLayout::collapseBlock(), FL_DocLayout::findSectionForHdrFtr(), fl_BLOCK_STRUX_OFFSET, FL_CONTAINER_ANNOTATION, FL_CONTAINER_BLOCK, FL_CONTAINER_ENDNOTE, FL_CONTAINER_FOOTNOTE, FL_CONTAINER_FRAME, FL_CONTAINER_TOC, FL_HDRFTR_FOOTER, FL_HDRFTR_FOOTER_EVEN, FL_HDRFTR_FOOTER_FIRST, FL_HDRFTR_FOOTER_LAST, FL_HDRFTR_HEADER, FL_HDRFTR_HEADER_EVEN, FL_HDRFTR_HEADER_FIRST, FL_HDRFTR_HEADER_LAST, FL_HDRFTR_NONE, FL_SECTION_ANNOTATION, FL_SECTION_DOC, FL_SECTION_ENDNOTE, FL_SECTION_FOOTNOTE, FL_SECTION_HDRFTR, FL_SECTION_TOC, fl_ContainerLayout::format(), gchar, PP_AttrProp::getAttribute(), PD_Document::getAttrProp(), PD_Document::getBounds(), fl_ContainerLayout::getContainerType(), getDocSectionLayout(), fl_ContainerLayout::getFirstContainer(), PX_ChangeRecord::getIndexAP(), fl_ContainerLayout::getNext(), fl_DocSectionLayout::getNextDocSection(), FV_View::getPoint(), PX_ChangeRecord::getPosition(), getPosition(), fl_ContainerLayout::getPrev(), getSectionLayout(), fl_Layout::getStruxDocHandle(), PD_Document::getStruxPosition(), PX_ChangeRecord_Strux::getStruxType(), fl_SectionLayout::getType(), PX_ChangeRecord::getType(), getView(), fl_ContainerLayout::insert(), FL_DocLayout::insertSectionAfter(), FV_View::isActive(), isHdrFtr(), FV_View::isPreview(), m_iNeedsReformat, fl_Layout::m_pDoc, m_pLayout, m_pSectionLayout, PTX_Section, PTX_SectionAnnotation, PTX_SectionFootnote, PTX_SectionHdrFtr, PX_ChangeRecord::PXT_InsertStrux, fl_ContainerLayout::redrawUpdate(), fl_ContainerLayout::remove(), fl_HdrFtrSectionLayout::setDocSectionLayout(), fl_DocSectionLayout::setHdrFtr(), fl_HdrFtrSectionLayout::setHdrFtr(), fl_ContainerLayout::setLastLayout(), fl_DocSectionLayout::setNeedsSectionBreak(), fl_ContainerLayout::setNext(), setSectionLayout(), FV_View::updateCarets(), fl_DocSectionLayout::updateDocSection(), updateEnclosingBlockIfNeeded(), UT_ASSERT, UT_DEBUGMSG, UT_return_val_if_fail, UT_SHOULD_NOT_HAPPEN, UT_UNUSED, and xxx_UT_DEBUGMSG.
| fl_SectionLayout * fl_BlockLayout::doclistener_insertTable | ( | const PX_ChangeRecord_Strux * | pcrx, | |
| SectionType | iType, | |||
| PL_StruxDocHandle | sdh, | |||
| PL_ListenerId | lid, | |||
| void(*)(PL_StruxDocHandle sdhNew, PL_ListenerId lid, PL_StruxFmtHandle sfhNew) | pfnBindHandles | |||
| ) |
Insert a table into the list of blocks
References _assertRunListIntegrity(), FV_View::_setPoint(), fl_BLOCK_STRUX_OFFSET, FL_CONTAINER_TABLE, FL_SECTION_TABLE, PD_Document::getBounds(), PX_ChangeRecord::getIndexAP(), FV_View::getPoint(), PX_ChangeRecord::getPosition(), getSectionLayout(), PX_ChangeRecord::getType(), getView(), fl_ContainerLayout::insert(), FV_View::isActive(), FV_View::isPreview(), fl_Layout::m_pDoc, PX_ChangeRecord::PXT_InsertStrux, FV_View::updateCarets(), updateEnclosingBlockIfNeeded(), UT_ASSERT, and UT_UNUSED.
| fl_SectionLayout * fl_BlockLayout::doclistener_insertFrame | ( | const PX_ChangeRecord_Strux * | pcrx, | |
| SectionType | iType, | |||
| PL_StruxDocHandle | sdh, | |||
| PL_ListenerId | lid, | |||
| void(*)(PL_StruxDocHandle sdhNew, PL_ListenerId lid, PL_StruxFmtHandle sfhNew) | pfnBindHandles | |||
| ) |
Insert a Frame after this block.
References _assertRunListIntegrity(), FV_View::_setPoint(), fl_DocSectionLayout::completeBreakSection(), fl_BLOCK_STRUX_OFFSET, FL_CONTAINER_FRAME, FL_SECTION_FRAME, format(), PD_Document::getBounds(), getDocSectionLayout(), fl_ContainerLayout::getFirstContainer(), PX_ChangeRecord::getIndexAP(), fp_Container::getPage(), FV_View::getPoint(), PX_ChangeRecord::getPosition(), fl_ContainerLayout::getPrev(), getSectionLayout(), PX_ChangeRecord::getType(), getView(), fl_ContainerLayout::insert(), FV_View::isActive(), FV_View::isPreview(), fl_Layout::m_pDoc, PX_ChangeRecord::PXT_InsertStrux, FV_View::updateCarets(), updateEnclosingBlockIfNeeded(), UT_ASSERT, and UT_UNUSED.
| bool fl_BlockLayout::doclistener_insertObject | ( | const PX_ChangeRecord_Object * | pcro | ) |
References _assertRunListIntegrity(), _doInsertAnnotationRun(), _doInsertBookmarkRun(), _doInsertEmbedRun(), _doInsertFieldRun(), _doInsertHyperlinkRun(), _doInsertImageRun(), _doInsertMathRun(), FV_View::_setPoint(), FG_Graphic::createFromChangeRecord(), doclistener_insertObject(), format(), PX_ChangeRecord_Object::getBlockOffset(), PX_ChangeRecord::getIndexAP(), UT_GenericVector< T >::getItemCount(), FL_DocLayout::getMatchingBlocksFromTOCs(), UT_GenericVector< T >::getNthItem(), PX_ChangeRecord_Object::getObjectHandle(), PX_ChangeRecord_Object::getObjectType(), FV_View::getPoint(), PX_ChangeRecord::getPosition(), getView(), FV_View::isActive(), isNotTOCable(), FV_View::isPreview(), m_bIsTOC, m_bStyleInTOC, m_iNeedsReformat, m_pLayout, PTO_Annotation, PTO_Bookmark, PTO_Embed, PTO_Field, PTO_Hyperlink, PTO_Image, PTO_Math, FV_View::updateCarets(), updateEnclosingBlockIfNeeded(), UT_ASSERT_HARMLESS, UT_DEBUGMSG, and UT_SHOULD_NOT_HAPPEN.
Referenced by doclistener_insertObject().
| bool fl_BlockLayout::doclistener_deleteObject | ( | const PX_ChangeRecord_Object * | pcro | ) |
References _assertRunListIntegrity(), _delete(), FV_View::_resetSelection(), FV_View::_setPoint(), doclistener_deleteObject(), format(), PX_ChangeRecord_Object::getBlockOffset(), UT_GenericVector< T >::getItemCount(), FL_DocLayout::getMatchingBlocksFromTOCs(), UT_GenericVector< T >::getNthItem(), PX_ChangeRecord_Object::getObjectType(), FV_View::getPoint(), PX_ChangeRecord::getPosition(), getView(), FV_View::isActive(), isNotTOCable(), FV_View::isPreview(), m_bIsTOC, m_bStyleInTOC, m_iNeedsReformat, fl_Layout::m_pAutoNum, m_pLayout, fl_AutoNum::markAsDirty(), PTO_Annotation, PTO_Bookmark, PTO_Embed, PTO_Field, PTO_Hyperlink, PTO_Image, PTO_Math, FV_View::updateCarets(), updateEnclosingBlockIfNeeded(), UT_ASSERT_HARMLESS, UT_DEBUGMSG, UT_SHOULD_NOT_HAPPEN, and xxx_UT_DEBUGMSG.
Referenced by doclistener_deleteObject().
| bool fl_BlockLayout::doclistener_changeObject | ( | const PX_ChangeRecord_ObjectChange * | pcroc | ) |
References _assertRunListIntegrity(), fp_Run::clearScreen(), format(), FPRUN_EMBED, FPRUN_FIELD, FPRUN_FMTMARK, FPRUN_IMAGE, FPRUN_MATH, fp_Run::getBlockOffset(), PX_ChangeRecord_ObjectChange::getBlockOffset(), fp_Run::getNextRun(), PX_ChangeRecord_ObjectChange::getObjectType(), fp_Run::getType(), isHdrFtr(), fp_Run::lookupProperties(), m_iNeedsReformat, m_pFirstRun, PTO_Annotation, PTO_Bookmark, PTO_Embed, PTO_Field, PTO_Hyperlink, PTO_Image, PTO_Math, fp_EmbedRun::update(), UT_ASSERT_HARMLESS, UT_DEBUGMSG, UT_SHOULD_NOT_HAPPEN, and xxx_UT_DEBUGMSG.
| bool fl_BlockLayout::doclistener_insertFmtMark | ( | const PX_ChangeRecord_FmtMark * | pcrfm | ) |
References _assertRunListIntegrity(), _doInsertRun(), FV_View::_resetSelection(), FV_View::_setPoint(), format(), PX_ChangeRecord_FmtMark::getBlockOffset(), PX_ChangeRecord::getPosition(), getView(), FV_View::isActive(), FV_View::isPreview(), m_iNeedsReformat, FV_View::updateCarets(), UT_ASSERT, and xxx_UT_DEBUGMSG.
| bool fl_BlockLayout::doclistener_deleteFmtMark | ( | const PX_ChangeRecord_FmtMark * | pcrfm | ) |
References _assertRunListIntegrity(), _deleteFmtMark(), FV_View::_resetSelection(), FV_View::_setPoint(), format(), PX_ChangeRecord_FmtMark::getBlockOffset(), PD_Document::getBounds(), PX_ChangeRecord::getPosition(), getView(), FV_View::isActive(), FV_View::isPreview(), m_iNeedsReformat, fl_Layout::m_pDoc, m_pLayout, FV_View::updateCarets(), updateEnclosingBlockIfNeeded(), UT_ASSERT, UT_return_val_if_fail, UT_SHOULD_NOT_HAPPEN, and xxx_UT_DEBUGMSG.
| bool fl_BlockLayout::doclistener_changeFmtMark | ( | const PX_ChangeRecord_FmtMarkChange * | pcrfmc | ) |
References _assertRunListIntegrity(), fp_Run::clearScreen(), format(), FPRUN_FMTMARK, fp_Run::getBlockOffset(), PX_ChangeRecord_FmtMarkChange::getBlockOffset(), fp_Run::getNextRun(), fp_Run::getType(), getView(), FV_View::isActive(), isHdrFtr(), FV_View::isPreview(), fp_Run::lookupProperties(), m_iNeedsReformat, m_pFirstRun, updateEnclosingBlockIfNeeded(), UT_ASSERT, and xxx_UT_DEBUGMSG.
| void fl_BlockLayout::purgeLayout | ( | void | ) |
References _purgeLine(), fl_ContainerLayout::getFirstContainer(), fl_ContainerLayout::getLastContainer(), fp_Run::getNextRun(), m_pFirstRun, fp_Run::setBlock(), and UT_ASSERT.
Referenced by doclistener_deleteStrux(), and ~fl_BlockLayout().
| void fl_BlockLayout::collapse | ( | void | ) | [virtual] |
Implements fl_ContainerLayout.
References _removeLine(), findLineInBlock(), getDocSectionLayout(), fl_ContainerLayout::getFirstContainer(), fl_ContainerLayout::getLastContainer(), fp_Run::getNextRun(), fl_DocSectionLayout::isCollapsing(), m_bIsCollapsed, m_iNeedsReformat, m_pFirstRun, fp_Run::setLine(), UT_ASSERT_HARMLESS, and xxx_UT_DEBUGMSG.
Referenced by _lookupMarginProperties(), FL_DocLayout::collapseAnnotations(), doclistener_changeStrux(), fl_FrameLayout::doclistener_deleteStrux(), doclistener_insertBlock(), doclistener_populateObject(), doclistener_populateSpan(), format(), and fp_Page::updatePageForWrapping().
| virtual bool fl_BlockLayout::isCollapsed | ( | void | ) | const [inline, virtual] |
| void fl_BlockLayout::coalesceRuns | ( | void | ) | const |
References _assertRunListIntegrity(), _mergeRuns(), fp_Line::coalesceRuns(), FPRUN_TEXT, fp_Run::getBlockOffset(), fl_ContainerLayout::getFirstContainer(), fp_Run::getLength(), fp_Run::getLine(), fp_Container::getNext(), fp_Run::getNextRun(), fp_Run::getType(), m_pFirstRun, and xxx_UT_DEBUGMSG.
Referenced by doclistener_insertBlock(), and format().
| void fl_BlockLayout::setNeedsReformat | ( | fl_ContainerLayout * | pCL, | |
| UT_uint32 | offset = 0 | |||
| ) | [virtual] |
Implements fl_ContainerLayout.
References getSectionLayout(), m_iNeedsReformat, setNeedsRedraw(), and fl_SectionLayout::setNeedsReformat().
Referenced by fl_SectionLayout::bl_doclistener_insertSection(), doclistener_changeStrux(), doclistener_deleteStrux(), doclistener_insertBlock(), doclistener_insertFirstBlock(), doclistener_populateSpan(), FV_View::insertFootnote(), fp_Line::setReformat(), and updateOffsets().
| bool fl_BlockLayout::needsReformat | ( | void | ) | const [inline, virtual] |
| void fl_BlockLayout::setNeedsRedraw | ( | void | ) | [virtual] |
Implements fl_ContainerLayout.
References getSectionLayout(), m_bNeedsRedraw, and fl_SectionLayout::setNeedsRedraw().
Referenced by fp_Line::_doClearScreenFromRunToEnd(), fp_FieldRun::_recalcWidth(), fp_AnnotationRun::_recalcWidth(), fp_FieldRun::_setValue(), fp_Line::clearScreen(), AP_Win32Dialog_Styles::runModal(), fp_Line::setNeedsRedraw(), FL_DocLayout::setNeedsRedraw(), and setNeedsReformat().
| virtual bool fl_BlockLayout::needsRedraw | ( | void | ) | const [inline, virtual] |
Implements fl_ContainerLayout.
| void fl_BlockLayout::markAllRunsDirty | ( | void | ) | [virtual] |
Implements fl_ContainerLayout.
References fl_ContainerLayout::getFirstContainer(), fp_Container::getNext(), fp_Run::getNextRun(), m_pFirstRun, fp_Run::markAsDirty(), and fp_Line::setNeedsRedraw().
Referenced by redrawUpdate().
References fl_ContainerLayout::getFirstContainer(), and fp_Container::getNext().
Referenced by _removeLine(), fp_Run::clearIfNeeded(), collapse(), getNewContainer(), getNextWrappedLine(), and fp_Page::updatePageForWrapping().
| bool fl_BlockLayout::isWordDelimiter | ( | UT_UCS4Char | c, | |
| UT_UCS4Char | next, | |||
| UT_UCS4Char | prev, | |||
| UT_uint32 | iBlockPos | |||
| ) | const |
this function decides if character c is a word-delimiter, taking on board revisions markup
References fp_Run::containsRevisions(), findRunAtOffset(), FP_VISIBLE, PP_RevisionAttr::getLastRevision(), fp_Run::getRevisions(), PP_Revision::getType(), fp_Run::getVisibility(), PP_REVISION_DELETION, UT_isWordDelimiter(), and xxx_UT_DEBUGMSG.
| bool fl_BlockLayout::isSentenceSeparator | ( | UT_UCS4Char | c, | |
| UT_uint32 | iBlockPos | |||
| ) | const |
| void fl_BlockLayout::setStyleInTOC | ( | bool | b | ) | [inline] |
Referenced by fl_TOCLayout::_addBlockInVec().
| void fl_BlockLayout::forceSectionBreak | ( | void | ) |
Force a sectionBreak by setting StartHeight to a ridiculus value
References m_bForceSectionBreak.
Referenced by fp_Line::recalcHeight(), and fp_Line::removeRun().
| bool fl_BlockLayout::isContainedByTOC | ( | void | ) | const [inline] |
Referenced by _assertRunListIntegrityImpl(), _canContainPoint(), fp_FieldRun::_defaultDraw(), _doInsertAnnotationRun(), _doInsertBookmarkRun(), _doInsertEmbedRun(), _doInsertFieldRun(), _doInsertForcedColumnBreakRun(), _doInsertForcedLineBreakRun(), _doInsertForcedPageBreakRun(), _doInsertHyperlinkRun(), _doInsertImageRun(), _doInsertMathRun(), _doInsertTabRun(), fp_TextRun::_draw(), fp_AnnotationRun::_draw(), fl_TOCLayout::_removeBlockInVec(), fp_Run::Fill(), findNextTabStop(), and fp_Run::lookupProperties().
| FootnoteType fl_BlockLayout::getTOCNumType | ( | void | ) | const |
References FL_CONTAINER_TOC, fl_ContainerLayout::getContainerType(), fl_TOCLayout::getNumType(), getSectionLayout(), m_bIsTOC, m_iTOCLevel, and UT_ASSERT.
Referenced by fp_FieldTOCNumRun::calculateValue().
| eTabLeader fl_BlockLayout::getTOCTabLeader | ( | UT_sint32 | iOff | ) | const |
References FL_CONTAINER_TOC, FL_LEADER_NONE, fl_ContainerLayout::getContainerType(), getSectionLayout(), fl_TOCLayout::getTabLeader(), m_bIsTOC, m_iTOCLevel, and UT_ASSERT.
Referenced by fp_Line::_calculateWidthOfRun().
References FL_CONTAINER_TOC, fl_ContainerLayout::getContainerType(), getSectionLayout(), fl_TOCLayout::getTabPosition(), m_bIsTOC, m_iTOCLevel, and UT_ASSERT.
Referenced by fp_Line::_calculateWidthOfRun().
| void fl_BlockLayout::setAccumHeight | ( | UT_sint32 | i | ) | [inline] |
| UT_sint32 fl_BlockLayout::getAccumHeight | ( | void | ) | const [inline] |
| bool fl_BlockLayout::s_EnumTabStops | ( | void * | myThis, | |
| UT_uint32 | k, | |||
| fl_TabStop * | pTabInfo | |||
| ) | [static] |
References UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), and m_vecTabs.
Referenced by FV_View::getTopRulerInfo().
| void fl_BlockLayout::addBackgroundCheckReason | ( | UT_uint32 | reason | ) | [inline] |
| void fl_BlockLayout::removeBackgroundCheckReason | ( | UT_uint32 | reason | ) | [inline] |
| bool fl_BlockLayout::hasBackgroundCheckReason | ( | UT_uint32 | reason | ) | const [inline] |
Referenced by FL_DocLayout::getSmartQuotes().
| void fl_BlockLayout::setPrevListLabel | ( | bool | b | ) | [inline] |
Referenced by fp_Run::fp_Run().
| bool fl_BlockLayout::getNextTableElement | ( | UT_GrowBuf * | buf, | |
| PT_DocPosition | startPos, | |||
| PT_DocPosition & | begPos, | |||
| PT_DocPosition & | endPos, | |||
| UT_UTF8String & | sWord, | |||
| bool | bIgnoreSpace | |||
| ) | const |
This Method searches for the next piece of of the block that could be used for texttotable conversions.
| buf | reference to a growbug containing the text in the block | |
| startPos | - start search from this position | |
| begPos | - first character of the word | |
| endPos | - Last character of the word | |
| sWord | - UTF8 string containing the word | |
| If | true do not use a space as a delimiter. |
References UT_GrowBuf::getLength(), UT_GrowBuf::getPointer(), getPosition(), PD_Document::isEndFootnoteAtPos(), PD_Document::isFootnoteAtPos(), fl_Layout::m_pDoc, UCS_SPACE, UCS_TAB, UCS_UNKPUNK, UT_isWordDelimiter(), and xxx_UT_DEBUGMSG.
Referenced by FV_View::cmdTextToTable().
| bool fl_BlockLayout::itemizeSpan | ( | PT_BlockOffset | blockOffset, | |
| UT_uint32 | len, | |||
| GR_Itemization & | I | |||
| ) |
References FL_DocLayout::findFont(), fl_BLOCK_STRUX_OFFSET, fl_ContainerLayout::getAP(), GR_Font::getFamily(), FL_DocLayout::getGraphics(), FV_View::getShowPara(), fl_ContainerLayout::getSpanAP(), fl_Layout::getStruxDocHandle(), getView(), GR_Graphics::itemize(), m_iDirOverride, m_iDomDirection, fl_Layout::m_pDoc, m_pLayout, PP_evalProperty(), GR_Itemization::setDirOverride(), GR_Itemization::setEmbedingLevel(), GR_Itemization::setFont(), GR_Itemization::setLang(), GR_Itemization::setShowControlChars(), text, UT_return_val_if_fail, and xxx_UT_DEBUGMSG.
Referenced by _doInsertTextSpan(), fp_TextRun::isOneItem(), and fp_TextRun::itemize().
| bool fl_BlockLayout::_canContainPoint | ( | ) | const [private, virtual] |
| bool fl_BlockLayout::_doCheckWord | ( | fl_PartOfBlock * | pPOB, | |
| const UT_UCSChar * | pBlockText, | |||
| UT_sint32 | iLength, | |||
| bool | bAddSquiggle = true, |
|||
| bool | bClearScreen = true | |||
| ) | const [protected] |
Referenced by fl_Squiggles::recheckIgnoredWords().
| bool fl_BlockLayout::_truncateLayout | ( | fp_Run * | pTruncRun | ) | [protected] |
Truncate layout from the specified Run
| pTruncRun | First Run to be truncated |
References _removeAllEmptyLines(), fp_Run::clearScreen(), fp_Line::clearScreen(), fp_Line::clearScreenFromRunToEnd(), fp_Run::getLine(), fp_Container::getNext(), fp_Run::getNextRun(), isHdrFtr(), m_pFirstRun, and fp_Line::removeRun().
Referenced by doclistener_insertBlock().
| void fl_BlockLayout::_assertRunListIntegrityImpl | ( | void | ) | const [protected] |
Assert integrity of the Run list Assert the following properties:
References FPRUN_DUMMY, FPRUN_ENDOFPARAGRAPH, FPRUN_FIELD, FPRUN_FMTMARK, FPRUN_TAB, fp_Run::getBlockOffset(), FL_DocLayout::getDocument(), fp_Run::getLength(), fp_Run::getNextRun(), fp_Run::getPrevRun(), fl_Layout::getStruxDocHandle(), fp_Run::getType(), isContainedByTOC(), m_pFirstRun, m_pLayout, PD_Document::miniDump(), UT_ASSERT, UT_return_if_fail, and xxx_UT_DEBUGMSG.
Referenced by _assertRunListIntegrity().
| void fl_BlockLayout::_assertRunListIntegrity | ( | void | ) | const [inline, protected] |
References _assertRunListIntegrityImpl().
Referenced by _breakLineAfterRun(), _delete(), _doInsertRun(), _insertEndOfParagraphRun(), _mergeRuns(), _purgeEndOfParagraphRun(), coalesceRuns(), doclistener_changeFmtMark(), doclistener_changeObject(), doclistener_changeSpan(), doclistener_changeStrux(), doclistener_deleteFmtMark(), doclistener_deleteObject(), doclistener_deleteSpan(), doclistener_deleteStrux(), doclistener_insertBlock(), doclistener_insertFirstBlock(), doclistener_insertFmtMark(), doclistener_insertFrame(), doclistener_insertObject(), doclistener_insertSection(), doclistener_insertSpan(), doclistener_insertTable(), doclistener_populateObject(), doclistener_populateSpan(), format(), and recalculateFields().
| void fl_BlockLayout::_mergeRuns | ( | fp_Run * | pFirstRunToMerge, | |
| fp_Run * | pLastRunToMerge | |||
| ) | const [protected] |
References _assertRunListIntegrity(), FPRUN_TEXT, fp_Run::getNextRun(), fp_Run::getType(), fp_TextRun::mergeWithNext(), and UT_ASSERT.
Referenced by coalesceRuns().
| bool fl_BlockLayout::_doInsertRun | ( | fp_Run * | pNewRun | ) | [protected] |
References _assertRunListIntegrity(), fp_Line::assertLineListIntegrity(), FPRUN_ENDOFPARAGRAPH, FPRUN_TEXT, fp_Run::getBlockOffset(), fp_Run::getDirection(), fl_ContainerLayout::getLastContainer(), fp_Run::getLength(), fp_Run::getLine(), fp_Run::getNextRun(), fp_Run::getType(), fp_Run::insertIntoRunListAfterThis(), fp_Run::insertIntoRunListBeforeThis(), fp_Line::insertRunBefore(), m_pFirstRun, fp_Run::markWidthDirty(), fp_Run::recalcWidth(), fp_Run::setBlockOffset(), UT_ASSERT, and xxx_UT_DEBUGMSG.
Referenced by _doInsertAnnotationRun(), _doInsertBookmarkRun(), _doInsertDirectionMarkerRun(), _doInsertEmbedRun(), _doInsertFieldEndRun(), _doInsertFieldRun(), _doInsertFieldStartRun(), _doInsertFieldTOCRun(), _doInsertForcedColumnBreakRun(), _doInsertForcedLineBreakRun(), _doInsertForcedPageBreakRun(), _doInsertHyperlinkRun(), _doInsertImageRun(), _doInsertMathRun(), _doInsertTabRun(), _doInsertTextSpan(), _doInsertTOCTabRun(), and doclistener_insertFmtMark().
| bool fl_BlockLayout::_delete | ( | PT_BlockOffset | blockOffset, | |
| UT_uint32 | len | |||
| ) | [protected] |
References _assertRunListIntegrity(), _insertEndOfParagraphRun(), fp_TextRun::breakMeAtDirBoundaries(), DELETEP, FPRUN_DIRECTIONMARKER, FPRUN_FMTMARK, FPRUN_FORCEDCOLUMNBREAK, FPRUN_FORCEDPAGEBREAK, FPRUN_TEXT, fp_Run::getBlockOffset(), fp_Run::getLength(), fp_Run::getLine(), fp_Run::getNextRun(), fp_Container::getPage(), fp_Run::getPrevRun(), fp_Run::getType(), m_pFirstRun, fp_Page::markAllDirty(), fp_Line::removeRun(), fp_Run::setBlockOffset(), fp_Run::unlinkFromRunList(), fp_Run::updateOnDelete(), UT_ASSERT, UT_BIDI_IGNORE, UT_SHOULD_NOT_HAPPEN, and xxx_UT_DEBUGMSG.
Referenced by doclistener_deleteObject(), and doclistener_deleteSpan().
| bool fl_BlockLayout::_doInsertTextSpan | ( | PT_BlockOffset | blockOffset, | |
| UT_uint32 | len | |||
| ) | [protected] |
References _doInsertRun(), FPRUN_TEXT, GR_Itemization::getItemCount(), getLength(), GR_Itemization::getNthItem(), GR_Itemization::getNthLength(), GR_Itemization::getNthOffset(), fp_Run::getType(), itemizeSpan(), m_iDirOverride, GR_Item::makeCopy(), fp_TextRun::setDirOverride(), fp_TextRun::setItem(), UT_ASSERT, UT_MIN, UT_return_val_if_fail, and xxx_UT_DEBUGMSG.
Referenced by doclistener_insertSpan(), and doclistener_populateSpan().
| bool fl_BlockLayout::_doInsertForcedLineBreakRun | ( | PT_BlockOffset | blockOffset | ) | [protected] |
References _breakLineAfterRun(), _doInsertRun(), isContainedByTOC(), and UT_ASSERT.
Referenced by doclistener_insertSpan(), and doclistener_populateSpan().
| bool fl_BlockLayout::_doInsertFieldStartRun | ( | PT_BlockOffset | blockOffset | ) | [protected] |
References _breakLineAfterRun(), _doInsertRun(), and UT_ASSERT.
Referenced by doclistener_insertSpan(), and doclistener_populateSpan().
| bool fl_BlockLayout::_doInsertFieldEndRun | ( | PT_BlockOffset | blockOffset | ) | [protected] |
References _breakLineAfterRun(), _doInsertRun(), and UT_ASSERT.
Referenced by doclistener_insertSpan(), and doclistener_populateSpan().
| bool fl_BlockLayout::_doInsertBookmarkRun | ( | PT_BlockOffset | blockOffset | ) | [protected] |
References _breakLineAfterRun(), _doInsertRun(), isContainedByTOC(), and UT_ASSERT.
Referenced by doclistener_insertObject(), doclistener_insertSpan(), doclistener_populateObject(), and doclistener_populateSpan().
| bool fl_BlockLayout::_doInsertHyperlinkRun | ( | PT_BlockOffset | blockOffset | ) | [protected] |
| bool fl_BlockLayout::_doInsertAnnotationRun | ( | PT_BlockOffset | blockOffset | ) | [protected] |
| bool fl_BlockLayout::_doInsertMathRun | ( | PT_BlockOffset | blockOffset, | |
| PT_AttrPropIndex | indexAP, | |||
| PL_ObjectHandle | oh | |||
| ) | [protected] |
References _doInsertRun(), isContainedByTOC(), UT_ASSERT, and xxx_UT_DEBUGMSG.
Referenced by doclistener_insertObject(), and doclistener_populateObject().
| bool fl_BlockLayout::_doInsertEmbedRun | ( | PT_BlockOffset | blockOffset, | |
| PT_AttrPropIndex | indexAP, | |||
| PL_ObjectHandle | oh | |||
| ) | [protected] |
References _doInsertRun(), isContainedByTOC(), UT_ASSERT, and xxx_UT_DEBUGMSG.
Referenced by doclistener_insertObject(), and doclistener_populateObject().
| bool fl_BlockLayout::_doInsertForcedColumnBreakRun | ( | PT_BlockOffset | blockOffset | ) | [protected] |
References _breakLineAfterRun(), _doInsertRun(), isContainedByTOC(), isLastRunInBlock(), and UT_ASSERT.
Referenced by doclistener_insertSpan(), and doclistener_populateSpan().
| bool fl_BlockLayout::_doInsertForcedPageBreakRun | ( | PT_BlockOffset | blockOffset | ) | [protected] |
References _breakLineAfterRun(), _doInsertRun(), fl_ContainerLayout::getLastContainer(), fl_ContainerLayout::getPrev(), isContainedByTOC(), isLastRunInBlock(), UT_ASSERT, and UT_DEBUGMSG.
Referenced by doclistener_insertSpan(), and doclistener_populateSpan().
| bool fl_BlockLayout::_doInsertTabRun | ( | PT_BlockOffset | blockOffset | ) | [protected] |
References _doInsertRun(), isContainedByTOC(), m_bPrevListLabel, UT_ASSERT, and xxx_UT_DEBUGMSG.
Referenced by doclistener_insertSpan(), and doclistener_populateSpan().
| bool fl_BlockLayout::_doInsertTOCTabRun | ( | PT_BlockOffset | blockOffset | ) | [protected] |
| bool fl_BlockLayout::_doInsertTOCListLabelRun | ( | PT_BlockOffset | blockOffset | ) | [protected] |
TOC List label run. It has zero length since it's not in the document.
References fp_Run::getLine(), fp_Run::insertIntoRunListBeforeThis(), fp_Line::insertRunBefore(), m_pFirstRun, and fp_Run::markWidthDirty().
Referenced by fl_TOCLayout::_createAndFillTOCEntry().
| bool fl_BlockLayout::_doInsertTOCHeadingRun | ( | PT_BlockOffset | blockOffset | ) | [protected] |
| bool fl_BlockLayout::_doInsertTOCListTabRun | ( | PT_BlockOffset | blockOffset | ) | [protected] |
Special TAB that follows a TOCListLabel. It has zero length since it's not in the document.
References fp_Run::getLine(), fp_Run::insertIntoRunListBeforeThis(), fp_Line::insertRunBefore(), m_pFirstRun, fp_Run::markWidthDirty(), and UT_ASSERT.
Referenced by fl_TOCLayout::_createAndFillTOCEntry().
| bool fl_BlockLayout::_doInsertImageRun | ( | PT_BlockOffset | blockOffset, | |
| FG_Graphic * | pFG, | |||
| PL_ObjectHandle | oh | |||
| ) | [protected] |
References _doInsertRun(), isContainedByTOC(), UT_ASSERT, and xxx_UT_DEBUGMSG.
Referenced by doclistener_insertObject(), and doclistener_populateObject().
| bool fl_BlockLayout::_doInsertFieldRun | ( | PT_BlockOffset | blockOffset, | |
| const PX_ChangeRecord_Object * | pcro | |||
| ) | [protected] |
References _doInsertRun(), fp_FieldRun::calculateValue(), gchar, PP_AttrProp::getAttribute(), PD_Document::getAttrProp(), FL_DocLayout::getDocument(), PX_ChangeRecord::getIndexAP(), fl_Layout::getSpanAttrProp(), isContainedByTOC(), m_bPrevListLabel, m_pLayout, recalculateFields(), UT_ASSERT, UT_ASSERT_NOT_REACHED, UT_return_val_if_fail, and xxx_UT_DEBUGMSG.
Referenced by doclistener_insertObject(), and doclistener_populateObject().
| bool fl_BlockLayout::_doInsertFieldTOCRun | ( | PT_BlockOffset | blockOffset | ) | [protected] |
| bool fl_BlockLayout::_doInsertDirectionMarkerRun | ( | PT_BlockOffset | blockOffset, | |
| UT_UCS4Char | iM | |||
| ) | [protected] |
References _breakLineAfterRun(), _doInsertRun(), UT_ASSERT, and xxx_UT_DEBUGMSG.
Referenced by doclistener_insertSpan(), and doclistener_populateSpan().
| bool fl_BlockLayout::_deleteFmtMark | ( | PT_BlockOffset | blockOffset | ) | [protected] |
Delete FmtMarkRun
| blockOffset | Offset of Run to delete |
FmtMarkRun should not have a length of zero - jskov
References _insertEndOfParagraphRun(), FPRUN_FMTMARK, fp_Run::getBlockOffset(), fp_Run::getLine(), fp_Run::getNextRun(), fp_Run::getType(), m_pFirstRun, fp_Line::removeRun(), fp_Run::unlinkFromRunList(), UT_ASSERT, and UT_SHOULD_NOT_HAPPEN.
Referenced by doclistener_deleteFmtMark().
| void fl_BlockLayout::_lookupProperties | ( | const PP_AttrProp * | pBlockAP | ) | [protected, virtual] |
this function is only to be called by fl_ContainerLayout::lookupProperties() all other code must call lookupProperties() instead
Implements fl_ContainerLayout.
References _deleteListLabel(), PD_Document::addList(), FL_DocLayout::addOrRemoveBlockFromTOC(), fp_TextRun::breakMeAtDirBoundaries(), buildTabStops(), UT_String::c_str(), DELETEP, GR_Graphics::DGP_PAPER, FB_ALIGNMENT_CENTER, FB_ALIGNMENT_JUSTIFY, FB_ALIGNMENT_LEFT, FB_ALIGNMENT_RIGHT, FL_CONTAINER_FOOTNOTE, FL_SECTION_HDRFTR, FPRUN_ENDOFPARAGRAPH, FPRUN_FIELD, FPRUN_TEXT, FV_Order_Logical_LTR, FV_Order_Visual, gchar, fl_ContainerLayout::getAP(), PP_AttrProp::getAttribute(), FV_View::getBidiOrder(), fl_ContainerLayout::getContainerType(), PP_PropertyTypeSize::getDim(), fl_ContainerLayout::getDocSectionLayout(), fp_FieldRun::getFieldType(), getFirstRun(), fl_ContainerLayout::getFoldedLevel(), FL_DocLayout::getGraphics(), fl_AutoNum::getID(), fl_ContainerLayout::getLastContainer(), fp_Line::getLastRun(), PD_Document::getListByID(), getListTypeFromStyle(), getNextList(), fp_Run::getNextRun(), fl_AutoNum::getParent(), getParentItem(), getPreviousList(), getProperty(), getPropertyType(),