#include <fl_DocLayout.h>
| FL_DocLayout::FL_DocLayout | ( | PD_Document * | doc, | |
| GR_Graphics * | pG | |||
| ) |
References _redrawUpdate(), 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_pBackgroundCheckTimer, m_pDoc, m_pDocListener, m_pFirstSection, m_pPendingWordForSpell, m_pPrefs, m_pRedrawUpdateTimer, m_vecEmbedManager, m_vecPages, m_vecQuickPrintEmbedManager, PD_Document::removeListener(), XAP_Prefs::removeListener(), fp_Page::setNext(), UT_Timer::stop(), UT_Worker::stop(), UT_DEBUGMSG, and UT_VECTOR_PURGEALL.
| FL_DocLayout::FL_DocLayout | ( | ) | [inline] |
| FL_DocLayout::FL_DocLayout | ( | ) | [inline] |
| void FL_DocLayout::fillLayouts | ( | void | ) |
This Method fills the layout structures from the PieceTable.
References _lookupProperties(), PD_Document::addListener(), FV_View::clearCursorWait(), fl_DocSectionLayout::completeBreakSection(), GR_Graphics::DGP_PAPER, FL_CONTAINER_BLOCK, FL_CONTAINER_DOCSECTION, fl_DocListener, fl_ContainerLayout::format(), formatAll(), FV_DOCPOS_BOD, PD_Document::getBounds(), fl_ContainerLayout::getContainerType(), getDocument(), getFirstPage(), getFirstSection(), getGraphics(), fl_ContainerLayout::getLastContainer(), fl_ContainerLayout::getLastLayout(), getLastSection(), fp_Page::getNext(), fl_ContainerLayout::getNext(), getNthTOC(), getNumTOCs(), fp_Line::getPage(), AV_View::getParentData(), fl_ContainerLayout::getPrevBlockInDocument(), fl_TOCLayout::getSectionLayout(), m_bFinishedInitialCheck, PD_Document::m_docPageSize, m_docViewPageSize, m_iDocSize, m_iGrammarCount, m_iPrevPos, m_lid, m_pDoc, m_pDocListener, m_pView, FV_View::moveInsPtTo(), GR_Graphics::queryProperties(), PD_Document::setDontImmediatelyLayout(), setFramePageNumbers(), fl_DocListener::setHoldTableLayout(), AV_View::setLayoutIsFilling(), setLayoutIsFilling(), FV_View::setPoint(), XAP_Frame::setYScrollRange(), 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_PDF::_writeDocument(), AP_Preview_Abi::AP_Preview_Abi(), FV_View::copyTextToClipboard(), Defun(), Defun1(), Print_MailMerge_Listener::fireUpdate(), AP_Convert::print(), AbiCommand::printFiles(), AP_Convert::printFirstPage(), AbiCommand::replaceDocument(), s_doPrint(), s_doPrintPreview(), s_pasteFile(), and IE_FieldUpdater::updateFields().
| void FL_DocLayout::setView | ( | FV_View * | pView | ) |
References _prefsListener(), addBackgroundCheckReason(), XAP_Prefs::addListener(), bgcrDebugFlash, bgcrGrammar, AV_View::getApp(), getFirstPage(), fp_Page::getNext(), XAP_App::getPrefs(), XAP_Prefs::getPrefsValueBool(), m_bAutoGrammarCheck, m_iGrammarCount, m_iPrevPos, m_pPrefs, m_pView, fp_Page::setView(), UT_ASSERT_HARMLESS, and UT_return_if_fail.
Referenced by FV_View::copyTextToClipboard(), Defun(), Defun1(), FV_View::FV_View(), AP_Convert::print(), AP_Convert::printFirstPage(), and s_pasteFile().
| 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_SectionLayout::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_BlockLayout::doclistener_deleteStrux(), fp_ShadowContainer::draw(), fp_CellContainer::drawBroken(), fp_CellContainer::drawSelectedCell(), Drop(), fl_HdrFtrShadow::findBlockAtPosition(), findBlockAtPosition(), findBlockAtPositionReverse(), fl_DocSectionLayout::format(), fl_FrameLayout::format(), fl_EndnoteLayout::format(), PD_Document::getAllViews(), fl_ContainerLayout::getAP(), getHeight(), fp_CellContainer::getScreenPositions(), fl_ContainerLayout::getSpanAP(), fp_VerticalContainer::getView(), getWidth(), fl_FrameLayout::insertBlockAfter(), fl_CellLayout::isCellSelected(), fp_Container::isOnScreen(), fl_ContainerLayout::isOnScreen(), fp_ShadowContainer::layout(), 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().
| GR_Graphics* FL_DocLayout::getGraphics | ( | void | ) | const [inline] |
Referenced by fl_BlockLayout::_doInsertTextSpan(), 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(), 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().
| 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().
| UT_uint32 FL_DocLayout::getGraphicTick | ( | void | ) | const [inline] |
Referenced by fp_ImageRun::_draw(), fg_FillType::_regenerateImage(), 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().
| void FL_DocLayout::incrementGraphicTick | ( | void | ) | [inline] |
Referenced by fp_Page::draw(), and AP_Frame::quickZoom().
| 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(), AP_PrintingDelegate::printPage(), AP_Frame::quickZoom(), AP_Dialog_Spell::runModal(), s_doPageSetupDlg(), s_doPrint(), s_doPrintPreview(), s_doStylesDlg(), fp_FrameContainer::setPreferedPageNo(), updateOnViewModeChange(), and fl_TOCLayout::verifyBookmarkAssumptions().
| fl_BlockLayout* FL_DocLayout::getPendingBlockForSmartQuote | ( | void | ) | const [inline] |
Referenced by fl_BlockLayout::doclistener_insertSpan().
| UT_uint32 FL_DocLayout::getOffsetForSmartQuote | ( | void | ) | const [inline] |
Referenced by fl_BlockLayout::doclistener_insertSpan().
| 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::considerSmartQuoteCandidateAt | ( | fl_BlockLayout * | block, | |
| UT_uint32 | offset | |||
| ) |
References after, before, FV_View::cmdCharInsert(), FV_View::cmdSelect(), XAP_EncodingManager::findLangInfoByLocale(), fl_BlockLayout::findPointCoords(), FPRUN_TEXT, FREEP, gchar, 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(), fp_Run::getVisDirection(), XAP_LangInfo::innerQuoteIdx, FV_View::isHdrFtrEdit(), XAP_SmartQuoteStyle::leftQuote, FV_View::m_bAllowSmartQuoteReplacement, m_pPrefs, m_pView, FV_View::moveInsPtTo(), XAP_LangInfo::outerQuoteIdx, sqTable::replacement, XAP_SmartQuoteStyle::rightQuote, setPendingSmartQuote(), XAP_EncodingManager::smartQuoteStyles, sqBREAK, sqDONTCARE, sqTable::thing, UCS_LDBLQUOTE, UCS_LQUOTE, UCS_RDBLQUOTE, UCS_RQUOTE, UCS_UNKPUNK, UT_DEBUGMSG, UT_getAttribute(), 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().
| void FL_DocLayout::considerPendingSmartQuoteCandidate | ( | ) | [inline] |
Referenced by FV_View::_charMotion(), FV_View::_setPoint(), and FV_View::insertParagraphBreak().
| 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::setSkipUpdates | ( | UT_uint32 | numSkips | ) | [inline] |
Referenced by FV_View::_moveInsPtNextPrevLine(), and _redrawUpdate().
| UT_uint32 FL_DocLayout::getSkipUpdates | ( | void | ) | [inline] |
Referenced by _redrawUpdate().
| UT_sint32 FL_DocLayout::getHeight | ( | void | ) |
References GR_Graphics::DGP_SCREEN, fl_PAGEVIEW_MARGIN_Y, fl_PAGEVIEW_PAGE_SEP, fl_DocSectionLayout::getBottomMargin(), fp_Page::getHeight(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), fp_Page::getOwningSection(), FV_View::getPageViewSep(), FV_View::getPageViewTopMargin(), fl_DocSectionLayout::getTopMargin(), getView(), m_pG, m_vecPages, GR_Graphics::queryProperties(), VIEW_PRINT, and xxx_UT_DEBUGMSG.
Referenced by FV_FrameEdit::_actuallyScroll(), FV_View::_draw(), FV_FrameEdit::_mouseDrag(), FV_View::_moveInsPtNextPrevLine(), AP_Win32FrameImpl::_setYScrollRange(), IE_Exp_PDF::_writeDocument(), FV_View::cmdScroll(), Print_MailMerge_Listener::fireUpdate(), AP_Convert::print(), AbiCommand::printFiles(), AP_Convert::printFirstPage(), s_doPrint(), and s_doPrintPreview().
| UT_sint32 FL_DocLayout::getWidth | ( | void | ) |
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_PDF::_writeDocument(), Print_MailMerge_Listener::fireUpdate(), AP_Convert::print(), AbiCommand::printFiles(), AP_Convert::printFirstPage(), s_doPrint(), and s_doPrintPreview().
| 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(), and PD_Document::setShowAuthors().
| const GR_Font * FL_DocLayout::findFont | ( | const PP_AttrProp * | pSpanAP, | |
| const PP_AttrProp * | pBlockAP, | |||
| const PP_AttrProp * | pSectionAP, | |||
| bool | isField = false | |||
| ) |
References GR_Graphics::findFont(), m_pDoc, m_pG, PP_evalProperty(), UT_convertToPoints(), and UT_formatDimensionedValue().
Referenced by fl_BlockLayout::_doInsertTextSpan(), 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_MathRun::_lookupProperties(), fp_DummyRun::_lookupProperties(), fp_FmtMarkRun::_lookupProperties(), fp_EmbedRun::_lookupProperties(), fp_DirectionMarkerRun::_lookupProperties(), and fp_AnnotationRun::_lookupProperties().
| const GR_Font * FL_DocLayout::findFont | ( | const PP_AttrProp * | pSpanAP, | |
| const PP_AttrProp * | pBlockAP, | |||
| const PP_AttrProp * | pSectionAP, | |||
| GR_Graphics * | pG, | |||
| bool | isField = false | |||
| ) |
References GR_Graphics::findFont(), m_pDoc, m_pG, PP_evalProperty(), UT_convertToPoints(), UT_formatDimensionedValue(), and xxx_UT_DEBUGMSG.
| 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().
| fp_Page * FL_DocLayout::addNewPage | ( | fl_DocSectionLayout * | pOwner, | |
| bool | bNoUpdate = false |