#include <fl_DocLayout.h>
FL_DocLayout::FL_DocLayout | ( | PD_Document * | doc, | |
GR_Graphics * | pG | |||
) |
References _redrawUpdate(), _setDocPageDimensions(), UT_GenericVector< T >::clear(), GR_Graphics::DGP_PAPER, PD_Document::disableListUpdates(), m_pDoc, m_pRedrawUpdateTimer, m_szCurrentTransparentColor, m_vecAnnotations, m_vecEndnotes, m_vecFootnotes, GR_Graphics::queryProperties(), REDRAW_UPDATE_MSECS, UT_Timer::set(), setLayoutIsFilling(), UT_Timer::start(), UT_Timer::static_constructor(), and XAP_PREF_DEFAULT_ColorForTransparent.
FL_DocLayout::~FL_DocLayout | ( | ) |
References _prefsListener(), UT_GenericVector< T >::deleteNthItem(), DELETEP, UT_GenericVector< T >::getItemCount(), fl_DocSectionLayout::getNextDocSection(), UT_GenericVector< T >::getNthItem(), fp_Page::getPrev(), m_bDeletingLayout, m_bStopSpellChecking, m_lid, m_mapEmbedManager, m_mapQuickPrintEmbedManager, m_pBackgroundCheckTimer, m_pDoc, m_pDocListener, m_pFirstSection, m_pPrefs, m_pRedrawUpdateTimer, m_vecPages, PD_Document::removeListener(), XAP_Prefs::removeListener(), fp_Page::setNext(), UT_Timer::stop(), UT_Worker::stop(), and UT_DEBUGMSG.
FL_DocLayout::FL_DocLayout | ( | ) | [inline] |
FL_DocLayout::FL_DocLayout | ( | ) | [inline] |
static void FL_DocLayout::_backgroundCheck | ( | UT_Worker * | pTimer | ) | [static, protected] |
void FL_DocLayout::_lookupProperties | ( | void | ) | [private] |
This method reads the document properties and saves local versions of them here.
References FootnoteTypeFromString(), gchar, PD_Document::getAttrProp(), getDocument(), PP_AttrProp::getProperty(), m_bPlaceAtDocEnd, m_bPlaceAtSecEnd, m_bRestartEndSection, m_bRestartFootPage, m_bRestartFootSection, m_EndnoteType, m_FootnoteType, m_iEndnoteVal, m_iFootnoteVal, and UT_return_if_fail.
Referenced by fillLayouts(), updatePropsNoRebuild(), and updatePropsRebuild().
void FL_DocLayout::_prefsListener | ( | class XAP_Prefs * | pPrefs, | |
UT_StringPtrMap * | , | |||
void * | data | |||
) | [static, protected] |
References _toggleAutoSmartQuotes(), AP_PREF_KEY_AutoGrammarCheck, AP_PREF_KEY_AutoSpellCheck, AP_PREF_KEY_DisplayAnnotations, AP_PREF_KEY_DisplayRDFAnchors, AP_PREF_KEY_SpellCheckCaps, AP_PREF_KEY_SpellCheckInternet, AP_PREF_KEY_SpellCheckNumbers, UT_String::c_str(), collapseAnnotations(), formatAll(), gchar, XAP_Frame::getAutoSavePeriod(), AV_View::getParentData(), FV_View::getPoint(), XAP_Prefs::getPrefsValue(), XAP_Prefs::getPrefsValueBool(), getView(), XAP_Frame::isBackupRunning(), m_bAutoGrammarCheck, m_bAutoSpellCheck, m_bDisplayAnnotations, m_bDisplayRDFAnchors, m_bSpellCheckCaps, m_bSpellCheckInternet, m_bSpellCheckNumbers, m_iGraphicTick, m_szCurrentTransparentColor, XAP_Frame::setAutoSaveFile(), XAP_Frame::setAutoSaveFilePeriod(), updateColor(), FV_View::updateScreen(), UT_ASSERT, XAP_PREF_KEY_AutoSaveFile, XAP_PREF_KEY_AutoSaveFilePeriod, XAP_PREF_KEY_ColorForTransparent, XAP_PREF_KEY_SmartQuotesEnable, and xxx_UT_DEBUGMSG.
Referenced by setView(), and ~FL_DocLayout().
void FL_DocLayout::_redrawUpdate | ( | UT_Worker * | pTimer | ) | [static, protected] |
References FV_View::_ensureInsertionPointOnScreen(), FV_View::_findPositionCoords(), deleteEmptyColumnsAndPages(), GR_Graphics::DGP_PAPER, getDocument(), UT_Worker::getInstanceData(), fl_ContainerLayout::getNext(), FV_View::getPoint(), getSkipUpdates(), fl_SectionLayout::getType(), getView(), isLayoutFilling(), AD_Document::isPieceTableChanging(), isQuickPrint(), m_iRedrawCount, m_pFirstSection, m_pG, m_pView, GR_Graphics::queryProperties(), rebuildFromHere(), fl_ContainerLayout::redrawUpdate(), PD_Document::setRedrawHappenning(), setSkipUpdates(), UT_DEBUGMSG, UT_return_if_fail, and xxx_UT_DEBUGMSG.
Referenced by FL_DocLayout().
void FL_DocLayout::_setDocPageDimensions | ( | void | ) | [protected] |
Calculate the page height and width in layout unit
References DIM_IN, fp_PageSize::Height(), m_docViewPageSize, m_iPageHeight, m_iPageWidth, UT_convertSizeToLayoutUnits(), and fp_PageSize::Width().
Referenced by fillLayouts(), FL_DocLayout(), and setDocViewPageSize().
void FL_DocLayout::_toggleAutoSmartQuotes | ( | bool | bSQ | ) | [protected] |
References addBackgroundCheckReason(), bgcrSmartQuotes, removeBackgroundCheckReason(), setPendingSmartQuote(), and UT_DEBUGMSG.
Referenced by _prefsListener().
void FL_DocLayout::addAnnotation | ( | fl_AnnotationLayout * | pFL | ) |
Add a annotation layout to the vector remembering them.
References UT_GenericVector< T >::addItem(), compareLayouts(), countAnnotations(), fl_AnnotationLayout::getAnnotationRun(), getNthAnnotation(), m_vecAnnotations, UT_GenericVector< T >::qsort(), and fp_AnnotationRun::recalcValue().
Referenced by fl_AnnotationLayout::fl_AnnotationLayout().
void FL_DocLayout::addBackgroundCheckReason | ( | UT_uint32 | reason | ) | [inline] |
Referenced by _toggleAutoSmartQuotes(), and setView().
void FL_DocLayout::addEndnote | ( | fl_EndnoteLayout * | pFL | ) |
Add a footnote layout to the vector remembering them.
References UT_GenericVector< T >::addItem(), and m_vecEndnotes.
Referenced by fl_EndnoteLayout::fl_EndnoteLayout().
void FL_DocLayout::addFootnote | ( | fl_FootnoteLayout * | pFL | ) |
Add a footnote layout to the vector remembering them.
References UT_GenericVector< T >::addItem(), and m_vecFootnotes.
Referenced by fl_FootnoteLayout::fl_FootnoteLayout().
bool FL_DocLayout::addFramesToBeInserted | ( | fp_FrameContainer * | pFrame | ) |
add a frame to the list of frames that need to be inserted on a page later in the document than its parent block. A frame can be placed up to 3 pages after its parent block. This list is needed during the initial layout stage.
References UT_GenericVector< T >::addItem(), and m_vecFramesToBeInserted.
Referenced by fl_BlockLayout::setFramesOnPage().
void FL_DocLayout::addHdrFtrSection | ( | fl_SectionLayout * | pHdrFtrSL | ) |
Include the header/footer section layouts AFTER the last DocSection in the the getNext, getPrev list. This will ensure that the headers/footers will be formatted and updated correctly.
fl_SectionLayout | * pHdrFtrSL the header/footer layout to be inserted into the sectionlayout linked list. The structure of this linked list is as follows. pDSL->pDSL->pDSL....pDSL->pEndnoteSL->pHdrFtrSL->pHdrFtrSL->NULL ^ ^ m_pFirstSection m_pLastSection |
ie we have all the DocSections in a linked list followed by all the Header/ Footer sections. This reflects the locations in the piece table where the header/footer sections are located at the end of the document.
References fl_ContainerLayout::getNext(), fl_SectionLayout::getType(), m_pLastSection, fl_ContainerLayout::setNext(), fl_ContainerLayout::setPrev(), and UT_ASSERT.
Referenced by fl_SectionLayout::bl_doclistener_insertSection(), fl_DocListener::change(), fl_BlockLayout::doclistener_insertSection(), and fl_DocListener::populateStrux().
void FL_DocLayout::addList | ( | const fl_AutoNumPtr & | pAutoNum | ) | [inline] |
References PD_Document::addList(), and m_pDoc.
fp_Page * FL_DocLayout::addNewPage | ( | fl_DocSectionLayout * | pOwner, | |
bool | bNoUpdate = false | |||
) |
References UT_GenericVector< T >::addItem(), fl_DocSectionLayout::addOwnedPage(), AV_CHG_PAGECOUNT, countPages(), getLastPage(), fp_Page::getNext(), FV_View::getPoint(), m_docViewPageSize, m_pView, m_vecPages, FV_View::notifyListeners(), fp_Page::setNext(), fp_Page::setPrev(), FV_View::shouldScreenUpdateOnGeneralUpdate(), and UT_ASSERT.
Referenced by fl_DocSectionLayout::getNewContainer().
bool FL_DocLayout::addOrRemoveBlockFromTOC | ( | fl_BlockLayout * | pBlock | ) |
This method scans all the TOC in the document and adds or removes the supplied block if it needs to be either added or removed from a TOC. This method returns true if pBlock is in at least one TOC
References fl_TOCLayout::addBlock(), getNthTOC(), getNumTOCs(), fl_BlockLayout::getStyle(), fl_TOCLayout::isBlockInTOC(), fl_TOCLayout::isStyleInTOC(), and fl_TOCLayout::removeBlock().
Referenced by fl_BlockLayout::_lookupProperties(), fl_BlockLayout::doclistener_deleteStrux(), fl_BlockLayout::fl_BlockLayout(), and fl_BlockLayout::format().
void FL_DocLayout::addSection | ( | fl_DocSectionLayout * | pSL | ) |
This method appends a DocSectionLayout onto the linked list of SectionLayout's and updates the m_pFirstSection and m_pLastSection member variables accordingly. The structure of this linked list is as follows. pDSL->pDSL->....pDSL->pEndnoteSL->pHdrFtrSL->pHdrFtrSL->NULL ^ ^ m_pFirstSection m_pLastSection ie we have all the DocSections in a linked list followed by all the Header/ Footer sections. This reflects the locations in the piece table where the header/footer sections are located at the end of the document.
fl_DocSectionLayout | * pSL the DocSectionLayout to be appended. | |
fl_DocSectionLayout* | pAfter the DocSectionLayout after which our new DocSectionLayout is inserted. |
References insertSectionAfter(), m_pFirstSection, m_pLastSection, fl_ContainerLayout::setNext(), fl_ContainerLayout::setPrev(), and UT_ASSERT.
Referenced by fl_DocListener::populateStrux().
bool FL_DocLayout::addTOC | ( | fl_TOCLayout * | pTOC | ) |
References UT_GenericVector< T >::addItem(), and m_vecTOC.
Referenced by fl_TOCLayout::fl_TOCLayout().
bool FL_DocLayout::AnchoredObjectHelper | ( | double | x, | |
double | y, | |||
UT_sint32 | iPage, | |||
UT_UTF8String & | allProps, | |||
PT_DocPosition & | pos, | |||
fp_Page *& | pPage | |||
) |
Returns true if it founds a valid pos to insert the postioned object
References findBlockAtPosition(), fl_ContainerLayout::getContainerType(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), fl_BlockLayout::getPosition(), fl_ContainerLayout::getPrevBlockInDocument(), m_vecPages, fp_Page::mapXYToPosition(), fl_ContainerLayout::myContainingLayout(), UT_ASSERT, UT_DEBUGMSG, UT_formatDimensionedValue(), UT_LAYOUT_RESOLUTION, and UT_UTF8String_setProperty().
Referenced by loadPendingObjects().
void FL_DocLayout::changeDocSections | ( | const PX_ChangeRecord_StruxChange * | pcrx, | |
fl_DocSectionLayout * | pDSL | |||
) |
References fl_DocSectionLayout::collapse(), fl_DocSectionLayout::doclistener_changeStrux(), fl_DocSectionLayout::doMarginChangeOnly(), fl_DocSectionLayout::getNextDocSection(), PD_Document::isMarginChangeOnly(), m_pDoc, and fl_DocSectionLayout::updateDocSection().
Referenced by fl_DocListener::change().
void FL_DocLayout::clearAllCountWraps | ( | void | ) |
References fp_Page::clearCountWrapNumber(), countPages(), and getNthPage().
Referenced by formatAll(), and rebuildFromHere().
bool FL_DocLayout::collapseAnnotations | ( | void | ) |
Collapse all the blocks containing Annotations. This is useful for when we toggle displaying/hiding annotations.
References fl_AnnotationLayout::collapse(), fl_BlockLayout::collapse(), countAnnotations(), fl_EmbedLayout::getContainingBlock(), fl_ContainerLayout::getFirstLayout(), and getNthAnnotation().
Referenced by _prefsListener().
void FL_DocLayout::considerPendingSmartQuoteCandidate | ( | ) | [inline] |
Referenced by FV_View::_charMotion(), FV_View::_setPoint(), and FV_View::insertParagraphBreak().
void FL_DocLayout::considerSmartQuoteCandidateAt | ( | fl_BlockLayout * | block, | |
UT_uint32 | offset | |||
) |
References after, before, FV_View::cmdCharInsert(), FV_View::cmdSelectNoNotify(), XAP_EncodingManager::findLangInfoByLocale(), FPRUN_TEXT, fl_BlockLayout::getBlockBuf(), FV_View::getCharFormat(), fl_BlockLayout::getFirstRun(), fp_Run::getLength(), UT_GrowBuf::getLength(), fp_Run::getLine(), fl_ContainerLayout::getNext(), fp_Run::getNextRun(), FV_View::getPoint(), UT_GrowBuf::getPointer(), fl_BlockLayout::getPosition(), XAP_Prefs::getPrefsValueBool(), XAP_Prefs::getPrefsValueInt(), fl_ContainerLayout::getPrev(), getSmartQuotes(), fp_Run::getType(), XAP_LangInfo::innerQuoteIdx, FV_View::isHdrFtrEdit(), XAP_SmartQuoteStyle::leftQuote, FV_View::m_bAllowSmartQuoteReplacement, m_pPrefs, m_pView, FV_View::moveInsPtTo(), XAP_LangInfo::outerQuoteIdx, PP_getAttribute(), sqTable::replacement, XAP_SmartQuoteStyle::rightQuote, setPendingSmartQuote(), XAP_EncodingManager::smartQuoteStyles, sqDONTCARE, sqTable::thing, UCS_LDBLQUOTE, UCS_LQUOTE, UCS_RDBLQUOTE, UCS_RQUOTE, UCS_UNKPUNK, UT_DEBUGMSG, UT_isSmartQuotableCharacter(), whatKindOfChar(), XAP_PREF_KEY_CustomSmartQuotes, XAP_PREF_KEY_InnerQuoteStyle, XAP_PREF_KEY_OuterQuoteStyle, and xxx_UT_DEBUGMSG.
Referenced by fl_BlockLayout::doclistener_insertSpan().
UT_uint32 FL_DocLayout::countAnnotations | ( | void | ) | const |
This simply returns the number of annotations in the document.
References UT_GenericVector< T >::getItemCount(), and m_vecAnnotations.
Referenced by addAnnotation(), collapseAnnotations(), FV_View::countAnnotations(), FV_View::getClosestAnnotation(), and removeAnnotation().
UT_uint32 FL_DocLayout::countEndnotes | ( | void | ) | const |
This simply returns the number of footnotes in the document.
References UT_GenericVector< T >::getItemCount(), and m_vecEndnotes.
Referenced by FV_View::getClosestEndnote().
UT_uint32 FL_DocLayout::countFootnotes | ( | void | ) | const |
This simply returns the number of footnotes in the document.
References UT_GenericVector< T >::getItemCount(), and m_vecFootnotes.
Referenced by FV_View::getClosestFootnote().
UT_sint32 FL_DocLayout::countPages | ( | ) | const |
References UT_GenericVector< T >::getItemCount(), and m_vecPages.
Referenced by fb_ColumnBreaker::_getLastValidPage(), fp_MathRun::_lookupProperties(), FV_View::_moveInsPtNthPage(), IE_Exp_S5::_writeDocument(), IE_Exp_Cairo::_writeDocument(), abi_widget_get_page_count(), abi_widget_set_current_page(), addNewPage(), FV_View::calculateNumHorizPages(), fp_FieldPageCountRun::calculateValue(), fp_FieldPageReferenceRun::calculateValue(), clearAllCountWraps(), deletePage(), Print_MailMerge_Listener::fireUpdate(), FV_View::getCurrentPageNumber(), fl_DocSectionLayout::getNewContainer(), AP_PrintingDelegate::getPageCount(), fl_DocSectionLayout::isThisPageValid(), ap_sbf_PageInfo::notify(), Stateful_ViewListener::notify(), FV_View::notifyListeners(), AP_Convert::print(), AP_Convert::printFirstPage(), s_doPrint(), s_LoadingCursorCallback(), setFramePageNumbers(), XAP_UnixDialog_Print::setupPrint(), FV_View::setViewMode(), Presentation::showNextPage(), and Presentation::showPrevPage().
void FL_DocLayout::deleteEmptyColumnsAndPages | ( | void | ) |
References fl_DocSectionLayout::deleteEmptyColumns(), deleteEmptyPages(), fl_DocSectionLayout::getNextDocSection(), and m_pFirstSection.
Referenced by _redrawUpdate(), fb_ColumnBreaker::breakSection(), rebuildFromHere(), and updateLayout().
void FL_DocLayout::deleteEmptyPages | ( | bool | bDontNotify = false |
) |
References deletePage(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), fp_Page::isEmpty(), m_vecPages, and UT_ASSERT_HARMLESS.
Referenced by fl_DocSectionLayout::collapse(), and deleteEmptyColumnsAndPages().
void FL_DocLayout::deletePage | ( | fp_Page * | pPage, | |
bool | bDontNotify | |||
) |
References AV_CHG_PAGECOUNT, countPages(), UT_GenericVector< T >::deleteNthItem(), UT_GenericVector< T >::findItem(), fp_Page::getNext(), FV_View::getPoint(), fp_Page::getPrev(), AD_Document::isPieceTableChanging(), m_pDoc, m_pView, m_vecPages, FV_View::notifyListeners(), setFramePageNumbers(), fp_Page::setNext(), fp_Page::setPrev(), and UT_ASSERT.
Referenced by deleteEmptyPages(), and fl_DocSectionLayout::deleteOwnedPage().
bool FL_DocLayout::displayAnnotations | ( | void | ) | const |
References m_bDisplayAnnotations.
Referenced by fb_ColumnBreaker::_displayAnnotations(), fp_Page::_reformatAnnotations(), fp_Run::displayAnnotations(), fp_AnnotationContainer::draw(), fp_Run::getFGColor(), fp_VerticalContainer::getOffsets(), fp_Page::mapXYToPosition(), fp_TableContainer::sumFootnoteHeight(), and fp_TableContainer::wantVBreakAt().
bool FL_DocLayout::displayRDFAnchors | ( | void | ) | const |
References m_bDisplayRDFAnchors.
Referenced by fp_Run::displayRDFAnchors(), and fp_Run::getFGColor().
void FL_DocLayout::fillLayouts | ( | void | ) |
This Method fills the layout structures from the PieceTable.
References _lookupProperties(), _setDocPageDimensions(), PD_Document::addListener(), FV_View::clearCursorWait(), UT_GenericVector< T >::deleteNthItem(), GR_Graphics::DGP_PAPER, PD_Document::enableListUpdates(), fl_TOCLayout::fillTOC(), fl_DocListener, fl_ContainerLayout::format(), formatAll(), FV_DOCPOS_BOD, PD_Document::getBounds(), fl_ContainerLayout::getContainerType(), getDocument(), getGraphics(), UT_GenericVector< T >::getItemCount(), getLastPage(), PD_Document::getListsCount(), fl_ContainerLayout::getNext(), UT_GenericVector< T >::getNthItem(), PD_Document::getNthList(), getNthTOC(), getNumTOCs(), AV_View::getParentData(), fl_TOCLayout::getSectionLayout(), AP_StatusBar::hideProgressBar(), fp_Page::insertFrameContainer(), fl_TOCLayout::isTOCEmpty(), loadPendingObjects(), m_bFinishedInitialCheck, PD_Document::m_docPageSize, m_docViewPageSize, m_iDocSize, m_iGrammarCount, m_iPrevPos, m_lid, m_pDoc, m_pDocListener, m_pView, m_vecFramesToBeInserted, FV_View::moveInsPtTo(), PROGRESS_STARTBAR, PROGRESS_STOPBAR, GR_Graphics::queryProperties(), PD_Document::setDontImmediatelyLayout(), setFramePageNumbers(), fl_DocListener::setHoldTableLayout(), AV_View::setLayoutIsFilling(), setLayoutIsFilling(), FV_View::setPoint(), AP_StatusBar::setStatusProgressType(), XAP_Frame::setYScrollRange(), AP_StatusBar::showProgressBar(), PD_Document::updateDirtyLists(), updateLayout(), FV_View::updateLayout(), FV_View::updateScreen(), UT_ASSERT, UT_ASSERT_HARMLESS, UT_return_if_fail, UT_SHOULD_NOT_HAPPEN, and fl_TOCLayout::verifyBookmarkAssumptions().
Referenced by FakeAccountHandler::_loadDocument(), AP_Frame::_replaceView(), IE_Exp_S5::_writeDocument(), IE_Exp_Cairo::_writeDocument(), AP_Preview_Abi::AP_Preview_Abi(), XAP_UnixDialog_Print::BeginPrint(), FV_View::copyTextToClipboard(), Defun1(), Print_MailMerge_Listener::fireUpdate(), AP_Convert::print(), AP_Convert::printFirstPage(), AbiCommand::replaceDocument(), s_doPrint(), s_pasteFile(), and IE_FieldUpdater::updateFields().
fl_AnnotationLayout * FL_DocLayout::findAnnotationLayout | ( | UT_uint32 | annpid | ) | const |
This method returns the annotation layout associated with the input PID
References fl_AnnotationLayout::getAnnotationPID(), UT_GenericVector< T >::getItemCount(), getNthAnnotation(), and m_vecAnnotations.
Referenced by FV_View::_deleteHyperlink(), fp_Line::getAnnotationContainers(), and FV_View::getAnnotationLayout().
fl_BlockLayout * FL_DocLayout::findBlockAtPosition | ( | PT_DocPosition | pos, | |
bool | bLookOnlyBefore = false | |||
) | const |
Find block at document position
pos | Document position |
References fl_ContainerLayout::canContainPoint(), FV_View::clearHdrFtrEdit(), fl_HdrFtrShadow::findBlockAtPosition(), fl_HdrFtrShadow::findMatchingContainer(), FL_CONTAINER_HDRFTR, PD_Document::getBounds(), fl_ContainerLayout::getContainerType(), FV_View::getEditShadow(), fl_HdrFtrSectionLayout::getFirstShadow(), fl_HdrFtrShadow::getHdrFtrSectionLayout(), fl_ContainerLayout::getPrevBlockInDocument(), fl_BlockLayout::getSectionLayout(), PD_Document::getStruxOfTypeFromPosition(), fl_Layout::getType(), getView(), PD_Document::isEndFootnoteAtPos(), PD_Document::isFootnoteAtPos(), FV_View::isHdrFtrEdit(), isLayoutFilling(), fl_HdrFtrSectionLayout::isPointInHere(), m_lid, m_pDoc, fl_ContainerLayout::myContainingLayout(), PTX_Block, PTX_Section, FV_View::setHdrFtrEdit(), UT_ASSERT, UT_ASSERT_HARMLESS, UT_DEBUGMSG, UT_SHOULD_NOT_HAPPEN, and xxx_UT_DEBUGMSG.
Referenced by AP_Dialog_Paragraph::_createPreviewFromGC(), PD_Document::_exportInitVisDirection(), FV_View::_findBlockAtPosition(), FV_View::_findGetNextBlockBuffer(), fl_AnnotationLayout::_insertAnnotationContainer(), fl_FootnoteLayout::_insertFootnoteContainer(), FV_View::_isSpaceBefore(), AnchoredObjectHelper(), fp_FieldTOCNumRun::calculateValue(), fp_FieldListLabelRun::calculateValue(), FV_View::cmdCharInsert(), FV_View::cmdDeleteCol(), fl_EmbedLayout::doclistener_deleteStrux(), fl_AnnotationLayout::getAnnotationRun(), FV_View::getAnnotationText(), FV_View::getEmbedDepth(), FV_View::getSelectionText(), FV_View::getTableAtPos(), FV_View::getTextBetweenPos(), FV_View::insertSymbol(), FV_View::isInTable(), AP_Dialog_SplitCells::setAllSensitivities(), AP_Dialog_MergeCells::setAllSensitivities(), and FV_View::toggleCase().
fl_BlockLayout * FL_DocLayout::findBlockAtPositionReverse | ( | PT_DocPosition | pos | ) | const |
References FV_View::clearHdrFtrEdit(), fl_HdrFtrShadow::findBlockAtPosition(), fl_HdrFtrShadow::findMatchingContainer(), PD_Document::getBounds(), FV_View::getEditShadow(), fl_HdrFtrSectionLayout::getFirstShadow(), fl_HdrFtrShadow::getHdrFtrSectionLayout(), fl_BlockLayout::getSectionLayout(), PD_Document::getStruxOfTypeFromPosition(), fl_SectionLayout::getType(), fl_Layout::getType(), getView(), PD_Document::isEndFootnoteAtPos(), PD_Document::isFootnoteAtPos(), FV_View::isHdrFtrEdit(), isLayoutFilling(), fl_HdrFtrSectionLayout::isPointInHere(), m_lid, m_pDoc, PTX_Block, PTX_Section, FV_View::setHdrFtrEdit(), UT_ASSERT, UT_ASSERT_HARMLESS, UT_SHOULD_NOT_HAPPEN, and xxx_UT_DEBUGMSG.
Referenced by FV_View::_findGetPrevBlockBuffer().
fl_EndnoteLayout * FL_DocLayout::findEndnoteLayout | ( | UT_uint32 | footpid | ) | const |
This method returns the footnote layout associated with the input PID
References fl_EndnoteLayout::getEndnotePID(), UT_GenericVector< T >::getItemCount(), getNthEndnote(), and m_vecEndnotes.
Referenced by getEndnoteVal().
const GR_Font * FL_DocLayout::findFont | ( | const PP_AttrProp * | pSpanAP, | |
const PP_AttrProp * | pBlockAP, | |||
const PP_AttrProp * | pSectionAP, | |||
bool | isField = false | |||
) | const |
References GR_Graphics::findFont(), m_pDoc, m_pG, PP_evalProperty(), UT_convertToPoints(), and UT_formatDimensionedValue().
Referenced by fp_EndOfParagraphRun::_draw(), fp_ForcedLineBreakRun::_draw(), fp_DirectionMarkerRun::_draw(), 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(), and fl_BlockLayout::itemizeSpan().
const GR_Font * FL_DocLayout::findFont | ( | const PP_AttrProp * | pSpanAP, | |
const PP_AttrProp * | pBlockAP, | |||
const PP_AttrProp * | pSectionAP, | |||
GR_Graphics * | pG, | |||
bool | isField = false | |||
) | const |
References GR_Graphics::findFont(), m_pDoc, m_pG, PP_evalProperty(), UT_convertToPoints(), UT_formatDimensionedValue(), and xxx_UT_DEBUGMSG.
fl_FootnoteLayout * FL_DocLayout::findFootnoteLayout | ( | UT_uint32 | footpid | ) | const |
This method returns the footnote layout associated with the input PID
References fl_FootnoteLayout::getFootnotePID(), UT_GenericVector< T >::getItemCount(), getNthFootnote(), and m_vecFootnotes.
Referenced by fp_Line::getFootnoteContainers(), and getFootnoteVal().
fp_FrameContainer * FL_DocLayout::findFramesToBeInserted | ( | fp_Page * | pPage | ) |
find a frame that needs to be inserted on page pPage. Only frames that are inserted on a page later in the document than their parent block are placed in this list. This list is needed during the initial layout stage.
References UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), fp_Page::getPageNumber(), fp_FrameContainer::getPreferedPageNo(), and m_vecFramesToBeInserted.
Referenced by fl_DocSectionLayout::getNewContainer().
References UT_GenericVector< T >::findItem(), UT_GenericVector< T >::getItemCount(), and m_vecPages.
Referenced by fb_ColumnBreaker::_breakSection(), FV_View::_findPositionCoords(), FV_View::_getPageForXY(), FV_View::_getPageXandYOffset(), fl_DocSectionLayout::_HdrFtrChangeCallback(), FV_View::_moveInsPtNextPrevLine(), fb_ColumnBreaker::breakSection(), fl_DocSectionLayout::deleteOwnedPage(), fl_TOCLayout::doclistener_deleteStrux(), fl_BlockLayout::doclistener_insertBlock(), fp_Run::draw(), FV_FrameEdit::getFrameStrings(), fp_Page::getPageNumber(), FV_View::getVisibleDocumentPagesAndRectangles(), FV_View::getWidthPagesInRow(), AP_LeftRuler::mouseRelease(), fl_HdrFtrSectionLayout::redrawUpdate(), fl_BlockLayout::setFramesOnPage(), fl_DocSectionLayout::setNeedsSectionBreak(), fp_Page::setPageNumberInFrames(), fb_ColumnBreaker::setStartPage(), XAP_UnixDialog_Print::setupPrint(), and fp_Page::updatePageForWrapping().
fl_DocSectionLayout * FL_DocLayout::findSectionForHdrFtr | ( | const char * | pszHdrFtrID | ) | const |
FootnoteType FL_DocLayout::FootnoteTypeFromString | ( | const gchar * | pszFootnoteType | ) |
little helper method for lookup properties
Referenced by AP_UnixDialog_FormatTOC::_fillGUI(), fl_TOCLayout::_lookupProperties(), _lookupProperties(), AP_Win32Dialog_FormatTOC_Layout::loadCtrlsValuesForDetailsLevel(), and AP_UnixDialog_FormatTOC::setDetailsLevel().
void FL_DocLayout::formatAll | ( | void | ) |
References fl_DocSectionLayout::checkAndRemovePages(), clearAllCountWraps(), fl_DocSectionLayout::collapse(), PD_Document::enableListUpdates(), fl_ContainerLayout::format(), fl_DocSectionLayout::format(), fl_ContainerLayout::getContainerType(), fl_ContainerLayout::getNext(), fl_DocSectionLayout::isFirstPageValid(), m_pDoc, m_pFirstSection, fl_SectionLayout::recalculateFields(), and UT_return_if_fail.
Referenced by _prefsListener(), IE_Exp_S5::_writeDocument(), IE_Exp_Cairo::_writeDocument(), XAP_UnixDialog_Print::BeginPrint(), FV_View::copyTextToClipboard(), Defun1(), fillLayouts(), Print_MailMerge_Listener::fireUpdate(), AP_Convert::print(), AP_Convert::printFirstPage(), AP_Frame::quickZoom(), s_doPrint(), FV_View::setViewMode(), fl_DocListener::signal(), IE_FieldUpdater::updateFields(), and updateOnViewModeChange().
This returns the position of the Annotation in the vector of annotations. This is useful for calculating the annotionation positioning it in a annotation section
References fl_AnnotationLayout::getAnnotationPID(), UT_GenericVector< T >::getItemCount(), getNthAnnotation(), and m_vecAnnotations.
Referenced by fp_AnnotationRun::_setValue(), and fp_AnnotationContainer::getValue().
UT_uint32 FL_DocLayout::getBackgroundCheckReasons | ( | ) | const [inline] |
UT_sint32 FL_DocLayout::getDocPageHeight | ( | void | ) | const [inline] |
Referenced by fp_Page::getHeight().
UT_sint32 FL_DocLayout::getDocPageWidth | ( | void | ) | const [inline] |
Referenced by fp_Page::getWidth().
fl_DocSectionLayout * FL_DocLayout::getDocSecForEndnote | ( | fp_EndnoteContainer * | pECon | ) | const |
The method returns the doc section layout before which the endnotes are inserted.
References fl_EmbedLayout::getDocSectionLayout(), getLastSection(), getPlaceEndAtSecEnd(), and fp_ContainerObject::getSectionLayout().
Referenced by fl_EndnoteLayout::_createEndnoteContainer(), insertEndnoteContainer(), fp_EndnoteContainer::layout(), and removeEndnoteContainer().
PT_DocPosition FL_DocLayout::getDocSize | ( | void | ) | const [inline] |
Referenced by fl_DocListener::populateStrux().
PD_Document* FL_DocLayout::getDocument | ( | void | ) | const [inline] |
References fl_Layout::m_pDoc.
Referenced by FV_View::_actuallyScroll(), fl_BlockLayout::_assertRunListIntegrityImpl(), FV_View::_autoScroll(), fl_BlockLayout::_createListLabel(), fl_BlockLayout::_deleteListLabel(), fl_BlockLayout::_doInsertFieldRun(), _lookupProperties(), _redrawUpdate(), fl_TOCLayout::addBlock(), fl_DocListener::change(), XAP_UnixFrameImpl::_fe::do_ZoomUpdate(), fillLayouts(), fl_BlockLayout::fl_BlockLayout(), fl_DocSectionLayout::fl_DocSectionLayout(), fl_SectionLayout::fl_SectionLayout(), fl_TOCListener::fl_TOCListener(), fl_TOCLayout::getDocPosition(), fl_FrameLayout::getDocPosition(), fl_EmbedLayout::getDocPosition(), fl_TOCLayout::getLength(), fl_FrameLayout::getLength(), fl_EmbedLayout::getLength(), fl_ContainerLayout::getLevelInList(), fl_ContainerLayout::getPosition(), getStringFromFootnoteVal(), loadPendingObjects(), AP_PrintingDelegate::printPage(), AP_Frame::quickZoom(), AP_Dialog_Spell::runModal(), s_doPrint(), s_doStylesDlg(), fp_FrameContainer::setPreferedColumnNo(), fp_FrameContainer::setPreferedPageNo(), updateOnViewModeChange(), and fl_TOCLayout::verifyBookmarkAssumptions().
GR_EmbedManager * FL_DocLayout::getEmbedManager | ( | const char * | szEmbedType | ) |
Get an embedManager of the requested Type.
References XAP_App::getApp(), XAP_App::getEmbeddableManager(), GR_EmbedManager::getObjectType(), GR_EmbedManager::initialize(), m_mapEmbedManager, m_pG, and UT_DEBUGMSG.
Referenced by fp_MathRun::_lookupProperties(), fp_EmbedRun::_lookupProperties(), AP_Dialog_Latex::convertLatexToMathML(), and dlgEditLatexEquation().
FootnoteType FL_DocLayout::getEndnoteType | ( | void | ) | const [inline] |
This returns the position of the Endnote in the document. This is useful for calculating the Endnote's value and positioning it in a footnote section
References findEndnoteLayout(), fl_EmbedLayout::getDocPosition(), fl_EmbedLayout::getDocSectionLayout(), UT_GenericVector< T >::getItemCount(), getNthEndnote(), m_bRestartEndSection, m_iEndnoteVal, and m_vecEndnotes.
Referenced by fp_FieldEndnoteRefRun::calculateValue(), fp_FieldEndnoteAnchorRun::calculateValue(), and fp_EndnoteContainer::getValue().
fp_Page * FL_DocLayout::getFirstPage | ( | ) | const |
References UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), and m_vecPages.
Referenced by FV_View::_getPageForXY(), FV_View::_moveInsPtNthPage(), FV_View::calculateNumHorizPages(), FV_View::cmdScroll(), fl_DocSectionLayout::doMarginChangeOnly(), FV_View::getCurrentPageNumForStatusBar(), fl_DocSectionLayout::getNewContainer(), FV_View::getVisibleDocumentPagesAndRectangles(), FV_View::getWidthPagesInRow(), and setView().
fl_DocSectionLayout* FL_DocLayout::getFirstSection | ( | void | ) | const [inline] |
Referenced by FV_View::_charMotion(), FV_View::_deleteBookmark(), FV_View::_findPositionCoords(), FV_View::_getDocPosFromPoint(), FV_View::_getPageXandYOffset(), fl_TOCLayout::addBlock(), fp_FieldPageReferenceRun::calculateValue(), FV_View::calculateZoomPercentForPageWidth(), FV_View::cmdSetRevisionLevel(), fl_TOCLayout::fillTOC(), FV_View::fontMetricsChange(), FV_View::getMaxHeight(), FV_View::getTextInDocument(), FV_View::getWidthPagesInRow(), FV_View::gotoTarget(), fp_VerticalContainer::mapXYToPosition(), fl_DocListener::populateStrux(), AP_Frame::quickZoom(), FV_View::rebuildLayout(), refreshRunProperties(), FV_View::replaceGraphics(), AP_Dialog_Spell::runModal(), setQuickPrint(), and FV_View::setShowRevisions().
FootnoteType FL_DocLayout::getFootnoteType | ( | void | ) | const |
References m_FootnoteType.
Referenced by fp_FieldFootnoteAnchorRun::calculateValue(), fp_FieldFootnoteRefRun::calculateValue(), and AP_Dialog_FormatFootnotes::setInitialValues().
This returns the position of the footnote in the document. This is useful for calculating the footnote's value and positioning it in a footnote section
References findFootnoteLayout(), fl_EmbedLayout::getDocPosition(), fl_EmbedLayout::getDocSectionLayout(), fl_ContainerLayout::getFirstContainer(), UT_GenericVector< T >::getItemCount(), getNthFootnote(), fp_Container::getPage(), m_bRestartFootPage, m_bRestartFootSection, m_iFootnoteVal, and m_vecFootnotes.
Referenced by fp_FieldFootnoteAnchorRun::calculateValue(), fp_FieldFootnoteRefRun::calculateValue(), and fp_FootnoteContainer::getValue().
GR_Graphics* FL_DocLayout::getGraphics | ( | void | ) | const [inline] |
Referenced by fl_TableLayout::_lookupMarginProperties(), fl_FrameLayout::_lookupMarginProperties(), fl_BlockLayout::_lookupMarginProperties(), fl_TableLayout::_lookupProperties(), fl_FrameLayout::_lookupProperties(), fl_BlockLayout::_lookupProperties(), fp_Page::_reformatAnnotations(), fp_Page::_reformatColumns(), fp_Page::_reformatFootnotes(), fl_TOCLayout::_removeBlockInVec(), fl_BlockLayout::doclistener_changeStrux(), fl_BlockLayout::doclistener_deleteStrux(), fillLayouts(), fl_DocListener::fl_DocListener(), fl_FrameLayout::format(), fp_Page::fp_Page(), fp_Run::getGraphics(), fp_ContainerObject::getGraphics(), fl_BlockLayout::getLeftRightForWrapping(), fl_DocSectionLayout::getWidth(), fl_BlockLayout::itemizeSpan(), fp_Page::mapXYToPosition(), fl_FrameLayout::miniFormat(), AP_PrintingDelegate::printPage(), fl_FrameLayout::recalculateFields(), s_doFontDlg(), fl_CellLayout::setCellContainerProperties(), fl_FrameLayout::setContainerProperties(), fl_BlockLayout::setFramesOnPage(), fl_DocSectionLayout::setHdrFtrHeightChange(), fp_Page::updateColumnX(), and fl_FrameLayout::updateLayout().
UT_uint32 FL_DocLayout::getGraphicTick | ( | void | ) | const [inline] |
Referenced by fp_ImageRun::_draw(), fl_DocSectionLayout::addOwnedPage(), fl_SectionLayout::checkGraphicTick(), fg_FillType::Fill(), fp_ImageRun::fp_ImageRun(), fp_ImageRun::regenerateImage(), fl_CellLayout::setCellContainerProperties(), fl_FrameLayout::setContainerProperties(), and fg_FillType::setDocLayout().
UT_sint32 FL_DocLayout::getHeight | ( | void | ) | const |
Calculates the total height of the layout.
Includes the vertical page margins when not printing.
References GR_Graphics::DGP_SCREEN, fl_PAGEVIEW_PAGE_SEP, UT_GenericVector< T >::getItemCount(), FV_View::getMaxHeight(), FV_View::getNumHorizPages(), FV_View::getPageViewSep(), FV_View::getPageViewTopMargin(), getView(), m_pG, m_vecPages, GR_Graphics::queryProperties(), and xxx_UT_DEBUGMSG.
Referenced by FV_FrameEdit::_actuallyScroll(), FV_FrameEdit::_mouseDrag(), FV_View::_moveInsPtNextPrevLine(), AP_Win32FrameImpl::_setYScrollRange(), IE_Exp_Cairo::_writeDocument(), Print_MailMerge_Listener::fireUpdate(), AP_Convert::print(), AP_Convert::printFirstPage(), and s_doPrint().
UT_sint32 FL_DocLayout::getInitialEndVal | ( | void | ) | const [inline] |
Referenced by AP_Dialog_FormatFootnotes::setInitialValues().
UT_sint32 FL_DocLayout::getInitialFootVal | ( | void | ) | const [inline] |
Referenced by AP_Dialog_FormatFootnotes::setInitialValues().
fp_Page * FL_DocLayout::getLastPage | ( | ) | const |
fl_DocSectionLayout* FL_DocLayout::getLastSection | ( | void | ) | const [inline] |
UT_uint32 FL_DocLayout::getLID | ( | void | ) | const [inline] |
Referenced by FV_View::_changeCellParams(), FV_View::_getMouseContext(), FV_View::_restoreCellParams(), fp_FieldTableSumCols::calculateValue(), fp_FieldTableSumRows::calculateValue(), FV_View::cmdAdvanceNextPrevCell(), FV_View::cmdDeleteCol(), FV_View::cmdDeleteRow(), FV_View::cmdInsertCol(), FV_View::cmdInsertRow(), FV_View::cmdSplitCells(), FV_View::findCellPosAt(), FV_View::getBlockFromSDH(), fl_BlockLayout::getEmbeddedOffset(), fl_BlockLayout::getEnclosingBlock(), FV_View::isInTable(), FV_FrameEdit::setDragType(), and fl_BlockLayout::updateEnclosingBlockIfNeeded().
fl_AutoNumPtr FL_DocLayout::getListByID | ( | UT_uint32 | id | ) | const [inline] |
References PD_Document::getListByID(), and m_pDoc.
UT_uint32 FL_DocLayout::getListsCount | ( | void | ) | const [inline] |
References PD_Document::getListsCount(), and m_pDoc.
bool FL_DocLayout::getMatchingBlocksFromTOCs | ( | fl_BlockLayout * | pBlock, | |
UT_GenericVector< fl_BlockLayout * > * | pVecBlocks | |||
) | const |
Fill the supplied vector with pointers to the blocks matching the supplied Block. Return false if no matching block were found. true otherwise
References UT_GenericVector< T >::addItem(), UT_GenericVector< T >::getItemCount(), fl_TOCLayout::getMatchingBlock(), getNthTOC(), getNumTOCs(), and fl_TOCLayout::isBlockInTOC().
Referenced by fl_BlockLayout::doclistener_deleteObject(), fl_BlockLayout::doclistener_deleteSpan(), fl_BlockLayout::doclistener_insertObject(), and fl_BlockLayout::doclistener_insertSpan().
fl_AnnotationLayout * FL_DocLayout::getNthAnnotation | ( | UT_sint32 | i | ) | const |
get a pointer to the Nth annotation layout in the vector remembering them.
References UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), m_vecAnnotations, and UT_ASSERT.
Referenced by addAnnotation(), collapseAnnotations(), findAnnotationLayout(), getAnnotationVal(), FV_View::getClosestAnnotation(), and removeAnnotation().
fl_EndnoteLayout * FL_DocLayout::getNthEndnote | ( | UT_sint32 | i | ) | const |
get a pointer to the Nth footnote layout in the vector remembering them.
References UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), m_vecEndnotes, and UT_ASSERT.
Referenced by findEndnoteLayout(), FV_View::getClosestEndnote(), and getEndnoteVal().
fl_FootnoteLayout * FL_DocLayout::getNthFootnote | ( | UT_sint32 | i | ) | const |
get a pointer to the Nth footnote layout in the vector remembering them.
References UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), m_vecFootnotes, and UT_ASSERT.
Referenced by findFootnoteLayout(), FV_View::getClosestFootnote(), and getFootnoteVal().
fl_AutoNumPtr FL_DocLayout::getNthList | ( | UT_uint32 | i | ) | const [inline] |
References PD_Document::getNthList(), and m_pDoc.
fp_Page * FL_DocLayout::getNthPage | ( | int | n | ) | const |
References UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), m_vecPages, and UT_ASSERT.
Referenced by fb_ColumnBreaker::_getLastValidPage(), fl_DocSectionLayout::_HdrFtrChangeCallback(), fp_MathRun::_lookupProperties(), fp_EmbedRun::_lookupProperties(), abi_widget_render_page_to_image(), FV_View::calculateNumHorizPages(), fp_FieldPageReferenceRun::calculateValue(), clearAllCountWraps(), FV_View::draw(), Presentation::drawNthPage(), FV_View::getCurrentPageNumber(), FV_View::getMaxHeight(), FV_View::getWidthPagesInRow(), FV_View::getWidthPrevPagesInRow(), FV_View::insertHeaderFooter(), fl_DocSectionLayout::isThisPageValid(), AP_LeftRuler::mouseRelease(), setFramePageNumbers(), fl_BlockLayout::setFramesOnPage(), and FV_View::setViewMode().
fl_TOCLayout * FL_DocLayout::getNthTOC | ( | UT_sint32 | i | ) | const |
References UT_GenericVector< T >::getNthItem(), getNumTOCs(), and m_vecTOC.
Referenced by addOrRemoveBlockFromTOC(), fillLayouts(), getMatchingBlocksFromTOCs(), isBlockInTOC(), recalculateTOCFields(), removeBlockFromTOC(), and updateTOCsOnBookmarkChange().
UT_sint32 FL_DocLayout::getNumTOCs | ( | void | ) | const |
References UT_GenericVector< T >::getItemCount(), and m_vecTOC.
Referenced by addOrRemoveBlockFromTOC(), fillLayouts(), getMatchingBlocksFromTOCs(), getNthTOC(), isBlockInTOC(), recalculateTOCFields(), removeBlockFromTOC(), removeTOC(), and updateTOCsOnBookmarkChange().
UT_uint32 FL_DocLayout::getOffsetForSmartQuote | ( | void | ) | const [inline] |
Referenced by fl_BlockLayout::doclistener_insertSpan().
fl_BlockLayout* FL_DocLayout::getPendingBlockForSmartQuote | ( | void | ) | const [inline] |
Referenced by fl_BlockLayout::doclistener_insertSpan().
UT_sint32 FL_DocLayout::getPercentFilled | ( | void | ) | const [inline] |
bool FL_DocLayout::getPlaceEndAtDocEnd | ( | void | ) | const [inline] |
Referenced by AP_Dialog_FormatFootnotes::setInitialValues().
bool FL_DocLayout::getPlaceEndAtSecEnd | ( | void | ) | const [inline] |
Referenced by getDocSecForEndnote(), and AP_Dialog_FormatFootnotes::setInitialValues().
GR_EmbedManager * FL_DocLayout::getQuickPrintEmbedManager | ( | const char * | szEmbedType | ) |
Get an embedManager of the requested Type.for a quickPrint
References XAP_App::getApp(), XAP_App::getEmbeddableManager(), GR_EmbedManager::getObjectType(), GR_EmbedManager::initialize(), m_mapQuickPrintEmbedManager, m_pQuickPrintGraphics, and UT_DEBUGMSG.
Referenced by fp_MathRun::_lookupProperties(), and fp_EmbedRun::_lookupProperties().
GR_Graphics * FL_DocLayout::getQuickPrintGraphics | ( | void | ) | const |
References m_pQuickPrintGraphics.
Referenced by fp_Run::getGraphics().
fl_BlockLayout * FL_DocLayout::getRebuiltBlock | ( | void | ) | const |
References m_pRebuiltBlockLayout.
Referenced by fb_ColumnBreaker::_breakSection().
UT_uint32 FL_DocLayout::getRedrawCount | ( | ) | const [inline] |
bool FL_DocLayout::getRestartEndOnSection | ( | void | ) | const [inline] |
Referenced by AP_Dialog_FormatFootnotes::setInitialValues().
bool FL_DocLayout::getRestartFootOnPage | ( | void | ) | const [inline] |
Referenced by AP_Dialog_FormatFootnotes::setInitialValues().
bool FL_DocLayout::getRestartFootOnSection | ( | void | ) | const [inline] |
Referenced by AP_Dialog_FormatFootnotes::setInitialValues().
fp_Container * FL_DocLayout::getSavedContainerPointer | ( | void | ) | const |
References m_pSavedContainer.
Referenced by fb_ColumnBreaker::_breakSection().
UT_uint32 FL_DocLayout::getSkipUpdates | ( | void | ) | [inline] |
Referenced by _redrawUpdate().
bool FL_DocLayout::getSmartQuotes | ( | void | ) | const [inline] |
References fl_BlockLayout::hasBackgroundCheckReason().
Referenced by considerSmartQuoteCandidateAt().
void FL_DocLayout::getStringFromFootnoteVal | ( | UT_String & | sVal, | |
UT_sint32 | iVal, | |||
FootnoteType | iFootType | |||
) | const |
This method fills the referenced string with the character representation of the decimal footnote value based on the FootnoteType passed as a parameter
References fl_AutoNum::dec2ascii(), fl_AutoNum::dec2roman(), FOOTNOTE_TYPE_LOWER, FOOTNOTE_TYPE_LOWER_OPEN_PAREN, FOOTNOTE_TYPE_LOWER_PAREN, FOOTNOTE_TYPE_LOWER_ROMAN, FOOTNOTE_TYPE_LOWER_ROMAN_PAREN, FOOTNOTE_TYPE_NUMERIC, FOOTNOTE_TYPE_NUMERIC_OPEN_PAREN, FOOTNOTE_TYPE_NUMERIC_PAREN, FOOTNOTE_TYPE_NUMERIC_SQUARE_BRACKETS, FOOTNOTE_TYPE_UPPER, FOOTNOTE_TYPE_UPPER_OPEN_PAREN, FOOTNOTE_TYPE_UPPER_PAREN, FOOTNOTE_TYPE_UPPER_ROMAN, FOOTNOTE_TYPE_UPPER_ROMAN_PAREN, FREEP, getDocument(), getView(), NUMBERED_LIST, and UT_String_sprintf().
Referenced by TOCEntry::calculateLabel(), fp_FieldEndnoteRefRun::calculateValue(), fp_FieldEndnoteAnchorRun::calculateValue(), fp_FieldFootnoteAnchorRun::calculateValue(), fp_FieldFootnoteRefRun::calculateValue(), fp_FieldTOCNumRun::calculateValue(), and AP_Dialog_FormatFootnotes::recalcTextValues().
FV_View* FL_DocLayout::getView | ( | void | ) | const [inline] |
Referenced by fp_Line::_createMapOfRuns(), fp_TextRun::_draw(), fp_CellContainer::_drawBoundaries(), fp_Column::_drawBoundaries(), fp_TableContainer::_drawBrokenBoundaries(), fp_ShadowContainer::_drawHdrFtrBoundaries(), fp_TextRun::_drawInvisibleSpaces(), fp_CellContainer::_getBrokenRect(), fl_DocSectionLayout::_HdrFtrChangeCallback(), fl_TableLayout::_lookupMarginProperties(), fl_FrameLayout::_lookupMarginProperties(), fl_TableLayout::_lookupProperties(), fl_DocSectionLayout::_lookupProperties(), fl_FrameLayout::_lookupProperties(), AP_Win32App::_pasteFormatFromClipboard(), _prefsListener(), _redrawUpdate(), fl_CellLayout::_updateCell(), fl_DocSectionLayout::bl_doclistener_insertAnnotation(), fl_TableLayout::bl_doclistener_insertBlock(), fl_CellLayout::bl_doclistener_insertCell(), fl_TableLayout::bl_doclistener_insertCell(), fl_CellLayout::bl_doclistener_insertEndCell(), fl_EmbedLayout::bl_doclistener_insertEndEmbed(), fl_FrameLayout::bl_doclistener_insertEndFrame(), fl_TableLayout::bl_doclistener_insertEndTable(), fl_TOCLayout::bl_doclistener_insertEndTOC(), fl_DocSectionLayout::bl_doclistener_insertFootnote(), fl_SectionLayout::bl_doclistener_insertSection(), fl_TableLayout::bl_doclistener_insertTable(), fl_HdrFtrSectionLayout::bl_doclistener_insertTable(), fl_SectionLayout::bl_doclistener_insertTable(), fl_ContainerLayout::canContainPoint(), fl_DocListener::change(), fl_Squiggles::clear(), fp_ShadowContainer::clearScreen(), fl_HdrFtrSectionLayout::collapse(), fl_FrameLayout::collapse(), fl_DocSectionLayout::doclistener_deleteStrux(), fl_EmbedLayout::doclistener_deleteStrux(), fl_BlockLayout::doclistener_deleteStrux(), fp_ShadowContainer::draw(), fp_Line::drawBorders(), fp_CellContainer::drawBroken(), fp_CellContainer::drawSelectedCell(), Drop(), fl_HdrFtrShadow::findBlockAtPosition(), findBlockAtPosition(), findBlockAtPositionReverse(), fl_DocListener::fl_DocListener(), fl_DocSectionLayout::format(), fl_FrameLayout::format(), fl_EndnoteLayout::format(), fp_Line::getAbsLeftRight(), PD_Document::getAllViews(), fl_ContainerLayout::getAP(), getHeight(), fp_CellContainer::getScreenPositions(), fl_ContainerLayout::getSpanAP(), getStringFromFootnoteVal(), fp_VerticalContainer::getView(), getWidth(), fl_FrameLayout::insertBlockAfter(), fl_CellLayout::isCellSelected(), fp_Container::isOnScreen(), fl_ContainerLayout::isOnScreen(), fp_ShadowContainer::layout(), loadPendingObjects(), fl_FrameLayout::miniFormat(), fl_ShadowListener::populate(), fl_ShadowListener::populateStrux(), fl_DocListener::populateStrux(), fl_DocListener::processDeferredNotifications(), fl_FrameLayout::recalculateFields(), fl_HdrFtrShadow::redrawUpdate(), AP_Dialog_Spell::runModal(), setDocViewPageSize(), fl_DocSectionLayout::setPaperColor(), fl_TOCLayout::setSelected(), fl_DocListener::signal(), updateColor(), fl_DocSectionLayout::updateDocSection(), fl_DocSectionLayout::updateLayout(), fl_FrameLayout::updateLayout(), fl_TableLayout::updateTable(), and fl_FrameLayout::~fl_FrameLayout().
UT_sint32 FL_DocLayout::getWidth | ( | void | ) | const |
Calculates the maximum width a page has in the layout.
Includes the left page margin when not printing.
References GR_Graphics::DGP_SCREEN, fl_PAGEVIEW_MARGIN_X, UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), FV_View::getPageViewLeftMargin(), getView(), fp_Page::getWidth(), m_pG, m_vecPages, and GR_Graphics::queryProperties().
Referenced by AP_Win32FrameImpl::_setXScrollRange(), IE_Exp_Cairo::_writeDocument(), Print_MailMerge_Listener::fireUpdate(), AP_Convert::print(), AP_Convert::printFirstPage(), and s_doPrint().
bool FL_DocLayout::hasBackgroundCheckReason | ( | UT_uint32 | reason | ) | const [inline] |
Referenced by fl_BlockLayout::doclistener_insertSpan().
void FL_DocLayout::incrementGraphicTick | ( | void | ) | [inline] |
Referenced by abi_widget_render_page_to_image(), XAP_UnixDialog_Print::cleanup(), fp_Page::draw(), and AP_Frame::quickZoom().
void FL_DocLayout::insertEndnoteContainer | ( | fp_EndnoteContainer * | pECon | ) |
This method inserts the endnote container into the list of containers held held by the appropriate DocSection.
References fp_VerticalContainer::addContainer(), fp_Container::getContainer(), getDocSecForEndnote(), fl_DocSectionLayout::getFirstEndnoteContainer(), fl_DocSectionLayout::getLastContainer(), fl_DocSectionLayout::getLastEndnoteContainer(), fl_DocSectionLayout::getNewContainer(), fp_Container::getNext(), fl_ContainerLayout::getPosition(), fp_Container::getPrev(), fp_ContainerObject::getSectionLayout(), fp_VerticalContainer::insertContainer(), fp_VerticalContainer::insertContainerAfter(), fp_Column::layout(), fl_DocSectionLayout::setFirstEndnoteContainer(), fl_DocSectionLayout::setLastEndnoteContainer(), fp_Container::setNext(), fp_Container::setPrev(), and UT_return_if_fail.
Referenced by fl_EndnoteLayout::_insertEndnoteContainer().
void FL_DocLayout::insertSectionAfter | ( | fl_DocSectionLayout * | pAfter, | |
fl_DocSectionLayout * | pNewSL | |||
) |
This method inserts a DocSectionLayout into the linked list of SectionLayout's and updates the m_pFirstSection and m_pLastSection member variables accordingly
fl_DocSectionLayout | * pNewSL the DocSectionLayout to be inserted. | |
fl_DocSectionLayout* | pAfter the DocSectionLayout after which our new DocSectionLayout is inserted. |
References fl_ContainerLayout::getNext(), m_pLastSection, fl_ContainerLayout::setNext(), fl_ContainerLayout::setPrev(), and UT_return_if_fail.
Referenced by addSection(), and fl_BlockLayout::doclistener_insertSection().
bool FL_DocLayout::isBlockInTOC | ( | fl_BlockLayout * | pBlock | ) | const |
returns true if the block is in at least one TOC.
References getNthTOC(), getNumTOCs(), and fl_TOCLayout::isBlockInTOC().
Referenced by fl_BlockLayout::doclistener_deleteStrux().
bool FL_DocLayout::isLayoutDeleting | ( | void | ) | const [inline] |
bool FL_DocLayout::isLayoutFilling | ( | void | ) | const [inline] |
Referenced by fl_TOCLayout::_addBlockInVec(), fl_DocSectionLayout::_HdrFtrChangeCallback(), _redrawUpdate(), fl_TOCLayout::addBlock(), FV_Selection::checkSelectAll(), fp_TableContainer::clearScreen(), findBlockAtPosition(), findBlockAtPositionReverse(), fl_DocSectionLayout::format(), fl_BlockLayout::format(), fl_BlockLayout::formatWrappedFromHere(), fl_DocSectionLayout::getNewContainer(), fl_TableLayout::markAllRunsDirty(), fl_DocListener::populateStrux(), rebuildFromHere(), fl_DocSectionLayout::redrawUpdate(), fl_BlockLayout::setFramesOnPage(), fp_FrameContainer::setPreferedColumnNo(), fp_FrameContainer::setPreferedPageNo(), fl_DocSectionLayout::updateLayout(), updateLayout(), updateTOCsOnBookmarkChange(), and fl_TOCLayout::verifyBookmarkAssumptions().
bool FL_DocLayout::isQuickPrint | ( | void | ) | const [inline] |
bool FL_DocLayout::loadPendingObjects | ( | void | ) |
This method loads all the pending objects that could not be loaded until the rest of the text is layed out.
References AnchoredObjectHelper(), PD_Document::clearAllPendingObjects(), fl_DocSectionLayout::format(), TextboxPage::getContent(), getDocument(), ImagePage::getImageId(), UT_ByteBuf::getLength(), fl_DocSectionLayout::getNextDocSection(), PD_Document::getNthImagePage(), PD_Document::getNthTextboxPage(), fp_Page::getOwningSection(), TextboxPage::getPageNo(), ImagePage::getPageNo(), UT_ByteBuf::getPointer(), pf_Frag::getPos(), TextboxPage::getProps(), getView(), TextboxPage::getXInch(), ImagePage::getXInch(), TextboxPage::getYInch(), ImagePage::getYInch(), FV_View::insertParaBreakIfNeededAtPos(), PD_Document::insertStrux(), IE_Imp_RTF::pasteFromBuffer(), PTX_Block, PTX_EndFrame, PTX_SectionFrame, fl_DocSectionLayout::setNeedsSectionBreak(), UT_UTF8String_setProperty(), and UT_UTF8String::utf8_str().
Referenced by fillLayouts().
void FL_DocLayout::notifyBlockIsBeingDeleted | ( | fl_BlockLayout * | pBlock | ) |
References fl_BlockLayout::dequeueFromSpellCheck(), m_pPendingBlockForSmartQuote, and m_pPendingBlockForSpell.
Referenced by fl_BlockLayout::~fl_BlockLayout().
void FL_DocLayout::notifyListeners | ( | AV_ChangeMask | mask | ) |
References m_pView, and FV_View::notifyListeners().
Referenced by fl_DocListener::signal().
void FL_DocLayout::rebuildFromHere | ( | fl_DocSectionLayout * | pDSL | ) |
References clearAllCountWraps(), fl_DocSectionLayout::clearRebuild(), fl_DocSectionLayout::collapse(), deleteEmptyColumnsAndPages(), UT_GenericVector< T >::getItemCount(), fl_DocSectionLayout::getNextDocSection(), UT_GenericVector< T >::getNthItem(), fp_Page::getOwningSection(), isLayoutFilling(), PD_Document::isMarginChangeOnly(), m_pDoc, m_pFirstSection, m_vecPages, fl_DocSectionLayout::updateDocSection(), UT_ASSERT, and UT_DEBUGMSG.
Referenced by _redrawUpdate(), FV_View::cmdSetRevisionLevel(), fl_DocSectionLayout::doclistener_changeStrux(), FV_View::fontMetricsChange(), FV_View::rebuildLayout(), FV_View::replaceGraphics(), setDocViewPageSize(), FV_View::setShowRevisions(), updateLayout(), and updatePropsRebuild().
void FL_DocLayout::recalculateTOCFields | ( | void | ) |
void FL_DocLayout::refreshRunProperties | ( | void | ) |
This method is used to reset the colorization such as what occurs when showAuthors state is changed.
References fl_SectionLayout::getFirstBlock(), getFirstSection(), fl_ContainerLayout::getNextBlockInDocument(), and fl_BlockLayout::refreshRunProperties().
Referenced by fl_DocListener::change(), setQuickPrint(), and PD_Document::setShowAuthors().
fl_FrameLayout * FL_DocLayout::relocateFrame | ( | fl_FrameLayout * | pFL, | |
fl_BlockLayout * | newBlock, | |||
const PP_PropertyVector & | attributes = PP_NOPROPS , |
|||
const PP_PropertyVector & | properties = PP_NOPROPS | |||
) |
relocate the frame given to a new block. This involves changing the piece table as the frame strux is placed immediately after its parent block strux. The function returns the pointer to the new frame layout.
References PD_Document::beginUserAtomicGlob(), PP_AttrProp::cloneWithReplacements(), IE_Exp::copyToBuffer(), PD_Document::deleteSpan(), PD_Document::endUserAtomicGlob(), fl_ContainerLayout::getAP(), PP_AttrProp::getAttributes(), fl_ContainerLayout::getContainerType(), pf_Frag_Strux::getFmtHandle(), fl_FrameLayout::getFrameType(), UT_ByteBuf::getLength(), fl_FrameLayout::getLength(), PD_Document::getNextStruxOfType(), UT_ByteBuf::getPointer(), pf_Frag::getPos(), fl_BlockLayout::getPosition(), fl_ContainerLayout::getPosition(), PP_AttrProp::getProperties(), fl_Layout::getStruxDocHandle(), PD_Document::getStruxPosition(), FV_View::insertParaBreakIfNeededAtPos(), PD_Document::insertStrux(), PD_Document::isDoingTheDo(), m_lid, m_pDoc, m_pView, IE_Imp_RTF::pasteFromBuffer(), PTX_EndFrame, PD_DocumentRange::set(), UT_ASSERT_HARMLESS, and UT_SHOULD_NOT_HAPPEN.
Referenced by FV_View::cmdCharDelete(), fl_BlockLayout::doclistener_insertBlock(), FV_FrameEdit::mouseRelease(), and FV_View::setFrameFormat().
void FL_DocLayout::removeAnnotation | ( | fl_AnnotationLayout * | pFL | ) |
Remove an annotation layout from the Vector.
References compareLayouts(), countAnnotations(), UT_GenericVector< T >::deleteNthItem(), UT_GenericVector< T >::findItem(), fl_AnnotationLayout::getAnnotationRun(), getNthAnnotation(), isLayoutDeleting(), m_vecAnnotations, UT_GenericVector< T >::qsort(), and fp_AnnotationRun::recalcValue().
Referenced by fl_AnnotationLayout::~fl_AnnotationLayout().
void FL_DocLayout::removeBackgroundCheckReason | ( | UT_uint32 | reason | ) | [inline] |
Referenced by _toggleAutoSmartQuotes().
bool FL_DocLayout::removeBlockFromTOC | ( | fl_BlockLayout * | pBlock | ) |
Remove pBlock from all the TOC's it's in. Return false if there are no TOC's in the Doc. return true otherwise.
References getNthTOC(), getNumTOCs(), fl_TOCLayout::isBlockInTOC(), and fl_TOCLayout::removeBlock().
Referenced by fl_BlockLayout::_lookupProperties(), fl_BlockLayout::doclistener_deleteStrux(), and fl_BlockLayout::~fl_BlockLayout().
void FL_DocLayout::removeEndnote | ( | fl_EndnoteLayout * | pFL | ) |
Remove a foonote layout from the Vector.
References UT_GenericVector< T >::deleteNthItem(), UT_GenericVector< T >::findItem(), and m_vecEndnotes.
Referenced by fl_EndnoteLayout::~fl_EndnoteLayout().
void FL_DocLayout::removeEndnoteContainer | ( | fp_EndnoteContainer * | pECon | ) |
This method checks to too if the endnote container to be removed is the first or last of the section. If it is the first/last pointers are updated.
References fp_Container::getContainer(), getDocSecForEndnote(), fl_DocSectionLayout::getFirstEndnoteContainer(), fl_DocSectionLayout::getLastEndnoteContainer(), fp_Container::getNext(), fp_Container::getPrev(), fp_VerticalContainer::removeContainer(), fl_DocSectionLayout::setFirstEndnoteContainer(), fl_DocSectionLayout::setLastEndnoteContainer(), fp_ContainerObject::setNext(), fp_ContainerObject::setPrev(), and xxx_UT_DEBUGMSG.
Referenced by fl_EndnoteLayout::collapse(), and fl_EndnoteLayout::~fl_EndnoteLayout().
void FL_DocLayout::removeFootnote | ( | fl_FootnoteLayout * | pFL | ) |
Remove a foonote layout from the Vector.
References UT_GenericVector< T >::deleteNthItem(), UT_GenericVector< T >::findItem(), and m_vecFootnotes.
Referenced by fl_FootnoteLayout::~fl_FootnoteLayout().
bool FL_DocLayout::removeFramesToBeInserted | ( | fp_FrameContainer * | pFrame | ) |
remove a frame from the list of frames that need to be inserted on a page later in the document.
References UT_GenericVector< T >::deleteNthItem(), UT_GenericVector< T >::findItem(), and m_vecFramesToBeInserted.
Referenced by fl_DocSectionLayout::getNewContainer().
void FL_DocLayout::removeHdrFtrSection | ( | fl_SectionLayout * | pHdrFtrSL | ) |
This method removes a header/footer layout from the section linked list.
fl_SectionLayout | * pHdrFtrSL is the header/footer section to be removed |
References fl_ContainerLayout::getNext(), fl_ContainerLayout::getPrev(), fl_ContainerLayout::setNext(), fl_ContainerLayout::setPrev(), and UT_return_if_fail.
Referenced by fl_HdrFtrSectionLayout::~fl_HdrFtrSectionLayout().
void FL_DocLayout::removeSection | ( | fl_DocSectionLayout * | pSL | ) |
This method removes a DocSectionLayout from the linked list of SectionLayout's and updates the m_pFirstSection and m_pLastSection member variables accordingly
fl_DocSectionLayout | * pSL the DocSectionLayout to be removed. |
References fl_ContainerLayout::getNext(), fl_DocSectionLayout::getNextDocSection(), fl_ContainerLayout::getPrev(), fl_DocSectionLayout::getPrevDocSection(), m_pFirstSection, m_pLastSection, fl_ContainerLayout::setNext(), fl_ContainerLayout::setPrev(), UT_ASSERT, and UT_return_if_fail.
Referenced by fl_HdrFtrSectionLayout::changeIntoHdrFtrSection(), and fl_DocSectionLayout::doclistener_deleteStrux().
bool FL_DocLayout::removeTOC | ( | fl_TOCLayout * | pTOC | ) |
References UT_GenericVector< T >::deleteNthItem(), UT_GenericVector< T >::findItem(), getNumTOCs(), and m_vecTOC.
Referenced by fl_TOCLayout::~fl_TOCLayout().
void FL_DocLayout::setDisplayAnnotations | ( | bool | bDisplayAnnotations | ) |
References m_bDisplayAnnotations.
void FL_DocLayout::setDisplayRDFAnchors | ( | bool | v | ) |
References m_bDisplayRDFAnchors.
bool FL_DocLayout::setDocViewPageSize | ( | const PP_AttrProp * | pAP | ) |
Set the Document View page Size to properties provided. Rebuild the document afterwards.
References _setDocPageDimensions(), FV_View::calculateZoomPercentForPageWidth(), FV_View::calculateZoomPercentForWholePage(), FV_View::clearHdrFtrEdit(), AV_View::getParentData(), PP_AttrProp::getProperties(), getView(), FV_View::getViewMode(), XAP_Frame::getZoomPercentage(), XAP_Frame::getZoomType(), FV_View::isHdrFtrEdit(), m_docViewPageSize, m_pFirstSection, XAP_Frame::quickZoom(), rebuildFromHere(), fp_PageSize::Set(), FV_View::warpInsPtToXY(), XAP_Frame::z_PAGEWIDTH, and XAP_Frame::z_WHOLEPAGE.
Referenced by fl_DocListener::change().
void FL_DocLayout::setFramePageNumbers | ( | UT_sint32 | iStartPage | ) |
Starting from page iStartPage, set the page numbers of the frames in the document.
References countPages(), getNthPage(), and fp_Page::setPageNumberInFrames().
Referenced by fb_ColumnBreaker::_breakSection(), deletePage(), and fillLayouts().
void FL_DocLayout::setGraphics | ( | GR_Graphics * | pG | ) |
Change the graphics pointer for this layout.Needed for quick zoom.
References m_iGraphicTick, m_pG, and updatePropsRebuild().
Referenced by FV_View::replaceGraphics().
void FL_DocLayout::setLayoutIsFilling | ( | bool | bisFill | ) | [inline] |
Referenced by fillLayouts(), and FL_DocLayout().
void FL_DocLayout::setNeedsRedraw | ( | void | ) |
Mark the whole document for a redraw
References fl_SectionLayout::getFirstBlock(), fl_ContainerLayout::getNextBlockInDocument(), m_pFirstSection, fl_BlockLayout::setNeedsRedraw(), and setSkipUpdates().
Referenced by fl_DocListener::change().
void FL_DocLayout::setPendingSmartQuote | ( | fl_BlockLayout * | block, | |
UT_uint32 | offset | |||
) |
References m_pPendingBlockForSmartQuote, m_uOffsetForSmartQuote, and xxx_UT_DEBUGMSG.
Referenced by _toggleAutoSmartQuotes(), considerSmartQuoteCandidateAt(), and fl_BlockLayout::doclistener_insertSpan().
void FL_DocLayout::setPercentFilled | ( | UT_sint32 | iFill | ) | [inline] |
Referenced by fl_DocListener::populateStrux().
void FL_DocLayout::setQuickPrint | ( | GR_Graphics * | pGraphics | ) |
Set the variables needed for a QuickPrint
References fl_BlockLayout::clearPrint(), fl_SectionLayout::getFirstBlock(), getFirstSection(), fl_ContainerLayout::getNextBlockInDocument(), m_bIsQuickPrint, m_mapQuickPrintEmbedManager, m_pQuickPrintGraphics, and refreshRunProperties().
Referenced by abi_widget_render_page_to_image(), XAP_UnixDialog_Print::BeginPrint(), and XAP_UnixDialog_Print::cleanup().
void FL_DocLayout::setRebuiltBlock | ( | fl_BlockLayout * | pBlock | ) |
References m_pRebuiltBlockLayout.
Referenced by fl_BlockLayout::_removeLine().
void FL_DocLayout::setSaveContainerPointer | ( | fp_Container * | pContainer | ) |
Code to deal with Dangling Pointers in fb_ColumnBreaker. Unfortunately there is no way to avoid the problem that some containers will get deleted during a page wrap. Even more unfortunately we need to hold a pointer to a container in fb_ColumnBreaker that coukd get deleted. This code allows us to detect and repair the damage when this occurs.
The save the pointer that might be left dangling. This methos is called from fb_ColumnBreak. We set a boolean inside this class that tells us we need signal fl_Doclayout that it has been deleted. The pointer m_pRebuiltBlock is the block that contains the Container. The pointer to it will be set within BlockLayout when the container gets deleted
References m_pRebuiltBlockLayout, m_pSavedContainer, and fp_ContainerObject::setAllowDelete().
Referenced by fb_ColumnBreaker::_breakSection().
void FL_DocLayout::setSkipUpdates | ( | UT_uint32 | numSkips | ) | [inline] |
Referenced by FV_View::_moveInsPtNextPrevLine(), _redrawUpdate(), and setNeedsRedraw().
void FL_DocLayout::setSpellQueueHead | ( | fl_BlockLayout * | h | ) | [inline] |
References m_toSpellCheckHead.
Referenced by fl_BlockLayout::dequeueFromSpellCheck(), and fl_BlockLayout::enqueueToSpellCheckAfter().
void FL_DocLayout::setSpellQueueHead | ( | fl_BlockLayout * | h | ) | [inline] |
References m_toSpellCheckHead.
void FL_DocLayout::setSpellQueueTail | ( | fl_BlockLayout * | t | ) | [inline] |
References m_toSpellCheckTail.
void FL_DocLayout::setSpellQueueTail | ( | fl_BlockLayout * | t | ) | [inline] |
References m_toSpellCheckTail.
Referenced by fl_BlockLayout::dequeueFromSpellCheck(), and fl_BlockLayout::enqueueToSpellCheckAfter().
void FL_DocLayout::setView | ( | FV_View * | pView | ) |
References _prefsListener(), addBackgroundCheckReason(), XAP_Prefs::addListener(), bgcrDebugFlash, bgcrGrammar, XAP_App::getApp(), getFirstPage(), fp_Page::getNext(), XAP_App::getPrefs(), XAP_Prefs::getPrefsValueBool(), m_bAutoGrammarCheck, m_iGrammarCount, m_iPrevPos, m_pPrefs, m_pView, fp_Page::setView(), and UT_ASSERT_HARMLESS.
Referenced by FV_View::copyTextToClipboard(), Defun1(), FV_View::FV_View(), AP_Convert::print(), AP_Convert::printFirstPage(), and s_pasteFile().
fl_BlockLayout* FL_DocLayout::spellQueueHead | ( | void | ) | const [inline] |
References m_toSpellCheckHead.
fl_BlockLayout* FL_DocLayout::spellQueueHead | ( | void | ) | const [inline] |
References m_toSpellCheckHead.
Referenced by fl_BlockLayout::enqueueToSpellCheckAfter().
void FL_DocLayout::triggerPendingBlock | ( | fl_BlockLayout * | pBL | ) |
Referenced by FV_View::_fixInsertionPointCoords().
void FL_DocLayout::updateColor | ( | ) |
References gchar, AV_View::getApp(), fp_Page::getFillType(), UT_GenericVector< T >::getItemCount(), fl_DocSectionLayout::getNextDocSection(), UT_GenericVector< T >::getNthItem(), XAP_App::getPrefs(), XAP_Prefs::getPrefsValue(), getView(), m_pDoc, m_pFirstSection, m_szCurrentTransparentColor, m_vecPages, fg_FillType::markTransparentForPrint(), fl_DocSectionLayout::setPaperColor(), fg_FillType::setTransColor(), FV_View::updateScreen(), UT_ASSERT, and XAP_PREF_KEY_ColorForTransparent.
Referenced by _prefsListener().
void FL_DocLayout::updateLayout | ( | void | ) |
References deleteEmptyColumnsAndPages(), fl_ContainerLayout::getNext(), fl_SectionLayout::getType(), isLayoutFilling(), AD_Document::isPieceTableChanging(), m_pDoc, m_pFirstSection, rebuildFromHere(), fl_ContainerLayout::updateLayout(), and UT_ASSERT.
Referenced by fl_DocListener::change(), fillLayouts(), FV_View::insertHeaderFooter(), FV_View::insertPageNum(), fl_DocListener::populate(), fl_DocListener::populateStrux(), s_LoadingCursorCallback(), fl_DocListener::signal(), and FV_View::updateLayout().
void FL_DocLayout::updateOnViewModeChange | ( | ) |
void FL_DocLayout::updatePropsNoRebuild | ( | void | ) |
References _lookupProperties().
Referenced by fl_DocListener::signal().
void FL_DocLayout::updatePropsRebuild | ( | void | ) |
References _lookupProperties(), m_pFirstSection, and rebuildFromHere().
Referenced by setGraphics(), and fl_DocListener::signal().
bool FL_DocLayout::updateTOCsOnBookmarkChange | ( | const gchar * | pBookmark | ) |
friend class fl_BlockLayout [friend] |
friend class fl_DocListener [friend] |
Referenced by fillLayouts().
bool FL_DocLayout::m_bAutoGrammarCheck [private] |
Referenced by _prefsListener(), and setView().
bool FL_DocLayout::m_bAutoSpellCheck [private] |
Referenced by _prefsListener().
bool FL_DocLayout::m_bDeletingLayout [private] |
Referenced by ~FL_DocLayout().
bool FL_DocLayout::m_bDisplayAnnotations [private] |
Referenced by _prefsListener(), displayAnnotations(), and setDisplayAnnotations().
bool FL_DocLayout::m_bDisplayRDFAnchors [private] |
Referenced by _prefsListener(), displayRDFAnchors(), and setDisplayRDFAnchors().
bool FL_DocLayout::m_bFinishedInitialCheck [private] |
Referenced by fillLayouts().
bool FL_DocLayout::m_bImSpellCheckingNow [private] |
bool FL_DocLayout::m_bisLayoutFilling [private] |
bool FL_DocLayout::m_bIsQuickPrint [private] |
Referenced by setQuickPrint().
bool FL_DocLayout::m_bPlaceAtDocEnd [private] |
Referenced by _lookupProperties().
bool FL_DocLayout::m_bPlaceAtSecEnd [private] |
Referenced by _lookupProperties().
bool FL_DocLayout::m_bRestartEndSection [private] |
Referenced by _lookupProperties(), and getEndnoteVal().
bool FL_DocLayout::m_bRestartFootPage [private] |
Referenced by _lookupProperties(), and getFootnoteVal().
bool FL_DocLayout::m_bRestartFootSection [private] |
Referenced by _lookupProperties(), and getFootnoteVal().
bool FL_DocLayout::m_bSpellCheckCaps [private] |
Referenced by _prefsListener().
bool FL_DocLayout::m_bSpellCheckInProgress [private] |
bool FL_DocLayout::m_bSpellCheckInternet [private] |
Referenced by _prefsListener().
bool FL_DocLayout::m_bSpellCheckNumbers [private] |
Referenced by _prefsListener().
bool FL_DocLayout::m_bStopSpellChecking [private] |
Referenced by ~FL_DocLayout().
Referenced by _setDocPageDimensions(), addNewPage(), XAP_UnixFrameImpl::_fe::do_ZoomUpdate(), fillLayouts(), fl_DocSectionLayout::getActualColumnHeight(), fl_DocSectionLayout::getActualColumnWidth(), fl_DocSectionLayout::getWidth(), AP_Frame::quickZoom(), setDocViewPageSize(), and updateOnViewModeChange().
FootnoteType FL_DocLayout::m_EndnoteType [private] |
Referenced by _lookupProperties().
FootnoteType FL_DocLayout::m_FootnoteType [private] |
Referenced by _lookupProperties(), and getFootnoteType().
PT_DocPosition FL_DocLayout::m_iDocSize [private] |
Referenced by fillLayouts().
UT_sint32 FL_DocLayout::m_iEndnoteVal [private] |
Referenced by _lookupProperties(), and getEndnoteVal().
UT_sint32 FL_DocLayout::m_iFilled [private] |
UT_sint32 FL_DocLayout::m_iFootnoteVal [private] |
Referenced by _lookupProperties(), and getFootnoteVal().
UT_sint32 FL_DocLayout::m_iGrammarCount [private] |
Referenced by fillLayouts(), and setView().
UT_uint32 FL_DocLayout::m_iGraphicTick [private] |
Referenced by _prefsListener(), and setGraphics().
UT_sint32 FL_DocLayout::m_iPageHeight [private] |
Referenced by _setDocPageDimensions().
UT_sint32 FL_DocLayout::m_iPageWidth [private] |
Referenced by _setDocPageDimensions().
PT_DocPosition FL_DocLayout::m_iPrevPos [private] |
Referenced by fillLayouts(), and setView().
UT_uint32 FL_DocLayout::m_iRedrawCount [private] |
Referenced by _redrawUpdate().
UT_uint32 FL_DocLayout::m_iSkipUpdates [private] |
PL_ListenerId FL_DocLayout::m_lid [private] |
Referenced by fillLayouts(), findBlockAtPosition(), findBlockAtPositionReverse(), relocateFrame(), and ~FL_DocLayout().
std::map<std::string, GR_EmbedManager *> FL_DocLayout::m_mapEmbedManager [private] |
Referenced by getEmbedManager(), and ~FL_DocLayout().
std::map<std::string, GR_EmbedManager *> FL_DocLayout::m_mapQuickPrintEmbedManager [private] |
Referenced by getQuickPrintEmbedManager(), setQuickPrint(), and ~FL_DocLayout().
UT_Worker* FL_DocLayout::m_pBackgroundCheckTimer [private] |
Referenced by ~FL_DocLayout().
PD_Document* FL_DocLayout::m_pDoc [private] |
Referenced by addList(), changeDocSections(), deletePage(), fillLayouts(), findBlockAtPosition(), findBlockAtPositionReverse(), findFont(), FL_DocLayout(), formatAll(), getListByID(), getListsCount(), getNthList(), rebuildFromHere(), relocateFrame(), updateColor(), updateLayout(), and ~FL_DocLayout().
fl_DocListener* FL_DocLayout::m_pDocListener [private] |
Referenced by fillLayouts(), and ~FL_DocLayout().
fl_DocSectionLayout* FL_DocLayout::m_pFirstSection [private] |
GR_Graphics* FL_DocLayout::m_pG [private] |
Referenced by _redrawUpdate(), findFont(), getEmbedManager(), getHeight(), getWidth(), and setGraphics().
fl_DocSectionLayout* FL_DocLayout::m_pLastSection [private] |
Referenced by addHdrFtrSection(), addSection(), insertSectionAfter(), and removeSection().
Referenced by notifyBlockIsBeingDeleted(), and setPendingSmartQuote().
const fl_BlockLayout* FL_DocLayout::m_pPendingBlockForSpell [private] |
Referenced by notifyBlockIsBeingDeleted().
XAP_Prefs* FL_DocLayout::m_pPrefs [private] |
Referenced by considerSmartQuoteCandidateAt(), setView(), and ~FL_DocLayout().
GR_Graphics* FL_DocLayout::m_pQuickPrintGraphics [private] |
Referenced by getQuickPrintEmbedManager(), getQuickPrintGraphics(), and setQuickPrint().
Referenced by getRebuiltBlock(), setRebuiltBlock(), and setSaveContainerPointer().
UT_Timer* FL_DocLayout::m_pRedrawUpdateTimer [private] |
Referenced by FL_DocLayout(), and ~FL_DocLayout().
fp_Container* FL_DocLayout::m_pSavedContainer [private] |
Referenced by getSavedContainerPointer(), and setSaveContainerPointer().
FV_View* FL_DocLayout::m_pView [private] |
Referenced by _redrawUpdate(), addNewPage(), considerSmartQuoteCandidateAt(), deletePage(), fillLayouts(), notifyListeners(), relocateFrame(), and setView().
char FL_DocLayout::m_szCurrentTransparentColor[10] [private] |
Referenced by _prefsListener(), FL_DocLayout(), and updateColor().
fl_BlockLayout * FL_DocLayout::m_toSpellCheckHead [private] |
Referenced by main(), setSpellQueueHead(), and spellQueueHead().
fl_BlockLayout * FL_DocLayout::m_toSpellCheckTail [private] |
Referenced by main(), and setSpellQueueTail().
Referenced by setPendingSmartQuote().
Referenced by addAnnotation(), countAnnotations(), findAnnotationLayout(), FL_DocLayout(), getAnnotationVal(), getNthAnnotation(), and removeAnnotation().
UT_GenericVector<fl_EndnoteLayout *> FL_DocLayout::m_vecEndnotes [private] |
Referenced by addEndnote(), countEndnotes(), findEndnoteLayout(), FL_DocLayout(), getEndnoteVal(), getNthEndnote(), and removeEndnote().
Referenced by addFootnote(), countFootnotes(), findFootnoteLayout(), FL_DocLayout(), getFootnoteVal(), getNthFootnote(), and removeFootnote().
Referenced by addFramesToBeInserted(), fillLayouts(), findFramesToBeInserted(), and removeFramesToBeInserted().
UT_GenericVector<fp_Page *> FL_DocLayout::m_vecPages [private] |
UT_GenericVector<fl_TOCLayout *> FL_DocLayout::m_vecTOC [private] |
Referenced by addTOC(), getNthTOC(), getNumTOCs(), and removeTOC().