#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_GrammarSquiggles, 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, and xxx_UT_DEBUGMSG.
| 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::_addBlockToPrevList | ( | fl_BlockLayout * | prevBlockInList, | |
| UT_uint32 | level | |||
| ) | [inline, protected] |
| 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::_assertRunListIntegrityImpl | ( | void | ) | const [protected] |
Assert integrity of the Run list Assert the following properties:
References 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::_breakLineAfterRun | ( | fp_Run * | pRun | ) | [protected] |
Split the line the Run resides on
| pRun | The Run to split the line after |
There is never added any Runs as it happened in the past to ensure that both lines can hold the point. This is because the caller always does that now.
References _assertRunListIntegrity(), _stuffAllRunsOnALine(), fp_Line::addRun(), fp_Container::getContainer(), fl_ContainerLayout::getFirstContainer(), fl_ContainerLayout::getLastContainer(), fp_Run::getLine(), fp_Container::getNext(), fp_Run::getNextRun(), fl_ContainerLayout::getPrev(), getSectionLayout(), fp_Line::layout(), fp_Line::removeRun(), fp_Line::setBlock(), fl_ContainerLayout::setLastContainer(), fp_Container::setNext(), fp_ContainerObject::setPrev(), fp_Container::setPrev(), UT_ASSERT, and xxx_UT_DEBUGMSG.
Referenced by _doInsertBookmarkRun(), _doInsertDirectionMarkerRun(), _doInsertFieldEndRun(), _doInsertFieldStartRun(), _doInsertForcedColumnBreakRun(), _doInsertForcedLineBreakRun(), and _doInsertForcedPageBreakRun().
| bool fl_BlockLayout::_canContainPoint | ( | ) | const [private, virtual] |
Reimplemented from fl_ContainerLayout.
References isContainedByTOC().
| bool fl_BlockLayout::_checkMultiWord | ( | UT_sint32 | iStart, | |
| UT_sint32 | eor, | |||
| bool | bToggleIP | |||
| ) | const [protected] |
| void fl_BlockLayout::_createListLabel | ( | void | ) | [protected] |
References FV_View::_setPoint(), PD_Document::changeSpanFmt(), FREEP, gchar, FV_View::getCharFormat(), FL_DocLayout::getDocument(), FV_View::getPoint(), getPosition(), fl_ContainerLayout::getSpanAP(), PD_Document::getUID(), getView(), PD_Document::insertObject(), PD_Document::insertSpan(), FV_View::isActive(), PD_Document::isDoingPaste(), isListLabelInBlock(), AD_Document::isOrigUUID(), FV_View::isPreview(), UT_UniqueId::List, m_bListLabelCreated, fl_Layout::m_pAutoNum, fl_Layout::m_pDoc, m_pFirstRun, m_pLayout, PTC_AddFmt, PTO_Field, FV_View::updateCarets(), UT_ASSERT, UT_return_if_fail, and xxx_UT_DEBUGMSG.
Referenced by listUpdate().
| bool fl_BlockLayout::_delete | ( | PT_BlockOffset | blockOffset, | |
| UT_uint32 | len | |||
| ) | [protected] |
References _assertRunListIntegrity(), _insertEndOfParagraphRun(), fp_TextRun::breakMeAtDirBoundaries(), DELETEP, FPRUN_FORCEDCOLUMNBREAK, 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::_deleteFmtMark | ( | PT_BlockOffset | blockOffset | ) | [protected] |
Delete FmtMarkRun
| blockOffset | Offset of Run to delete |
Deleting a FmtMarkRun is a special version of _delete() since a FmtMarkRun has a length of zero.
FmtMarkRun should not have a length of zero - jskov
References _insertEndOfParagraphRun(), 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::_deleteListLabel | ( | void | ) | [protected] |
References PD_Document::deleteSpan(), fp_Run::getBlockOffset(), FL_DocLayout::getDocument(), fp_FieldRun::getFieldType(), getFirstRun(), fp_Run::getNextRun(), getPosition(), fp_Run::getType(), AD_Document::isOrigUUID(), m_bListLabelCreated, and m_pLayout.
Referenced by _lookupProperties(), and deleteListLabel().
| 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::_doInsertAnnotationRun | ( | PT_BlockOffset | blockOffset | ) | [protected] |
References _doInsertRun(), _finishInsertHyperlinkedNewRun(), isContainedByTOC(), and UT_ASSERT.
Referenced by doclistener_insertObject(), and doclistener_populateObject().
| 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::_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::_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::_doInsertFieldEndRun | ( | PT_BlockOffset | blockOffset | ) | [protected] |
References _breakLineAfterRun(), _doInsertRun(), and UT_ASSERT.
Referenced by doclistener_insertSpan(), and doclistener_populateSpan().
| 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::_doInsertFieldStartRun | ( | PT_BlockOffset | blockOffset | ) | [protected] |
References _breakLineAfterRun(), _doInsertRun(), and UT_ASSERT.
Referenced by doclistener_insertSpan(), and doclistener_populateSpan().
| bool fl_BlockLayout::_doInsertFieldTOCRun | ( | PT_BlockOffset | blockOffset | ) | [protected] |
References _doInsertRun().
Referenced by fl_TOCLayout::_createAndFillTOCEntry().
| 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::_doInsertForcedLineBreakRun | ( | PT_BlockOffset | blockOffset | ) | [protected] |
References _breakLineAfterRun(), _doInsertRun(), isContainedByTOC(), 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::_doInsertHyperlinkRun | ( | PT_BlockOffset | blockOffset | ) | [protected] |
References _doInsertRun(), _finishInsertHyperlinkedNewRun(), isContainedByTOC(), and UT_ASSERT.
Referenced by doclistener_insertObject(), and doclistener_populateObject().
| 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::_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::_doInsertRDFAnchorRun | ( | PT_BlockOffset | blockOffset | ) | [protected] |
Note that _doInsertHyperlinkRun(), _doInsertAnnotationRun, and _doInsertRDFAnchorRun() all work on contained information.
Each of these methods use setHyperlink() on the runs.
References _doInsertRun(), _finishInsertHyperlinkedNewRun(), isContainedByTOC(), and UT_ASSERT.
Referenced by doclistener_insertObject(), and doclistener_populateObject().
| bool fl_BlockLayout::_doInsertRun | ( | fp_Run * | pNewRun | ) | [protected] |
References _assertRunListIntegrity(), fp_Line::assertLineListIntegrity(), 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(), _doInsertRDFAnchorRun(), _doInsertTabRun(), _doInsertTextSpan(), _doInsertTOCTabRun(), and doclistener_insertFmtMark().
| 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::_doInsertTextSpan | ( | PT_BlockOffset | blockOffset, | |
| UT_uint32 | len | |||
| ) | [protected] |
References _doInsertRun(), 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::_doInsertTOCHeadingRun | ( | 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::_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::_doInsertTOCTabRun | ( | PT_BlockOffset | blockOffset | ) | [protected] |
References _doInsertRun(), and UT_ASSERT.
Referenced by fl_TOCLayout::_createAndFillTOCEntry().
| void fl_BlockLayout::_finishInsertHyperlinkedNewRun | ( | PT_BlockOffset | blockOffset, | |
| fp_HyperlinkRun * | pNewRun | |||
| ) | [protected] |
References FPRUN_HYPERLINK, fp_Run::getNextRun(), fp_Run::getType(), fp_HyperlinkRun::isStartOfHyperlink(), fp_Run::setHyperlink(), and UT_ASSERT.
Referenced by _doInsertAnnotationRun(), _doInsertHyperlinkRun(), and _doInsertRDFAnchorRun().
| UT_uint32 fl_BlockLayout::_getLastChar | ( | ) | [protected] |
| void fl_BlockLayout::_insertEndOfParagraphRun | ( | void | ) | [protected] |
Add end-of-paragraph Run to block
This function adds the EOP Run to the block. The presence of the EOP is an invariant (except for when merging / splitting blocks) and ensures that the cursor can always be placed on the last line of a block. If there are multiple lines, the first N-1 lines will have a forced break of some kind which can also hold the cursor.
References _assertRunListIntegrity(), fp_Line::addRun(), fp_Line::countRuns(), FP_HIDDEN_FOLDED, FP_HIDDEN_REVISION, FP_HIDDEN_REVISION_AND_TEXT, FP_HIDDEN_TEXT, fl_ContainerLayout::getFirstContainer(), getNewContainer(), FV_View::getShowPara(), getView(), fl_ContainerLayout::isHidden(), fp_Line::layout(), m_bIsCollapsed, m_bNeedsRedraw, m_pFirstRun, and UT_ASSERT.
Referenced by _delete(), _deleteFmtMark(), doclistener_insertBlock(), fl_BlockLayout(), and format().
| void fl_BlockLayout::_lookupMarginProperties | ( | const PP_AttrProp * | pBlockAP | ) | [protected, virtual] |
this function is only to be called by fl_ContainerLayout::lookupMarginProperties() all other code must call lookupMarginProperties() instead
This function looks up the block margins and handles the values appropriately to the type of current view mode
Reimplemented from fl_ContainerLayout.
References UT_String::c_str(), collapse(), GR_Graphics::DGP_PAPER, fl_ContainerLayout::getContainerType(), PP_PropertyTypeSize::getDim(), FL_DocLayout::getGraphics(), fl_ContainerLayout::getNthFrameLayout(), fl_ContainerLayout::getNumFrames(), getProperty(), getPropertyType(), getTextIndent(), PP_PropertyTypeSize::getValue(), getView(), FV_View::getViewMode(), fl_ContainerLayout::isHidden(), fl_ContainerLayout::lookupMarginProperties(), m_dLineSpacing, m_eSpacingPolicy, m_iBottomMargin, m_iLeftMargin, m_iRightMargin, m_iTextIndent, m_iTopMargin, m_pLayout, fl_ContainerLayout::myContainingLayout(), Property_type_size, GR_Graphics::queryProperties(), UT_ASSERT, UT_ASSERT_HARMLESS, UT_convertDimensionless(), UT_convertSizeToLayoutUnits(), UT_convertToLogicalUnits(), UT_hasDimensionComponent(), UT_return_if_fail, UT_SHOULD_NOT_HAPPEN, and xxx_UT_DEBUGMSG.
| 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, 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(), PP_AttrProp::getProperty(), getProperty(), getPropertyType(), GR_Graphics::getResolution(), getSectionLayout(), fl_Layout::getStruxDocHandle(), getTextIndent(), fl_SectionLayout::getType(), fb_Alignment::getType(), fp_Run::getType(), PP_PropertyTypeSize::getValue(), PP_PropertyTypeInt::getValue(), getView(), FV_View::getViewMode(), GR_Graphics::getZoomPercentage(), id, fl_AutoNum::insertFirstItem(), fl_AutoNum::insertItem(), fl_AutoNum::isEmpty(), fl_AutoNum::isItem(), isNotTOCable(), fp_Run::lookupProperties(), m_bCanMergeBordersWithNext, m_bHasBorders, m_bIsTOC, m_bKeepTogether, m_bKeepWithNext, m_bListItem, m_bStartList, m_bStopList, m_bStyleInTOC, m_dLineSpacing, m_eSpacingPolicy, m_iBottomMargin, m_iDefaultTabInterval, m_iDomDirection, m_iLeftMargin, m_iOrphansProperty, m_iPattern, m_iRightMargin, m_iTextIndent, m_iTopMargin, m_iWidowsProperty, m_lineBottom, m_lineLeft, m_lineRight, m_lineTop, m_pAlignment, fl_Layout::m_pAutoNum, fl_Layout::m_pDoc, m_pLayout, m_pSectionLayout, m_ShadingBackColor, m_ShadingForeColor, m_szStyle, PP_PropertyMap::Line::m_t_linestyle, m_vecTabs, fl_AutoNum::markAsDirty(), fl_ContainerLayout::myContainingLayout(), PP_evalProperty(), fl_AutoNum::prependItem(), Property_type_int, Property_type_size, PT_LEVEL_ATTRIBUTE_NAME, PT_LISTID_ATTRIBUTE_NAME, PT_PARENTID_ATTRIBUTE_NAME, PT_STYLE_ATTRIBUTE_NAME, GR_Graphics::queryProperties(), FL_DocLayout::removeBlockFromTOC(), fl_AutoNum::removeItem(), PD_Document::removeList(), s_border_properties(), UT_RGBColor::setColor(), fp_Run::setDirection(), fp_Run::setVisDirection(), style, fl_AutoNum::update(), UT_ASSERT, UT_ASSERT_HARMLESS, UT_BIDI_IGNORE, UT_BIDI_LTR, UT_BIDI_UNSET, UT_convertDimensionless(), UT_convertSizeToLayoutUnits(), UT_convertToLogicalUnits(), UT_DEBUGMSG, UT_hasDimensionComponent(), UT_return_if_fail, UT_SHOULD_NOT_HAPPEN, and xxx_UT_DEBUGMSG.
| void fl_BlockLayout::_mergeRuns | ( | fp_Run * | pFirstRunToMerge, | |
| fp_Run * | pLastRunToMerge | |||
| ) | const [protected] |
References _assertRunListIntegrity(), fp_Run::getNextRun(), fp_Run::getType(), fp_TextRun::mergeWithNext(), and UT_ASSERT.
Referenced by coalesceRuns().
| static void fl_BlockLayout::_prefsListener | ( | XAP_Prefs * | pPrefs, | |
| UT_StringPtrMap * | , | |||
| void * | data | |||
| ) | [static, protected] |
| void fl_BlockLayout::_prependBlockToPrevList | ( | fl_BlockLayout * | nextBlockInList | ) | [inline, protected] |
| void fl_BlockLayout::_purgeEndOfParagraphRun | ( | void | ) | [protected] |
Remove end-of-paragraph Run from block
This function does the opposite of the _insertEndOfParagraphRun function.
References _assertRunListIntegrity(), FPRUN_ENDOFPARAGRAPH, fl_ContainerLayout::getFirstContainer(), fp_Run::getType(), m_pFirstRun, fl_ContainerLayout::setFirstContainer(), fl_ContainerLayout::setLastContainer(), and UT_ASSERT.
Referenced by doclistener_insertBlock().
| void fl_BlockLayout::_purgeLine | ( | fp_Line * | pLine | ) | [protected] |
References fl_ContainerLayout::getFirstContainer(), fl_ContainerLayout::getLastContainer(), fl_ContainerLayout::getNext(), fl_ContainerLayout::getPrev(), fp_Line::remove(), fp_Line::setBlock(), fl_ContainerLayout::setFirstContainer(), fl_ContainerLayout::setLastContainer(), and UT_ASSERT.
Referenced by purgeLayout().
| void fl_BlockLayout::_removeAllEmptyLines | ( | void | ) | [protected] |
References _removeLine(), fl_ContainerLayout::getFirstContainer(), fp_Container::getNext(), and fp_Line::isEmpty().
Referenced by _truncateLayout(), format(), and formatWrappedFromHere().
| void fl_BlockLayout::_removeLine | ( | fp_Line * | pLine, | |
| bool | bRemoveFromContainer, | |||
| bool | bReCalc | |||
| ) | [protected] |
References fp_ContainerObject::canDelete(), findLineInBlock(), fp_Container::getContainer(), getDocSectionLayout(), fl_ContainerLayout::getFirstContainer(), fl_ContainerLayout::getLastContainer(), fl_ContainerLayout::getNext(), fl_ContainerLayout::getPrev(), m_pLayout, fp_Container::recalcMaxWidth(), fp_Line::remove(), fp_VerticalContainer::removeContainer(), fp_Line::setBlock(), fp_Line::setContainer(), fl_ContainerLayout::setFirstContainer(), fl_ContainerLayout::setLastContainer(), FL_DocLayout::setRebuiltBlock(), UT_ASSERT, and xxx_UT_DEBUGMSG.
Referenced by _removeAllEmptyLines(), fb_LineBreaker::breakParagraph(), collapse(), and formatWrappedFromHere().
| void fl_BlockLayout::_stuffAllRunsOnALine | ( | void | ) | [protected] |
Move all Runs in the block onto a new line. This is only called during block creation when there are no existing lines in the block.
References fp_Line::addRun(), FPRUN_TEXT, fp_Container::getContainer(), fp_Run::getDirection(), fl_ContainerLayout::getFirstContainer(), fl_SectionLayout::getNewContainer(), getNewContainer(), fp_Run::getNextRun(), fp_Run::getType(), fp_VerticalContainer::getWidth(), fp_VerticalContainer::insertContainer(), fp_Run::lookupProperties(), m_pFirstRun, m_pSectionLayout, fp_Line::recalcMaxWidth(), fp_Run::setVisDirection(), UT_ASSERT, UT_BIDI_IS_STRONG, UT_BIDI_UNSET, UT_return_if_fail, and xxx_UT_DEBUGMSG.
Referenced by _breakLineAfterRun(), doclistener_insertBlock(), and format().
| bool fl_BlockLayout::_truncateLayout | ( | fp_Run * | pTruncRun | ) | [protected] |
Truncate layout from the specified Run
| pTruncRun | First Run to be truncated |
This will remove all Runs starting from pTruncRun to the last Run on the block from their lines (and delete them from the display).
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::addBackgroundCheckReason | ( | UT_uint32 | reason | ) | [inline] |
| 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(), 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().
| bool fl_BlockLayout::canMergeBordersWithNext | ( | void | ) | const |
| bool fl_BlockLayout::canMergeBordersWithPrev | ( | void | ) | const |
| void fl_BlockLayout::clearHdrFtr | ( | void | ) | [inline] |
| void fl_BlockLayout::clearPrint | ( | void | ) | const |
References fp_Run::clearPrint(), getFirstRun(), and fp_Run::getNextRun().
Referenced by FL_DocLayout::setQuickPrint().
| void fl_BlockLayout::clearScreen | ( | GR_Graphics * | ) | const |
| void fl_BlockLayout::coalesceRuns | ( | void | ) | const |
References _assertRunListIntegrity(), _mergeRuns(), fp_Line::coalesceRuns(), 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::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().
| 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.
| FL_ListType fl_BlockLayout::decodeListType | ( | char * | listformat | ) | const |
References fl_AutoLists::getFmtList(), and fl_AutoLists::getFmtListsSize().
| void fl_BlockLayout::deleteListLabel | ( | void | ) |
References _deleteListLabel().
Referenced by FV_View::insertParagraphBreak().
| void fl_BlockLayout::dequeueFromSpellCheck | ( | void | ) |
References m_nextToSpell, m_pLayout, m_prevToSpell, FL_DocLayout::setSpellQueueHead(), and FL_DocLayout::setSpellQueueTail().
Referenced by main(), FL_DocLayout::notifyBlockIsBeingDeleted(), and ~fl_BlockLayout().
| void fl_BlockLayout::dequeueFromSpellCheck | ( | void | ) |
| bool fl_BlockLayout::doclistener_changeFmtMark | ( | const PX_ChangeRecord_FmtMarkChange * | pcrfmc | ) |
References _assertRunListIntegrity(), fp_Run::clearScreen(), format(), 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.
| bool fl_BlockLayout::doclistener_changeObject | ( | const PX_ChangeRecord_ObjectChange * | pcroc | ) |
References _assertRunListIntegrity(), fp_Run::clearScreen(), format(), 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_changeSpan | ( | const PX_ChangeRecord_SpanChange * | pcrsc | ) |
Change runs in the given span
| pcrsc | Specifies the span |
This function makes all fp_Run objects within the given span lookup new properties and recalculate their width. Runs at the ends of the span that extend over the span border will be split, so runs fall entirely inside or outside of the span.
References _assertRunListIntegrity(), UT_GenericVector< T >::addItem(), UT_GenericVector< T >::clear(), fp_Line::clearScreen(), UT_GenericVector< T >::findItem(), format(), 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, fp_TextRun::split(), updateEnclosingBlockIfNeeded(), UT_ASSERT, UT_return_val_if_fail, and UT_SHOULD_NOT_HAPPEN.
| 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, 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_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_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, PTO_RDFAnchor, 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_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, FV_View::updateCarets(), updateEnclosingBlockIfNeeded(), UT_ASSERT, UT_return_val_if_fail, and xxx_UT_DEBUGMSG.
Referenced by doclistener_deleteSpan().
| 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_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(), purgeLayout(), 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_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(), 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(), 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_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(), 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_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.
| 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_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, 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(), _doInsertRDFAnchorRun(), 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, PTO_RDFAnchor, FV_View::updateCarets(), updateEnclosingBlockIfNeeded(), UT_ASSERT_HARMLESS, UT_DEBUGMSG, and UT_SHOULD_NOT_HAPPEN.
Referenced by doclistener_insertObject().
| 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_ENDNOTE, FL_CONTAINER_FOOTNOTE, FL_CONTAINER_TOC, 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, 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.
| 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(), 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, 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().
| 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_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, FV_View::updateCarets(), updateEnclosingBlockIfNeeded(), UT_ASSERT, and UT_UNUSED.
| bool fl_BlockLayout::doclistener_populateObject | ( | PT_BlockOffset | blockOffset, | |
| const PX_ChangeRecord_Object * | pcro | |||
| ) |
References _assertRunListIntegrity(), _doInsertAnnotationRun(), _doInsertBookmarkRun(), _doInsertEmbedRun(), _doInsertFieldRun(), _doInsertHyperlinkRun(), _doInsertImageRun(), _doInsertMathRun(), _doInsertRDFAnchorRun(), 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, PTO_RDFAnchor, updateEnclosingBlockIfNeeded(), UT_ASSERT, UT_DEBUGMSG, UT_SHOULD_NOT_HAPPEN, and xxx_UT_DEBUGMSG.
| 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.
| void fl_BlockLayout::enqueueToSpellCheckAfter | ( | fl_BlockLayout * | prev | ) |
| void fl_BlockLayout::enqueueToSpellCheckAfter | ( | fl_BlockLayout * | prev | ) |
References m_nextToSpell, m_pLayout, m_prevToSpell, FL_DocLayout::setSpellQueueHead(), FL_DocLayout::setSpellQueueTail(), and FL_DocLayout::spellQueueHead().
Referenced by main().
References fl_ContainerLayout::getFirstContainer(), and fp_Container::getNext().
Referenced by _removeLine(), fp_Run::clearIfNeeded(), collapse(), getNewContainer(), getNextWrappedLine(), and fp_Page::updatePageForWrapping().
References 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.
| bool fl_BlockLayout::findNextTabStop | ( | UT_sint32 | iStartX, | |
| UT_sint32 | iMaxX, | |||
| UT_sint32 & | iPosition, | |||
| eTabType & | iType, | |||
| eTabLeader & | iLeader | |||
| ) | const |
References 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().
| 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(), 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().
| bool fl_BlockLayout::findPrevTabStop | ( | UT_sint32 | iStartX, | |
| UT_sint32 | iMaxX, | |||
| UT_sint32 & | iPosition, | |||
| eTabType & | iType, | |||
| eTabLeader & | iLeader | |||
| ) | const |
References 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().
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(), AP_Dialog_Paragraph::_createPreviewFromGC(), 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().
| 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().
| 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(), FL_CONTAINER_CELL, FL_CONTAINER_DOCSECTION, FL_CONTAINER_FRAME, fl_ContainerLayout::format(), FP_HIDDEN_FOLDED, 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(), 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().
| void fl_BlockLayout::formatAll | ( | void | ) |
References format(), and m_iNeedsReformat.
Reformat a block from the line given.
References _removeAllEmptyLines(), _removeLine(), fp_Line::addRun(), fb_LineBreaker::breakParagraph(), fp_Container::findCon(), 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().
| UT_sint32 fl_BlockLayout::getAccumHeight | ( | void | ) | const [inline] |
| fb_Alignment* fl_BlockLayout::getAlignment | ( | void | ) | const [inline] |
| 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().
| const PP_PropertyMap::Line& fl_BlockLayout::getBottom | ( | ) | const [inline] |
| UT_sint32 fl_BlockLayout::getBottomMargin | ( | void | ) | const [inline] |
Referenced by fp_Line::getMarginAfter().
| UT_sint32 fl_BlockLayout::getDefaultTabInterval | ( | void | ) | const [inline] |
Referenced by FV_View::getTopRulerInfo().
| 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_RDFAnchorRun::_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::displayRDFAnchors(), 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().
| 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_CELL, FL_SECTION_DOC, 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().
| 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().
| 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_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().
| 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_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_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().
| 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().
| char * fl_BlockLayout::getFormatFromListType | ( | FL_ListType | iListType | ) | const |
References fl_AutoLists::getFmtList(), and NOT_A_LIST.
| 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().
| const PP_PropertyMap::Line& fl_BlockLayout::getLeft | ( | ) | const [inline] |
| UT_sint32 fl_BlockLayout::getLeftMargin | ( | void | ) | const [inline] |
| 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().
| 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(), and fl_Layout::m_pDoc.
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().
| UT_uint32 fl_BlockLayout::getLevel | ( | void | ) | const |
| void fl_BlockLayout::getLineSpacing | ( | double & | dSpacing, | |
| eSpacingPolicy & | eSpacing | |||
| ) | const |
References m_dLineSpacing, and m_eSpacingPolicy.
Referenced by fp_Line::recalcHeight().
| 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().
| 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::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().
| 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::getListType | ( | void | ) | const |
References fl_Layout::getAutoNum(), fl_AutoNum::getType(), and isListItem().
Referenced by FV_View::_charInsert(), and Defun_EV_GetToolbarItemState_Fn().
| FL_ListType fl_BlockLayout::getListTypeFromStyle | ( | const gchar * | style | ) | const |
| UT_sint32 fl_BlockLayout::getMaxNonBreakableRun | ( | void | ) | const |
| 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().
| fp_Container * fl_BlockLayout::getNewContainer | ( | fp_Container * | pCon = NULL |
) | [virtual] |
Implements fl_ContainerLayout.
References findLineInBlock(), 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().
| 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::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().
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 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().
| 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().
| UT_sint32 fl_BlockLayout::getPattern | ( | void | ) | const |
References m_iPattern.
Referenced by fp_Line::draw(), and fp_Line::setBlock().
| 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_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(), AP_Dialog_Paragraph::_createPreviewFromGC(), fp_FieldRun::_defaultDraw(), FV_View::_deleteBookmark(), FV_View::_deleteHyperlink(), _deleteListLabel(), FV_View::_deleteSelection(), FV_View::_deleteXMLID(), fp_TextRun::_draw(), fp_ImageRun::_draw(), fp_EndOfParagraphRun::_draw(), fp_BookmarkRun::_draw(), fp_ForcedLineBreakRun::_draw(), fp_TabRun::_draw(), fp_RDFAnchorRun::_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::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(), FV_View::getCmdInsertRangeVariables(), 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().
| 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().
| bool fl_BlockLayout::getProp_KeepTogether | ( | void | ) | const [inline] |
Referenced by fb_ColumnBreaker::_breakSection().
| bool fl_BlockLayout::getProp_KeepWithNext | ( | void | ) | const [inline] |
| 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().
| 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(), AP_Dialog_Border_Shading::setCurBlockProps(), 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().
| const PP_PropertyMap::Line& fl_BlockLayout::getRight | ( | ) | const [inline] |
| UT_sint32 fl_BlockLayout::getRightMargin | ( | void | ) | const [inline] |
| 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().
| const UT_RGBColor fl_BlockLayout::getShadingingBackColor | ( | void | ) | const |
References m_ShadingBackColor.
| const UT_RGBColor fl_BlockLayout::getShadingingForeColor | ( | void | ) | const |
References m_ShadingForeColor.
Referenced by fp_Line::setBlock().
| 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::getTabsCount | ( | void | ) | const [inline] |
Referenced by FV_View::getTopRulerInfo().
| UT_sint32 fl_BlockLayout::getTextIndent | ( | void | ) | const |
References 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(), canMergeBordersWithNext(), canMergeBordersWithPrev(), findNextTabStop(), findPrevTabStop(), formatWrappedFromHere(), fp_Line::genOverlapRects(), fp_Line::getLeftEdge(), getLeftRightForWrapping(), getNextWrappedLine(), FV_View::getTopRulerInfo(), and fp_Line::recalcMaxWidth().
| FootnoteType fl_BlockLayout::getTOCNumType | ( | void | ) | const |
References 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_ContainerLayout::getContainerType(), getSectionLayout(), fl_TOCLayout::getTabLeader(), m_bIsTOC, m_iTOCLevel, and UT_ASSERT.
Referenced by fp_Line::_calculateWidthOfRun().
References fl_ContainerLayout::getContainerType(), getSectionLayout(), fl_TOCLayout::getTabPosition(), m_bIsTOC, m_iTOCLevel, and UT_ASSERT.
Referenced by fp_Line::_calculateWidthOfRun().
| const PP_PropertyMap::Line& fl_BlockLayout::getTop | ( | ) | const [inline] |
| UT_sint32 fl_BlockLayout::getTopMargin | ( | void | ) | const [inline] |
Referenced by fp_Line::getMarginBefore().
| FV_View* fl_BlockLayout::getView | ( | void | ) | const [inline] |
References UT_return_val_if_fail.