#include <fl_SectionLayout.h>

| fl_DocSectionLayout::fl_DocSectionLayout | ( | FL_DocLayout * | pLayout, | |
| PL_StruxDocHandle | sdh, | |||
| PT_AttrPropIndex | ap, | |||
| SectionType | iType | |||
| ) |
| fl_DocSectionLayout::~fl_DocSectionLayout | ( | ) | [virtual] |
| fl_DocSectionLayout * fl_DocSectionLayout::getNextDocSection | ( | void | ) | const |
References FL_SECTION_DOC, fl_ContainerLayout::getNext(), and fl_SectionLayout::getType().
Referenced by addOwnedPage(), fb_ColumnBreaker::breakSection(), FL_DocLayout::changeDocSections(), FV_View::cmdFindRevision(), FL_DocLayout::deleteEmptyColumnsAndPages(), deleteOwnedPage(), doclistener_deleteStrux(), fl_BlockLayout::doclistener_insertSection(), doMarginChangeOnly(), FL_DocLayout::findSectionForHdrFtr(), FV_View::getSectionFormat(), fp_Column::layout(), FL_DocLayout::rebuildFromHere(), FL_DocLayout::removeSection(), FL_DocLayout::updateColor(), and FL_DocLayout::~FL_DocLayout().
| fl_DocSectionLayout * fl_DocSectionLayout::getPrevDocSection | ( | void | ) | const |
References FL_SECTION_DOC, fl_ContainerLayout::getPrev(), and fl_SectionLayout::getType().
Referenced by fp_FieldPageNumberRun::calculateValue(), fl_HdrFtrSectionLayout::changeIntoHdrFtrSection(), FV_View::cmdFindRevision(), doclistener_deleteStrux(), getNewContainer(), and FL_DocLayout::removeSection().
| void fl_DocSectionLayout::format | ( | void | ) | [virtual] |
Implements fl_ContainerLayout.
References fb_ColumnBreaker::breakSection(), fl_ContainerLayout::format(), FP_HIDDEN_REVISION, FP_HIDDEN_REVISION_AND_TEXT, FP_HIDDEN_TEXT, fl_ContainerLayout::getFirstContainer(), fl_ContainerLayout::getFirstLayout(), fl_ContainerLayout::getLastContainer(), fl_ContainerLayout::getNext(), FV_View::getShowPara(), FL_DocLayout::getView(), fl_ContainerLayout::isHidden(), m_bNeedsFormat, m_ColumnBreaker, fl_SectionLayout::m_pLayout, and UT_DEBUGMSG.
Referenced by _HdrFtrChangeCallback(), fl_HdrFtrSectionLayout::doclistener_deleteStrux(), doclistener_deleteStrux(), getNewContainer(), FV_FrameEdit::mouseRelease(), fl_DocListener::populateStrux(), and updateDocSection().
| void fl_DocSectionLayout::updateLayout | ( | bool | bDoFull | ) | [virtual] |
Implements fl_ContainerLayout.
References addValidPages(), fb_ColumnBreaker::breakSection(), checkAndRemovePages(), UT_GenericVector< T >::clear(), UT_GenericVector< T >::deleteNthItem(), FL_CONTAINER_BLOCK, FL_CONTAINER_TOC, fl_ContainerLayout::format(), FP_HIDDEN_REVISION, FP_HIDDEN_REVISION_AND_TEXT, FP_HIDDEN_TEXT, fl_ContainerLayout::getContainerString(), fl_ContainerLayout::getContainerType(), fl_Layout::getDocument(), fl_ContainerLayout::getFirstLayout(), UT_GenericVector< T >::getItemCount(), fl_ContainerLayout::getNext(), UT_GenericVector< T >::getNthItem(), FV_View::getShowPara(), FL_DocLayout::getView(), PD_Document::isDontImmediateLayout(), fl_ContainerLayout::isHidden(), FL_DocLayout::isLayoutFilling(), m_ColumnBreaker, fl_SectionLayout::m_pLayout, fl_SectionLayout::m_vecFormatLayout, needsRebuild(), fl_ContainerLayout::needsReformat(), needsSectionBreak(), fl_ContainerLayout::updateLayout(), and xxx_UT_DEBUGMSG.
Referenced by _HdrFtrChangeCallback(), and completeBreakSection().
| void fl_DocSectionLayout::updateDocSection | ( | void | ) |
References checkAndRemovePages(), format(), formatAllHdrFtr(), gchar, fl_ContainerLayout::getAP(), PP_AttrProp::getAttribute(), FL_DocLayout::getView(), fl_ContainerLayout::lookupProperties(), fl_SectionLayout::m_pLayout, markAllRunsDirty(), setNeedsSectionBreak(), FV_View::setScreenUpdateOnGeneralUpdate(), and UT_return_if_fail.
Referenced by FL_DocLayout::changeDocSections(), doclistener_deleteStrux(), fl_BlockLayout::doclistener_insertSection(), and FL_DocLayout::rebuildFromHere().
| void fl_DocSectionLayout::collapse | ( | void | ) | [virtual] |
Implements fl_ContainerLayout.
References fl_HdrFtrSectionLayout::clearScreen(), fp_VerticalContainer::clearScreen(), fl_ContainerLayout::collapse(), fl_HdrFtrSectionLayout::collapse(), fp_Column::collapseEndnotes(), fp_Container::countCons(), FL_DocLayout::deleteEmptyPages(), FL_CONTAINER_ENDNOTE, fp_Container::getColumn(), fl_ContainerLayout::getContainerType(), fl_SectionLayout::getDocLayout(), fl_ContainerLayout::getFirstContainer(), fl_ContainerLayout::getFirstLayout(), UT_GenericVector< T >::getItemCount(), fp_Column::getLeader(), fl_ContainerLayout::getNext(), fp_Container::getNext(), fp_Container::getNthCon(), UT_GenericVector< T >::getNthItem(), fp_Column::getPage(), fb_ColumnBreaker::getStartPage(), getVecOfHdrFtrs(), fp_Page::isEmpty(), fp_Container::justRemoveNthCon(), m_bDoingCollapse, m_ColumnBreaker, m_pFirstColumn, m_pFirstOwnedPage, m_pLastColumn, fp_Page::removeColumnLeader(), fp_VerticalContainer::removeContainer(), setFirstEndnoteContainer(), setLastEndnoteContainer(), fb_ColumnBreaker::setStartPage(), UT_ASSERT_HARMLESS, and UT_DEBUGMSG.
Referenced by FL_DocLayout::changeDocSections(), doclistener_deleteStrux(), fl_BlockLayout::doclistener_insertSection(), and FL_DocLayout::rebuildFromHere().
| fp_Container * fl_DocSectionLayout::getFirstContainer | ( | void | ) | const [virtual] |
Reimplemented from fl_ContainerLayout.
References m_pFirstColumn.
Referenced by fp_ImageRun::_lookupProperties(), fp_MathRun::_lookupProperties(), fp_EmbedRun::_lookupProperties(), fl_HdrFtrSectionLayout::addValidPages(), fb_ColumnBreaker::breakSection(), fp_FieldPageNumberRun::calculateValue(), fl_HdrFtrSectionLayout::changeIntoHdrFtrSection(), and fl_HdrFtrSectionLayout::getNewContainer().
| fp_Container * fl_DocSectionLayout::getLastContainer | ( | void | ) | const [virtual] |
Reimplemented from fl_ContainerLayout.
References m_pLastColumn.
Referenced by fb_ColumnBreaker::breakSection(), getNewContainer(), and FL_DocLayout::insertEndnoteContainer().
| void fl_DocSectionLayout::setFirstContainer | ( | fp_Container * | pCon | ) | [virtual] |
| void fl_DocSectionLayout::setLastContainer | ( | fp_Container * | pCon | ) | [virtual] |
| fl_FootnoteLayout * fl_DocSectionLayout::getFootnoteLayout | ( | UT_uint32 | footnotePID | ) |
| fl_AnnotationLayout * fl_DocSectionLayout::getAnnotationLayout | ( | UT_uint32 | footnotePID | ) |
| void fl_DocSectionLayout::markAllRunsDirty | ( | void | ) | [virtual] |
Implements fl_SectionLayout.
References fl_ContainerLayout::getFirstLayout(), fl_ContainerLayout::getNext(), m_pFooterEvenSL, m_pFooterFirstSL, m_pFooterLastSL, m_pFooterSL, m_pHeaderEvenSL, m_pHeaderFirstSL, m_pHeaderLastSL, m_pHeaderSL, fl_HdrFtrSectionLayout::markAllRunsDirty(), and fl_ContainerLayout::markAllRunsDirty().
Referenced by fl_FrameLayout::doclistener_changeStrux(), and updateDocSection().
| virtual fl_SectionLayout* fl_DocSectionLayout::getSectionLayout | ( | void | ) | const [inline, virtual] |
Implements fl_ContainerLayout.
| void fl_DocSectionLayout::redrawUpdate | ( | void | ) | [virtual] |
Implements fl_ContainerLayout.
References addValidPages(), fb_ColumnBreaker::breakSection(), checkAndRemovePages(), FL_CONTAINER_BLOCK, fl_ContainerLayout::format(), fl_ContainerLayout::getContainerType(), fl_SectionLayout::getDocLayout(), getFirstEndnoteContainer(), fl_ContainerLayout::getFirstLayout(), fl_ContainerLayout::getNext(), fp_ContainerObject::getSectionLayout(), m_ColumnBreaker, needsRebuild(), fl_ContainerLayout::needsRedraw(), needsSectionBreak(), fl_ContainerLayout::recalculateFields(), fl_EmbedLayout::redrawUpdate(), fl_ContainerLayout::redrawUpdate(), and xxx_UT_DEBUGMSG.
| fp_Container * fl_DocSectionLayout::getNewContainer | ( | fp_Container * | pFirstContainer = NULL |
) | [virtual] |
Create new container
Implements fl_SectionLayout.
References FL_DocLayout::addNewPage(), fp_Page::countColumnLeaders(), FL_DocLayout::countPages(), format(), fp_Page::getAvailableHeight(), fp_Container::getContainer(), fp_Page::getFilledHeight(), FL_DocLayout::getFirstPage(), fp_Column::getFollower(), fp_ContainerObject::getHeight(), fp_VerticalContainer::getLastContainer(), getLastContainer(), fp_Container::getNext(), fp_Page::getNext(), fp_Page::getNthColumnLeader(), fp_Container::getPage(), fp_Column::getPage(), fp_ContainerObject::getPrevContainerInSection(), getPrevDocSection(), fp_Page::insertColumnLeader(), FL_DocLayout::isLayoutFilling(), m_bForceNewPage, m_iNumColumns, m_pFirstColumn, m_pLastColumn, fl_SectionLayout::m_pLayout, fp_Column::setFollower(), fp_Column::setLeader(), fp_Container::setNext(), fp_Container::setPrev(), UT_ASSERT, UT_DEBUGMSG, UT_return_val_if_fail, and xxx_UT_DEBUGMSG.
Referenced by fb_ColumnBreaker::breakSection(), and FL_DocLayout::insertEndnoteContainer().
| UT_sint32 fl_DocSectionLayout::getLeftMargin | ( | void | ) | const [inline] |
Referenced by fl_AnnotationLayout::_createAnnotationContainer(), fl_EndnoteLayout::_createEndnoteContainer(), fl_FootnoteLayout::_createFootnoteContainer(), fp_Page::_drawCropMarks(), fp_MathRun::_lookupProperties(), fp_EmbedRun::_lookupProperties(), fp_Page::_reformatAnnotations(), fp_Page::_reformatFootnotes(), fp_Page::buildHdrFtrContainer(), FV_View::calculateZoomPercentForPageWidth(), fp_EndnoteContainer::clearScreen(), fp_AnnotationContainer::clearScreen(), fp_FootnoteContainer::clearScreen(), fp_FootnoteContainer::draw(), getActualColumnWidth(), fp_Container::getPageRelativeOffsets(), FV_View::getTopRulerInfo(), and fp_Line::recalcMaxWidth().
| UT_sint32 fl_DocSectionLayout::getRightMargin | ( | void | ) | const [inline] |
Referenced by fl_AnnotationLayout::_createAnnotationContainer(), fl_EndnoteLayout::_createEndnoteContainer(), fl_FootnoteLayout::_createFootnoteContainer(), fp_Line::_doClearScreenFromRunToEnd(), fp_Page::_drawCropMarks(), fp_MathRun::_lookupProperties(), fp_EmbedRun::_lookupProperties(), fp_Page::buildHdrFtrContainer(), FV_View::calculateZoomPercentForPageWidth(), fp_Line::clearScreen(), fp_EndnoteContainer::clearScreen(), fp_AnnotationContainer::clearScreen(), fp_FootnoteContainer::clearScreen(), fp_FootnoteContainer::draw(), getActualColumnWidth(), FV_View::getTopRulerInfo(), and fp_Line::recalcMaxWidth().
| UT_sint32 fl_DocSectionLayout::getTopMargin | ( | void | ) | const |
References m_iTopMargin.
Referenced by FV_View::_draw(), fp_Page::_drawCropMarks(), FV_View::_getPageForXY(), fp_MathRun::_lookupProperties(), fp_EmbedRun::_lookupProperties(), FV_View::_moveInsPtNextPrevLine(), fp_Page::_reformatColumns(), fp_Page::breakPage(), fp_Page::buildHdrFtrContainer(), fp_Page::draw(), getActualColumnHeight(), fp_Page::getAvailableHeight(), fp_Page::getAvailableHeightForColumn(), FL_DocLayout::getHeight(), FV_View::getLeftRulerInfo(), fp_VerticalContainer::getOffsets(), fp_Container::getPageRelativeOffsets(), FV_View::getPageScreenOffsets(), FV_View::getPageYOffset(), fp_VerticalContainer::getScreenOffsets(), FV_View::getVisibleDocumentPagesAndRectangles(), fp_VerticalContainer::getY(), fp_Page::redrawDamagedFrames(), fl_BlockLayout::setFramesOnPage(), and fp_Page::TopBotMarginChanged().
| UT_sint32 fl_DocSectionLayout::getBottomMargin | ( | void | ) | const |
References m_iBottomMargin.
Referenced by FV_View::_draw(), fp_Page::_drawCropMarks(), FV_View::_getPageForXY(), fp_MathRun::_lookupProperties(), fp_EmbedRun::_lookupProperties(), fp_Page::_reformatAnnotations(), fp_Page::_reformatColumns(), fp_Page::_reformatFootnotes(), fp_Page::breakPage(), fp_Page::buildHdrFtrContainer(), getActualColumnHeight(), fp_Page::getAvailableHeight(), fp_Page::getAvailableHeightForColumn(), fp_Page::getBottom(), FL_DocLayout::getHeight(), FV_View::getLeftRulerInfo(), FV_View::getPageScreenOffsets(), FV_View::getPageYOffset(), FV_View::getVisibleDocumentPagesAndRectangles(), fl_BlockLayout::setFramesOnPage(), and fp_Page::TopBotMarginChanged().
| UT_sint32 fl_DocSectionLayout::getFooterMargin | ( | void | ) | const [inline] |
| UT_sint32 fl_DocSectionLayout::getHeaderMargin | ( | void | ) | const [inline] |
| UT_sint32 fl_DocSectionLayout::getSpaceAfter | ( | void | ) | const [inline] |
Referenced by fp_Page::_reformatColumns(), fp_Page::breakPage(), and fp_Page::getFilledHeight().
| UT_sint32 fl_DocSectionLayout::getMaxSectionColumnHeight | ( | void | ) | const [inline] |
Referenced by fb_ColumnBreaker::breakSection().
| UT_sint32 fl_DocSectionLayout::getColumnGap | ( | void | ) | const |
References m_iColumnGap, and UT_ASSERT.
Referenced by fp_Line::_doClearScreenFromRunToEnd(), fp_Line::clearScreen(), fp_Page::getColumnGap(), FV_View::getTopRulerInfo(), and fp_Line::recalcMaxWidth().
| UT_uint32 fl_DocSectionLayout::getFootnoteLineThickness | ( | void | ) | const [inline] |
| UT_uint32 fl_DocSectionLayout::getFootnoteYoff | ( | void | ) | const [inline] |
| void fl_DocSectionLayout::completeBreakSection | ( | void | ) |
References fb_ColumnBreaker::breakSection(), m_bNeedsSectionBreak, m_ColumnBreaker, fb_ColumnBreaker::setStartPage(), and updateLayout().
Referenced by fb_ColumnBreaker::breakSection(), fl_BlockLayout::doclistener_insertFrame(), doMarginChangeOnly(), FL_DocLayout::fillLayouts(), and fl_EndnoteLayout::format().
| bool fl_DocSectionLayout::arePageNumbersRestarted | ( | void | ) | const [inline] |
Referenced by fp_FieldPageNumberRun::calculateValue().
| UT_sint32 fl_DocSectionLayout::getRestartedPageNumber | ( | void | ) | const [inline] |
Referenced by fp_FieldPageNumberRun::calculateValue().
| UT_uint32 fl_DocSectionLayout::getNumColumns | ( | void | ) | const |
References m_iNumColumns.
Referenced by fp_Line::_doClearScreenFromRunToEnd(), fp_Line::clearScreen(), FV_View::getTopRulerInfo(), and fp_Line::recalcMaxWidth().
| bool fl_DocSectionLayout::getColumnLineBetween | ( | void | ) | const [inline] |
Referenced by fp_Page::draw().
| UT_uint32 fl_DocSectionLayout::getColumnOrder | ( | void | ) | const |
| void fl_DocSectionLayout::setPaperColor | ( | void | ) |
Set the color of the background paper in the following order of precedence 1. If The section level proper "background-color" is present and is not transparent use that. 2. If this section is being displayed to the screen use the ColorForTransparency preference item color. 3. Otherwise use white
References UT_String::clear(), GR_Graphics::DGP_SCREEN, gchar, fl_ContainerLayout::getAP(), AV_View::getApp(), FV_View::getGraphics(), XAP_App::getPrefs(), XAP_Prefs::getPrefsValue(), PP_AttrProp::getProperty(), FL_DocLayout::getView(), fl_SectionLayout::m_pLayout, m_sPaperColor, m_sScreenColor, GR_Graphics::queryProperties(), UT_return_if_fail, and XAP_PREF_KEY_ColorForTransparent.
Referenced by _lookupProperties(), and FL_DocLayout::updateColor().
| void fl_DocSectionLayout::deleteEmptyColumns | ( | void | ) |
Delete Empty Column containers in this section.
References fp_Column::getFollower(), fp_Column::getLeader(), fp_Container::getNext(), fp_Column::getPage(), fp_Container::getPrev(), fp_Container::isEmpty(), m_pFirstColumn, m_pLastColumn, fp_Page::removeColumnLeader(), fp_ContainerObject::setNext(), fp_ContainerObject::setPrev(), and UT_ASSERT.
Referenced by FL_DocLayout::deleteEmptyColumnsAndPages().
| bool fl_DocSectionLayout::doclistener_changeStrux | ( | const PX_ChangeRecord_StruxChange * | pcrxc | ) | [virtual] |
Implements fl_SectionLayout.
References gchar, PD_Document::getAttrProp(), fl_Layout::getAttrPropIndex(), fl_SectionLayout::getDocLayout(), fl_Layout::getDocument(), fl_ContainerLayout::getFirstLayout(), PX_ChangeRecord::getIndexAP(), fl_ContainerLayout::getNext(), PP_AttrProp::getProperty(), PX_ChangeRecord::getType(), fl_ContainerLayout::lookupProperties(), PX_ChangeRecord::PXT_ChangeStrux, FL_DocLayout::rebuildFromHere(), fl_Layout::setAttrPropIndex(), and UT_ASSERT.
Referenced by fl_DocListener::change(), and FL_DocLayout::changeDocSections().
| bool fl_DocSectionLayout::doclistener_deleteStrux | ( | const PX_ChangeRecord_Strux * | pcrx | ) |
References FV_View::_setPoint(), collapse(), DELETEP, FL_CONTAINER_ANNOTATION, FL_CONTAINER_BLOCK, FL_CONTAINER_ENDNOTE, FL_CONTAINER_FOOTNOTE, format(), fl_ContainerLayout::getContainerType(), fl_ContainerLayout::getFirstLayout(), fl_ContainerLayout::getLastLayout(), fl_ContainerLayout::getNext(), getNextDocSection(), PX_ChangeRecord::getPosition(), getPrevDocSection(), PX_ChangeRecord_Strux::getStruxType(), PX_ChangeRecord::getType(), FL_DocLayout::getView(), m_pFooterEvenSL, m_pFooterFirstSL, m_pFooterLastSL, m_pFooterSL, m_pHeaderEvenSL, m_pHeaderFirstSL, m_pHeaderLastSL, m_pHeaderSL, fl_SectionLayout::m_pLayout, PTX_Section, PX_ChangeRecord::PXT_DeleteStrux, FL_DocLayout::removeSection(), fl_ContainerLayout::setContainingLayout(), fl_ContainerLayout::setFirstLayout(), fl_ContainerLayout::setLastLayout(), fl_ContainerLayout::setNext(), fl_ContainerLayout::setPrev(), updateDocSection(), UT_ASSERT, UT_DEBUGMSG, and xxx_UT_DEBUGMSG.
| bool fl_DocSectionLayout::bl_doclistener_insertFootnote | ( | fl_ContainerLayout * | pFootnote, | |
| const PX_ChangeRecord_Strux * | pcrx, | |||
| PL_StruxDocHandle | sdh, | |||
| PL_ListenerId | lid, | |||
| void(*)(PL_StruxDocHandle sdhNew, PL_ListenerId lid, PL_StruxFmtHandle sfhNew) | pfnBindHandles | |||
| ) | [virtual] |
References fl_BLOCK_STRUX_OFFSET, FL_CONTAINER_FOOTNOTE, PX_ChangeRecord::getIndexAP(), FV_View::getPoint(), PX_ChangeRecord::getPosition(), FL_DocLayout::getView(), fl_ContainerLayout::insert(), FV_View::isActive(), FV_View::isPreview(), fl_SectionLayout::m_pLayout, fl_ContainerLayout::myContainingLayout(), FV_View::setPoint(), and FV_View::updateCarets().
| bool fl_DocSectionLayout::bl_doclistener_insertAnnotation | ( | fl_ContainerLayout * | pFootnote, | |
| const PX_ChangeRecord_Strux * | pcrx, | |||
| PL_StruxDocHandle | sdh, | |||
| PL_ListenerId | lid, | |||
| void(*)(PL_StruxDocHandle sdhNew, PL_ListenerId lid, PL_StruxFmtHandle sfhNew) | pfnBindHandles | |||
| ) | [virtual] |
References fl_BLOCK_STRUX_OFFSET, FL_CONTAINER_ANNOTATION, PX_ChangeRecord::getIndexAP(), FV_View::getPoint(), PX_ChangeRecord::getPosition(), FL_DocLayout::getView(), fl_ContainerLayout::insert(), FV_View::isActive(), FV_View::isPreview(), fl_SectionLayout::m_pLayout, fl_ContainerLayout::myContainingLayout(), FV_View::setPoint(), and FV_View::updateCarets().
| void fl_DocSectionLayout::setHdrFtr | ( | HdrFtrType | iType, | |
| fl_HdrFtrSectionLayout * | pHFSL | |||
| ) |
References checkAndRemovePages(), FL_HDRFTR_FOOTER, FL_HDRFTR_FOOTER_EVEN, FL_HDRFTR_FOOTER_FIRST, FL_HDRFTR_FOOTER_LAST, FL_HDRFTR_HEADER, FL_HDRFTR_HEADER_EVEN, FL_HDRFTR_HEADER_FIRST, FL_HDRFTR_HEADER_LAST, FL_HDRFTR_NONE, fl_ContainerLayout::getAttribute(), m_pFooterEvenSL, m_pFooterFirstSL, m_pFooterLastSL, m_pFooterSL, m_pHeaderEvenSL, m_pHeaderFirstSL, m_pHeaderLastSL, m_pHeaderSL, UT_ASSERT, and UT_SHOULD_NOT_HAPPEN.
Referenced by fl_SectionLayout::bl_doclistener_insertSection(), fl_DocListener::change(), fl_HdrFtrSectionLayout::doclistener_deleteStrux(), fl_BlockLayout::doclistener_insertSection(), fl_DocListener::populateStrux(), and fl_HdrFtrSectionLayout::~fl_HdrFtrSectionLayout().
| fl_HdrFtrSectionLayout * fl_DocSectionLayout::getHeader | ( | void | ) |
References m_pHeaderSL.
Referenced by FV_View::_insertSectionBreak(), FV_View::cmdRemoveHdrFtr(), Defun(), FV_View::populateThisHdrFtr(), FV_View::processPageNumber(), and FV_View::removeThisHdrFtr().