#include <fl_BlockLayout.h>
fl_BlockLayout::fl_BlockLayout | ( | pf_Frag_Strux * | 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(), hasBorders(), 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(), setLineHeightBlockWithBorders(), 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(), 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, UT_std_string_sprintf(), 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 | ( | const fl_PartOfBlockPtr & | 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, | |||
pf_Frag_Object * | 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_GraphicPtr && | pFG, | |||
pf_Frag_Object * | 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, | |||
pf_Frag_Object * | 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] |
References fp_Run::getLine(), fp_Run::insertIntoRunListBeforeThis(), fp_Line::insertRunBefore(), m_pFirstRun, and fp_Run::markWidthDirty().
Referenced by fl_TOCLayout::fillTOC().
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(), 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_ContainerLayout::getLastContainer(), fp_Line::getLastRun(), PD_Document::getListByID(), getListTypeFromStyle(), getNextList(), fp_Run::getNextRun(), 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, 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_ContainerLayout::myContainingLayout(), PP_evalProperty(), 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(), PD_Document::removeList(), s_border_properties(), UT_RGBColor::setColor(), fp_Run::setDirection(), fp_Run::setVisDirection(), style, 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(), hasBorders(), m_pLayout, fp_Container::recalcMaxWidth(), fp_Line::remove(), fp_VerticalContainer::removeContainer(), fp_Line::setBlock(), fp_Line::setContainer(), fl_ContainerLayout::setFirstContainer(), fl_ContainerLayout::setLastContainer(), setLineHeightBlockWithBorders(), 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 |
References FL_CONTAINER_BLOCK, getBottom(), fl_ContainerLayout::getContainerType(), getLeft(), getLeftMargin(), fl_ContainerLayout::getNext(), getRight(), getRightMargin(), getTextIndent(), getTop(), and m_bCanMergeBordersWithNext.
Referenced by fp_Line::canDrawTopBorder(), and doclistener_changeStrux().
bool fl_BlockLayout::canMergeBordersWithPrev | ( | void | ) | const |
References FL_CONTAINER_BLOCK, getBottom(), fl_ContainerLayout::getContainerType(), getLeft(), getLeftMargin(), fl_ContainerLayout::getPrev(), getRight(), getRightMargin(), getTextIndent(), getTop(), and m_bCanMergeBordersWithNext.
Referenced by fp_Line::canDrawBotBorder(), and doclistener_changeStrux().
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(), 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(), canMergeBordersWithNext(), canMergeBordersWithPrev(), clearScreen(), collapse(), format(), getDocSectionLayout(), fl_ContainerLayout::getFirstContainer(), FL_DocLayout::getGraphics(), PX_ChangeRecord::getIndexAP(), fl_ContainerLayout::getNext(), fp_Container::getNext(), fp_Run::getNextRun(), fp_Container::getPage(), fl_ContainerLayout::getPrev(), fl_ContainerLayout::getPrevBlockInDocument(), PX_ChangeRecord::getType(), hasBorders(), 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(), setLineHeightBlockWithBorders(), 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, 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(), 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(), 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, | |
pf_Frag_Strux * | sdh, | |||
PL_ListenerId | lid, | |||
void(*)(pf_Frag_Strux *sdhNew, PL_ListenerId lid, fl_ContainerLayout *sfhNew) | pfnBindHandles | |||
) |
References _assertRunListIntegrity(), _insertEndOfParagraphRun(), _purgeEndOfParagraphRun(), FV_View::_setPoint(), _stuffAllRunsOnALine(), _truncateLayout(), fl_ContainerLayout::addFrame(), fp_Line::addRun(), UT_String::c_str(), PD_Document::changeStruxFmt(), coalesceRuns(), collapse(), DIM_IN, FL_DocLayout::findPage(), gchar, fl_ContainerLayout::getAP(), fp_Run::getBlockOffset(), fp_Line::getColumn(), fl_ContainerLayout::getContainerType(), getDocLayout(), fl_ContainerLayout::getFirstContainer(), fl_FrameLayout::getFramePositionTo(), fp_Line::getHeight(), PX_ChangeRecord::getIndexAP(), fl_ContainerLayout::getLastContainer(), fp_Run::getLength(), fp_Run::getLine(), fp_Line::getMarginAfter(), fl_ContainerLayout::getNext(), fp_Run::getNextRun(), fl_ContainerLayout::getNthFrameLayout(), fl_ContainerLayout::getNumFrames(), fp_FrameContainer::getPage(), fp_Line::getPage(), FV_View::getPoint(), fl_ContainerLayout::getPosition(), getPosition(), PX_ChangeRecord::getPosition(), fl_ContainerLayout::getPrev(), fp_Container::getPrev(), fp_Run::getPrevRun(), PP_AttrProp::getProperty(), getSectionLayout(), PX_ChangeRecord_Strux::getStruxType(), fp_Run::getType(), PX_ChangeRecord::getType(), getView(), fp_ContainerObject::getWidth(), fp_FrameContainer::getX(), fp_ContainerObject::getX(), fp_Line::getX(), fp_FrameContainer::getY(), fp_ContainerObject::getY(), fp_Line::getY(), FV_View::isActive(), PD_Document::isDoingTheDo(), isHdrFtr(), FV_View::isPreview(), fl_Layout::m_pDoc, m_pFirstRun, m_pLayout, fl_ContainerLayout::myContainingLayout(), PTC_AddFmt, PTX_SectionFrame, FL_DocLayout::relocateFrame(), fl_ContainerLayout::removeFrame(), fp_Run::setBlockOffset(), setHdrFtr(), setNeedsReformat(), fp_Run::setNextRun(), fp_Run::setPrevRun(), shuffleEmbeddedIfNeeded(), FV_View::updateCarets(), updateEnclosingBlockIfNeeded(), UT_ASSERT, UT_convertToInches(), UT_DEBUGMSG, UT_formatDimensionString(), UT_return_val_if_fail, UT_SHOULD_NOT_HAPPEN, and xxx_UT_DEBUGMSG.
bool fl_BlockLayout::doclistener_insertFirstBlock | ( | const PX_ChangeRecord_Strux * | pcrx, | |
pf_Frag_Strux * | sdh, | |||
PL_ListenerId | lid, | |||
void(*)(pf_Frag_Strux *sdhNew, PL_ListenerId lid, fl_ContainerLayout *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, | |||
pf_Frag_Strux * | sdh, | |||
PL_ListenerId | lid, | |||
void(*)(pf_Frag_Strux *sdhNew, PL_ListenerId lid, fl_ContainerLayout *sfhNew) | pfnBindHandles | |||
) |
Insert a Frame after this block.
References _assertRunListIntegrity(), FV_View::_setPoint(), fl_DocSectionLayout::completeBreakSection(), FL_SECTION_FRAME, format(), PD_Document::getBounds(), getDocSectionLayout(), 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_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, | |||
pf_Frag_Strux * | sdh, | |||
PL_ListenerId | lid, | |||
void(*)(pf_Frag_Strux *sdhNew, PL_ListenerId lid, fl_ContainerLayout *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, | |||
pf_Frag_Strux * | sdh, | |||
PL_ListenerId | lid, | |||
void(*)(pf_Frag_Strux *sdhNew, PL_ListenerId lid, fl_ContainerLayout *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::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(), s_doFormatImageDlg(), 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_bForceSectionBreak, 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, 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(), 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(), doclistener_insertBlock(), 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(), 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(), s_doFormatImageDlg(), 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_TOCLayout::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 | ( | bool | b_withMargins = true |
) |
Calculate the height of the all the text contained by this block
References fl_ContainerLayout::getFirstContainer(), fp_Line::getHeight(), fp_Line::getMarginAfter(), fp_Line::getMarginBefore(), fp_Container::getNext(), and fp_Line::isSameYAsPrevious().
Referenced by FV_View::cmdCharDelete(), and 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::cmdCharDelete(), FV_View::cmdInsertHyperlink(), FV_View::countWords(), 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 | ( | PP_PropertyVector & | va | ) | const |
const UT_UCSChar * fl_BlockLayout::getListLabel | ( | void | ) | const |
References fl_Layout::getStruxDocHandle(), and fl_Layout::m_pAutoNum.
Referenced by fp_FieldListLabelRun::calculateValue(), and AP_Dialog_Lists::PopulateDialogData().
void fl_BlockLayout::getListPropertyVector | ( | PP_PropertyVector & | vp | ) | const |
References 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(), 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_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, | |||
UT_uint32 | iDelim | |||
) | 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 | |
delim,: | use tab (0), comma (1), space (2) or all (>2) as delimiters |
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.
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 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_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::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(), Defun_EV_GetToolbarItemState_Fn(), doclistener_insertBlock(), doclistener_insertSection(), doclistener_insertSpan(), FV_View::doesSelectionContainRevision(), fl_TOCLayout::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(), FV_View::insertAnnotationDescription(), 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(), FL_DocLayout::relocateFrame(), remItemFromList(), resumeList(), AP_Dialog_Spell::runModal(), s_doFormatImageDlg(), s_doHyperlinkDlg(), FV_View::selectAnnotation(), FV_View::setBlockFormat(), FV_View::setCellFormat(), 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_ContainerLayout::getPrevBlockInDocument(), fl_Layout::getStruxDocHandle(), isFirstInList(), 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().
std::unique_ptr< 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] |
Referenced by canMergeBordersWithNext(), canMergeBordersWithPrev(), formatWrappedFromHere(), fp_Line::genOverlapRects(), fp_Line::getAbsLeftRight(), getLeftRightForWrapping(), getNextWrappedLine(), fp_Line::getRightEdge(), FV_View::getTopRulerInfo(), fp_Line::recalcMaxWidth(), and s_doFormatImageDlg().
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(), fl_DocListener::change(), 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_TOCLayout::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.
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().
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_Container::getNext(), and fp_Line::isSameYAsPrevious().
Referenced by FV_FrameEdit::getFrameStrings(), and s_doFormatImageDlg().
bool fl_BlockLayout::hasBackgroundCheckReason | ( | UT_uint32 | reason | ) | const [inline] |
Referenced by FL_DocLayout::getSmartQuotes().
bool fl_BlockLayout::hasBorders | ( | void | ) | const |
References m_bHasBorders.
Referenced by _removeLine(), doclistener_changeStrux(), fl_BlockLayout(), fl_ContainerLayout::remove(), and fp_Line::setContainer().
bool fl_BlockLayout::hasUpdatableField | ( | void | ) | [inline] |
virtual bool fl_BlockLayout::isCollapsed | ( | void | ) | const [inline, virtual] |
Implements fl_ContainerLayout.
Referenced by fl_FrameLayout::format().
bool fl_BlockLayout::isContainedByTOC | ( | void | ) | const [inline] |
Referenced by _assertRunListIntegrityImpl(), _canContainPoint(), fp_FieldRun::_defaultDraw(), _doInsertAnnotationRun(), _doInsertBookmarkRun(), _doInsertEmbedRun(), _doInsertFieldRun(), _doInsertForcedColumnBreakRun(), _doInsertForcedLineBreakRun(), _doInsertForcedPageBreakRun(), _doInsertHyperlinkRun(), _doInsertImageRun(), _doInsertMathRun(), _doInsertRDFAnchorRun(), _doInsertTabRun(), fp_TextRun::_draw(), fp_RDFAnchorRun::_draw(), fp_AnnotationRun::_draw(), fl_TOCLayout::_removeBlockInVec(), fp_Run::Fill(), findNextTabStop(), and fp_Run::lookupProperties().
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_ContainerLayout::getContainerType(), and fl_ContainerLayout::myContainingLayout().
Referenced by FV_View::countWords(), getEnclosingBlock(), FV_VisualDragText::getImageFromSelection(), and updateEnclosingBlockIfNeeded().
bool fl_BlockLayout::isFirstInList | ( | void | ) | const |
References fl_Layout::getStruxDocHandle(), and fl_Layout::m_pAutoNum.
Referenced by getPreviousList().
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().
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().
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::isListLabelInBlock | ( | void | ) | const |
References fp_FieldRun::getFieldType(), fp_Run::getNextRun(), fp_Run::getType(), and m_pFirstRun.
Referenced by _createListLabel(), and format().
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_ENDNOTE, FL_CONTAINER_FOOTNOTE, FL_CONTAINER_HDRFTR, 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::isSentenceSeparator | ( | UT_UCS4Char | c, | |
UT_uint32 | iBlockPos | |||
) | const |
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_Run::getRevisions(), fp_Run::getVisibility(), UT_isWordDelimiter(), and xxx_UT_DEBUGMSG.
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().
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, and fl_Layout::m_pAutoNum.
Referenced by StartList(), AP_Dialog_Lists::StartList(), and AP_Dialog_Lists::StopList().
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().
virtual bool fl_BlockLayout::needsRedraw | ( | void | ) | const [inline, virtual] |
Implements fl_ContainerLayout.
bool fl_BlockLayout::needsReformat | ( | void | ) | const [inline, virtual] |
Implements fl_ContainerLayout.
Referenced by FV_View::notifyListeners(), and redrawUpdate().
fl_BlockLayout* fl_BlockLayout::nextToSpell | ( | void | ) | const [inline] |
References m_nextToSpell.
Referenced by main().
fl_BlockLayout* fl_BlockLayout::nextToSpell | ( | void | ) | const [inline] |
References m_nextToSpell.
void fl_BlockLayout::prependList | ( | fl_BlockLayout * | nextList | ) |
References PD_Document::changeStruxFmt(), getListAttributesVector(), getListPropertyVector(), 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, and UT_return_if_fail.
Referenced by FV_View::setStyleAtPos().
fl_BlockLayout* fl_BlockLayout::prevToSpell | ( | void | ) | const [inline] |
References m_prevToSpell.
Referenced by main().
fl_BlockLayout* fl_BlockLayout::prevToSpell | ( | void | ) | const [inline] |
References m_prevToSpell.
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().
bool fl_BlockLayout::recalculateFields | ( | UT_uint32 | iUpdateCount | ) | [virtual] |
Implements fl_ContainerLayout.
References _assertRunListIntegrity(), fp_FieldRun::calculateValue(), fp_Run::getHyperlink(), fp_HyperlinkRun::getHyperlinkType(), fp_Run::getNextRun(), fp_Run::getType(), fp_Run::getWidth(), 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(), 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.
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().
void fl_BlockLayout::remItemFromList | ( | void | ) |
References PD_Document::changeStruxFmt(), format(), fl_Layout::getAutoNum(), getLevel(), getListPropertyVector(), fl_ContainerLayout::getNextBlockInDocument(), getPosition(), getPreviousList(), fl_Layout::getStruxDocHandle(), getView(), id, PD_Document::listUpdate(), m_bListItem, m_bListLabelCreated, fl_Layout::m_pDoc, PP_setAttribute(), PTC_AddFmt, PTX_Block, setStopping(), UT_ASSERT, and UT_std_string_sprintf().
Referenced by FV_View::cmdCharDelete().
void fl_BlockLayout::removeBackgroundCheckReason | ( | UT_uint32 | reason | ) | [inline] |
void fl_BlockLayout::resumeList | ( | fl_BlockLayout * | prevList | ) |
References PD_Document::changeStruxFmt(), fl_Layout::getAutoNum(), getListAttributesVector(), getListPropertyVector(), 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, and UT_return_if_fail.
Referenced by AP_Dialog_Lists::Apply(), FV_View::processSelectedBlocks(), and FV_View::setStyleAtPos().
bool fl_BlockLayout::s_EnumTabStops | ( | void * | myThis, | |
UT_uint32 | k, | |||
fl_TabStop * | pTabInfo | |||
) | [static] |
void fl_BlockLayout::setAccumHeight | ( | UT_sint32 | i | ) | [inline] |
void fl_BlockLayout::setAlignment | ( | UT_uint32 | iAlignCmd | ) |
void fl_BlockLayout::setDominantDirection | ( | UT_BidiCharType | iDirection | ) |
References PD_Document::changeStruxFmt(), fl_Layout::getDocument(), getPosition(), m_iDomDirection, PTC_AddFmt, PTX_Block, and UT_DEBUGMSG.
void fl_BlockLayout::setFirstRun | ( | fp_Run * | pRun | ) | [inline] |
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 FL_DocLayout::addFramesToBeInserted(), fp_Page::countColumnLeaders(), fp_Page::findFrameContainer(), FL_DocLayout::findPage(), fp_Line::getColumn(), fp_Column::getColumnIndex(), fp_Container::getContainer(), fl_ContainerLayout::getContainerType(), getDocLayout(), fp_Column::getDocSectionLayout(), 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_Line::getHeight(), fl_ContainerLayout::getLastContainer(), FL_DocLayout::getLastPage(), fp_Line::getMarginAfter(), fp_Container::getNext(), fp_Page::getNthColumn(), fp_Page::getNthColumnLeader(), fl_ContainerLayout::getNthFrameContainer(), fl_ContainerLayout::getNthFrameLayout(), FL_DocLayout::getNthPage(), fl_DocSectionLayout::getNumColumns(), fl_ContainerLayout::getNumFrames(), fp_VerticalContainer::getOffsets(), fp_Line::getPage(), fp_FrameContainer::getPreferedColumnNo(), fp_FrameContainer::getPreferedPageNo(), getView(), fp_ContainerObject::getX(), fp_Line::getX(), fp_ContainerObject::getY(), fp_Line::getY(), fp_Page::insertFrameContainer(), fl_ContainerLayout::isHidden(), FL_DocLayout::isLayoutFilling(), fp_Line::isSameYAsPrevious(), m_pLayout, fp_FrameContainer::setPreferedColumnNo(), fp_FrameContainer::setPreferedPageNo(), fp_VerticalContainer::setX(), fp_VerticalContainer::setY(), UT_ASSERT_HARMLESS, UT_DEBUGMSG, UT_return_val_if_fail, UT_SHOULD_NOT_HAPPEN, and xxx_UT_DEBUGMSG.
Referenced by fl_FrameLayout::format(), and fp_Column::layout().
void fl_BlockLayout::setHdrFtr | ( | void | ) | [inline] |
Referenced by doclistener_insertBlock().
void fl_BlockLayout::setLineHeightBlockWithBorders | ( | int | whichLine = 0 |
) |
References fp_Line::calcBorderThickness(), fl_ContainerLayout::getFirstContainer(), fl_ContainerLayout::getLastContainer(), fp_Container::getNext(), fp_Container::getPrev(), fp_Line::isSameYAsPrevious(), fp_Line::isWrapped(), fp_Line::recalcHeight(), fp_Line::setAlongBotBorder(), and fp_Line::setAlongTopBorder().
Referenced by _removeLine(), fp_Line::calcBorderThickness(), doclistener_changeStrux(), fl_BlockLayout(), and fl_ContainerLayout::remove().
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_RDFAnchorRun::_recalcWidth(), fp_AnnotationRun::_recalcWidth(), fp_FieldRun::_setValue(), fp_Line::clearScreen(), AP_Win32Dialog_Styles::runModal(), fp_Line::setNeedsRedraw(), FL_DocLayout::setNeedsRedraw(), and setNeedsReformat().
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().
void fl_BlockLayout::setPrevListLabel | ( | bool | b | ) | [inline] |
Referenced by fp_Run::fp_Run().
void fl_BlockLayout::setSectionLayout | ( | fl_SectionLayout * | pSectionLayout | ) |
void fl_BlockLayout::setStarting | ( | bool | bValue | ) |
References m_bStartList.
Referenced by StartList().
void fl_BlockLayout::setStopping | ( | bool | bValue | ) |
References m_bStopList.
Referenced by remItemFromList(), and StopListInBlock().
void fl_BlockLayout::setStyleInTOC | ( | bool | b | ) | [inline] |
Referenced by fl_TOCLayout::_addBlockInVec().
void fl_BlockLayout::setUpdatableField | ( | bool | bValue | ) | [inline] |
Referenced by fl_BlockLayout(), and format().
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_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().
void fl_BlockLayout::StartList | ( | const gchar * | style, | |
pf_Frag_Strux * | 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, PD_Document::getListsCount(), getListTypeFromStyle(), PD_Document::getNthList(), getProperty(), PD_Style::getProperty(), PD_Document::getStyle(), m_iDomDirection, fl_Layout::m_pAutoNum, fl_Layout::m_pDoc, UT_ASSERT, UT_BIDI_LTR, UT_BIDI_RTL, UT_convertToInches(), UT_SHOULD_NOT_HAPPEN, 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 DIM_IN, gchar, fl_ContainerLayout::getAP(), PP_AttrProp::getAttribute(), PD_Document::getListByID(), getListStyleString(), getPosition(), fl_Layout::getStruxDocHandle(), PD_Document::getUID(), getView(), UT_UniqueId::List, 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_convertInchesToDimensionString(), UT_DEBUGMSG, UT_return_if_fail, and xxx_UT_DEBUGMSG.
void fl_BlockLayout::StopListInBlock | ( | void | ) |
References FV_View::_setPoint(), PD_Document::changeSpanFmt(), PD_Document::changeStruxFmt(), DIM_IN, gchar, fl_Layout::getAutoNum(), fp_Run::getBlockOffset(), getFirstRun(), getLevel(), getListPropertyVector(), getListStyleString(), fl_ContainerLayout::getNextBlockInDocument(), fp_Run::getNextRun(), FV_View::getPoint(), getPosition(), fl_ContainerLayout::getPrevBlockInDocument(), getProperty(), PD_Style::getProperty(), fl_Layout::getStruxDocHandle(), PD_Document::getStyle(), getView(), PD_Document::hasListStopped(), FV_View::isActive(), isListItem(), FV_View::isPreview(), 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_ASSERT_HARMLESS, UT_BIDI_RTL, UT_convertInchesToDimensionString(), and UT_convertToInches().
void fl_BlockLayout::transferListFlags | ( | void | ) |
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_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_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().
virtual void fl_BlockLayout::updateLayout | ( | bool | ) | [inline, virtual] |
Implements fl_ContainerLayout.
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 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().
friend class fb_LineBreaker [friend] |
friend class fl_DocListener [friend] |
friend class fl_GrammarSquiggles [friend] |
Referenced by fl_BlockLayout().
friend class fl_SpellSquiggles [friend] |
Referenced by fl_BlockLayout().
friend class fl_Squiggles [friend] |
friend class fl_TOCLayout [friend] |
bool fl_BlockLayout::m_bCanMergeBordersWithNext [protected] |
Referenced by _lookupProperties(), canMergeBordersWithNext(), and canMergeBordersWithPrev().
bool fl_BlockLayout::m_bForceSectionBreak [protected] |
Referenced by forceSectionBreak(), format(), and listUpdate().
bool fl_BlockLayout::m_bHasBorders [protected] |
Referenced by _lookupProperties(), and hasBorders().
bool fl_BlockLayout::m_bHasUpdatableField [protected] |
bool fl_BlockLayout::m_bIsCollapsed [protected] |
Referenced by _insertEndOfParagraphRun(), collapse(), and format().
bool fl_BlockLayout::m_bIsHdrFtr [protected] |
Referenced by fl_BlockLayout(), isHdrFtr(), and setSectionLayout().
bool fl_BlockLayout::m_bIsTOC [protected] |
bool fl_BlockLayout::m_bKeepTogether [protected] |
Referenced by _lookupProperties().
bool fl_BlockLayout::m_bKeepWithNext [protected] |
Referenced by _lookupProperties().
bool fl_BlockLayout::m_bListItem [protected] |
Referenced by _lookupProperties(), prependList(), remItemFromList(), resumeList(), StartList(), and StopListInBlock().
bool fl_BlockLayout::m_bListLabelCreated [protected] |
Referenced by _createListLabel(), _deleteListLabel(), format(), listUpdate(), prependList(), remItemFromList(), and resumeList().
bool fl_BlockLayout::m_bNeedsRedraw [protected] |
Referenced by _insertEndOfParagraphRun(), redrawUpdate(), and setNeedsRedraw().
bool fl_BlockLayout::m_bPrevListLabel [protected] |
Referenced by _doInsertFieldRun(), and _doInsertTabRun().
fb_LineBreaker fl_BlockLayout::m_Breaker [protected] |
Referenced by format(), and formatWrappedFromHere().
bool fl_BlockLayout::m_bSameYAsPrevious [protected] |
Referenced by formatWrappedFromHere(), and getNextWrappedLine().
bool fl_BlockLayout::m_bStartList [protected] |
Referenced by _lookupProperties(), listUpdate(), prependList(), resumeList(), setStarting(), and transferListFlags().
bool fl_BlockLayout::m_bStopList [protected] |
Referenced by _lookupProperties(), listUpdate(), prependList(), resumeList(), setStopping(), and transferListFlags().
bool fl_BlockLayout::m_bStyleInTOC [protected] |
double fl_BlockLayout::m_dLineSpacing [protected] |
Referenced by _lookupMarginProperties(), _lookupProperties(), and getLineSpacing().
eSpacingPolicy fl_BlockLayout::m_eSpacingPolicy [protected] |
Referenced by _lookupMarginProperties(), _lookupProperties(), and getLineSpacing().
UT_sint32 fl_BlockLayout::m_iAccumulatedHeight [protected] |
Referenced by formatWrappedFromHere(), getLeftRightForWrapping(), and getNextWrappedLine().
UT_sint32 fl_BlockLayout::m_iAdditionalMarginAfter [protected] |
Referenced by formatWrappedFromHere(), getLeftRightForWrapping(), and getNextWrappedLine().
UT_sint32 fl_BlockLayout::m_iBottomMargin [protected] |
Referenced by _lookupMarginProperties(), and _lookupProperties().
UT_sint32 fl_BlockLayout::m_iDefaultTabInterval [protected] |
Referenced by _lookupProperties(), findNextTabStop(), and findPrevTabStop().
UT_BidiCharType fl_BlockLayout::m_iDirOverride [protected] |
Referenced by _doInsertTextSpan(), and itemizeSpan().
UT_BidiCharType fl_BlockLayout::m_iDomDirection [protected] |
UT_sint32 fl_BlockLayout::m_iLeftMargin [protected] |
Referenced by _lookupMarginProperties(), _lookupProperties(), findNextTabStop(), and findPrevTabStop().
UT_sint32 fl_BlockLayout::m_iLinePosInContainer [protected] |
Referenced by formatWrappedFromHere(), and getNextWrappedLine().
UT_sint32 fl_BlockLayout::m_iNeedsReformat [protected] |
Referenced by collapse(), doclistener_changeFmtMark(), doclistener_changeObject(), doclistener_changeSpan(), doclistener_deleteFmtMark(), doclistener_deleteObject(), doclistener_deleteSpan(), doclistener_insertFmtMark(), doclistener_insertObject(), doclistener_insertSection(), doclistener_insertSpan(), format(), formatAll(), formatWrappedFromHere(), and setNeedsReformat().
UT_uint32 fl_BlockLayout::m_iOrphansProperty [protected] |
Referenced by _lookupProperties().
UT_sint32 fl_BlockLayout::m_iPattern [protected] |
Referenced by _lookupProperties(), and getPattern().
UT_sint32 fl_BlockLayout::m_iRightMargin [protected] |
Referenced by _lookupMarginProperties(), _lookupProperties(), findNextTabStop(), and findPrevTabStop().
UT_sint32 fl_BlockLayout::m_iTextIndent [protected] |
Referenced by _lookupMarginProperties(), _lookupProperties(), and getTextIndent().
UT_sint32 fl_BlockLayout::m_iTOCLevel [protected] |
Referenced by fl_BlockLayout(), getTOCNumType(), getTOCTabLeader(), and getTOCTabPosition().
UT_sint32 fl_BlockLayout::m_iTopMargin [protected] |
Referenced by _lookupMarginProperties(), and _lookupProperties().
UT_uint32 fl_BlockLayout::m_iWidowsProperty [protected] |
Referenced by _lookupProperties().
PP_PropertyMap::Line fl_BlockLayout::m_lineBottom [protected] |
Referenced by _lookupProperties().
PP_PropertyMap::Line fl_BlockLayout::m_lineLeft [protected] |
Referenced by _lookupProperties().
PP_PropertyMap::Line fl_BlockLayout::m_lineRight [protected] |
Referenced by _lookupProperties().
PP_PropertyMap::Line fl_BlockLayout::m_lineTop [protected] |
Referenced by _lookupProperties().
fl_BlockLayout * fl_BlockLayout::m_nextToSpell [private] |
Referenced by dequeueFromSpellCheck(), enqueueToSpellCheckAfter(), and nextToSpell().
fb_Alignment* fl_BlockLayout::m_pAlignment [protected] |
Referenced by _lookupProperties(), format(), formatWrappedFromHere(), redrawUpdate(), and ~fl_BlockLayout().
fp_Run* fl_BlockLayout::m_pFirstRun [protected] |
Referenced by _assertRunListIntegrityImpl(), _createListLabel(), _delete(), _deleteFmtMark(), _doInsertRun(), _doInsertTOCHeadingRun(), _doInsertTOCListLabelRun(), _doInsertTOCListTabRun(), _insertEndOfParagraphRun(), _purgeEndOfParagraphRun(), _stuffAllRunsOnALine(), _truncateLayout(), appendTextToBuf(), coalesceRuns(), collapse(), doclistener_changeFmtMark(), doclistener_changeObject(), doclistener_changeSpan(), doclistener_changeStrux(), doclistener_deleteStrux(), doclistener_insertBlock(), findPointCoords(), format(), isListLabelInBlock(), markAllRunsDirty(), purgeLayout(), recalculateFields(), and redrawUpdate().
FL_DocLayout * fl_BlockLayout::m_pLayout [protected] |
Referenced by _assertRunListIntegrityImpl(), _createListLabel(), _deleteListLabel(), _doInsertFieldRun(), _lookupMarginProperties(), _lookupProperties(), _removeLine(), dequeueFromSpellCheck(), doclistener_changeStrux(), doclistener_deleteFmtMark(), doclistener_deleteObject(), doclistener_deleteSpan(), doclistener_deleteStrux(), doclistener_insertBlock(), doclistener_insertObject(), doclistener_insertSection(), doclistener_insertSpan(), enqueueToSpellCheckAfter(), fl_BlockLayout(), format(), formatWrappedFromHere(), getEmbeddedOffset(), getEnclosingBlock(), getLeftRightForWrapping(), itemizeSpan(), setFramesOnPage(), updateEnclosingBlockIfNeeded(), and ~fl_BlockLayout().
fl_BlockLayout * fl_BlockLayout::m_prevToSpell [private] |
Referenced by dequeueFromSpellCheck(), enqueueToSpellCheckAfter(), and prevToSpell().
fl_SectionLayout* fl_BlockLayout::m_pSectionLayout [protected] |
fp_VerticalContainer* fl_BlockLayout::m_pVertContainer [protected] |
Referenced by formatWrappedFromHere(), getLeftRightForWrapping(), and getNextWrappedLine().
UT_RGBColor fl_BlockLayout::m_ShadingBackColor [protected] |
Referenced by _lookupProperties(), and getShadingingBackColor().
UT_RGBColor fl_BlockLayout::m_ShadingForeColor [protected] |
Referenced by _lookupProperties(), and getShadingingForeColor().
const gchar* fl_BlockLayout::m_szStyle [protected] |
Referenced by _lookupProperties(), doclistener_changeStrux(), fl_BlockLayout(), and getStyle().
UT_GenericVector<fl_TabStop*> fl_BlockLayout::m_vecTabs [protected] |
Referenced by _lookupProperties(), findNextTabStop(), findPrevTabStop(), s_EnumTabStops(), and ~fl_BlockLayout().