#include <fv_View.h>
FV_View::FV_View | ( | XAP_App * | pApp, | |
void * | pParentData, | |||
FL_DocLayout * | pLayout | |||
) |
References _prefsListener(), _resetSelection(), AV_View::addListener(), XAP_Prefs::addListener(), PD_Document::addStyleProperties(), GR_Graphics::allCarets(), AP_PREF_KEY_ColorForAnnotation1, AP_PREF_KEY_ColorForAnnotation10, AP_PREF_KEY_ColorForAnnotation2, AP_PREF_KEY_ColorForAnnotation3, AP_PREF_KEY_ColorForAnnotation4, AP_PREF_KEY_ColorForAnnotation5, AP_PREF_KEY_ColorForAnnotation6, AP_PREF_KEY_ColorForAnnotation7, AP_PREF_KEY_ColorForAnnotation8, AP_PREF_KEY_ColorForAnnotation9, AP_PREF_KEY_ColorForRDFAnchor1, AP_PREF_KEY_ColorForRDFAnchor10, AP_PREF_KEY_ColorForRDFAnchor2, AP_PREF_KEY_ColorForRDFAnchor3, AP_PREF_KEY_ColorForRDFAnchor4, AP_PREF_KEY_ColorForRDFAnchor5, AP_PREF_KEY_ColorForRDFAnchor6, AP_PREF_KEY_ColorForRDFAnchor7, AP_PREF_KEY_ColorForRDFAnchor8, AP_PREF_KEY_ColorForRDFAnchor9, AP_PREF_KEY_CursorBlink, AP_PREF_KEY_DefaultDirectionRtl, AP_PREF_KEY_LayoutMode, GR_Graphics::createCaret(), GR_Graphics::DGP_SCREEN, AllCarets::enable(), GR_Graphics::findNearestFont(), gchar, XAP_EncodingManager::get_instance(), PD_Document::getAttrProp(), XAP_Frame::getFrameData(), XAP_EncodingManager::getLanguageISOName(), XAP_EncodingManager::getLanguageISOTerritory(), AD_Document::getMyUUIDString(), AV_View::getParentData(), getPoint(), XAP_App::getPrefs(), XAP_App::getPrefsValue(), XAP_App::getPrefsValueBool(), PP_AttrProp::getProperty(), AD_Document::getShowRevisionId(), AD_Document::isShowRevisions(), m_bCursorBlink, m_bDefaultDirectionRtl, AP_FrameData::m_bIsWidget, m_bShowRevisions, m_bUseHebrewContextGlyphs, m_caretListener, m_CaretListID, m_colorAnnotations, m_colorColumnLine, m_colorFieldOffset, m_colorGrammarSquiggle, m_colorHdrFtr, m_colorHyperLink, m_colorImage, m_colorMargin, m_colorRDFAnchors, m_colorRevisions, m_colorShowPara, m_colorSpellSquiggle, m_eBidiOrder, m_iViewRevision, m_pDoc, m_pG, m_sDocUUID, m_Selection, PP_resetInitialBiDiValues(), PP_setDefaultFontFamily(), GR_Graphics::queryProperties(), XAP_Frame::repopulateCombos(), s, setCursorWait(), FV_Selection::setSelectionAnchor(), FL_DocLayout::setView(), setViewMode(), UT_parseColor(), UT_UTF8String::utf8_str(), VIEW_NORMAL, VIEW_PRINT, VIEW_WEB, XAP_PREF_KEY_ColorForColumnLine, XAP_PREF_KEY_ColorForFieldOffset, XAP_PREF_KEY_ColorForGrammarSquiggle, XAP_PREF_KEY_ColorForHdrFtr, XAP_PREF_KEY_ColorForHyperLink, XAP_PREF_KEY_ColorForImage, XAP_PREF_KEY_ColorForMargin, XAP_PREF_KEY_ColorForRevision1, XAP_PREF_KEY_ColorForRevision10, XAP_PREF_KEY_ColorForRevision2, XAP_PREF_KEY_ColorForRevision3, XAP_PREF_KEY_ColorForRevision4, XAP_PREF_KEY_ColorForRevision5, XAP_PREF_KEY_ColorForRevision6, XAP_PREF_KEY_ColorForRevision7, XAP_PREF_KEY_ColorForRevision8, XAP_PREF_KEY_ColorForRevision9, XAP_PREF_KEY_ColorForShowPara, XAP_PREF_KEY_ColorForSquiggle, and XAP_PREF_KEY_UseHebrewContextGlyphs.
Referenced by copyTextToClipboard().
FV_View::~FV_View | ( | ) | [virtual] |
void FV_View::_actuallyScroll | ( | UT_Worker * | pTimer | ) | [static, protected] |
References _ensureInsertionPointOnScreen(), AV_SCROLLCMD_LINEDOWN, AV_SCROLLCMD_LINELEFT, AV_SCROLLCMD_LINERIGHT, AV_SCROLLCMD_LINEUP, cmdScroll(), extSelToXY(), FL_DocLayout::getDocument(), UT_Worker::getInstanceData(), getLayout(), getPoint(), AV_View::getWindowHeight(), AV_View::getWindowWidth(), AD_Document::isPieceTableChanging(), m_xLastMouse, m_yLastMouse, UT_Worker::stop(), UT_DEBUGMSG, and UT_return_if_fail.
Referenced by _autoScroll().
References _findBlockAtPosition(), fp_Run::adjustDeletePosition(), fl_BlockLayout::findRunAtOffset(), fp_Run::getBlockOffset(), fp_Run::getLength(), fl_BlockLayout::getLength(), fl_BlockLayout::getPosition(), UT_ASSERT_HARMLESS, UT_DEBUGMSG, UT_MIN, and UT_return_if_fail.
Referenced by _deleteSelection(), and cmdCharDelete().
void FV_View::_autoScroll | ( | UT_Worker * | pTimer | ) | [static, protected] |
References _actuallyScroll(), FL_DocLayout::getDocument(), UT_Worker::getInstanceData(), getLayout(), UT_WorkerFactory::IDLE, AD_Document::isPieceTableChanging(), UT_Worker::start(), UT_WorkerFactory::static_constructor(), UT_WorkerFactory::TIMER, UT_DEBUGMSG, and UT_return_if_fail.
Referenced by extSelToXY(), and extSelToXYword().
PT_DocPosition FV_View::_BlockOffsetToPos | ( | fl_BlockLayout * | block, | |
PT_DocPosition | offset | |||
) | const [private] |
References fl_BlockLayout::getPosition(), and UT_return_val_if_fail.
Referenced by _findGetNextBlockBuffer(), and _findGetPrevBlockBuffer().
bool FV_View::_changeCellAttach | ( | PT_DocPosition | posCell, | |
UT_sint32 | left, | |||
UT_sint32 | right, | |||
UT_sint32 | top, | |||
UT_sint32 | bot | |||
) | [protected] |
This method changes the attaches of the cell at position posCell
References PD_Document::changeStruxFmt(), m_pDoc, PTC_AddFmt, PTX_SectionCell, and UT_std_string_sprintf().
Referenced by cmdInsertCol(), and cmdInsertRow().
bool FV_View::_changeCellParams | ( | PT_DocPosition | posTable, | |
pf_Frag_Strux * | tableSDH | |||
) |
Change the parameters of the table. Return the line type of the table. We'll restore this later.
References _saveAndNotifyPieceTableChange(), PD_Document::beginUserAtomicGlob(), PD_Document::changeStruxFmt(), PD_Document::disableListUpdates(), FL_DocLayout::getLID(), PD_Document::getNthFmtHandle(), fl_TableLayout::getTableWaitIndex(), m_pDoc, m_pLayout, PTC_AddFmt, PTX_SectionTable, PD_Document::setDontChangeInsPoint(), PD_Document::setDontImmediatelyLayout(), and UT_std_string_sprintf().
Referenced by cmdMergeCells(), and setCellFormat().
bool FV_View::_changeCellTo | ( | PT_DocPosition | posTable, | |
UT_sint32 | rowold, | |||
UT_sint32 | colold, | |||
UT_sint32 | left, | |||
UT_sint32 | right, | |||
UT_sint32 | top, | |||
UT_sint32 | bot | |||
) | [protected] |
This method changes the coordinates of the cell at (row,col) in the table specified by posTable to the cordinates specified.
References PD_Document::changeStruxFmt(), findCellPosAt(), m_pDoc, PTC_AddFmt, PTX_SectionCell, and UT_std_string_sprintf().
Referenced by _MergeCells(), and cmdMergeCells().
bool FV_View::_charInsert | ( | const UT_UCSChar * | text, | |
UT_uint32 | count, | |||
bool | bForce = false | |||
) | [protected] |
References _charMotion(), _deleteSelection(), _ensureInsertionPointOnScreen(), _fixInsertionPointCoords(), _generalUpdate(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), AV_CHG_ALL, PD_Document::beginUserAtomicGlob(), cmdCharDelete(), PD_Document::disableListUpdates(), PD_Document::enableListUpdates(), PD_Document::endUserAtomicGlob(), FV_FrameEdit_NOT_ACTIVE, gchar, fl_ContainerLayout::getAP(), getAttrPropForPoint(), fl_Layout::getAutoNum(), fp_Container::getContainer(), getCurrentBlock(), getEditableBounds(), fl_ContainerLayout::getFirstContainer(), XAP_App::getKbdLanguage(), fl_BlockLayout::getLevel(), fl_BlockLayout::getListType(), getPoint(), XAP_App::getPrefsValueBool(), fl_BlockLayout::getProperty(), fp_ContainerObject::getWidth(), PD_Document::insertFmtMark(), insertParaBreakIfNeededAtPos(), PD_Document::insertSpan(), FV_FrameEdit::isActive(), PD_Document::isEndFrameAtPos(), PD_Document::isFrameAtPos(), isPointLegal(), isSelectionEmpty(), isTabListAheadPoint(), isTabListBehindPoint(), LIST_DEFAULT_INDENT, AV_View::m_bInsertMode, m_FrameEdit, AV_View::m_pApp, m_pDoc, m_pG, UT_LangRecord::m_szLangCode, notifyListeners(), PTC_AddFmt, FV_FrameEdit::setMode(), FV_FrameEdit::setPointInside(), PP_AttrProp::setProperty(), fl_BlockLayout::StartList(), STD_DOUBLE_BUFFERING_FOR_THIS_FUNCTION, UCS_TAB, PD_Document::updateDirtyLists(), UT_ASSERT, UT_return_val_if_fail, and XAP_PREF_KEY_ChangeLanguageWithKeyboard.
Referenced by cmdCharInsert().
bool FV_View::_charMotion | ( | bool | bForward, | |
UT_uint32 | countChars, | |||
bool | bSkipCannotContainPoint = true | |||
) | [protected] |
References _clearIfAtFmtMark(), _findBlockAtPosition(), _findPositionCoords(), _fixInsertionPointCoords(), _setPoint(), fp_Run::adjustCaretPosition(), AV_CHG_MOTION, fp_Run::canContainPoint(), FL_DocLayout::considerPendingSmartQuoteCandidate(), fl_BlockLayout::findRunAtOffset(), FPRUN_ENDOFPARAGRAPH, FV_FrameEdit_NOT_ACTIVE, fp_Run::getBlock(), fp_Run::getBlockOffset(), getEditableBounds(), getEmbedDepth(), fl_SectionLayout::getFirstBlock(), FL_DocLayout::getFirstSection(), fp_Run::getLength(), fp_Run::getNextRun(), getPoint(), fl_BlockLayout::getPosition(), fp_Run::getPrevRun(), fp_Run::getType(), FV_FrameEdit::isActive(), PD_Document::isCellAtPos(), PD_Document::isDoingPaste(), PD_Document::isEndFootnoteAtPos(), PD_Document::isEndTableAtPos(), fp_Run::isField(), PD_Document::isFootnoteAtPos(), PD_Document::isFrameAtPos(), PD_Document::isHdrFtrAtPos(), isHdrFtrEdit(), isInFootnote(), isPointLegal(), PD_Document::isSectionAtPos(), PD_Document::isTableAtPos(), m_bInsertAtTablePending, m_bPointEOL, m_FrameEdit, m_iInsPoint, m_iPosAtTable, m_pDoc, m_pLayout, notifyListeners(), FV_FrameEdit::setMode(), UT_ASSERT, UT_return_val_if_fail, and xxx_UT_DEBUGMSG.
Referenced by _charInsert(), _deleteSelection(), _findNext(), _findPrev(), _makePointLegal(), cmdCharDelete(), cmdCharMotion(), cmdInsertTOC(), cmdPaste(), cmdRedo(), cmdUndo(), FV_FrameEdit::deleteFrame(), extSelHorizontal(), FV_FrameEdit::mouseRelease(), pasteFromLocalTo(), and toggleCase().
bool FV_View::_clearBetweenPositions | ( | PT_DocPosition | left, | |
PT_DocPosition | right, | |||
bool | bFullLineHeightRect | |||
) | [protected] |
References _drawOrClearBetweenPositions(), _findPositionCoords(), _fixInsertionPointCoords(), fp_Run::clearScreen(), fp_CellContainer::clearScreen(), fp_CellContainer::clearSelection(), fp_Run::getBlock(), fl_ContainerLayout::getContainerType(), fl_ContainerLayout::getFirstContainer(), fl_ContainerLayout::getFirstLayout(), fl_BlockLayout::getFirstRun(), fl_ContainerLayout::getNext(), fl_ContainerLayout::getNextBlockInDocument(), fp_Run::getNextRun(), fp_CellContainer::isSelected(), fl_ContainerLayout::myContainingLayout(), UT_ASSERT, and xxx_UT_DEBUGMSG.
Referenced by _clearSelection(), _deleteSelection(), _eraseSelection(), and fl_Squiggles::clear().
void FV_View::_clearIfAtFmtMark | ( | PT_DocPosition | dpos | ) | [protected] |
References _getDocPosFromPoint(), AV_CHG_FMTBLOCK, AV_CHG_FMTCHAR, AV_CHG_TYPING, PD_Document::clearIfAtFmtMark(), FV_DOCPOS_BOL, m_pDoc, notifyListeners(), and xxx_UT_DEBUGMSG.
Referenced by _charMotion(), _doPaste(), _extSelToPos(), extSelNextPrevLine(), extSelNextPrevPage(), extSelNextPrevScreen(), moveInsPtTo(), removeStruxAttrProps(), setBlockFormat(), setCollapsedRange(), setStyleAtPos(), warpInsPtNextPrevLine(), warpInsPtNextPrevPage(), warpInsPtNextPrevScreen(), and warpInsPtToXY().
void FV_View::_clearSelection | ( | bool | bRedraw = true |
) | [protected] |
References _clearBetweenPositions(), _drawBetweenPositions(), _fixInsertionPointCoords(), _resetSelection(), UT_GenericVector< T >::addItem(), GR_Graphics::allCarets(), AllCarets::enable(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), FV_Selection::getNthSelection(), FV_Selection::getNumSelections(), getPoint(), FV_Selection::getSelectionAnchor(), FV_Selection::getSelectionMode(), FV_Selection::isSelected(), isSelectionEmpty(), m_iHighDrawPoint, m_iLowDrawPoint, m_pDoc, m_pG, PD_DocumentRange::m_pos1, PD_DocumentRange::m_pos2, m_Selection, and UT_VECTOR_PURGEALL.
Referenced by _cmdEditHdrFtr(), _deleteHyperlink(), _deleteXMLID(), _moveToSelectionEnd(), cmdAcceptRejectRevision(), cmdCut(), cmdDeleteTable(), cmdHyperlinkJump(), cmdInsertCol(), cmdInsertPositionedGraphic(), cmdInsertRow(), cmdRedo(), cmdRemoveHdrFtr(), cmdSelectColumn(), cmdSelectNoNotify(), cmdSplitCells(), cmdTableToText(), cmdTextToTable(), cmdUndo(), cmdUnselectSelection(), createThisHdrFtr(), extSelToXYword(), findNext(), findPrev(), gotoTarget(), insertAnnotation(), insertHeaderFooter(), FV_VisualInlineImage::mouseCut(), FV_FrameEdit::mouseLeftPress(), FV_FrameEdit::mouseRelease(), moveInsPtTo(), FV_Selection::pasteRowOrCol(), populateThisHdrFtr(), processSelectedBlocks(), removeThisHdrFtr(), selectFrame(), selectRange(), setStyleAtPos(), SetupSavePieceTableState(), and warpInsPtToXY().
void FV_View::_cmdEditHdrFtr | ( | HdrFtrType | hfType | ) | [protected] |
References _clearSelection(), _generalUpdate(), _setPoint(), _updateInsertionPoint(), clearHdrFtrEdit(), getCurrentPage(), fp_Page::getHdrFtrP(), fl_ContainerLayout::getNextBlockInDocument(), fl_BlockLayout::getPosition(), fp_ShadowContainer::getShadow(), insertHeaderFooter(), isHdrFtrEdit(), isSelectionEmpty(), setHdrFtrEdit(), and UT_return_if_fail.
Referenced by cmdEditFooter(), and cmdEditHeader().
UT_uint32 * FV_View::_computeFindPrefix | ( | const UT_UCSChar * | pFind | ) |
Compute prefix function for search
pFind | String to find | |
bMatchCase | True to match case, false to ignore case |
References m_bMatchCase, UT_calloc(), UT_return_val_if_fail, UT_UCS4_strlen(), and UT_UCS4_tolower().
Referenced by findNext(), findPrev(), findReplace(), findReplaceAll(), and findReplaceReverse().
UT_Error FV_View::_deleteBookmark | ( | const char * | szName, | |
bool | bSignal, | |||
PT_DocPosition * | pos1 = NULL , |
|||
PT_DocPosition * | pos2 = NULL | |||
) | [protected] |
References _generalUpdate(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), PD_Document::deleteSpan(), FPRUN_BOOKMARK, fp_Run::getBlock(), fp_Run::getBlockOffset(), fl_BlockLayout::getFirstRun(), FL_DocLayout::getFirstSection(), fp_BookmarkRun::getName(), fl_ContainerLayout::getNext(), fl_ContainerLayout::getNextBlockInDocument(), fp_Run::getNextRun(), fl_BlockLayout::getPosition(), fp_Run::getType(), PD_Document::isBookmarkUnique(), m_pDoc, m_pLayout, UT_ASSERT, and UT_DEBUGMSG.
Referenced by cmdDeleteBookmark(), and cmdInsertBookmark().
bool FV_View::_deleteCellAt | ( | PT_DocPosition | posTable, | |
UT_sint32 | row, | |||
UT_sint32 | col | |||
) |
This method deletes the cell at (row,col) in the table specified by posTable
References _setPoint(), PD_Document::deleteSpan(), findCellPosAt(), PD_Document::getEndCellStruxFromCellSDH(), PD_Document::getStruxOfTypeFromPosition(), PD_Document::getStruxPosition(), isMarkRevisions(), m_iInsPoint, m_pDoc, and PTX_SectionCell.
Referenced by _MergeCells(), cmdDeleteCell(), cmdDeleteCol(), and cmdDeleteRow().
UT_Error FV_View::_deleteHyperlink | ( | PT_DocPosition & | i, | |
bool | bSignal | |||
) | [protected] |
References _clearSelection(), _generalUpdate(), _getHyperlinkInRange(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), PD_Document::beginUserAtomicGlob(), PD_Document::deleteSpan(), PD_Document::endUserAtomicGlob(), FL_DocLayout::findAnnotationLayout(), fp_Run::getBlock(), fp_Run::getBlockOffset(), fp_HyperlinkRun::getHyperlinkType(), getLayout(), fl_EmbedLayout::getLength(), fp_AnnotationRun::getPID(), fl_BlockLayout::getPosition(), isSelectionEmpty(), m_pDoc, UT_DEBUGMSG, and UT_return_val_if_fail.
Referenced by cmdDeleteHyperlink().
void FV_View::_deleteSelection | ( | PP_AttrProp * | p_AttrProp_Before = NULL , |
|
bool | bNoUpdate = false , |
|||
bool | bCaretLeft = false | |||
) | [protected] |
References _adjustDeletePosition(), _charMotion(), _clearBetweenPositions(), _findBlockAtPosition(), _resetSelection(), GR_Graphics::allCarets(), PD_Document::beginUserAtomicGlob(), PD_Document::changeSpanFmt(), PD_Document::changeStruxFmt(), deleteFrame(), PD_Document::deleteSpan(), AllCarets::enable(), PD_Document::endUserAtomicGlob(), getClosestEndnote(), getClosestFootnote(), fl_ContainerLayout::getContainerType(), getCurrentBlock(), getEditableBounds(), getFrameLayout(), fl_FrameLayout::getLength(), fl_BlockLayout::getLength(), fl_EmbedLayout::getLength(), fl_ContainerLayout::getNextBlockInDocument(), getPoint(), fl_BlockLayout::getPosition(), fl_ContainerLayout::getPosition(), fl_ContainerLayout::getPrev(), fl_ContainerLayout::getPrevBlockInDocument(), FV_Selection::getSelectionAnchor(), fl_Layout::getStruxDocHandle(), PD_Document::insertStrux(), FV_FrameEdit::isActive(), PD_Document::isDontImmediateLayout(), PD_Document::isEndFrameAtPos(), PD_Document::isEndTableAtPos(), PD_Document::isFrameAtPos(), fl_ContainerLayout::isHidden(), isInEndnote(), isInFootnote(), isInFrame(), isInTable(), fl_BlockLayout::isListItem(), isMarkRevisions(), isPointLegal(), isSelectionEmpty(), PD_Document::isTableAtPos(), isTabListAheadPoint(), m_FrameEdit, m_pDoc, m_pG, m_Selection, fl_ContainerLayout::myContainingLayout(), PTC_RemoveFmt, PTX_Block, PD_Document::setDontImmediatelyLayout(), setPoint(), PD_Document::StopList(), UT_ASSERT, UT_MAX, and UT_MIN.
Referenced by _charInsert(), _doPaste(), _findReplace(), _findReplaceReverse(), _insertField(), _insertSectionBreak(), cmdCharDelete(), cmdCut(), cmdDeleteCell(), cmdDeleteCol(), cmdDeleteEmbed(), cmdDeleteRow(), cmdInsertEmbed(), cmdInsertGraphic(), cmdInsertLatexMath(), cmdInsertMathML(), cmdInsertTable(), cmdInsertTOC(), cmdUpdateEmbed(), convertInLineToPositioned(), delTo(), insertFootnote(), insertParagraphBreak(), insertParagraphBreaknoListUpdate(), and insertSymbol().
UT_Error FV_View::_deleteXMLID | ( | const std::string & | xmlid, | |
bool | bSignal, | |||
PT_DocPosition & | posStart, | |||
PT_DocPosition & | posEnd | |||
) | [protected] |
References _clearSelection(), _generalUpdate(), _getHyperlinkInRange(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), PD_Document::beginUserAtomicGlob(), PD_Document::deleteSpan(), PD_Document::endUserAtomicGlob(), fp_Run::getBlock(), fp_Run::getBlockOffset(), PD_Document::getDocumentRDF(), fp_HyperlinkRun::getHyperlinkType(), fp_Run::getLength(), getPoint(), fl_BlockLayout::getPosition(), isSelectionEmpty(), m_pDoc, and UT_DEBUGMSG.
Referenced by _deleteXMLID(), cmdDeleteXMLID(), and cmdInsertXMLID().
UT_Error FV_View::_deleteXMLID | ( | const std::string & | xmlid, | |
bool | bSignal | |||
) | [protected] |
References _deleteXMLID(), and s.
void FV_View::_doPaste | ( | bool | bUseClipboard, | |
bool | bHonorFormatting = true | |||
) | [protected] |
References _clearIfAtFmtMark(), _deleteSelection(), _generalUpdate(), _updateInsertionPoint(), fl_SectionLayout::checkAndAdjustCellSize(), getCurrentBlock(), getPoint(), fl_BlockLayout::getSectionLayout(), insertParaBreakIfNeededAtPos(), FV_FrameEdit::isActive(), isSelectionEmpty(), m_FrameEdit, AV_View::m_pApp, m_pDoc, XAP_App::pasteFromClipboard(), PD_Document::setDontImmediatelyLayout(), and FV_FrameEdit::setPointInside().
Referenced by cmdPaste(), and cmdPasteSelectionAt().
void FV_View::_draw | ( | UT_sint32 | x, | |
UT_sint32 | y, | |||
UT_sint32 | width, | |||
UT_sint32 | height, | |||
bool | bDirtyRunsOnly, | |||
bool | bClip = false | |||
) | [protected] |
References GR_Graphics::allCarets(), dg_DrawArgs::bDirtyRunsOnly, GR_Painter::beginDoubleBuffering(), calculateNumHorizPages(), GR_Graphics::CLR3D_BevelDown, AllCarets::doBlinkIfNeeded(), fp_Page::draw(), GR_Painter::drawLine(), GR_Painter::fillRect(), fl_DocSectionLayout::getBottomMargin(), FV_ViewDoubleBuffering::getCallDrawOnlyAtTheEnd(), fg_FillType::getColor(), GR_Graphics::getColor3D(), getColorMargin(), fp_Page::getFillType(), fl_DocSectionLayout::getFirstOwnedPage(), fp_Page::getHeight(), getLayout(), fl_ContainerLayout::getNext(), getNumHorizPages(), fp_Page::getOwningSection(), fl_DocSectionLayout::getPageCount(), fp_Page::getPageNumber(), getPageViewLeftMargin(), getPageViewSep(), getPageViewTopMargin(), getPageYOffset(), AV_View::getParentData(), fl_DocSectionLayout::getTopMargin(), getViewMode(), fp_Page::getWidth(), getWidthPrevPagesInRow(), AV_View::getWindowHeight(), AV_View::getWindowWidth(), AV_View::getXScrollOffset(), AV_View::getYScrollOffset(), UT_Rect::height, XAP_Frame::isMenuScrollHidden(), isPreview(), UT_Rect::left, m_pG, m_pViewDoubleBufferingObject, AV_View::m_yScrollOffset, fp_Page::needsRedraw(), dg_DrawArgs::pG, FV_ViewDoubleBuffering::recordViewDrawCall(), GR_Graphics::setClipRect(), GR_Graphics::setColor(), GR_Graphics::setLineProperties(), GR_Graphics::tlu(), GR_Graphics::tluD(), UT_Rect::top, UT_DEBUGMSG, VIEW_NORMAL, VIEW_PREVIEW, VIEW_PRINT, VIEW_WEB, UT_Rect::width, dg_DrawArgs::xoff, xxx_UT_DEBUGMSG, and dg_DrawArgs::yoff.
Referenced by FV_ViewDoubleBuffering::callUnifiedDraw(), draw(), FV_ViewDoubleBuffering::redrawEntireScreen(), setPaperColor(), setXScrollOffset(), and updateScreen().
void FV_View::_drawBetweenPositions | ( | PT_DocPosition | left, | |
PT_DocPosition | right | |||
) | [protected] |
References _drawOrClearBetweenPositions().
Referenced by _clearSelection(), _drawSelection(), _extSel(), _extSelToPos(), and selectRange().
bool FV_View::_drawOrClearBetweenPositions | ( | PT_DocPosition | iPos1, | |
PT_DocPosition | iPos2, | |||
bool | bClear, | |||
bool | bFullLineHeight | |||
) | [protected] |
This method simply iterates over every run between two doc positions and draws or clears and redraws each one. We clear if bClear is true otherwise we just draw selected. If bClear is true then the if bFullLineHeight is true the runs are cleared to their full height.
References _findPositionCoords(), _generalUpdate(), UT_GenericVector< T >::addItem(), dg_DrawArgs::bDirtyRunsOnly, FV_ViewDoubleBuffering::beginDoubleBuffering(), CellLine, fp_CellContainer::clearScreen(), fp_CellContainer::clearSelection(), fp_Run::clearSelectionMode(), fp_Run::draw(), fp_CellContainer::draw(), fp_CellContainer::drawLines(), fp_CellContainer::drawLinesAdjacent(), fp_CellContainer::drawSelectedCell(), UT_GenericVector< T >::findItem(), GR_Graphics::flush(), fp_Line::getAscent(), fp_Run::getBlock(), fp_Run::getBlockOffset(), fp_CellContainer::getBrokenTable(), fp_Container::getContainer(), fp_ContainerObject::getContainerType(), fl_ContainerLayout::getContainerType(), fl_BlockLayout::getFirstRun(), getGraphics(), UT_GenericVector< T >::getItemCount(), fp_Run::getLength(), fp_Run::getLine(), fl_ContainerLayout::getNextBlockInDocument(), fp_Run::getNextRun(), UT_GenericVector< T >::getNthItem(), fp_Line::getPage(), fp_TableContainer::getPage(), fp_Container::getPage(), getPageScreenOffsets(), getPoint(), fl_BlockLayout::getPosition(), fp_Line::getScreenOffsets(), getSelectionAnchor(), fp_Run::getWidth(), fl_CellLayout::isCellSelected(), fp_Run::isDirty(), fp_Run::isHidden(), fp_CellContainer::isSelected(), CellLine::m_pBrokenTable, CellLine::m_pCell, m_pG, CellLine::m_pLine, m_pParentData, fl_ContainerLayout::myContainingLayout(), dg_DrawArgs::pG, fp_Page::redrawDamagedFrames(), fp_Run::Run_ClearScreen(), fp_Run::setSelectionMode(), UT_ASSERT_HARMLESS, UT_return_val_if_fail, UT_SHOULD_NOT_HAPPEN, UT_VECTOR_PURGEALL, dg_DrawArgs::xoff, xxx_UT_DEBUGMSG, and dg_DrawArgs::yoff.
Referenced by _clearBetweenPositions(), and _drawBetweenPositions().
void FV_View::_drawResizeHandle | ( | UT_Rect & | box | ) | [inline, private] |
Draw a nice 3d resize handle at box.
box | Where to draw. |
References GR_Painter::drawLine(), GR_Painter::fillRect(), getColorSelBackground(), getGraphics(), UT_Rect::height, UT_Rect::left, UT_RGBColor::m_blu, UT_RGBColor::m_grn, UT_RGBColor::m_red, SELDOWNCOLOR, SELUPCOLOR, GR_Graphics::setColor(), GR_Graphics::setLineProperties(), GR_Graphics::tlu(), GR_Graphics::tluD(), UT_Rect::top, and UT_Rect::width.
Referenced by drawSelectionBox().
void FV_View::_drawSelection | ( | ) | [protected] |
References _drawBetweenPositions(), FV_Selection::getNthSelection(), FV_Selection::getNumSelections(), getPoint(), FV_Selection::getSelectionAnchor(), FV_Selection::getSelectionMode(), isSelectionEmpty(), m_iHighDrawPoint, m_iLowDrawPoint, PD_DocumentRange::m_pos1, PD_DocumentRange::m_pos2, m_Selection, UT_DEBUGMSG, UT_MAX, UT_MIN, and UT_return_if_fail.
Referenced by cmdSelect(), cmdSelectColumn(), extSelHorizontal(), extSelNextPrevLine(), extSelNextPrevPage(), extSelNextPrevScreen(), findAgain(), findNext(), findPrev(), findReplace(), findReplaceReverse(), processSelectedBlocks(), selectFrame(), and setStyleAtPos().
bool FV_View::_ensureInsertionPointOnScreen | ( | ) | [protected] |
Scrolls the screen to make sure that the IP is on-screen.
References _fixInsertionPointCoords(), AV_SCROLLCMD_LINEDOWN, AV_SCROLLCMD_LINELEFT, AV_SCROLLCMD_LINERIGHT, AV_SCROLLCMD_LINEUP, cmdScroll(), getPageViewLeftMargin(), getPoint(), AV_View::getWindowHeight(), AV_View::getWindowWidth(), m_iPointHeight, m_xPoint, m_yPoint, and xxx_UT_DEBUGMSG.
Referenced by _actuallyScroll(), _charInsert(), _insertSectionBreak(), _moveInsPtNextPrevLine(), _moveInsPtNextPrevScreen(), _moveInsPtToPage(), FL_DocLayout::_redrawUpdate(), _updateInsertionPoint(), calculateNumHorizPages(), changeListStyle(), cmdAdvanceNextPrevCell(), cmdAutoFitTable(), cmdAutoSizeCols(), cmdAutoSizeRows(), cmdCharDelete(), cmdCharMotion(), cmdCut(), cmdDeleteCell(), cmdDeleteCol(), cmdDeleteRow(), cmdDeleteTable(), cmdHyperlinkJump(), cmdInsertCol(), cmdInsertField(), cmdInsertPositionedGraphic(), cmdInsertRow(), cmdInsertTable(), cmdMergeCells(), cmdPaste(), cmdPasteSelectionAt(), cmdSplitCells(), cmdTableToText(), cmdTextToTable(), convertInLineToPositioned(), FV_FrameEdit::deleteFrame(), ensureInsertionPointOnScreen(), extSelHorizontal(), extSelTo(), findNext(), findPrev(), findReplace(), findReplaceReverse(), gotoTarget(), insertFootnote(), insertHeaderFooter(), insertParagraphBreak(), insertParagraphBreaknoListUpdate(), FV_FrameEdit::mouseRelease(), moveInsPtTo(), pasteFromLocalTo(), FV_Selection::pasteRowOrCol(), processSelectedBlocks(), selectAnnotation(), setCellFormat(), setFrameFormat(), setSectionFormat(), setTableFormat(), and warpInsPtToXY().
void FV_View::_eraseSelection | ( | void | ) | [protected] |
void FV_View::_extSel | ( | UT_uint32 | iOldPoint | ) | [protected] |
References _drawBetweenPositions(), getEditableBounds(), getPoint(), getSelectionAnchor(), FV_Selection::getSelectionAnchor(), m_Selection, FV_Selection::setSelectionLeftAnchor(), FV_Selection::setSelectionRightAnchor(), and xxx_UT_DEBUGMSG.
Referenced by _extSelToPos(), extSelHorizontal(), extSelNextPrevLine(), extSelNextPrevPage(), and extSelNextPrevScreen().
void FV_View::_extSelToPos | ( | PT_DocPosition | pos | ) | [protected] |
References _clearIfAtFmtMark(), _drawBetweenPositions(), _extSel(), _fixInsertionPointCoords(), _resetSelection(), _setPoint(), _setSelectionAnchor(), FV_SelectionMode_Single, getCellAtPos(), getEditableBounds(), getPoint(), fl_ContainerLayout::getPosition(), fp_ContainerObject::getSectionLayout(), getSelectionAnchor(), isInTable(), isSelectionEmpty(), m_iGrabCell, m_Selection, FV_Selection::setMode(), FV_Selection::setSelectionAnchor(), and xxx_UT_DEBUGMSG.
Referenced by delTo(), extSelTo(), extSelToXY(), and extSelToXYword().
fl_BlockLayout * FV_View::_findBlockAtPosition | ( | PT_DocPosition | pos | ) | const [protected] |
Find block at document position. This version is looks outside the header region if we get a null block.
pos | Document position |
References FL_DocLayout::findBlockAtPosition(), fl_HdrFtrShadow::findBlockAtPosition(), fl_ContainerLayout::getContainerType(), FV_FrameEdit::getFrameEditMode(), fl_BlockLayout::isHdrFtr(), AV_View::isLayoutFilling(), m_bEditHdrFtr, m_FrameEdit, m_pEditShadow, m_pLayout, UT_ASSERT, UT_ASSERT_HARMLESS, and UT_DEBUGMSG.
Referenced by _adjustDeletePosition(), _charMotion(), _deleteSelection(), _findGetCurrentBlock(), _findPositionCoords(), _getHyperlinkInRange(), cmdCharDelete(), cmdHyperlinkStatusBar(), cmdInsertHyperlink(), cmdInsertTOC(), cmdSelect(), countWords(), getAttributes(), getBlockFormat(), getBlocksInSelection(), getCellFormat(), getCharFormat(), getCmdInsertRangeVariables(), getFrameLayout(), getHyperLinkRun(), getSectionFormat(), getStyle(), insertAnnotation(), insertFootnote(), insertParagraphBreak(), isInDocSection(), isInFrame(), isInHdrFtr(), isPointLegal(), FV_FrameEdit::mouseRelease(), notifyListeners(), setBlockFormat(), FV_FrameEdit::setDragType(), and setStyleAtPos().
UT_sint32 FV_View::_findBlockSearchRegexp | ( | const UT_UCSChar * | haystack, | |
const UT_UCSChar * | needle | |||
) | [private] |
References UT_ASSERT_HARMLESS, and UT_NOT_IMPLEMENTED.
fl_BlockLayout * FV_View::_findGetCurrentBlock | ( | void | ) | const [private] |
References _findBlockAtPosition(), and m_iInsPoint.
Referenced by _findGetCurrentOffset(), _findNext(), _findPrev(), and getCurrentBlock().
PT_DocPosition FV_View::_findGetCurrentOffset | ( | void | ) | const [private] |
References _findGetCurrentBlock(), and m_iInsPoint.
Referenced by _findNext(), and _findPrev().
UT_UCSChar * FV_View::_findGetNextBlockBuffer | ( | fl_BlockLayout ** | block, | |
PT_DocPosition * | offset | |||
) | [private] |
References _BlockOffsetToPos(), FL_DocLayout::findBlockAtPosition(), fl_BlockLayout::getBlockBuf(), fl_ContainerLayout::getContainerType(), getDocument(), getEditableBounds(), UT_GrowBuf::getLength(), fl_ContainerLayout::getNextBlockInDocument(), PD_Document::getNextStruxOfType(), UT_GrowBuf::getPointer(), fl_BlockLayout::getPosition(), fl_Layout::getStruxDocHandle(), PD_Document::getStruxOfTypeFromPosition(), PD_Document::getStruxPosition(), fl_EmbedLayout::isEndFootnoteIn(), m_pLayout, m_startPosition, m_wrappedEnd, PTX_EndEndnote, PTX_EndFootnote, UT_GrowBuf::truncate(), UT_ASSERT, UT_calloc(), and UT_DEBUGMSG.
Referenced by _findNext().
UT_UCSChar * FV_View::_findGetPrevBlockBuffer | ( | fl_BlockLayout ** | block, | |
PT_DocPosition * | offset, | |||
UT_sint32 & | endIndex | |||
) | [private] |
References _BlockOffsetToPos(), FL_DocLayout::findBlockAtPositionReverse(), fl_BlockLayout::getBlockBuf(), getEditableBounds(), UT_GrowBuf::getLength(), UT_GrowBuf::getPointer(), fl_BlockLayout::getPosition(), fl_ContainerLayout::getPrevBlockInDocument(), m_pLayout, m_startPosition, m_wrappedEnd, UT_GrowBuf::truncate(), UT_ASSERT_HARMLESS, UT_calloc(), UT_DEBUGMSG, UT_return_val_if_fail, and xxx_UT_DEBUGMSG.
Referenced by _findPrev().
bool FV_View::_findNext | ( | UT_uint32 * | pPrefix, | |
bool & | bDoneEntireDocument | |||
) |
Find next occurrence of string
pFind | String to find | |
True | to match case, false to ignore case |
The conversion of UCS_RQUOTE should happen in some generic function - it is presently done lot's of places in the code.
References _charMotion(), _findGetCurrentBlock(), _findGetCurrentOffset(), _findGetNextBlockBuffer(), _setPoint(), _setSelectionAnchor(), FREEP, fl_BlockLayout::getPosition(), m_bMatchCase, m_bWholeWord, m_doneFind, m_sFind, m_wrappedEnd, s_smartQuoteToPlain(), UCS_UNKPUNK, UT_ASSERT, UT_calloc(), UT_isWordDelimiter(), UT_MAX, UT_return_val_if_fail, UT_UCS4_strlen(), and UT_UCS4_tolower().
Referenced by _findReplace(), findNext(), and findReplaceAll().
void FV_View::_findPositionCoords | ( | PT_DocPosition | pos, | |
bool | b, | |||
UT_sint32 & | x, | |||
UT_sint32 & | y, | |||
UT_sint32 & | x2, | |||
UT_sint32 & | y2, | |||
UT_uint32 & | height, | |||
bool & | bDirection, | |||
fl_BlockLayout ** | ppBlock, | |||
fp_Run ** | ppRun | |||
) | const [protected] |
References _findBlockAtPosition(), fl_ContainerLayout::canContainPoint(), FL_DocLayout::findPage(), fl_BlockLayout::findPointCoords(), fl_ContainerLayout::getContainerType(), getEditableBounds(), fl_SectionLayout::getFirstBlock(), fl_BlockLayout::getFirstRun(), FL_DocLayout::getFirstSection(), fp_Run::getLine(), fl_ContainerLayout::getNextBlockInDocument(), fp_Run::getNextRun(), fp_Line::getPage(), getPageViewLeftMargin(), getPageYOffset(), getPoint(), fl_BlockLayout::getPosition(), fl_ContainerLayout::getPrevBlockInDocument(), fp_Run::getPrevRun(), fp_Run::getWidth(), getWidthPrevPagesInRow(), fp_Run::isField(), PD_Document::isFootnoteAtPos(), m_pDoc, m_pLayout, AV_View::m_xScrollOffset, AV_View::m_yScrollOffset, UT_ASSERT_HARMLESS, UT_DEBUGMSG, UT_SHOULD_NOT_HAPPEN, and xxx_UT_DEBUGMSG.
Referenced by _charMotion(), _clearBetweenPositions(), _drawOrClearBetweenPositions(), _fixInsertionPointCoords(), _getCurrentPage(), _getDocPosFromPoint(), _getMouseContext(), FV_SelectionHandles::_getPositionCoords(), _moveInsPtNextPrevLine(), _moveInsPtNextPrevScreen(), FL_DocLayout::_redrawUpdate(), cmdInsertPositionedGraphic(), cmdSelectColumn(), doesSelectionContainRevision(), FV_VisualDragText::drawCursor(), FV_VisualInlineImage::drawCursor(), getAttributes(), getCellAtPos(), getChar(), getCharFormat(), getCurrentPage(), getCurrentPageNumber(), FV_FrameEdit::getFrameStrings(), FV_VisualDragText::getImageFromSelection(), FV_VisualInlineImage::getImageFromSelection(), getInsertionPointContext(), getLeftRulerInfo(), getLineBounds(), getSelectedImage(), getSelectedObject(), getStyle(), getTopRulerInfo(), insertFootnote(), isMathSelected(), isTabListAheadPoint(), isTabListBehindPoint(), and notifyListeners().
bool FV_View::_findPrev | ( | UT_uint32 * | pPrefix, | |
bool & | bDoneEntireDocument | |||
) |
References _charMotion(), _findGetCurrentBlock(), _findGetCurrentOffset(), _findGetPrevBlockBuffer(), _setPoint(), _setSelectionAnchor(), FREEP, fl_BlockLayout::getPosition(), m_bMatchCase, m_bWholeWord, m_doneFind, m_sFind, m_wrappedEnd, s_smartQuoteToPlain(), UCS_UNKPUNK, UT_ASSERT, UT_calloc(), UT_DEBUGMSG, UT_isWordDelimiter(), UT_MIN, UT_return_val_if_fail, UT_UCS4_strlen(), and UT_UCS4_tolower().
Referenced by _findReplaceReverse(), and findPrev().
bool FV_View::_findReplace | ( | UT_uint32 * | pPrefix, | |
bool & | bDoneEntireDocument, | |||
bool | bNoUpdate | |||
) |
Find and replace text unit
pFind | String to find | |
pReplace | String to replace it with | |
pPrefix | Search prefix function | |
bMatchCase | True to match case, false to ignore case |
This function will replace an existing selection with pReplace. It will then do a search for pFind.
References _deleteSelection(), _findNext(), _generalUpdate(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), PD_Document::beginUserAtomicGlob(), PD_Document::endUserAtomicGlob(), getPoint(), PD_Document::insertSpan(), FV_FrameEdit::isActive(), isSelectionEmpty(), m_doneFind, m_FrameEdit, m_pDoc, m_sFind, m_sReplace, m_startPosition, m_wrappedEnd, FV_FrameEdit::setPointInside(), UT_ASSERT, and UT_UCS4_strlen().
Referenced by findReplace(), and findReplaceAll().
bool FV_View::_findReplaceReverse | ( | UT_uint32 * | pPrefix, | |
bool & | bDoneEntireDocument, | |||
bool | bNoUpdate | |||
) |
References _deleteSelection(), _findPrev(), _generalUpdate(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), PD_Document::beginUserAtomicGlob(), PD_Document::endUserAtomicGlob(), getPoint(), PD_Document::insertSpan(), FV_FrameEdit::isActive(), isSelectionEmpty(), m_doneFind, m_FrameEdit, m_pDoc, m_sFind, m_sReplace, m_startPosition, m_wrappedEnd, setPoint(), FV_FrameEdit::setPointInside(), UT_ASSERT, and UT_UCS4_strlen().
Referenced by findReplaceReverse().
void FV_View::_fixAllInsertionPointCoords | ( | void | ) | const [protected] |
References _fixInsertionPointCoords(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), and m_vecCarets.
Referenced by _fixInsertionPointCoords().
void FV_View::_fixInsertionPointAfterRevision | ( | ) | [protected] |
void FV_View::_fixInsertionPointCoords | ( | bool | bIgnoreAll = false |
) | [protected] |
References _findPositionCoords(), _fixAllInsertionPointCoords(), GR_Graphics::allCarets(), EV_EMC_TEXT, fl_BlockLayout::findPointCoords(), AllCarets::getBaseCaret(), fg_FillType::getColor(), getCurrentPage(), fp_Page::getFillType(), fp_TableContainer::getFirstBrokenTable(), fp_VerticalContainer::getFirstContainer(), fl_ContainerLayout::getFirstContainer(), getGraphics(), fl_ContainerLayout::getNextBlockInDocument(), getPageViewLeftMargin(), getPoint(), fl_BlockLayout::getPosition(), fp_CellContainer::getScreenPositions(), getTableAtPos(), fp_Run::getType(), AV_View::getWindowHeight(), AV_View::getWindowWidth(), AV_View::isLayoutFilling(), m_bInsertAtTablePending, m_bPointDirection, m_bPointEOL, m_iPointHeight, m_iPosAtTable, m_pG, m_pLayout, m_prevMouseContext, m_xPoint, m_xPoint2, m_xPointSticky, AV_View::m_xScrollOffset, m_yPoint, m_yPoint2, GR_Caret::setCoords(), AllCarets::setWindowSize(), GR_Graphics::tlu(), FL_DocLayout::triggerPendingBlock(), UT_DEBUGMSG, and xxx_UT_DEBUGMSG.
Referenced by _charInsert(), _charMotion(), _clearBetweenPositions(), _clearSelection(), _ensureInsertionPointOnScreen(), _eraseSelection(), _extSelToPos(), _fixAllInsertionPointCoords(), _fixInsertionPointAfterRevision(), _moveInsPtNextPrevScreen(), _moveInsPtToPage(), _setPoint(), cmdAdvanceNextPrevCell(), cmdAutoFitTable(), cmdAutoSizeCols(), cmdAutoSizeRows(), cmdCharDelete(), cmdCharMotion(), cmdCut(), cmdDeleteCell(), cmdDeleteCol(), cmdDeleteRow(), cmdDeleteTable(), cmdHyperlinkJump(), cmdInsertCol(), cmdInsertField(), cmdInsertRow(), cmdInsertTable(), cmdMergeCells(), cmdPaste(), cmdPasteSelectionAt(), cmdScroll(), cmdSplitCells(), cmdTableToText(), cmdTextToTable(), FV_FrameEdit::deleteFrame(), delTo(), draw(), extSelNextPrevLine(), extSelNextPrevPage(), extSelNextPrevScreen(), extSelTo(), fixInsertionPointCoords(), insertFootnote(), insertHeaderFooter(), insertParagraphBreak(), FV_FrameEdit::mouseRelease(), pasteFromLocalTo(), FV_Selection::pasteRowOrCol(), processSelectedBlocks(), removeStruxAttrProps(), setBlockFormat(), setBlockIndents(), setCharFormat(), setCollapsedRange(), setShowRevisions(), setViewMode(), setXScrollOffset(), setYScrollOffset(), swapSelectionOrientation(), and FV_SelectionHandles::updateSelectionEnd().
void FV_View::_fixInsertionPointCoords | ( | fv_CaretProps * | pCP | ) | const [protected] |
References _findPositionCoords(), fg_FillType::getColor(), getCurrentPage(), fp_Page::getFillType(), fp_Run::getType(), AV_View::getWindowHeight(), AV_View::getWindowWidth(), AV_View::isLayoutFilling(), fv_CaretProps::m_bPointDirection, fv_CaretProps::m_bPointEOL, fv_CaretProps::m_iInsPoint, fv_CaretProps::m_iPointHeight, fv_CaretProps::m_pCaret, m_xPoint, fv_CaretProps::m_xPoint, fv_CaretProps::m_xPoint2, fv_CaretProps::m_yPoint, fv_CaretProps::m_yPoint2, GR_Caret::setCoords(), GR_Caret::setWindowSize(), UT_DEBUGMSG, and xxx_UT_DEBUGMSG.
void FV_View::_generalUpdate | ( | void | ) |
References _makePointLegal(), AV_CHG_FMTBLOCK, AV_CHG_FMTCHAR, AV_CHG_FMTSTYLE, AV_CHG_PAGECOUNT, AV_CHG_TYPING, PD_Document::isDoingPaste(), isPreview(), m_pDoc, notifyListeners(), PD_SIGNAL_UPDATE_LAYOUT, setCursorToContext(), shouldScreenUpdateOnGeneralUpdate(), and PD_Document::signalListeners().
Referenced by _charInsert(), _cmdEditHdrFtr(), _deleteBookmark(), _deleteHyperlink(), _deleteXMLID(), _doPaste(), _drawOrClearBetweenPositions(), _findReplace(), _findReplaceReverse(), _insertSectionBreak(), _restoreCellParams(), changeListStyle(), cmdAcceptRejectRevision(), cmdAutoFitTable(), cmdAutoSizeCols(), cmdAutoSizeRows(), cmdCharDelete(), cmdCharInsert(), cmdCut(), cmdDeleteCell(), cmdDeleteCol(), cmdDeleteEmbed(), cmdDeleteRow(), cmdDeleteTable(), cmdHyperlinkJump(), cmdInsertBookmark(), cmdInsertCol(), cmdInsertEmbed(), cmdInsertField(), cmdInsertGraphic(), cmdInsertGraphicAtStrux(), cmdInsertHyperlink(), cmdInsertLatexMath(), cmdInsertMathML(), cmdInsertPositionedGraphic(), cmdInsertRow(), cmdInsertTable(), cmdInsertTOC(), cmdInsertXMLID(), cmdRedo(), cmdRemoveHdrFtr(), cmdSplitCells(), cmdTableToText(), cmdTextToTable(), cmdUndo(), cmdUpdateEmbed(), convertInLineToPositioned(), convertPositionedToInLine(), createThisHdrFtr(), FV_FrameEdit::deleteFrame(), delTo(), Drop(), endDragSelection(), findReplaceAll(), insertAnnotation(), insertFootnote(), insertFootnoteSection(), insertHeaderFooter(), insertPageNum(), insertParagraphBreak(), insertParagraphBreaknoListUpdate(), insertSymbol(), FV_VisualInlineImage::mouseRelease(), FV_FrameEdit::mouseRelease(), pasteFromLocalTo(), FV_Selection::pasteRowOrCol(), populateThisHdrFtr(), processPageNumber(), processSelectedBlocks(), removeStruxAttrProps(), removeThisHdrFtr(), RestoreSavedPieceTableState(), setAnnotationText(), setBlockFormat(), setBlockIndents(), setCellFormat(), setCharFormat(), setCollapsedRange(), setFrameFormat(), setSectionFormat(), setStyleAtPos(), setTableFormat(), setTOCProps(), setViewMode(), and toggleCase().
fp_Page * FV_View::_getCurrentPage | ( | void | ) | const [protected] |
References _findPositionCoords(), fp_Run::getLine(), fp_Line::getPage(), getPoint(), m_bPointEOL, and UT_return_val_if_fail.
Referenced by _moveInsPtNextPrevPage(), and gotoTarget().
References UT_ASSERT.
PT_DocPosition FV_View::_getDocPos | ( | FV_DocPos | dp, | |
bool | bKeepLooking = true | |||
) | const [protected] |
References _getDocPosFromPoint(), and getPoint().
Referenced by cmdSelect(), delTo(), extSelTo(), insertHeaderFooter(), mapDocPos(), mapDocPosSimple(), moveInsPtTo(), and toggleCase().
PT_DocPosition FV_View::_getDocPosFromPoint | ( | PT_DocPosition | iPoint, | |
FV_DocPos | dp, | |||
bool | bKeepLooking = true | |||
) | const [protected] |
References _findPositionCoords(), FPRUN_ENDOFPARAGRAPH, FV_DOCPOS_BOB, FV_DOCPOS_BOD, FV_DOCPOS_BOL, FV_DOCPOS_BOP, FV_DOCPOS_BOS, FV_DOCPOS_BOW, FV_DOCPOS_EOB, FV_DOCPOS_EOD, FV_DOCPOS_EOL, FV_DOCPOS_EOP, FV_DOCPOS_EOS, FV_DOCPOS_EOW_MOVE, FV_DOCPOS_EOW_SELECT, fl_BlockLayout::getBlockBuf(), fp_Run::getBlockOffset(), fp_Line::getColumn(), fl_ContainerLayout::getContainerType(), getEditableBounds(), fp_Page::getFirstLastPos(), fl_ContainerLayout::getFirstLayout(), fp_Line::getFirstRun(), FL_DocLayout::getFirstSection(), fp_Line::getLastRun(), UT_GrowBuf::getLength(), fp_Run::getLength(), fp_Run::getLine(), fl_ContainerLayout::getNextBlockInDocument(), fp_Container::getPage(), UT_GrowBuf::getPointer(), fl_BlockLayout::getPosition(), fl_ContainerLayout::getPosition(), fl_ContainerLayout::getPrevBlockInDocument(), fp_Run::getPrevRun(), fp_Run::getType(), fp_Run::isFirstRunOnLine(), fp_Run::isForcedBreak(), m_bPointEOL, m_pLayout, fl_ContainerLayout::myContainingLayout(), UT_GrowBuf::truncate(), UCS_UNKPUNK, UT_ASSERT, UT_ASSERT_HARMLESS, UT_isWordDelimiter(), UT_return_val_if_fail, UT_SHOULD_NOT_HAPPEN, UT_TODO, and UT_WARNINGMSG.
Referenced by _clearIfAtFmtMark(), _getDocPos(), _moveInsPtNextPrevLine(), and extSelToXYword().
fp_HyperlinkRun * FV_View::_getHyperlinkInRange | ( | PT_DocPosition & | posStart, | |
PT_DocPosition & | posEnd | |||
) | [protected] |
Returns the hyperlink around position pos, if any; assumes posStart, posEnd in same block.
References _findBlockAtPosition(), fp_Run::getBlockOffset(), fl_BlockLayout::getFirstRun(), fp_Run::getHyperlink(), fp_Run::getNextRun(), fl_BlockLayout::getPosition(), fp_Run::getPrevRun(), and UT_return_val_if_fail.
Referenced by _deleteHyperlink(), _deleteXMLID(), cmdInsertHyperlink(), and insertAnnotation().
EV_EditMouseContext FV_View::_getMouseContext | ( | UT_sint32 | xPos, | |
UT_sint32 | yPos | |||
) |
References _findPositionCoords(), _getPageForXY(), fp_Run::containsRevisions(), EV_EMC_HYPERLINK, FPRUN_BOOKMARK, FPRUN_DIRECTIONMARKER, FPRUN_EMBED, FPRUN_ENDOFPARAGRAPH, FPRUN_FIELD, FPRUN_FMTMARK, FPRUN_FORCEDCOLUMNBREAK, FPRUN_FORCEDLINEBREAK, FPRUN_FORCEDPAGEBREAK, FPRUN_HYPERLINK, FPRUN_IMAGE, FPRUN_MATH, FPRUN_TAB, FPRUN_TEXT, FV_DragNothing, FV_DragWhole, fp_Run::getAscent(), fp_Line::getAscent(), fp_Run::getBlock(), fp_Run::getBlockOffset(), fp_CellContainer::getColumn(), fp_Container::getContainer(), fp_ContainerObject::getContainerType(), fl_ContainerLayout::getContainerType(), fl_BlockLayout::getDominantDirection(), FV_Base::getDragWhat(), fp_TableContainer::getFirstBrokenTable(), fl_ContainerLayout::getFirstContainer(), FV_FrameEdit::getFrameLayout(), fl_FrameLayout::getFrameType(), fp_FrameContainer::getFullHeight(), fp_FrameContainer::getFullWidth(), fp_FrameContainer::getFullX(), fp_FrameContainer::getFullY(), fp_Run::getHeight(), fp_Run::getHyperlink(), fp_CellContainer::getLeftPos(), FL_DocLayout::getLID(), fp_Run::getLine(), fp_Container::getNext(), fp_Run::getNextRun(), getPageScreenOffsets(), getPoint(), fl_BlockLayout::getPosition(), fp_Run::getPrevRun(), fp_CellContainer::getRightPos(), fp_Line::getScreenOffsets(), fp_Page::getScreenOffsets(), fp_Line::getScreenRect(), fp_Run::getScreenRect(), getSelectionAnchor(), fp_CellContainer::getStartY(), fp_CellContainer::getStopY(), PD_Document::getStruxOfTypeFromPosition(), fp_CellContainer::getTopAttach(), fp_Run::getType(), fp_Run::getWidth(), getWidthPagesInRow(), fp_Run::getX(), fp_ContainerObject::getX(), fp_VerticalContainer::getX(), fp_ContainerObject::getY(), fp_VerticalContainer::getY(), fp_TableContainer::getYBreak(), UT_Rect::height, FV_VisualInlineImage::isActive(), FV_FrameEdit::isActive(), fp_ContainerObject::isColumnType(), PD_Document::isFrameAtPos(), fp_TableContainer::isInBrokenTable(), isInFrame(), isInTable(), isLeftMargin(), isPosSelected(), FV_Selection::isPosSelected(), isSelectionEmpty(), UT_Rect::left, m_bDragTableLine, m_FrameEdit, m_iMouseX, m_iMouseY, m_InlineImage, m_pDoc, m_pLayout, m_prevMouseContext, m_Selection, m_selImageRect, fp_Page::mapXYToPosition(), fl_ContainerLayout::myContainingLayout(), UT_Rect::top, UT_ASSERT, UT_DEBUGMSG, UT_MAX, UT_MIN, UT_NOT_IMPLEMENTED, and xxx_UT_DEBUGMSG.
Referenced by getMouseContext().
fp_Line * FV_View::_getNextLineInDoc | ( | fp_Container * | pCon | ) | const [protected] |
Return the next line in the document.
References fl_ContainerLayout::getContainerType(), fp_ContainerObject::getContainerType(), fl_ContainerLayout::getFirstContainer(), fp_Container::getNext(), fl_ContainerLayout::getNext(), fl_ContainerLayout::getNextBlockInDocument(), and fp_ContainerObject::getSectionLayout().
Referenced by _moveInsPtNextPrevLine().
fp_Page * FV_View::_getPageForXY | ( | UT_sint32 | xPos, | |
UT_sint32 | yPos, | |||
UT_sint32 & | xClick, | |||
UT_sint32 & | yClick | |||
) | const [protected] |
Returns the page the user's mouse pointer is in.
References FL_DocLayout::findPage(), fl_DocSectionLayout::getBottomMargin(), FL_DocLayout::getFirstPage(), fp_Page::getHeight(), getHorizPageSpacing(), FL_DocLayout::getLastPage(), fp_Page::getNext(), getNumHorizPages(), fp_Page::getOwningSection(), getPageViewLeftMargin(), getPageViewSep(), getPageViewTopMargin(), fl_DocSectionLayout::getTopMargin(), getViewMode(), fp_Page::getWidth(), getWidthPagesInRow(), getWidthPrevPagesInRow(), m_pLayout, AV_View::m_xScrollOffset, AV_View::m_yScrollOffset, rtlPages(), VIEW_PRINT, and xxx_UT_DEBUGMSG.
Referenced by _getMouseContext(), _moveInsPtNextPrevLine(), cmdHyperlinkStatusBar(), cmdSelectTOC(), extSelToXY(), extSelToXYword(), getDocPositionFromXY(), isLeftMargin(), isMathSelected(), isXYSelected(), FV_FrameEdit::setDragType(), FV_SelectionHandles::updateSelectionEnd(), FV_SelectionHandles::updateSelectionStart(), and warpInsPtToXY().
void FV_View::_getPageXandYOffset | ( | const fp_Page * | pThePage, | |
UT_sint32 & | xoff, | |||
UT_sint32 & | yoff, | |||
bool | bYOnly | |||
) | const [protected] |
Calculate the position of the top left corner of a page relative to the application frame.
References FL_DocLayout::findPage(), fl_DocSectionLayout::getBottomMargin(), fl_DocSectionLayout::getFirstOwnedPage(), FL_DocLayout::getFirstSection(), fp_Page::getHeight(), getLayout(), getMaxHeight(), fl_ContainerLayout::getNext(), getNumHorizPages(), fl_DocSectionLayout::getPageCount(), getPageViewLeftMargin(), getPageViewSep(), getPageViewTopMargin(), fl_DocSectionLayout::getTopMargin(), getViewMode(), getWidthPrevPagesInRow(), m_pLayout, VIEW_PREVIEW, and VIEW_PRINT.
Referenced by getPageScreenOffsets(), and getPageYOffset().
bool FV_View::_insertCellAt | ( | PT_DocPosition | posCell, | |
UT_sint32 | left, | |||
UT_sint32 | right, | |||
UT_sint32 | top, | |||
UT_sint32 | bot, | |||
const PP_PropertyVector & | attrsBlock, | |||
const PP_PropertyVector & | propsBlock | |||
) | [protected] |
This method inserts a cell at PT_DocPosition with the given left, right, top and bottom attach.
References PD_Document::insertStrux(), m_pDoc, PTX_Block, PTX_EndCell, PTX_SectionCell, UT_return_val_if_fail, and UT_std_string_sprintf().
Referenced by cmdInsertCol(), and cmdInsertRow().
bool FV_View::_insertField | ( | const char * | szName, | |
const PP_PropertyVector & | extra_attrs = PP_NOPROPS , |
|||
const PP_PropertyVector & | extra_props = PP_NOPROPS | |||
) | [protected] |
References _deleteSelection(), _makePointLegal(), PD_Document::beginUserAtomicGlob(), PD_Document::endUserAtomicGlob(), getPoint(), PD_Document::insertObject(), insertParaBreakIfNeededAtPos(), FV_FrameEdit::isActive(), isInTable(), isPointLegal(), isSelectionEmpty(), m_FrameEdit, m_pDoc, PTO_Field, FV_FrameEdit::setPointInside(), and fd_Field::update().
Referenced by cmdInsertField(), and insertFootnote().
bool FV_View::_insertFormatPair | ( | const gchar * | szName, | |
const gchar * | properties[] | |||
) | [protected] |
UT_Error FV_View::_insertGraphic | ( | const FG_ConstGraphicPtr & | pFG, | |
const char * | szName | |||
) | [protected] |
References _makePointLegal(), GR_Graphics::getDeviceResolution(), getPoint(), isPointLegal(), m_pDoc, m_pG, UT_ASSERT, UT_ERROR, and UT_return_val_if_fail.
Referenced by cmdInsertGraphic().
UT_Error FV_View::_insertGraphic | ( | const FG_ConstGraphicPtr & | pFG, | |
const char * | szName, | |||
PT_DocPosition | pos | |||
) | [protected] |
References GR_Graphics::getDeviceResolution(), getEditableBounds(), isPointLegal(), m_pDoc, m_pG, UT_ASSERT, UT_ERROR, and UT_return_val_if_fail.
void FV_View::_insertSectionBreak | ( | void | ) | [protected] |
References _deleteSelection(), _ensureInsertionPointOnScreen(), _generalUpdate(), _populateThisHdrFtr(), _setPoint(), 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_ContainerLayout::getContainerType(), getCurrentBlock(), fl_BlockLayout::getDocSectionLayout(), fl_DocSectionLayout::getFooter(), fl_DocSectionLayout::getFooterEven(), fl_DocSectionLayout::getFooterFirst(), fl_DocSectionLayout::getFooterLast(), fl_DocSectionLayout::getHeader(), fl_DocSectionLayout::getHeaderEven(), fl_DocSectionLayout::getHeaderFirst(), fl_DocSectionLayout::getHeaderLast(), fl_HdrFtrSectionLayout::getHFType(), UT_GenericVector< T >::getItemCount(), fl_ContainerLayout::getNextBlockInDocument(), UT_GenericVector< T >::getNthItem(), getPoint(), fl_BlockLayout::getPosition(), fl_ContainerLayout::getPrevBlockInDocument(), fl_DocSectionLayout::getVecOfHdrFtrs(), insertHeaderFooter(), PD_Document::insertStrux(), isSelectionEmpty(), m_pDoc, fl_ContainerLayout::myContainingLayout(), PTX_Block, PTX_Section, and setPoint().
Referenced by insertSectionBreak().
bool FV_View::_isSpaceBefore | ( | PT_DocPosition | pos | ) | const [protected] |
References FL_DocLayout::findBlockAtPosition(), fl_BlockLayout::getBlockBuf(), UT_GrowBuf::getPointer(), fl_BlockLayout::getPosition(), m_pLayout, and UT_UCS4_isspace().
Referenced by toggleCase().
UT_UCSChar* FV_View::_lookupSuggestion | ( | fl_BlockLayout * | pBL, | |
const fl_PartOfBlockPtr & | pPOB, | |||
UT_sint32 | ndx | |||
) | [protected] |
bool FV_View::_makePointLegal | ( | void | ) | [protected] |
References _charMotion(), getEditableBounds(), getPoint(), PD_Document::isEndFrameAtPos(), PD_Document::isFrameAtPos(), isPointLegal(), and m_pDoc.
Referenced by _generalUpdate(), _insertField(), _insertGraphic(), cmdCharDelete(), cmdInsertMathML(), cmdInsertPositionedGraphic(), cmdInsertTable(), cmdInsertTOC(), cmdPaste(), insertFootnote(), moveInsPtTo(), and setCharFormat().
bool FV_View::_MergeCells | ( | PT_DocPosition | posDestination, | |
PT_DocPosition | posSource, | |||
bool | bBefore | |||
) |
Do the merge between cells. If bBefore is true the contents of source will be prepended into destination otherwise will e appended to the end
References _changeCellTo(), _deleteCellAt(), PD_Document::beginUserAtomicGlob(), XAP_App::copyToClipboard(), PD_Document::endUserAtomicGlob(), getCellParams(), PD_Document::getEndCellStruxFromCellSDH(), PD_Document::getStruxOfTypeFromPosition(), PD_Document::getStruxPosition(), AV_View::m_pApp, m_pDoc, XAP_App::pasteFromClipboard(), PTX_SectionCell, PD_DocumentRange::set(), UT_DEBUGMSG, UT_MAX, and UT_MIN.
Referenced by cmdMergeCells().
void FV_View::_moveInsPtNextPrevLine | ( | bool | bNext | ) | [protected] |
Move insertion point to previous or next line
bNext | True if moving to next line |
This function moves the IP up or down one line, attempting to get as close as possible to the prior "sticky" x position. The notion of "next" is strictly physical, not logical.
For example, instead of always moving from the last line of one block to the first line of the next, you might wind up skipping over a bunch of blocks to wind up in the first line of the second column.
References _ensureInsertionPointOnScreen(), _findPositionCoords(), _getDocPosFromPoint(), _getNextLineInDoc(), _getPageForXY(), _setPoint(), fp_Page::countColumnLeaders(), FL_DocLayout::findPage(), FV_DOCPOS_BOL, FV_DOCPOS_EOL, fp_Page::getBottom(), fp_CellContainer::getBottomAttach(), fp_TableContainer::getCellAtRowColumn(), fp_Line::getColumn(), fp_Container::getContainer(), fl_ContainerLayout::getContainerType(), getCurrentPage(), getEditableBounds(), fp_VerticalContainer::getFirstContainer(), FL_DocLayout::getHeight(), fp_Page::getHeight(), fp_Line::getHeight(), fp_VerticalContainer::getLastContainer(), fp_Column::getLeader(), fp_CellContainer::getLeftAttach(), fp_Run::getLine(), fp_Line::getMarginBefore(), fp_Page::getNext(), fp_Page::getNthColumnLeader(), getNumHorizPages(), fp_TableContainer::getNumRows(), fp_VerticalContainer::getOffsets(), fp_Page::getOwningSection(), fp_Line::getPage(), getPageViewLeftMargin(), getPageYOffset(), getPoint(), fp_Page::getPrev(), fp_Line::getScreenRect(), fl_BlockLayout::getSectionLayout(), fp_CellContainer::getTopAttach(), fl_DocSectionLayout::getTopMargin(), fl_SectionLayout::getType(), getViewMode(), getWidthPrevPagesInRow(), fp_ContainerObject::getY(), fp_Line::getY(), fp_VerticalContainer::getY(), fp_TableContainer::getYOfRow(), UT_Rect::height, isHdrFtrEdit(), UT_Rect::left, m_bPointEOL, m_pG, m_pLayout, m_xPointSticky, AV_View::m_xScrollOffset, AV_View::m_yScrollOffset, fp_Page::mapXYToPosition(), moveInsPtTo(), setPoint(), FL_DocLayout::setSkipUpdates(), GR_Graphics::tlu(), UT_Rect::top, UT_ASSERT, UT_return_if_fail, VIEW_PRINT, and xxx_UT_DEBUGMSG.
Referenced by _moveInsPtNextPrevScreen(), extSelNextPrevLine(), gotoTarget(), and warpInsPtNextPrevLine().
void FV_View::_moveInsPtNextPrevPage | ( | bool | bNext | ) | [protected] |
References _getCurrentPage(), _moveInsPtToPage(), FV_DOCPOS_EOD, fp_Page::getNext(), fp_Page::getPrev(), and moveInsPtTo().
Referenced by extSelNextPrevPage(), and warpInsPtNextPrevPage().
void FV_View::_moveInsPtNextPrevScreen | ( | bool | bNext, | |
bool | bClearSelection | |||
) | [protected] |
References _ensureInsertionPointOnScreen(), _findPositionCoords(), _fixInsertionPointCoords(), _moveInsPtNextPrevLine(), _setPoint(), clearHdrFtrEdit(), FV_DOCPOS_BOD, FV_DOCPOS_EOD, fp_Container::getContainer(), fp_Page::getHeight(), fp_Run::getLine(), fp_Page::getNext(), fp_Line::getPage(), getPageScreenOffsets(), getPageViewSep(), getPoint(), fp_Page::getPrev(), fp_Page::getWidth(), AV_View::getWindowHeight(), fp_Line::getY(), isHdrFtrEdit(), AV_View::m_yScrollOffset, fp_Page::mapXYToPosition(), moveInsPtTo(), AV_View::sendVerticalScrollEvent(), UT_return_if_fail, warpInsPtToXY(), and xxx_UT_DEBUGMSG.
Referenced by extSelNextPrevScreen(), and warpInsPtNextPrevScreen().
void FV_View::_moveInsPtNthPage | ( | UT_sint32 | n | ) | [protected] |
References _moveInsPtToPage(), FL_DocLayout::countPages(), FL_DocLayout::getFirstPage(), fp_Page::getNext(), and m_pLayout.
Referenced by gotoTarget().
void FV_View::_moveInsPtToPage | ( | fp_Page * | page | ) | [protected] |
References _ensureInsertionPointOnScreen(), _fixInsertionPointCoords(), _setPoint(), AV_SCROLLCMD_LINEDOWN, AV_SCROLLCMD_LINEUP, cmdScroll(), fp_Page::getFirstLastPos(), getPageViewSep(), getPageYOffset(), AV_View::m_yScrollOffset, and UT_return_if_fail.
Referenced by _moveInsPtNextPrevPage(), _moveInsPtNthPage(), and gotoTarget().
void FV_View::_moveToSelectionEnd | ( | bool | bForward | ) | [protected] |
Move point to requested end of selection and clear selection
bForward | True if point should be moved to the forward position |
References _clearSelection(), getPoint(), FV_Selection::getSelectionAnchor(), isSelectionEmpty(), m_Selection, swapSelectionOrientation(), and UT_ASSERT.
Referenced by cmdCharMotion(), cmdFindRevision(), warpInsPtNextPrevLine(), warpInsPtNextPrevPage(), and warpInsPtNextPrevScreen().
void FV_View::_pasteFromLocalTo | ( | PT_DocPosition | pos | ) |
References UT_ByteBuf::getLength(), UT_ByteBuf::getPointer(), m_pDoc, m_pLocalBuf, IE_Imp_RTF::pasteFromBuffer(), and UT_return_if_fail.
Referenced by cmdTextToTable(), insertAnnotation(), and pasteFromLocalTo().
void FV_View::_populateThisHdrFtr | ( | fl_HdrFtrSectionLayout * | pHdrFtrSrc, | |
fl_HdrFtrSectionLayout * | pHdrFtrDest | |||
) |
Copy a header/footer from a pHdrFtrSrc to an empty pHdrFtrDest. into a new type of header/footer in the same section.
References XAP_App::copyToClipboard(), fp_Run::getBlockOffset(), fl_ContainerLayout::getFirstLayout(), fl_BlockLayout::getFirstRun(), fl_ContainerLayout::getLastLayout(), fl_ContainerLayout::getNext(), fp_Run::getNextRun(), fl_ContainerLayout::getPosition(), fl_BlockLayout::getPosition(), fl_Layout::getStruxDocHandle(), PD_Document::getStruxPosition(), AV_View::m_pApp, m_pDoc, XAP_App::pasteFromClipboard(), PD_DocumentRange::set(), UT_DEBUGMSG, and UT_return_if_fail.
Referenced by _insertSectionBreak(), and populateThisHdrFtr().
void FV_View::_prefsListener | ( | XAP_Prefs * | pPrefs, | |
UT_StringPtrMap * | , | |||
void * | data | |||
) | [static, private] |
References XAP_Dialog_MessageBox::a_OK, GR_Graphics::allCarets(), AP_PREF_KEY_CursorBlink, AP_PREF_KEY_DefaultDirectionRtl, XAP_Dialog_MessageBox::b_O, gchar, AV_View::getParentData(), XAP_Prefs::getPrefsValue(), XAP_Prefs::getPrefsValueBool(), m_bCursorBlink, m_bCursorIsOn, m_bDefaultDirectionRtl, m_bgColorInitted, m_bUseHebrewContextGlyphs, m_bWarnedThatRestartNeeded, m_colorColumnLine, m_colorFieldOffset, m_colorGrammarSquiggle, m_colorHdrFtr, m_colorHyperLink, m_colorImage, m_colorMargin, m_colorRevisions, m_colorShowPara, m_colorSpellSquiggle, m_pG, AllCarets::setBlink(), AV_View::setConfigure(), XAP_Frame::showMessageBox(), UT_ASSERT, UT_DEBUGMSG, UT_parseColor(), UT_return_if_fail, XAP_PREF_KEY_ColorForColumnLine, XAP_PREF_KEY_ColorForFieldOffset, XAP_PREF_KEY_ColorForGrammarSquiggle, XAP_PREF_KEY_ColorForHdrFtr, XAP_PREF_KEY_ColorForHyperLink, XAP_PREF_KEY_ColorForImage, XAP_PREF_KEY_ColorForMargin, XAP_PREF_KEY_ColorForRevision1, XAP_PREF_KEY_ColorForRevision10, XAP_PREF_KEY_ColorForRevision2, XAP_PREF_KEY_ColorForRevision3, XAP_PREF_KEY_ColorForRevision4, XAP_PREF_KEY_ColorForRevision5, XAP_PREF_KEY_ColorForRevision6, XAP_PREF_KEY_ColorForRevision7, XAP_PREF_KEY_ColorForRevision8, XAP_PREF_KEY_ColorForRevision9, XAP_PREF_KEY_ColorForShowPara, XAP_PREF_KEY_ColorForSquiggle, and XAP_PREF_KEY_UseHebrewContextGlyphs.
Referenced by FV_View(), and ~FV_View().
void FV_View::_removeThisHdrFtr | ( | fl_HdrFtrSectionLayout * | pHdrFtr | ) | [protected] |
This method removes the HdrFtr pHdrFtr
References PD_Document::deleteHdrFtrStrux(), gchar, PD_Document::getAttributeFromSDH(), fl_ContainerLayout::getContainerType(), getRevisionLevel(), fl_Layout::getStruxDocHandle(), isShowRevisions(), m_pDoc, PT_TYPE_ATTRIBUTE_NAME, UT_ASSERT, and UT_DEBUGMSG.
Referenced by cmdRemoveHdrFtr(), and removeThisHdrFtr().
void FV_View::_resetSelection | ( | void | ) | [protected] |
References FV_Selection::clearSelection(), getPoint(), m_iGrabCell, m_Selection, FV_Selection::setSelectionAnchor(), FV_Selection::setSelectionLeftAnchor(), and FV_Selection::setSelectionRightAnchor().
Referenced by _clearSelection(), _deleteSelection(), _eraseSelection(), _extSelToPos(), cmdDeleteTable(), cmdSelectColumn(), fl_BlockLayout::doclistener_deleteFmtMark(), fl_BlockLayout::doclistener_deleteObject(), fl_BlockLayout::doclistener_deleteSpan(), fl_BlockLayout::doclistener_insertFmtMark(), extSelHorizontal(), extSelNextPrevLine(), extSelNextPrevPage(), extSelNextPrevScreen(), findReplaceAll(), FV_View(), insertFootnote(), FV_VisualDragText::mouseCopy(), FV_VisualInlineImage::mouseCopy(), warpInsPtNextPrevLine(), warpInsPtNextPrevPage(), and warpInsPtNextPrevScreen().
bool FV_View::_restoreCellParams | ( | PT_DocPosition | posTable, | |
pf_Frag_Strux * | tableSDH | |||
) |
This method is used to change a parameter of the table to trigger a table rebuild. It also restores all the nice needed for single step undo's
References _generalUpdate(), _restorePieceTableState(), PD_Document::allowChangeInsPoint(), PD_Document::changeStruxFmt(), PD_Document::enableListUpdates(), PD_Document::endUserAtomicGlob(), FL_DocLayout::getLID(), PD_Document::getNthFmtHandle(), fl_TableLayout::getTableWaitIndex(), m_pDoc, m_pLayout, PTC_AddFmt, PTC_RemoveFmt, PTX_SectionTable, PD_Document::setDontImmediatelyLayout(), PD_Document::updateDirtyLists(), and UT_std_string_sprintf().
Referenced by cmdMergeCells(), and setCellFormat().
void FV_View::_restorePieceTableState | ( | void | ) | [protected] |
References m_iPieceTableState, m_pDoc, PD_Document::notifyPieceTableChangeEnd(), and PD_Document::notifyPieceTableChangeStart().
Referenced by _charInsert(), _deleteBookmark(), _deleteHyperlink(), _deleteXMLID(), _findReplace(), _findReplaceReverse(), _fixInsertionPointAfterRevision(), _restoreCellParams(), changeListStyle(), cmdAcceptRejectRevision(), cmdAutoFitTable(), cmdAutoSizeCols(), cmdAutoSizeRows(), cmdCharDelete(), cmdCharInsert(), cmdDeleteCell(), cmdDeleteCol(), cmdDeleteEmbed(), cmdDeleteRow(), cmdDeleteTable(), cmdInsertBookmark(), cmdInsertCol(), cmdInsertEmbed(), cmdInsertField(), cmdInsertGraphic(), cmdInsertGraphicAtStrux(), cmdInsertHyperlink(), cmdInsertLatexMath(), cmdInsertMathML(), cmdInsertPositionedGraphic(), cmdInsertRow(), cmdInsertTable(), cmdInsertTOC(), cmdInsertXMLID(), cmdPasteSelectionAt(), cmdRemoveHdrFtr(), cmdSplitCells(), cmdStopList(), cmdTableToText(), cmdTextToTable(), cmdUpdateEmbed(), convertInLineToPositioned(), convertPositionedToInLine(), FV_FrameEdit::deleteFrame(), delTo(), endDragSelection(), insertAnnotation(), insertFootnote(), insertFootnoteSection(), insertPageNum(), insertParagraphBreak(), FV_VisualInlineImage::mouseRelease(), FV_FrameEdit::mouseRelease(), pasteFromLocalTo(), FV_Selection::pasteRowOrCol(), processPageNumber(), processSelectedBlocks(), removeStruxAttrProps(), removeThisHdrFtr(), setAnnotationText(), setBlockFormat(), setBlockIndents(), setCellFormat(), setCharFormat(), setCollapsedRange(), setFrameFormat(), setSectionFormat(), setStyleAtPos(), setTableFormat(), setTOCProps(), and toggleCase().
void FV_View::_saveAndNotifyPieceTableChange | ( | void | ) | [protected] |
References AD_Document::isPieceTableChanging(), m_iPieceTableState, m_pDoc, and PD_Document::notifyPieceTableChangeStart().
Referenced by _changeCellParams(), _charInsert(), _deleteBookmark(), _deleteHyperlink(), _deleteXMLID(), _findReplace(), _findReplaceReverse(), _fixInsertionPointAfterRevision(), changeListStyle(), cmdAcceptRejectRevision(), cmdAutoFitTable(), cmdAutoSizeCols(), cmdAutoSizeRows(), cmdCharDelete(), cmdCharInsert(), cmdDeleteCell(), cmdDeleteCol(), cmdDeleteEmbed(), cmdDeleteRow(), cmdDeleteTable(), cmdInsertBookmark(), cmdInsertCol(), cmdInsertEmbed(), cmdInsertField(), cmdInsertGraphic(), cmdInsertGraphicAtStrux(), cmdInsertHyperlink(), cmdInsertLatexMath(), cmdInsertMathML(), cmdInsertPositionedGraphic(), cmdInsertRow(), cmdInsertTable(), cmdInsertTOC(), cmdInsertXMLID(), cmdPasteSelectionAt(), cmdRemoveHdrFtr(), cmdSplitCells(), cmdStopList(), cmdTableToText(), cmdTextToTable(), cmdUpdateEmbed(), convertInLineToPositioned(), convertPositionedToInLine(), FV_FrameEdit::deleteFrame(), delTo(), endDragSelection(), insertAnnotation(), insertFootnote(), insertFootnoteSection(), insertPageNum(), insertParagraphBreak(), FV_VisualInlineImage::mouseRelease(), FV_FrameEdit::mouseRelease(), pasteFromLocalTo(), FV_Selection::pasteRowOrCol(), processPageNumber(), processSelectedBlocks(), removeStruxAttrProps(), removeThisHdrFtr(), setAnnotationText(), setBlockFormat(), setBlockIndents(), setCellFormat(), setCharFormat(), setCollapsedRange(), setFrameFormat(), setSectionFormat(), setStyleAtPos(), setTableFormat(), setTOCProps(), SetupSavePieceTableState(), and toggleCase().
void FV_View::_setPoint | ( | PT_DocPosition | pt, | |
bool | bEOL = false | |||
) | [protected] |
References _fixInsertionPointCoords(), GR_Graphics::allCarets(), FV_Selection::checkSelectAll(), FL_DocLayout::considerPendingSmartQuoteCandidate(), AllCarets::disable(), AllCarets::enable(), GR_Graphics::flush(), PD_Document::getAllowChangeInsPoint(), getClosestEndnote(), getClosestFootnote(), fl_EmbedLayout::getLength(), PD_Document::isFootnoteAtPos(), AD_Document::isPieceTableChanging(), isSelectionEmpty(), m_bInsertAtTablePending, m_bPointEOL, m_countDisable, m_iInsPoint, m_iPosAtTable, m_pDoc, m_pG, m_pLayout, m_Selection, AllCarets::setPendingBlink(), and xxx_UT_DEBUGMSG.
Referenced by FV_VisualDragText::_actuallyScroll(), _charMotion(), _cmdEditHdrFtr(), fl_BlockLayout::_createListLabel(), _deleteCellAt(), _extSelToPos(), _findNext(), _findPrev(), _insertSectionBreak(), FV_VisualDragText::_mouseDrag(), FV_VisualInlineImage::_mouseDrag(), _moveInsPtNextPrevLine(), _moveInsPtNextPrevScreen(), _moveInsPtToPage(), addCaret(), fl_DocListener::change(), cmdCharDelete(), cmdCharMotion(), cmdCut(), cmdRemoveHdrFtr(), cmdSelectColumn(), cmdSelectNoNotify(), createThisHdrFtr(), FV_FrameEdit::deleteFrame(), fl_BlockLayout::doclistener_deleteFmtMark(), fl_BlockLayout::doclistener_deleteObject(), fl_BlockLayout::doclistener_deleteSpan(), fl_DocSectionLayout::doclistener_deleteStrux(), fl_BlockLayout::doclistener_deleteStrux(), fl_BlockLayout::doclistener_insertBlock(), fl_BlockLayout::doclistener_insertFirstBlock(), fl_BlockLayout::doclistener_insertFmtMark(), fl_BlockLayout::doclistener_insertFrame(), fl_BlockLayout::doclistener_insertObject(), fl_BlockLayout::doclistener_insertSection(), fl_BlockLayout::doclistener_insertSpan(), fl_BlockLayout::doclistener_insertTable(), extSelHorizontal(), focusChange(), insertFootnote(), insertFootnoteSection(), insertHeaderFooter(), insertParagraphBreak(), moveInsPtTo(), populateThisHdrFtr(), processPageNumber(), removeThisHdrFtr(), selectRange(), setPoint(), FV_FrameEdit::setPointInside(), setStyleAtPos(), fl_BlockLayout::StopListInBlock(), swapSelectionOrientation(), toggleCase(), updateCarets(), and warpInsPtToXY().
void FV_View::_setPoint | ( | fv_CaretProps * | pCP, | |
PT_DocPosition | pt, | |||
UT_sint32 | iLen | |||
) | const [protected] |
void FV_View::_setSelectionAnchor | ( | void | ) | [protected] |
References FV_SelectionMode_Single, getPoint(), m_Selection, FV_Selection::setMode(), and FV_Selection::setSelectionAnchor().
Referenced by _extSelToPos(), _findNext(), _findPrev(), cmdSelectNoNotify(), extSelHorizontal(), extSelNextPrevLine(), extSelNextPrevPage(), extSelNextPrevScreen(), FV_VisualInlineImage::mouseCut(), processSelectedBlocks(), selectFrame(), selectRange(), and setStyleAtPos().
void FV_View::_updateDatesBeforeSave | ( | bool | bOverwriteCreated | ) | [protected] |
References PD_Document::getMetaDataProp(), m_pDoc, PD_META_KEY_DATE, PD_META_KEY_DATE_LAST_CHANGED, PD_Document::setMetaDataProp(), and time.
Referenced by cmdSave(), and cmdSaveAs().
void FV_View::_updateInsertionPoint | ( | ) | [protected] |
References _ensureInsertionPointOnScreen(), and isSelectionEmpty().
Referenced by _cmdEditHdrFtr(), _doPaste(), cmdDeleteEmbed(), cmdInsertEmbed(), cmdInsertGraphic(), cmdInsertGraphicAtStrux(), cmdInsertMathML(), cmdRedo(), cmdRemoveHdrFtr(), cmdUndo(), cmdUpdateEmbed(), convertPositionedToInLine(), createThisHdrFtr(), findNext(), findPrev(), findReplace(), findReplaceAll(), findReplaceReverse(), insertFootnote(), insertFootnoteSection(), insertPageNum(), FV_VisualInlineImage::mouseRelease(), populateThisHdrFtr(), removeThisHdrFtr(), and RestoreSavedPieceTableState().
void FV_View::_updateSelectionHandles | ( | void | ) | [private] |
References getInsPoint(), getSelectionLeftAnchor(), getSelectionRightAnchor(), AV_View::getVisualSelectionEnabled(), FV_SelectionHandles::hide(), isSelectionEmpty(), m_SelectionHandles, FV_SelectionHandles::setCursor(), and FV_SelectionHandles::setSelection().
Referenced by extSelToXY(), focusChange(), selectRange(), setXScrollOffset(), setYScrollOffset(), and warpInsPtToXY().
void FV_View::activateFrame | ( | void | ) |
References FV_FrameEdit::isActive(), m_FrameEdit, m_iMouseX, m_iMouseY, and FV_FrameEdit::mouseLeftPress().
Referenced by Defun1().
void FV_View::addCaret | ( | PT_DocPosition | docPos, | |
UT_sint32 | iAuthorId | |||
) |
References _setPoint(), UT_GenericVector< T >::addItem(), AV_View::addListener(), GR_Graphics::createCaret(), GR_Caret::enable(), getColorRevisions(), UT_GenericVector< T >::getItemCount(), PD_Document::getMyAuthorInt(), AD_Document::getMyUUIDString(), UT_GenericVector< T >::getNthItem(), AV_View::getParentData(), fv_CaretProps::m_caretColor, fv_CaretProps::m_iAuthorId, fv_CaretProps::m_ListenerID, fv_CaretProps::m_pCaret, m_pDoc, m_pG, fv_CaretProps::m_PropCaretListner, fv_CaretProps::m_sCaretID, m_sDocUUID, m_vecCarets, GR_Caret::setBlink(), GR_Caret::setRemoteColor(), and UT_DEBUGMSG.
Referenced by fl_DocListener::change(), and updateCarets().
void FV_View::allowChangeInsPoint | ( | void | ) |
References PD_Document::allowChangeInsPoint(), and m_pDoc.
bool FV_View::appendStyle | ( | const PP_PropertyVector & | style | ) |
References PD_Document::appendStyle(), and m_pDoc.
Logic for determining what state the frame and cursor should be in.
References FV_FrameEdit::getFrameEditMode(), getGraphics(), GR_Graphics::GR_CURSOR_CROSSHAIR, GR_Graphics::GR_CURSOR_GRAB, FV_FrameEdit::isActive(), m_FrameEdit, GR_Graphics::setCursor(), setCursorToContext(), FV_FrameEdit::setDragType(), and xxx_UT_DEBUGMSG.
Referenced by Defun().
Logic for determining what state the Image and cursor should be in.
References FV_VisualInlineImage::getInlineDragMode(), m_InlineImage, setCursorToContext(), FV_VisualInlineImage::setDragType(), and xxx_UT_DEBUGMSG.
Referenced by Defun().
References m_iMouseX, m_iMouseY, m_xLastMouse, m_yLastMouse, and setCursorToContext().
Referenced by Defun().
Make a copy of the inline image. This gets called with cntrl-left mouse click.
References m_InlineImage, and FV_VisualInlineImage::mouseCopy().
Referenced by Defun().
References m_FrameEdit, and FV_FrameEdit::mouseLeftPress().
Referenced by Defun().
Deal with a left -mouse click on a inline-image. It might be the start of a drag or a resize.
References m_InlineImage, and FV_VisualInlineImage::mouseLeftPress().
Referenced by Defun().
bool FV_View::bubblesAreBlocked | ( | ) | const |
References m_bubbleBlockerCount, and UT_DEBUGMSG.
Referenced by Defun().
void FV_View::calculateNumHorizPages | ( | void | ) |
References _ensureInsertionPointOnScreen(), AV_SCROLLCMD_LINEDOWN, AV_SCROLLCMD_LINEUP, cmdScroll(), FL_DocLayout::countPages(), GR_Graphics::DGP_SCREEN, AV_View::getApp(), FL_DocLayout::getFirstPage(), getGraphics(), getHorizPageSpacing(), FL_DocLayout::getNthPage(), AV_View::getParentData(), getViewMode(), fp_Page::getWidth(), getWidthPagesInRow(), AV_View::getWindowWidth(), m_autoNumHorizPages, m_getNumHorizPagesCachedWindowWidth, m_iNumHorizPages, m_pLayout, AV_View::m_yScrollOffset, XAP_Frame::nullUpdate(), XAP_App::setEnableSmoothScrolling(), XAP_Frame::setYScrollRange(), VIEW_PRINT, and xxx_UT_DEBUGMSG.
Referenced by _draw(), draw(), and AP_Frame::quickZoom().
UT_uint32 FV_View::calculateZoomPercentForPageHeight | ( | ) | const [virtual] |
Implements AV_View.
References DIM_IN, gchar, getGraphics(), getPageSize(), getPageViewTopMargin(), XAP_App::getPrefsValue(), GR_Graphics::getResolution(), AV_View::getWindowHeight(), GR_Graphics::getZoomPercentage(), fp_PageSize::Height(), AV_View::m_pApp, UT_DEBUGMSG, XAP_DLG_ZOOM_MAXIMUM_ZOOM, XAP_DLG_ZOOM_MINIMUM_ZOOM, and XAP_PREF_KEY_ZoomPercentage.
Referenced by calculateZoomPercentForWholePage().
UT_uint32 FV_View::calculateZoomPercentForPageWidth | ( | ) | const [virtual] |
Implements AV_View.
References DIM_IN, gchar, FL_DocLayout::getFirstSection(), getGraphics(), fl_DocSectionLayout::getLeftMargin(), getNormalModeXOffset(), getPageSize(), getPageViewLeftMargin(), XAP_App::getPrefsValue(), GR_Graphics::getResolution(), fl_DocSectionLayout::getRightMargin(), getViewMode(), AV_View::getWindowWidth(), GR_Graphics::getZoomPercentage(), iExtra, AV_View::m_pApp, m_pLayout, UT_DEBUGMSG, fp_PageSize::Width(), XAP_DLG_ZOOM_MAXIMUM_ZOOM, XAP_DLG_ZOOM_MINIMUM_ZOOM, XAP_PREF_KEY_ZoomPercentage, and xxx_UT_DEBUGMSG.
Referenced by _abi_widget_set_show_margin(), calculateZoomPercentForWholePage(), Defun(), Defun1(), XAP_UnixFrameImpl::_fe::do_ZoomUpdate(), AP_Frame::quickZoom(), and FL_DocLayout::setDocViewPageSize().
UT_uint32 FV_View::calculateZoomPercentForWholePage | ( | ) | const [virtual] |
Implements AV_View.
References calculateZoomPercentForPageHeight(), calculateZoomPercentForPageWidth(), and UT_MIN.
Referenced by Defun(), Defun1(), and FL_DocLayout::setDocViewPageSize().
bool FV_View::canDo | ( | bool | bUndo | ) | const [virtual] |
Implements AV_View.
References PD_Document::canDo(), and m_pDoc.
Referenced by Stateful_ViewListener::notify(), and notifyListeners().
void FV_View::changeListStyle | ( | const fl_AutoNumPtr & | pAuto, | |
FL_ListType | lType, | |||
UT_uint32 | startv, | |||
const gchar * | pszDelim, | |||
const gchar * | pszDecimal, | |||
const gchar * | pszFormat, | |||
float | Aligm, | |||
float | Indent | |||
) |
References _ensureInsertionPointOnScreen(), _generalUpdate(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), UT_GenericVector< T >::addItem(), PD_Document::beginUserAtomicGlob(), PD_Document::changeStruxFmt(), DIM_IN, PD_Document::disableListUpdates(), PD_Document::enableListUpdates(), PD_Document::endUserAtomicGlob(), gchar, getCurrentBlock(), UT_GenericVector< T >::getItemCount(), fl_BlockLayout::getListStyleString(), UT_GenericVector< T >::getNthItem(), PD_Document::getStruxPosition(), PD_Document::listUpdate(), m_pDoc, NOT_A_LIST, PTC_AddFmt, PTX_Block, PD_Document::StopList(), style, PD_Document::updateDirtyLists(), UT_ASSERT, and UT_convertInchesToDimensionString().
Referenced by AP_Dialog_Lists::Apply().
void FV_View::changeNumColumns | ( | UT_uint32 | iNumColumns | ) |
void FV_View::clearCursorWait | ( | void | ) | [virtual] |
The clears the "waiting" icon from the mouse pointer.
Implements AV_View.
References GR_Graphics::DGP_SCREEN, getGraphics(), AV_View::getParentData(), GR_Graphics::GR_CURSOR_DEFAULT, XAP_Frame::setCursor(), and setCursorToContext().
Referenced by cmdPaste(), cmdRemoveHdrFtr(), createThisHdrFtr(), Defun1(), FL_DocLayout::fillLayouts(), insertHeaderFooter(), pasteFromLocalTo(), populateThisHdrFtr(), removeThisHdrFtr(), s_doPrint(), setCellFormat(), setFrameFormat(), setSectionFormat(), and setTableFormat().
void FV_View::clearHdrFtrEdit | ( | void | ) |
This method clears the bool variable which tells getEditableBounds we are editting a header/Footer.
References m_bEditHdrFtr, m_pEditShadow, and updateScreen().
Referenced by _cmdEditHdrFtr(), _moveInsPtNextPrevScreen(), cmdInsertPositionedGraphic(), cmdRemoveHdrFtr(), fl_HdrFtrSectionLayout::collapse(), createThisHdrFtr(), Defun1(), fl_BlockLayout::doclistener_deleteStrux(), FL_DocLayout::findBlockAtPosition(), FL_DocLayout::findBlockAtPositionReverse(), insertHeaderFooter(), processPageNumber(), s_doStylesDlg(), FL_DocLayout::setDocViewPageSize(), setFrameFormat(), setSectionFormat(), and warpInsPtToXY().
void FV_View::clearSavedPosition | ( | void | ) |
This method clears the saved position of the insertion point in the doc.
References m_bNeedSavedPosition, and m_iSavedPosition.
References _clearSelection(), _generalUpdate(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), PD_Document::acceptRejectRevision(), fp_Run::getBlockOffset(), getCurrentBlock(), fl_BlockLayout::getFirstRun(), fp_Run::getLength(), fp_Run::getNextRun(), getPoint(), fl_BlockLayout::getPosition(), getSelectionAnchor(), isSelectionEmpty(), m_iViewRevision, m_pDoc, UT_DEBUGMSG, UT_return_if_fail, and warpInsPtToXY().
Referenced by Defun().
bool FV_View::cmdAdvanceNextPrevCell | ( | bool | bGoNext | ) |
Move the caret to the next or previous cell in a table. If at either end insert a new row.
References _ensureInsertionPointOnScreen(), _fixInsertionPointCoords(), AV_CHG_MOTION, cmdInsertRow(), FL_DocLayout::getLID(), fl_ContainerLayout::getNext(), PD_Document::getNthFmtHandle(), getPoint(), pf_Frag::getPos(), fl_ContainerLayout::getPrev(), fl_Layout::getStruxDocHandle(), PD_Document::getStruxOfTypeFromPosition(), isInTable(), m_pDoc, m_pLayout, notifyListeners(), PTX_SectionCell, setPoint(), and UT_return_val_if_fail.
Referenced by Defun1().
bool FV_View::cmdAutoFitTable | ( | void | ) |
Make a table Rows autosizing by removing all the row and col properties.
References _ensureInsertionPointOnScreen(), _fixInsertionPointCoords(), _generalUpdate(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), AV_CHG_MOTION, PD_Document::beginUserAtomicGlob(), PD_Document::changeStruxFmt(), PD_Document::disableListUpdates(), PD_Document::enableListUpdates(), PD_Document::endUserAtomicGlob(), getPoint(), m_pDoc, notifyListeners(), PTC_AddFmt, PTC_RemoveFmt, PTX_SectionTable, PD_Document::setDontImmediatelyLayout(), STD_DOUBLE_BUFFERING_FOR_THIS_FUNCTION, and PD_Document::updateDirtyLists().
Referenced by Defun1().
bool FV_View::cmdAutoSizeCols | ( | void | ) |
Make a table columns autosizing by removing all the column properties.
References _ensureInsertionPointOnScreen(), _fixInsertionPointCoords(), _generalUpdate(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), AV_CHG_MOTION, PD_Document::beginUserAtomicGlob(), PD_Document::changeStruxFmt(), PD_Document::disableListUpdates(), PD_Document::enableListUpdates(), PD_Document::endUserAtomicGlob(), getPoint(), m_pDoc, notifyListeners(), PTC_RemoveFmt, PTX_SectionTable, PD_Document::setDontImmediatelyLayout(), STD_DOUBLE_BUFFERING_FOR_THIS_FUNCTION, and PD_Document::updateDirtyLists().
Referenced by Defun1().
bool FV_View::cmdAutoSizeRows | ( | void | ) |
Make a table Rows autosizing by removing all the row properties.
References _ensureInsertionPointOnScreen(), _fixInsertionPointCoords(), _generalUpdate(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), AV_CHG_MOTION, PD_Document::beginUserAtomicGlob(), PD_Document::changeStruxFmt(), PD_Document::disableListUpdates(), PD_Document::enableListUpdates(), PD_Document::endUserAtomicGlob(), getPoint(), m_pDoc, notifyListeners(), PTC_RemoveFmt, PTX_SectionTable, PD_Document::setDontImmediatelyLayout(), STD_DOUBLE_BUFFERING_FOR_THIS_FUNCTION, and PD_Document::updateDirtyLists().
Referenced by Defun1().
void FV_View::cmdCharDelete | ( | bool | bForward, | |
UT_uint32 | count | |||
) |
References _adjustDeletePosition(), _charMotion(), _deleteSelection(), _ensureInsertionPointOnScreen(), _findBlockAtPosition(), _fixInsertionPointCoords(), _generalUpdate(), _makePointLegal(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), _setPoint(), AV_CHG_ALL, AV_CHG_MOTION, PD_Document::beginUserAtomicGlob(), UT_String::c_str(), PD_Document::changeStruxFmt(), fp_Run::deleteFollowingIfAtInsPoint(), deleteFrame(), PD_Document::deleteSpan(), DIM_IN, PD_Document::disableListUpdates(), PD_Document::enableListUpdates(), PD_Document::endUserAtomicGlob(), fl_BlockLayout::findRunAtOffset(), gchar, fl_ContainerLayout::getAP(), fl_Layout::getAutoNum(), fp_Run::getBlockOffset(), getCharFormat(), getClosestEndnote(), getClosestFootnote(), fl_ContainerLayout::getContainerType(), getCurrentBlock(), getEditableBounds(), getFrameLayout(), fl_FrameLayout::getFramePositionTo(), fl_BlockLayout::getHeightOfBlock(), fl_FrameLayout::getLength(), fp_Run::getLength(), fl_EmbedLayout::getLength(), fl_BlockLayout::getLength(), fl_ContainerLayout::getNext(), fp_Run::getNextRun(), fl_ContainerLayout::getNthFrameLayout(), fl_ContainerLayout::getNumFrames(), getPoint(), fl_ContainerLayout::getPosition(), fl_BlockLayout::getPosition(), fl_ContainerLayout::getPrev(), fp_Run::getPrevRun(), PP_AttrProp::getProperty(), fl_Layout::getStruxDocHandle(), FV_FrameEdit::isActive(), PD_Document::isEndFrameAtPos(), PD_Document::isFrameAtPos(), fl_ContainerLayout::isHidden(), isInEndnote(), isInFootnote(), isInFrame(), isMarkRevisions(), isSelectionEmpty(), isTabListAheadPoint(), isTabListBehindPoint(), PD_Document::isTOCAtPos(), m_FrameEdit, m_iInsPoint, m_pDoc, m_pLayout, notifyListeners(), PP_getAttribute(), PTC_AddFmt, PTX_SectionFrame, FL_DocLayout::relocateFrame(), fl_BlockLayout::remItemFromList(), setCharFormat(), setPoint(), STD_DOUBLE_BUFFERING_FOR_THIS_FUNCTION, PD_Document::StopList(), PD_Document::updateDirtyLists(), UT_ASSERT, UT_ASSERT_HARMLESS, UT_convertToInches(), UT_DEBUGMSG, UT_formatDimensionString(), UT_LAYOUT_RESOLUTION, UT_return_if_fail, UT_SHOULD_NOT_HAPPEN, and xxx_UT_DEBUGMSG.
Referenced by _charInsert(), XAP_UnixFrameImpl::_imCommit(), XAP_UnixFrameImpl::_imDeleteSurrounding_cb(), XAP_UnixFrameImpl::_imPreeditChanged_cb(), XAP_UnixFrameImpl::_imPreeditEnd_cb(), FV_VisualDragText::mouseCut(), and FV_VisualInlineImage::mouseCut().
bool FV_View::cmdCharInsert | ( | const std::string & | s, | |
bool | bForce = false | |||
) |
References cmdCharInsert(), UT_UCS4String::length(), and UT_UCS4String::ucs4_str().
bool FV_View::cmdCharInsert | ( | const UT_UCSChar * | text, | |
UT_uint32 | count, | |||
bool | bForce = false | |||
) |
References _charInsert(), _generalUpdate(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), PD_Document::beginUserAtomicGlob(), PD_Document::disableListUpdates(), PD_Document::enableListUpdates(), PD_Document::endUserAtomicGlob(), FL_DocLayout::findBlockAtPosition(), AV_View::getApp(), fl_BlockLayout::getDominantDirection(), XAP_App::getKbdLanguage(), getPoint(), XAP_App::getPrefsValueBool(), insertParagraphBreak(), PD_Document::insertStrux(), m_bInsertAtTablePending, UT_LangRecord::m_eDir, m_iPosAtTable, m_pDoc, m_pLayout, PTX_Block, setPoint(), STD_DOUBLE_BUFFERING_FOR_THIS_FUNCTION, UCS_FF, UCS_SPACE, UCS_VTAB, PD_Document::updateDirtyLists(), UT_BIDI_LTR, UT_BIDI_RTL, UTLANG_LTR, UTLANG_RTL, XAP_PREF_KEY_ChangeLanguageWithKeyboard, and XAP_PREF_KEY_DirMarkerAfterClosingParenthesis.
Referenced by AP_Dialog_Styles::_populateAbiPreview(), AbiOts_invoke(), AiksaurusABI_invoke(), cmdCharInsert(), FL_SelectionPreserver::cmdCharInsert(), cmdTableToText(), FL_DocLayout::considerSmartQuoteCandidateAt(), copyTextToClipboard(), Defun(), Defun1(), insertAnnotationDescription(), insertSectionBreak(), XAP_CocoaDialog_Insert_Symbol::insertSymbol, insertSymbol(), s_doBreakDlg(), and s_doInsertDateTime().
void FV_View::cmdCharMotion | ( | bool | bForward, | |
UT_uint32 | count | |||
) |
Move point a number of character positions
bForward | True if moving forward | |
count | Number of char positions to move |
References _charMotion(), _ensureInsertionPointOnScreen(), _fixInsertionPointCoords(), _moveToSelectionEnd(), _setPoint(), AV_CHG_MOTION, getPoint(), isPointLegal(), isSelectionEmpty(), m_bInsertAtTablePending, m_bPointEOL, m_iInsPoint, notifyListeners(), and UT_DEBUGMSG.
Referenced by Defun1().
void FV_View::cmdCopy | ( | bool | bToClipboard = true |
) | [virtual] |
Implements AV_View.
References AV_CHG_CLIPBOARD, XAP_App::copyToClipboard(), getDocumentRangeOfCurrentSelection(), isSelectionEmpty(), AV_View::m_pApp, and notifyListeners().
Referenced by cmdCut(), cmdPasteSelectionAt(), copyTextToClipboard(), Defun1(), FV_VisualDragText::mouseCopy(), and s_pasteFile().
void FV_View::cmdCut | ( | void | ) | [virtual] |
Implements AV_View.
References _clearSelection(), _deleteSelection(), _ensureInsertionPointOnScreen(), _fixInsertionPointCoords(), _generalUpdate(), _setPoint(), AV_CHG_ALL, cmdCopy(), cmdDeleteCol(), cmdDeleteRow(), PD_Document::disableListUpdates(), PD_Document::enableListUpdates(), FV_Selection::getNthSelection(), getPoint(), getSelectionAnchor(), FV_Selection::getSelectionMode(), FV_SelectionHandles::hide(), isSelectionEmpty(), m_iPieceTableState, m_pDoc, PD_DocumentRange::m_pos1, m_Selection, m_SelectionHandles, notifyListeners(), PD_Document::notifyPieceTableChangeEnd(), PD_Document::notifyPieceTableChangeStart(), and PD_Document::updateDirtyLists().
Referenced by Defun1(), endDragSelection(), PD_RDFSemanticStylesheet::format(), and FV_VisualDragText::mouseCut().
UT_Error FV_View::cmdDeleteBookmark | ( | const char * | szName | ) |
References _deleteBookmark().
Referenced by s_doBookmarkDlg().
bool FV_View::cmdDeleteCell | ( | PT_DocPosition | pos | ) |
Delete the cell at the specified position
References _deleteCellAt(), _deleteSelection(), _ensureInsertionPointOnScreen(), _fixInsertionPointCoords(), _generalUpdate(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), AV_CHG_MOTION, PD_Document::beginUserAtomicGlob(), PD_Document::disableListUpdates(), PD_Document::enableListUpdates(), PD_Document::endUserAtomicGlob(), PD_Document::getPropertyFromSDH(), PD_Document::getStruxOfTypeFromPosition(), FV_FrameEdit::isActive(), isSelectionEmpty(), m_FrameEdit, m_pDoc, notifyListeners(), PTX_SectionCell, PD_Document::setDontImmediatelyLayout(), FV_FrameEdit::setPointInside(), PD_Document::updateDirtyLists(), UT_ASSERT, and UT_NOT_IMPLEMENTED.
Referenced by Defun1().
bool FV_View::cmdDeleteCol | ( | PT_DocPosition | posCol | ) |
Delete the column containing the position posCol
References _deleteCellAt(), _deleteSelection(), _ensureInsertionPointOnScreen(), _fixInsertionPointCoords(), _generalUpdate(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), AV_CHG_MOTION, PD_Document::beginUserAtomicGlob(), PD_Document::changeStruxFmt(), cmdDeleteTable(), PD_Document::disableListUpdates(), PD_Document::enableListUpdates(), PD_Document::endUserAtomicGlob(), FL_DocLayout::findBlockAtPosition(), findCellPosAt(), fl_BlockLayout::findPointCoords(), getCellParams(), fp_Container::getContainer(), PD_Document::getEndCellStruxFromCellSDH(), FL_DocLayout::getLID(), fp_Run::getLine(), PD_Document::getNextStruxOfType(), PD_Document::getNthFmtHandle(), fp_TableContainer::getNumCols(), fp_TableContainer::getNumRows(), PD_Document::getStruxOfTypeFromPosition(), PD_Document::getStruxPosition(), fl_TableLayout::getTableWaitIndex(), FV_FrameEdit::isActive(), isSelectionEmpty(), m_FrameEdit, m_pDoc, m_pLayout, notifyListeners(), PTC_AddFmt, PTC_RemoveFmt, PTX_EndTable, PTX_SectionCell, PTX_SectionTable, PD_Document::setDontImmediatelyLayout(), FV_FrameEdit::setPointInside(), STD_DOUBLE_BUFFERING_FOR_THIS_FUNCTION, PD_Document::updateDirtyLists(), UT_ASSERT, UT_DEBUGMSG, UT_return_val_if_fail, UT_SHOULD_NOT_HAPPEN, and UT_std_string_sprintf().
bool FV_View::cmdDeleteEmbed | ( | fp_Run * | pRun | ) |
This method deletes the Embedded object in pRun.
References _deleteSelection(), _generalUpdate(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), _updateInsertionPoint(), PD_Document::beginUserAtomicGlob(), cmdSelect(), PD_Document::endUserAtomicGlob(), fp_Run::getType(), m_pDoc, and fp_Run::mapXYToPosition().
Referenced by GOComponentView::update().
UT_Error FV_View::cmdDeleteHyperlink | ( | ) |
References _deleteHyperlink(), AV_CHG_ALL, getPoint(), m_prevMouseContext, notifyListeners(), setCursorToContext(), and UT_DEBUGMSG.
Referenced by Defun1(), and s_doHyperlinkDlg().
bool FV_View::cmdDeleteRow | ( | PT_DocPosition | posRow | ) |
Delete the row containing the position posRow
References _deleteCellAt(), _deleteSelection(), _ensureInsertionPointOnScreen(), _fixInsertionPointCoords(), _generalUpdate(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), AV_CHG_MOTION, PD_Document::beginUserAtomicGlob(), PD_Document::changeStruxFmt(), cmdDeleteTable(), PD_Document::disableListUpdates(), PD_Document::enableListUpdates(), PD_Document::endUserAtomicGlob(), findCellPosAt(), getCellParams(), PD_Document::getEndCellStruxFromCellSDH(), PD_Document::getEndTableStruxFromTableSDH(), fl_ContainerLayout::getFirstContainer(), FL_DocLayout::getLID(), PD_Document::getNextStruxOfType(), PD_Document::getNthFmtHandle(), fp_TableContainer::getNumCols(), fp_TableContainer::getNumRows(), getNumRowsInSelection(), PD_Document::getStruxOfTypeFromPosition(), PD_Document::getStruxPosition(), getTableAtPos(), fl_TableLayout::getTableWaitIndex(), FV_FrameEdit::isActive(), isSelectionEmpty(), m_FrameEdit, m_pDoc, m_pLayout, notifyListeners(), PTC_AddFmt, PTC_RemoveFmt, PTX_SectionCell, PTX_SectionTable, PD_Document::setDontImmediatelyLayout(), FV_FrameEdit::setPointInside(), STD_DOUBLE_BUFFERING_FOR_THIS_FUNCTION, PD_Document::updateDirtyLists(), UT_ASSERT, UT_DEBUGMSG, UT_return_val_if_fail, UT_SHOULD_NOT_HAPPEN, and UT_std_string_sprintf().
Referenced by cmdCut(), Defun1(), and FV_VisualDragText::mouseCut().
bool FV_View::cmdDeleteTable | ( | PT_DocPosition | posTable, | |
bool | bDontNotify = false | |||
) |
Delete the table containing the position posRow
References _clearSelection(), _ensureInsertionPointOnScreen(), _fixInsertionPointCoords(), _generalUpdate(), _resetSelection(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), AV_CHG_ALL, PD_Document::beginUserAtomicGlob(), PD_Document::deleteSpan(), PD_Document::disableListUpdates(), PD_Document::enableListUpdates(), PD_Document::endUserAtomicGlob(), PD_Document::getEndTableStruxFromTableSDH(), getPoint(), PD_Document::getStruxOfTypeFromPosition(), PD_Document::getStruxPosition(), isSelectionEmpty(), m_pDoc, notifyListeners(), PTX_SectionTable, PD_Document::setDontImmediatelyLayout(), setPoint(), STD_DOUBLE_BUFFERING_FOR_THIS_FUNCTION, and PD_Document::updateDirtyLists().
Referenced by cmdDeleteCol(), cmdDeleteRow(), cmdTableToText(), and Defun1().
UT_Error FV_View::cmdDeleteXMLID | ( | const std::string & | name | ) |
References _deleteXMLID().
Referenced by AbiCommand::parseTokens(), and s_xmlidDlg().
bool FV_View::cmdEditAnnotationWithDialog | ( | UT_uint32 | aID | ) |
References AP_DIALOG_ID_ANNOTATION, getAnnotationAuthor(), getAnnotationLayout(), getAnnotationText(), getAnnotationTitle(), AP_Dialog_Annotation::getAnswer(), AV_View::getApp(), XAP_Frame::getDialogFactory(), XAP_App::getFrame(), XAP_App::getFrameCount(), AV_View::getParentData(), insertAnnotationDescription(), isAnnotationPreviewActive(), killAnnotationPreview(), XAP_Frame::raise(), XAP_DialogFactory::releaseDialog(), XAP_DialogFactory::requestDialog(), AP_Dialog_Annotation::runModal(), selectAnnotation(), setAnnotationText(), XAP_Frame::updateTitle(), UT_DEBUGMSG, and UT_return_val_if_fail.
void FV_View::cmdEditFooter | ( | void | ) |
Start edit footer mode. If there is no footer one will be inserted. otherwise start editing the footer on the current page.
References _cmdEditHdrFtr(), AV_CHG_FMTSECTION, AV_CHG_HDRFTR, FL_HDRFTR_FOOTER, and notifyListeners().
Referenced by Defun1().
void FV_View::cmdEditHeader | ( | void | ) |
Start edit header mode. If there is no header one will be inserted. otherwise start editing the header on the current page.
References _cmdEditHdrFtr(), AV_CHG_FMTSECTION, AV_CHG_HDRFTR, FL_HDRFTR_HEADER, and notifyListeners().
Referenced by Defun1().
finds the next/previous revision and sets selection to it TODO the selection will not cross block boundaries; it probably should
bNext,: | if true the search is carried out in forward direction |
References _moveToSelectionEnd(), cmdSelect(), fp_Run::containsRevisions(), fl_BlockLayout::findPointCoords(), fp_Run::getBlock(), fp_Run::getBlockOffset(), getCurrentBlock(), fl_BlockLayout::getDocSectionLayout(), fp_Run::getLength(), fl_ContainerLayout::getNextBlockInDocument(), fl_DocSectionLayout::getNextDocSection(), fp_Run::getNextRun(), getPoint(), fl_BlockLayout::getPosition(), fl_ContainerLayout::getPrevBlockInDocument(), fl_DocSectionLayout::getPrevDocSection(), fp_Run::getPrevRun(), fp_Run::getRevisions(), fp_Run::isHidden(), isSelectionEmpty(), UT_return_val_if_fail, and warpInsPtToXY().
Referenced by Defun().
void FV_View::cmdHyperlinkCopyLocation | ( | PT_DocPosition | pos | ) |
References copyTextToClipboard(), gchar, getHyperLinkRun(), and fp_HyperlinkRun::getTarget().
Referenced by Defun1().
void FV_View::cmdHyperlinkJump | ( | PT_DocPosition | pos | ) |
References _ensureInsertionPointOnScreen(), _fixInsertionPointCoords(), _generalUpdate(), AP_JUMPTARGET_BOOKMARK, AV_CHG_MOTION, fp_Run::displayAnnotations(), gchar, getAnnotationLayout(), getHyperLinkRun(), fp_HyperlinkRun::getHyperlinkType(), fp_AnnotationRun::getPID(), fl_ContainerLayout::getPosition(), fp_HyperlinkRun::getTarget(), gotoTarget(), notifyListeners(), setPoint(), UT_UCS4String::ucs4_str(), UT_DEBUGMSG, and UT_return_if_fail.
References _clearSelection(), AP_JUMPTARGET_BOOKMARK, FPRUN_FMTMARK, FPRUN_HYPERLINK, gchar, fp_Run::getBlockOffset(), getCurrentBlock(), fl_BlockLayout::getFirstRun(), fp_Run::getHyperlink(), fp_Run::getLength(), fp_Run::getNextRun(), getPoint(), fl_BlockLayout::getPosition(), fp_Run::getPrevRun(), fp_HyperlinkRun::getTarget(), fp_Run::getType(), gotoTarget(), UT_UCS4String::ucs4_str(), UT_ASSERT, UT_return_if_fail, and warpInsPtToXY().
References _findBlockAtPosition(), _getPageForXY(), UT_UTF8String::decodeURL(), fp_Run::getBlockOffset(), fl_BlockLayout::getFirstRun(), fp_Run::getHyperlink(), fp_HyperlinkRun::getHyperlinkType(), fp_Run::getNextRun(), AV_View::getParentData(), fl_BlockLayout::getPosition(), fp_Run::getPrevRun(), fp_HyperlinkRun::getTarget(), fp_Run::getType(), isAnnotationPreviewActive(), fp_Page::mapXYToPosition(), XAP_Frame::setStatusMessage(), UT_ASSERT, UT_DEBUGMSG, UT_UTF8String::utf8_str(), and xxx_UT_DEBUGMSG.
Referenced by Defun().
UT_Error FV_View::cmdInsertBookmark | ( | const char * | szName | ) |
References _deleteBookmark(), _generalUpdate(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), XAP_Dialog_MessageBox::a_NO, XAP_Dialog_MessageBox::a_YES, XAP_Dialog_MessageBox::b_YN, BOOKMARK_NAME_SIZE, getCmdInsertRangeVariables(), AV_View::getParentData(), PD_Document::insertObject(), PD_Document::isBookmarkUnique(), isTOCSelected(), m_pDoc, PTO_Bookmark, XAP_Frame::showMessageBox(), UT_DEBUGMSG, and xxx_UT_DEBUGMSG.
Referenced by s_doBookmarkDlg().
bool FV_View::cmdInsertCol | ( | PT_DocPosition | posCol, | |
bool | bBefore | |||
) |
Insert a column containing the position posCol, insert the column before the current column.
References _changeCellAttach(), _clearSelection(), _ensureInsertionPointOnScreen(), _fixInsertionPointCoords(), _generalUpdate(), _insertCellAt(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), AV_CHG_MOTION, PD_Document::beginUserAtomicGlob(), PD_Document::changeStruxFmt(), PD_Document::disableListUpdates(), PD_Document::enableListUpdates(), PD_Document::endUserAtomicGlob(), PD_Document::getAPIFromSDH(), PP_AttrProp::getAttributes(), PD_Document::getAttrProp(), getBlockAtPosition(), fl_CellLayout::getBottomAttach(), getCellParams(), fl_Layout::getEndStruxDocHandle(), fl_ContainerLayout::getFirstContainer(), fl_ContainerLayout::getFirstLayout(), fl_CellLayout::getLeftAttach(), FL_DocLayout::getLID(), fl_ContainerLayout::getNext(), PD_Document::getNthFmtHandle(), fp_TableContainer::getNumCols(), getNumColumnsInSelection(), fl_ContainerLayout::getPosition(), PP_AttrProp::getProperties(), fl_CellLayout::getRightAttach(), fl_Layout::getStruxDocHandle(), PD_Document::getStruxOfTypeFromPosition(), PD_Document::getStruxPosition(), fl_TableLayout::getTableWaitIndex(), fl_CellLayout::getTopAttach(), isSelectionEmpty(), m_pDoc, m_pLayout, notifyListeners(), PTC_AddFmt, PTC_RemoveFmt, PTX_SectionCell, PTX_SectionTable, PD_Document::setDontImmediatelyLayout(), setPoint(), STD_DOUBLE_BUFFERING_FOR_THIS_FUNCTION, PD_Document::updateDirtyLists(), UT_ASSERT, UT_return_val_if_fail, and UT_std_string_sprintf().
Referenced by Defun1(), and FV_Selection::pasteRowOrCol().
bool FV_View::cmdInsertEmbed | ( | const UT_ConstByteBufPtr & | pBuf, | |
PT_DocPosition | pos, | |||
const char * | szMime, | |||
const char * | szProps | |||
) |
This method inserts a Embed object at the point presented. The calling routine should pass in a pointer to bytebuf that represents the object. Also needed are strings for the Mime-type and the type of Embeded object.
eg for a GNOME-Office chart we'll have MIME-TYPE "application/chart+xml" and sProps="embed-type: GOChart";
References _deleteSelection(), _generalUpdate(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), _updateInsertionPoint(), PD_Document::beginUserAtomicGlob(), cmdSelect(), PD_Document::createDataItem(), PD_Document::endUserAtomicGlob(), gchar, getCharFormat(), AD_Document::getNewUUID(), getPoint(), getStyle(), PD_Document::insertObject(), isSelectionEmpty(), m_pDoc, PT_STYLE_ATTRIBUTE_NAME, PTO_Embed, UT_DEBUGMSG, UT_return_val_if_fail, UT_std_string_addPropertyString(), and UT_std_string_setProperty().
Referenced by IE_Imp_Component::_parseStream(), IE_Imp_Object::_parseStream(), and changed_cb().
UT_Error FV_View::cmdInsertField | ( | const char * | szName, | |
const PP_PropertyVector & | extra_attrs = PP_NOPROPS , |
|||
const PP_PropertyVector & | extra_props = PP_NOPROPS | |||
) |
UT_Error FV_View::cmdInsertGraphic | ( | const FG_ConstGraphicPtr & | pFG | ) |
References _deleteSelection(), _generalUpdate(), _insertGraphic(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), _updateInsertionPoint(), PD_Document::beginUserAtomicGlob(), PD_Document::endUserAtomicGlob(), FV_FrameEdit_NOT_ACTIVE, AD_Document::getNewUUID(), FV_FrameEdit::isActive(), isSelectionEmpty(), m_FrameEdit, m_pDoc, s, FV_FrameEdit::setMode(), FV_FrameEdit::setPointInside(), UT_ERROR, and UT_return_val_if_fail.
Referenced by XAP_Win32FrameImpl::_FrameWndProc(), AP_Win32App::_pasteFormatFromClipboard(), abi_widget_insert_image(), AbiGimp_invoke(), DECLARE_ABI_PLUGIN_METHOD(), AP_UnixApp::pasteFromClipboard(), and AP_CocoaApp::pasteFromClipboard().
UT_Error FV_View::cmdInsertGraphicAtStrux | ( | const FG_ConstGraphicPtr & | pFG, | |
PT_DocPosition | iPos, | |||
PTStruxType | iStruxType | |||
) |
This method inserts an image at the strux of type iStruxType at the point given by ipos. This is useful for speficifying images as backgrounds to pages and cells.
References _generalUpdate(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), _updateInsertionPoint(), PD_Document::endUserAtomicGlob(), GR_Graphics::getDeviceResolution(), AD_Document::getNewUUID(), m_pDoc, m_pG, s, UT_ERROR, and UT_return_val_if_fail.
UT_Error FV_View::cmdInsertHyperlink | ( | const char * | szName, | |
const char * | szTitle = NULL | |||
) |
References _findBlockAtPosition(), _generalUpdate(), _getHyperlinkInRange(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), XAP_Dialog_MessageBox::a_OK, XAP_Dialog_MessageBox::b_O, fl_BlockLayout::getLength(), AV_View::getParentData(), getPoint(), fl_BlockLayout::getPosition(), FV_Selection::getSelectionAnchor(), PD_Document::insertObject(), PD_Document::isBookmarkRelativeLink(), PD_Document::isBookmarkUnique(), isInEndnote(), isInFootnote(), isSelectionEmpty(), isTOCSelected(), m_pDoc, m_Selection, PTO_Hyperlink, setPoint(), FV_Selection::setSelectionAnchor(), XAP_Frame::showMessageBox(), UT_ASSERT, UT_DEBUGMSG, and UT_go_path_is_uri().
Referenced by s_dndDropEvent(), and s_doHyperlinkDlg().
bool FV_View::cmdInsertLatexMath | ( | UT_UTF8String & | sLatex, | |
UT_UTF8String & | sMath, | |||
bool | compact | |||
) |
This method inserts a MathML object and it's Latex representation at the current insertion point. It leaves the Object selected so it can be altered as needed.
References _deleteSelection(), _generalUpdate(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), ASSERT_PV_SIZE, PD_Document::beginUserAtomicGlob(), cmdSelect(), PD_Document::createDataItem(), PD_Document::endUserAtomicGlob(), gchar, getCharFormat(), AD_Document::getNewUUID(), getPoint(), getStyle(), PD_Document::insertObject(), isSelectionEmpty(), m_pDoc, PT_STYLE_ATTRIBUTE_NAME, PTO_Math, s, UT_UTF8String::size(), UT_DEBUGMSG, UT_return_val_if_fail, UT_std_string_setProperty(), and UT_UTF8String::utf8_str().
Referenced by AbiMathView_FileInsert(), and AP_Dialog_Latex::insertIntoDoc().
bool FV_View::cmdInsertMathML | ( | const char * | szUID, | |
PT_DocPosition | pos | |||
) |
This method inserts a MathML object at the point presented. It assumes that a data item with a name of the supplied filename has already been inserted.
References _deleteSelection(), _generalUpdate(), _makePointLegal(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), _updateInsertionPoint(), PD_Document::beginUserAtomicGlob(), PD_Document::endUserAtomicGlob(), gchar, getCharFormat(), getPoint(), getStyle(), PD_Document::insertObject(), isSelectionEmpty(), m_pDoc, PT_STYLE_ATTRIBUTE_NAME, PTO_Math, and UT_DEBUGMSG.
Referenced by AbiMathView_FileInsert().
UT_Error FV_View::cmdInsertPositionedGraphic | ( | const FG_ConstGraphicPtr & | pFG, | |
UT_sint32 | mouseX, | |||
UT_sint32 | mouseY | |||
) |
References _clearSelection(), _ensureInsertionPointOnScreen(), _generalUpdate(), _makePointLegal(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), AV_CHG_ALL, AV_CHG_MOTION, PD_Document::beginUserAtomicGlob(), clearHdrFtrEdit(), PD_Document::endUserAtomicGlob(), fl_BlockLayout::findPointCoords(), fl_DocSectionLayout::getActualColumnHeight(), fl_DocSectionLayout::getActualColumnWidth(), getBlockAtPosition(), fp_Line::getColumn(), fl_ContainerLayout::getContainerType(), getDocPositionFromXY(), fl_BlockLayout::getDocSectionLayout(), fp_Run::getLine(), AD_Document::getNewUUID(), fp_Column::getPage(), getPoint(), pf_Frag::getPos(), fl_BlockLayout::getPosition(), fl_ContainerLayout::getPrevBlockInDocument(), fp_Page::getScreenOffsets(), fp_VerticalContainer::getX(), insertParaBreakIfNeededAtPos(), PD_Document::insertStrux(), isInHdrFtr(), isPointLegal(), isSelectionEmpty(), m_pDoc, fl_ContainerLayout::myContainingLayout(), notifyListeners(), PTX_EndFrame, PTX_SectionFrame, s, UT_ASSERT, UT_DEBUGMSG, UT_ERROR, UT_formatDimensionedValue(), UT_LAYOUT_RESOLUTION, UT_return_val_if_fail, UT_std_string_setProperty(), and warpInsPtToXY().
Referenced by abi_widget_insert_image(), cmdInsertPositionedGraphic(), and s_loadImage().
UT_Error FV_View::cmdInsertPositionedGraphic | ( | const FG_ConstGraphicPtr & | pFG | ) |
References _findPositionCoords(), cmdInsertPositionedGraphic(), getPoint(), UT_ERROR, and UT_return_val_if_fail.
bool FV_View::cmdInsertRow | ( | PT_DocPosition | posRow, | |
bool | bBefore | |||
) |
posRow is the position of the start of the selection in the table. insert rows into the table.
References _changeCellAttach(), _clearSelection(), _ensureInsertionPointOnScreen(), _fixInsertionPointCoords(), _generalUpdate(), _insertCellAt(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), AV_CHG_MOTION, PD_Document::beginUserAtomicGlob(), PD_Document::changeStruxFmt(), PD_Document::disableListUpdates(), PD_Document::enableListUpdates(), PD_Document::endUserAtomicGlob(), PD_Document::getAPIFromSDH(), PP_AttrProp::getAttributes(), PD_Document::getAttrProp(), getBlockAtPosition(), fl_CellLayout::getBottomAttach(), fp_TableContainer::getCellAtRowColumn(), getCellParams(), fl_Layout::getEndStruxDocHandle(), fl_ContainerLayout::getFirstContainer(), fl_CellLayout::getLeftAttach(), fp_CellContainer::getLeftAttach(), FL_DocLayout::getLID(), fl_ContainerLayout::getNext(), fp_Container::getNext(), PD_Document::getNthFmtHandle(), fp_TableContainer::getNumCols(), fp_TableContainer::getNumRows(), getNumRowsInSelection(), fl_ContainerLayout::getPosition(), PP_AttrProp::getProperties(), fl_CellLayout::getRightAttach(), fp_CellContainer::getRightAttach(), fp_ContainerObject::getSectionLayout(), fl_Layout::getStruxDocHandle(), PD_Document::getStruxOfTypeFromPosition(), PD_Document::getStruxPosition(), fl_TableLayout::getTableWaitIndex(), fl_CellLayout::getTopAttach(), fp_CellContainer::getTopAttach(), isInTable(), isSelectionEmpty(), m_pDoc, m_pLayout, notifyListeners(), PTC_AddFmt, PTC_RemoveFmt, PTX_SectionCell, PTX_SectionTable, PD_Document::setDontImmediatelyLayout(), setPoint(), STD_DOUBLE_BUFFERING_FOR_THIS_FUNCTION, PD_Document::updateDirtyLists(), UT_ASSERT, UT_return_val_if_fail, and UT_std_string_sprintf().
Referenced by cmdAdvanceNextPrevCell(), and Defun1().
UT_Error FV_View::cmdInsertTable | ( | UT_sint32 | numRows, | |
UT_sint32 | numCols, | |||
const PP_PropertyVector & | pPropsArray | |||
) |
Insert a table of the number of rows and columns given.
References _deleteSelection(), _ensureInsertionPointOnScreen(), _fixInsertionPointCoords(), _generalUpdate(), _makePointLegal(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), AV_CHG_ALL, AV_FOCUS_HERE, PD_Document::beginUserAtomicGlob(), PD_Document::disableListUpdates(), PD_Document::enableListUpdates(), PD_Document::endUserAtomicGlob(), focusChange(), gchar, getCharFormat(), getEditableBounds(), getHyperLinkRun(), getPoint(), PD_Document::getStruxOfTypeFromPosition(), PD_Document::getStruxPosition(), PD_Document::getStyleProperty(), PD_Document::insertStrux(), FV_FrameEdit::isActive(), PD_Document::isBlockAtPos(), PD_Document::isEndFootnoteAtPos(), PD_Document::isEndFrameAtPos(), PD_Document::isEndTableAtPos(), isHdrFtrEdit(), isInTable(), PD_Document::isSectionAtPos(), isSelectionEmpty(), PD_Document::isTableAtPos(), PD_Document::isTOCAtPos(), m_FrameEdit, m_pDoc, notifyListeners(), PP_getAttribute(), printf, PTX_Block, PTX_EndCell, PTX_EndTable, PTX_Section, PTX_SectionCell, PTX_SectionTable, PD_Document::setDontImmediatelyLayout(), setPoint(), FV_FrameEdit::setPointInside(), STD_DOUBLE_BUFFERING_FOR_THIS_FUNCTION, PD_Document::updateDirtyLists(), UT_ASSERT, UT_DEBUGMSG, and UT_std_string_sprintf().
Referenced by abi_widget_insert_table(), s_doInsertTableDlg(), and _wd::s_new_table().
UT_Error FV_View::cmdInsertTOC | ( | void | ) |
References _charMotion(), _deleteSelection(), _findBlockAtPosition(), _generalUpdate(), _makePointLegal(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), AV_CHG_ALL, AV_CHG_MOTION, PD_Document::beginUserAtomicGlob(), PD_Document::endUserAtomicGlob(), fl_ContainerLayout::getContainerType(), getCurrentBlock(), getEditableBounds(), getHyperLinkRun(), fl_ContainerLayout::getNext(), getPoint(), fl_BlockLayout::getPosition(), fl_ContainerLayout::getPrev(), insertParaBreakIfNeededAtPos(), insertParagraphBreak(), PD_Document::insertStrux(), isPointLegal(), isSelectionEmpty(), m_pDoc, fl_ContainerLayout::myContainingLayout(), notifyListeners(), PTX_EndTOC, PTX_SectionTOC, and setPoint().
Referenced by Defun1().
UT_Error FV_View::cmdInsertXMLID | ( | const std::string & | name | ) |
References _deleteXMLID(), _generalUpdate(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), XAP_Dialog_MessageBox::a_NO, XAP_Dialog_MessageBox::a_YES, XAP_Dialog_MessageBox::b_YN, getCmdInsertRangeVariables(), PD_Document::getDocumentRDF(), AV_View::getParentData(), PD_Document::insertObject(), isTOCSelected(), m_pDoc, PT_RDF_END, PTO_RDFAnchor, XAP_Frame::showMessageBox(), UT_DEBUGMSG, and xxx_UT_DEBUGMSG.
Referenced by PD_RDFSemanticItem::insertTextWithXMLID(), IE_Imp_RDF::insertTextWithXMLID(), AbiCommand::parseTokens(), and s_xmlidDlg().
bool FV_View::cmdMergeCells | ( | PT_DocPosition | posSource, | |
PT_DocPosition | posDestination | |||
) |
Merge the cells located at posSource with posDestination by copying the data from source to destination. Then deleting source and expanding destination into it's location in the table.
References _changeCellParams(), _changeCellTo(), _ensureInsertionPointOnScreen(), _fixInsertionPointCoords(), _MergeCells(), _restoreCellParams(), UT_GenericVector< T >::addItem(), AV_CHG_MOTION, findCellPosAt(), UT_GenericVector< T >::findItem(), getCellParams(), PD_Document::getEndTableStruxFromTableSDH(), PD_Document::getNextStruxOfType(), getRevisionLevel(), PD_Document::getRowsColsFromTableSDH(), PD_Document::getStruxOfTypeFromPosition(), PD_Document::getStruxPosition(), isShowRevisions(), m_pDoc, notifyListeners(), PTX_SectionCell, PTX_SectionTable, setPoint(), STD_DOUBLE_BUFFERING_FOR_THIS_FUNCTION, UT_ASSERT, UT_return_val_if_fail, and UT_SHOULD_NOT_HAPPEN.
Referenced by AP_Dialog_MergeCells::onMerge().
void FV_View::cmdPaste | ( | bool | bHonorFormatting = true |
) | [virtual] |
Implements AV_View.
References _charMotion(), _doPaste(), _ensureInsertionPointOnScreen(), _fixInsertionPointCoords(), _makePointLegal(), AV_CHG_ALL, PD_Document::beginUserAtomicGlob(), clearCursorWait(), PD_Document::clearDoingPaste(), PD_Document::disableListUpdates(), PD_Document::enableListUpdates(), PD_Document::endUserAtomicGlob(), getPoint(), FV_Selection::getPrevSelectionMode(), getTableAtPos(), FV_Selection::getTableLayout(), isInTable(), m_iPieceTableState, m_pDoc, m_Selection, notifyListeners(), PD_Document::notifyPieceTableChangeEnd(), PD_Document::notifyPieceTableChangeStart(), FV_Selection::pasteRowOrCol(), setCursorWait(), PD_Document::setDoingPaste(), PD_Document::setDontImmediatelyLayout(), STD_DOUBLE_BUFFERING_FOR_THIS_FUNCTION, and PD_Document::updateDirtyLists().
Referenced by Defun1(), endDragSelection(), FV_VisualDragText::mouseRelease(), s_pasteFile(), and sActualPaste().
Implements AV_View.
References _doPaste(), _ensureInsertionPointOnScreen(), _fixInsertionPointCoords(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), AV_CHG_ALL, PD_Document::beginUserAtomicGlob(), XAP_App::cacheCurrentSelection(), cmdCopy(), PD_Document::endUserAtomicGlob(), isSelectionEmpty(), AV_View::m_pApp, m_pDoc, m_prevMouseContext, notifyListeners(), and warpInsPtToXY().
Referenced by Defun().
void FV_View::cmdRedo | ( | UT_uint32 | count | ) | [virtual] |
Implements AV_View.
References _charMotion(), _clearSelection(), _generalUpdate(), _updateInsertionPoint(), allowChangeInsPoint(), AV_CHG_ALL, PD_Document::disableListUpdates(), PD_Document::enableListUpdates(), getEditableBounds(), getPoint(), isPointLegal(), isSelectionEmpty(), m_bAllowSmartQuoteReplacement, m_iPieceTableState, m_pDoc, notifyListeners(), PD_Document::notifyPieceTableChangeEnd(), PD_Document::notifyPieceTableChangeStart(), PD_Document::redoCmd(), rememberCurrentPosition(), setCursorToContext(), PD_Document::setDontImmediatelyLayout(), setPoint(), STD_DOUBLE_BUFFERING_FOR_THIS_FUNCTION, and PD_Document::updateDirtyLists().
void FV_View::cmdRemoveHdrFtr | ( | bool | isHeader | ) |
Remove all the Headers or footers from the section owning the current Page.
bool | isHeader remove the header if true, the footer if false. |
References _clearSelection(), _generalUpdate(), _removeThisHdrFtr(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), _setPoint(), _updateInsertionPoint(), AV_CHG_FMTSECTION, AV_CHG_HDRFTR, PD_Document::beginUserAtomicGlob(), clearCursorWait(), clearHdrFtrEdit(), PD_Document::endUserAtomicGlob(), FL_HDRFTR_FOOTER, FL_HDRFTR_HEADER, getCurrentPage(), fl_HdrFtrSectionLayout::getDocSectionLayout(), fp_Page::getFirstLastPos(), fl_DocSectionLayout::getFooter(), fl_DocSectionLayout::getFooterEven(), fl_DocSectionLayout::getFooterFirst(), fl_DocSectionLayout::getFooterLast(), fp_Page::getHdrFtrP(), fl_HdrFtrShadow::getHdrFtrSectionLayout(), fl_DocSectionLayout::getHeader(), fl_DocSectionLayout::getHeaderEven(), fl_DocSectionLayout::getHeaderFirst(), fl_DocSectionLayout::getHeaderLast(), getPoint(), fp_ShadowContainer::getShadow(), isHdrFtrEdit(), isSelectionEmpty(), m_pDoc, notifyListeners(), setCursorWait(), updateScreen(), and UT_return_if_fail.
Referenced by Defun1().
UT_Error FV_View::cmdSave | ( | void | ) | [virtual] |
Implements AV_View.
References _updateDatesBeforeSave(), AV_CHG_SAVE, abicollab::service::error(), getViewPersistentProps(), m_pDoc, notifyListeners(), AD_Document::save(), and PD_Document::setProperties().
UT_Error FV_View::cmdSaveAs | ( | const char * | szFilename, | |
int | ieft, | |||
bool | cpy | |||
) | [virtual] |
Implements AV_View.
References _updateDatesBeforeSave(), AV_CHG_SAVE, abicollab::service::error(), getViewPersistentProps(), m_pDoc, notifyListeners(), and PD_Document::setProperties().
void FV_View::cmdScroll | ( | AV_ScrollCmd | cmd, | |
UT_uint32 | iPos = 0 | |||
) | [virtual] |
Implements AV_View.
References _fixInsertionPointCoords(), AV_SCROLLCMD_LINEDOWN, AV_SCROLLCMD_LINELEFT, AV_SCROLLCMD_LINERIGHT, AV_SCROLLCMD_LINEUP, AV_SCROLLCMD_PAGEDOWN, AV_SCROLLCMD_PAGELEFT, AV_SCROLLCMD_PAGERIGHT, AV_SCROLLCMD_PAGEUP, AV_SCROLLCMD_TOBOTTOM, AV_SCROLLCMD_TOPOSITION, AV_SCROLLCMD_TOTOP, FL_DocLayout::getFirstPage(), fp_Page::getHeight(), fp_Page::getNext(), getPageViewSep(), getPageViewTopMargin(), AV_View::getWindowHeight(), AV_View::getWindowWidth(), HACK_LINE_HEIGHT, m_pG, m_pLayout, AV_View::m_xScrollOffset, AV_View::m_yScrollOffset, AV_View::sendHorizontalScrollEvent(), AV_View::sendVerticalScrollEvent(), GR_Graphics::tlu(), UT_ASSERT, and UT_NOT_IMPLEMENTED.
Referenced by FV_VisualDragText::_actuallyScroll(), _actuallyScroll(), FV_VisualInlineImage::_actuallyScroll(), FV_FrameEdit::_actuallyScroll(), _ensureInsertionPointOnScreen(), _moveInsPtToPage(), and calculateNumHorizPages().
References _findBlockAtPosition(), _getDocPos(), fl_BlockLayout::findPointCoords(), FV_DOCPOS_BOD, FV_DOCPOS_BOL, FV_DOCPOS_BOP, fl_ContainerLayout::getFirstContainer(), getFrameLayout(), fl_FrameLayout::getLength(), fp_Run::getLine(), fl_BlockLayout::getPosition(), fl_ContainerLayout::getPosition(), isHdrFtrEdit(), isInFrame(), m_iInsPoint, UT_DEBUGMSG, and warpInsPtToXY().
Referenced by IE_Imp_Component::_parseStream(), IE_Imp_Object::_parseStream(), AP_Frame::_replaceView(), changed_cb(), cmdDeleteEmbed(), cmdFindRevision(), cmdInsertEmbed(), cmdInsertLatexMath(), cmdSelect(), cmdUpdateEmbed(), convertPositionedToInLine(), copyTextToClipboard(), Defun(), Defun1(), insertAnnotationDescription(), FV_VisualInlineImage::mouseCopy(), FV_VisualInlineImage::mouseCut(), FV_VisualInlineImage::mouseLeftPress(), FV_VisualDragText::mouseRelease(), FV_VisualInlineImage::mouseRelease(), AP_UnixDialog_RDFEditor::onCursorChanged(), s_doFormatImageDlg(), s_doHyperlinkDlg(), s_pasteFile(), selectAnnotation(), and FL_SelectionPreserver::~FL_SelectionPreserver().
void FV_View::cmdSelect | ( | PT_DocPosition | dpBeg, | |
PT_DocPosition | dpEnd | |||
) |
References _drawSelection(), AV_CHG_EMPTYSEL, cmdSelectNoNotify(), and notifyListeners().
void FV_View::cmdSelect | ( | const std::pair< PT_DocPosition, PT_DocPosition > & | range | ) |
References cmdSelect(), and cmdUnselectSelection().
bool FV_View::cmdSelectColumn | ( | PT_DocPosition | posOfColumn | ) |
Select the column of the table identified by the document position posOfColumn
References _clearSelection(), _drawSelection(), _findPositionCoords(), _resetSelection(), _setPoint(), FV_Selection::addCellToSelection(), AV_CHG_MOTION, findCellPosAt(), FV_SelectionMode_TableColumn, getCellParams(), fl_ContainerLayout::getContainerType(), getNthSelection(), getNumSelections(), fl_BlockLayout::getPosition(), getRevisionLevel(), PD_Document::getRowsColsFromTableSDH(), PD_Document::getStruxOfTypeFromPosition(), PD_Document::getStruxPosition(), isInTable(), isSelectionEmpty(), isShowRevisions(), m_pDoc, PD_DocumentRange::m_pos2, m_Selection, fl_ContainerLayout::myContainingLayout(), notifyListeners(), PTX_SectionCell, PTX_SectionTable, FV_Selection::setMode(), FV_Selection::setTableLayout(), UT_DEBUGMSG, and UT_return_val_if_fail.
Referenced by FV_VisualDragText::mouseRelease().
bool FV_View::cmdSelectNoNotify | ( | PT_DocPosition | dpBeg, | |
PT_DocPosition | dpEnd | |||
) |
References _clearSelection(), _setPoint(), _setSelectionAnchor(), PD_Document::isCellAtPos(), PD_Document::isEndTableAtPos(), isSelectionEmpty(), PD_Document::isTableAtPos(), m_pDoc, m_Selection, FV_Selection::setSelectionLeftAnchor(), and FV_Selection::setSelectionRightAnchor().
Referenced by cmdSelect(), and FL_DocLayout::considerSmartQuoteCandidateAt().
void FV_View::cmdSetRevisionLevel | ( | UT_uint32 | i | ) |
References draw(), FL_DocLayout::getFirstSection(), m_iViewRevision, m_pDoc, m_pLayout, PD_MAX_REVISION, FL_DocLayout::rebuildFromHere(), AD_Document::setShowRevisionId(), and UT_return_if_fail.
Referenced by Defun1(), and s_doListRevisions().
bool FV_View::cmdSplitCells | ( | AP_CellSplitType | iSplitType | ) |
Split the merged cells located at the current point in the way specified by iSplitType
References _clearSelection(), _ensureInsertionPointOnScreen(), _fixInsertionPointCoords(), _generalUpdate(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), AV_CHG_MOTION, PD_Document::beginUserAtomicGlob(), PD_Document::changeStruxFmt(), PD_Document::disableListUpdates(), PD_Document::enableListUpdates(), PD_Document::endUserAtomicGlob(), PD_Document::getAPIFromSDH(), PP_AttrProp::getAttributes(), PD_Document::getAttrProp(), getBlockAtPosition(), getCellFormat(), getCellParams(), PD_Document::getEndTableStruxFromTableSDH(), FL_DocLayout::getLID(), PD_Document::getNextStruxOfType(), PD_Document::getNthFmtHandle(), getPoint(), PP_AttrProp::getProperties(), getRevisionLevel(), fl_Layout::getStruxDocHandle(), PD_Document::getStruxOfTypeFromPosition(), PD_Document::getStruxPosition(), fl_TableLayout::getTableWaitIndex(), hori_left, hori_mid, hori_right, PD_Document::insertStrux(), isInTable(), isSelectionEmpty(), isShowRevisions(), m_pDoc, m_pLayout, notifyListeners(), PTC_AddFmt, PTC_RemoveFmt, PTX_Block, PTX_EndCell, PTX_SectionCell, PTX_SectionTable, PD_Document::setDontImmediatelyLayout(), setPoint(), STD_DOUBLE_BUFFERING_FOR_THIS_FUNCTION, PD_Document::updateDirtyLists(), UT_ASSERT, UT_DEBUGMSG, UT_return_val_if_fail, UT_SHOULD_NOT_HAPPEN, UT_std_string_setProperty(), UT_std_string_sprintf(), vert_above, vert_below, and vert_mid.
Referenced by AP_Dialog_SplitCells::onSplit().
bool FV_View::cmdStartList | ( | const gchar * | style | ) |
References PD_Document::beginUserAtomicGlob(), PD_Document::endUserAtomicGlob(), getCurrentBlock(), m_pDoc, and fl_BlockLayout::StartList().
Referenced by AP_Dialog_Lists::StartList().
bool FV_View::cmdStopList | ( | void | ) |
bool FV_View::cmdTableToText | ( | PT_DocPosition | posSource, | |
UT_sint32 | iSepType | |||
) |
Convert a table to Text with each cell separated by commas, Tabs, or tabs and commas as follows: iSepType == 0 Use Commas iSepType == 1 Use Tabs iSepType == 2 Use Tabs and Commas We place a paragraph break at the end of of each row but otherwise we simply extract just the text from each cell.
References _clearSelection(), _ensureInsertionPointOnScreen(), _fixInsertionPointCoords(), _generalUpdate(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), UT_GrowBuf::append(), fl_ContainerLayout::appendTextToBuf(), AV_CHG_MOTION, PD_Document::beginUserAtomicGlob(), cmdCharInsert(), cmdDeleteTable(), PD_Document::disableListUpdates(), PD_Document::enableListUpdates(), PD_Document::endUserAtomicGlob(), fp_TableContainer::getCellAtRowColumn(), fl_ContainerLayout::getFirstContainer(), UT_GrowBuf::getLength(), UT_GrowBuf::getPointer(), fl_TableLayout::getPosition(), getRevisionLevel(), PD_Document::getRowsColsFromTableSDH(), fp_ContainerObject::getSectionLayout(), PD_Document::getStruxOfTypeFromPosition(), PD_Document::getStruxPosition(), getTableAtPos(), insertParagraphBreak(), isSelectionEmpty(), isShowRevisions(), m_pDoc, notifyListeners(), PTX_SectionTable, setPoint(), UT_GrowBuf::truncate(), PD_Document::updateDirtyLists(), and UT_return_val_if_fail.
Referenced by Defun1().
bool FV_View::cmdTextToTable | ( | UT_uint32 | iDelim | ) |
Convert a text fragment to a table to Text. The column delimiters are tabs, commas and spaces as follows: iDelim == 0 Use tabs iDelim == 1 Use commas iDelim == 2 Use spaces iDelim == 3 Use tabs, commas and spaces as delemiters Paragraph breaks are the row delimiters.
References _clearSelection(), _ensureInsertionPointOnScreen(), _fixInsertionPointCoords(), _generalUpdate(), _pasteFromLocalTo(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), PD_Document::beginUserAtomicGlob(), UT_UTF8String::clear(), PD_Document::clearDoingPaste(), copyToLocal(), PD_Document::deleteSpan(), PD_Document::disableListUpdates(), PD_Document::enableListUpdates(), PD_Document::endUserAtomicGlob(), FV_SelectionMode_Single, getBlocksInSelection(), PD_Document::getCellSDHFromRowCol(), getEditableBounds(), UT_GenericVector< T >::getItemCount(), UT_GrowBuf::getLength(), UT_GenericVector< T >::getNthItem(), getPoint(), fl_BlockLayout::getPosition(), getSelectionMode(), PD_Document::getStruxOfTypeFromPosition(), PD_Document::getStruxPosition(), PD_Document::insertStrux(), isInHdrFtr(), isPointLegal(), isSelectionEmpty(), isShowRevisions(), m_iPieceTableState, m_pDoc, PD_MAX_REVISION, PTX_Block, PTX_EndCell, PTX_EndTable, PTX_SectionCell, PTX_SectionTable, PD_Document::setDontImmediatelyLayout(), setPoint(), STD_DOUBLE_BUFFERING_FOR_THIS_FUNCTION, PD_Document::updateDirtyLists(), UT_ASSERT, UT_DEBUGMSG, UT_MAX, UT_return_val_if_fail, and UT_std_string_sprintf().
Referenced by Defun1().
void FV_View::cmdUndo | ( | UT_uint32 | count | ) | [virtual] |
Implements AV_View.
References _charMotion(), _clearSelection(), _generalUpdate(), _updateInsertionPoint(), allowChangeInsPoint(), AV_CHG_ALL, AV_CHG_DIRTY, PD_Document::disableListUpdates(), PD_Document::enableListUpdates(), getEditableBounds(), getPoint(), isPointLegal(), isSelectionEmpty(), m_bAllowSmartQuoteReplacement, m_iPieceTableState, m_pDoc, notifyListeners(), PD_Document::notifyPieceTableChangeEnd(), PD_Document::notifyPieceTableChangeStart(), rememberCurrentPosition(), setCursorToContext(), PD_Document::setDontImmediatelyLayout(), STD_DOUBLE_BUFFERING_FOR_THIS_FUNCTION, PD_Document::undoCmd(), PD_Document::updateDirtyLists(), and UT_DEBUGMSG.
Referenced by FV_VisualDragText::abortDrag(), and FV_VisualInlineImage::abortDrag().
void FV_View::cmdUnselectSelection | ( | void | ) | [virtual] |
Reimplemented from AV_View.
References _clearSelection().
Referenced by AP_Win32Dialog_Replace::_onCommand(), abi_widget_find_next(), AbiGimp_invoke(), AP_Dialog_Lists::Apply(), AP_UnixApp::clearSelection(), AP_CocoaApp::clearSelection(), cmdSelect(), DECLARE_ABI_PLUGIN_METHOD(), AP_Dialog_Spell::makeWordVisible(), s_doHyperlinkDlg(), AP_Dialog_Replace::setFindString(), AP_Dialog_Replace::setMatchCase(), AP_Dialog_Spell::~AP_Dialog_Spell(), and FL_SelectionPreserver::~FL_SelectionPreserver().
bool FV_View::cmdUpdateEmbed | ( | const UT_ConstByteBufPtr & | pBuf, | |
const char * | szMime, | |||
const char * | szProps | |||
) |
This method updates the Embedded object currently selected with a new object defined with the supplied bytebuffer, as well as strings to represent the MIME/Type and Object type.
eg for a GNOME-Office chart we'll have MIME-TYPE "application/chart+xml" and sProps="embed-type: GOChart";
References _deleteSelection(), _generalUpdate(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), _updateInsertionPoint(), ASSERT_PV_SIZE, PD_Document::beginUserAtomicGlob(), cmdSelect(), PD_Document::createDataItem(), PD_Document::endUserAtomicGlob(), fl_BlockLayout::findPointCoords(), gchar, getCharFormat(), getCurrentBlock(), AD_Document::getNewUUID(), getPoint(), getSelectionAnchor(), getStyle(), fp_Run::getType(), PD_Document::insertObject(), isSelectionEmpty(), m_pDoc, PT_STYLE_ATTRIBUTE_NAME, PTO_Embed, UT_DEBUGMSG, UT_return_val_if_fail, UT_std_string_addPropertyString(), UT_std_string_setProperty(), and xxx_UT_DEBUGMSG.
Referenced by GOComponentView::update().
bool FV_View::cmdUpdateEmbed | ( | fp_Run * | pRun, | |
const UT_ConstByteBufPtr & | pBuf, | |||
const char * | szMime, | |||
const char * | szProps | |||
) |
This method updates the Embedded object in pRun with a new object defined with the supplied bytebuffer, as well as strings to represent the MIME/Type and Object type.
eg for a GNOME-Office chart we'll have MIME-TYPE "application/chart+xml" and sProps="embed-type: GOChart";
References _generalUpdate(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), _updateInsertionPoint(), ASSERT_PV_SIZE, PD_Document::beginUserAtomicGlob(), PD_Document::changeSpanFmt(), cmdSelect(), PD_Document::createDataItem(), PD_Document::endUserAtomicGlob(), gchar, getCharFormat(), AD_Document::getNewUUID(), getStyle(), fp_Run::getType(), m_pDoc, fp_Run::mapXYToPosition(), PT_STYLE_ATTRIBUTE_NAME, PTC_AddFmt, s, UT_DEBUGMSG, UT_return_val_if_fail, UT_std_string_addPropertyString(), UT_std_string_setProperty(), and xxx_UT_DEBUGMSG.
void FV_View::convertInLineToPositioned | ( | PT_DocPosition | pos, | |
const PP_PropertyVector & | attributes | |||
) |
This method converts an image located position pos to a positioned object.
References _deleteSelection(), _ensureInsertionPointOnScreen(), _generalUpdate(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), AV_CHG_ALL, AV_CHG_MOTION, PD_Document::beginUserAtomicGlob(), PD_Document::endUserAtomicGlob(), fl_BlockLayout::findPointCoords(), getBlockAtPosition(), fl_ContainerLayout::getContainerType(), fp_Run::getNextRun(), pf_Frag::getPos(), fl_BlockLayout::getPosition(), fl_ContainerLayout::getPrevBlockInDocument(), fp_Run::getType(), insertParaBreakIfNeededAtPos(), PD_Document::insertStrux(), isPointLegal(), m_pDoc, fl_ContainerLayout::myContainingLayout(), notifyListeners(), PTX_EndFrame, PTX_SectionFrame, setPoint(), UT_ASSERT, UT_ASSERT_HARMLESS, UT_DEBUGMSG, and UT_SHOULD_NOT_HAPPEN.
Referenced by Defun1(), and s_doFormatImageDlg().
bool FV_View::convertPositionedToInLine | ( | fl_FrameLayout * | pFrame | ) |
This method converts a positioned object described by fp_FrameLayout * pFram to an inline image. It then selects the inline image.
References _generalUpdate(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), _updateInsertionPoint(), UT_GenericVector< T >::addItem(), PD_Document::beginUserAtomicGlob(), cmdSelect(), FV_FrameEdit::deleteFrame(), PD_Document::endUserAtomicGlob(), gchar, fl_ContainerLayout::getAP(), PP_AttrProp::getAttribute(), fp_Run::getBlockOffset(), fp_FrameContainer::getBlocksAroundFrame(), fp_Container::getContainer(), fp_ContainerObject::getContainerType(), getEditableBounds(), fp_VerticalContainer::getFirstContainer(), fl_ContainerLayout::getFirstContainer(), fp_FrameContainer::getFullY(), fp_Line::getHeight(), UT_GenericVector< T >::getItemCount(), fl_ContainerLayout::getLastContainer(), fp_Line::getLastRun(), fp_Run::getLength(), fp_Container::getNext(), fl_ContainerLayout::getNextBlockInDocument(), fp_Page::getNthColumnLeader(), UT_GenericVector< T >::getNthItem(), fp_FrameContainer::getPage(), getPoint(), fl_ContainerLayout::getPosition(), fl_BlockLayout::getPosition(), PP_AttrProp::getProperty(), fp_VerticalContainer::getScreenOffsets(), fp_ContainerObject::getSectionLayout(), PD_Document::insertObject(), isPointLegal(), m_FrameEdit, m_pDoc, PT_STRUX_IMAGE_DATAID, PTO_Image, and setPoint().
Referenced by Defun1().
void FV_View::copyFrame | ( | bool | b_keepFrame = true |
) |
References AV_CHG_CLIPBOARD, EV_Mouse::clearMouseContext(), XAP_App::copyToClipboard(), FV_FrameEdit::deleteFrame(), FV_FrameEdit_NOT_ACTIVE, AV_View::getApp(), getFrameLayout(), fl_FrameLayout::getLength(), XAP_Frame::getMouse(), AV_View::getParentData(), fl_ContainerLayout::getPosition(), FV_FrameEdit::isActive(), m_FrameEdit, m_iMouseX, m_iMouseY, m_pDoc, m_prevMouseContext, FV_FrameEdit::mouseLeftPress(), notifyListeners(), setCursorToContext(), and FV_FrameEdit::setMode().
Referenced by Defun1().
void FV_View::copyTextToClipboard | ( | const UT_UCS4String | sIncoming, | |
bool | useClipboard = true | |||
) |
References cmdCharInsert(), cmdCopy(), cmdSelect(), DELETEP, FL_DocLayout::fillLayouts(), FL_DocLayout, FL_DocLayout::formatAll(), FV_DOCPOS_BOD, FV_DOCPOS_EOD, FV_View(), XAP_App::getApp(), getLayout(), UT_UCS4String::length(), m_pG, PD_Document::newDocument(), FL_DocLayout::setView(), UT_UCS4String::ucs4_str(), and UNREFP.
Referenced by cmdHyperlinkCopyLocation().
void FV_View::copyToLocal | ( | PT_DocPosition | pos1, | |
PT_DocPosition | pos2 | |||
) |
References IE_Exp::copyToBuffer(), DELETEP, m_pDoc, and m_pLocalBuf.
Referenced by cmdTextToTable(), insertAnnotation(), FV_VisualDragText::mouseCopy(), and FV_VisualDragText::mouseCut().
References m_VisualDragText, and FV_VisualDragText::mouseCopy().
Referenced by Defun().
UT_uint32 FV_View::countAnnotations | ( | void | ) | const |
References FL_DocLayout::countAnnotations(), and m_pLayout.
Referenced by AP_UnixDialog_Goto::updateAnnotationList().
FV_DocCount FV_View::countWords | ( | bool | bActuallyCountWords = true |
) |
Count words
References _findBlockAtPosition(), FV_DocCount::ch_no, FV_DocCount::ch_sp, XAP_EncodingManager::get_instance(), fl_BlockLayout::getBlockBuf(), fp_Run::getBlockOffset(), PD_Document::getBounds(), fp_Container::getContainer(), fl_EmbedLayout::getContainingBlock(), fl_BlockLayout::getEmbeddedOffset(), fl_ContainerLayout::getFirstContainer(), fp_Line::getFirstRun(), UT_GrowBuf::getLength(), fl_BlockLayout::getLength(), fp_Container::getNext(), fl_ContainerLayout::getNextBlockInDocument(), fp_Line::getPage(), fp_Page::getPageNumber(), UT_GrowBuf::getPointer(), fl_BlockLayout::getPosition(), FV_Selection::getSelectionAnchor(), fl_BlockLayout::isEmbeddedType(), isSelectionEmpty(), FV_DocCount::line, m_iInsPoint, m_pDoc, m_Selection, fl_ContainerLayout::myContainingLayout(), FV_DocCount::page, FV_DocCount::para, s_notChar(), UCS_EM_SPACE, UCS_EN_SPACE, UCS_NBSP, UCS_SPACE, UT_ASSERT_HARMLESS, UT_isWordDelimiter(), UT_MIN, FV_DocCount::word, and FV_DocCount::words_no_notes.
Referenced by fp_FieldWordCountRun::calculateValue(), fp_FieldParaCountRun::calculateValue(), fp_FieldLineCountRun::calculateValue(), fp_FieldNonBlankCharCountRun::calculateValue(), fp_FieldCharCountRun::calculateValue(), s_doWordCountDlg(), AP_Dialog_WordCount::setCountFromActiveFrame(), and AP_UnixDialog_Goto::updateDocCount().
void FV_View::createThisHdrFtr | ( | HdrFtrType | hfType, | |
bool | bSkipPTSaves = false | |||
) |
Insert the header/footer. Save the cursor position before we do this and restore it to where it was before we did this.
HdrFtrType | hfType | |
bool | bSkipPTSaves if true don't save the PieceTable stuff |
References _clearSelection(), _generalUpdate(), _setPoint(), _updateInsertionPoint(), PD_Document::beginUserAtomicGlob(), clearCursorWait(), clearHdrFtrEdit(), PD_Document::disableListUpdates(), PD_Document::enableListUpdates(), PD_Document::endUserAtomicGlob(), getCurrentBlock(), getCurrentPage(), fl_BlockLayout::getDocSectionLayout(), fp_Page::getOwningSection(), getPoint(), insertHeaderFooter(), isHdrFtrEdit(), isSelectionEmpty(), m_iPieceTableState, m_pDoc, PD_Document::notifyPieceTableChangeEnd(), PD_Document::notifyPieceTableChangeStart(), setCursorWait(), and PD_Document::updateDirtyLists().
Referenced by Defun1().
void FV_View::decremenetBubbleBlockerCount | ( | ) | [protected] |
References m_bubbleBlockerCount, and UT_DEBUGMSG.
Referenced by FV_View_BubbleBlocker::operator=(), and FV_View_BubbleBlocker::~FV_View_BubbleBlocker().
bool FV_View::deleteCellAt | ( | PT_DocPosition | posTable, | |
UT_sint32 | row, | |||
UT_sint32 | col | |||
) |
void FV_View::deleteFrame | ( | void | ) |
References EV_Mouse::clearMouseContext(), FV_FrameEdit::deleteFrame(), getFrameLayout(), XAP_Frame::getMouse(), AV_View::getParentData(), FV_FrameEdit::isActive(), m_FrameEdit, m_iMouseX, m_iMouseY, m_prevMouseContext, FV_FrameEdit::mouseLeftPress(), selectFrame(), setCursorToContext(), UT_ASSERT, UT_DEBUGMSG, and UT_SHOULD_NOT_HAPPEN.
Referenced by _deleteSelection(), cmdCharDelete(), and Defun1().
void FV_View::delTo | ( | FV_DocPos | dp | ) |
bool FV_View::doesSelectionContainRevision | ( | ) | const |
References m_FrameEdit, and FV_Base::mouseDrag().
Referenced by sActualDragFrame().
Drag on an image. Either drag the whole image or do a resize.
References m_InlineImage, and FV_Base::mouseDrag().
Referenced by sActualDragInlineImage().
References m_VisualDragText, and FV_VisualDragText::mouseDrag().
Referenced by sActualVisualDrag().
The rectangle is in device coordinances
Implements AV_View.
References _draw(), _fixInsertionPointCoords(), getPoint(), AV_View::getWindowHeight(), AV_View::getWindowWidth(), UT_Rect::height, UT_Rect::left, UT_Rect::top, and UT_Rect::width.
Referenced by AP_CocoaFrameImpl::_graphicsUpdateCB, abi_widget_draw(), abi_widget_render_page_to_image(), cmdSetRevisionLevel(), XAP_UnixFrameImpl::_fe::do_ZoomUpdate(), XAP_UnixFrameImpl::_fe::draw(), FV_FrameEdit::drawFrame(), Presentation::drawNthPage(), findReplaceAll(), Print_MailMerge_Listener::fireUpdate(), AP_UnixApp::makePngPreview(), XAP_UnixDialog_Print::PrintPage(), s_actuallyPrint(), s_LoadingCursorCallback(), s_printPage(), setShowPara(), and setShowRevisions().
void FV_View::draw | ( | int | page, | |
dg_DrawArgs * | da | |||
) |
References calculateNumHorizPages(), fp_Page::draw(), FL_DocLayout::getNthPage(), getPoint(), m_pLayout, dg_DrawArgs::pG, UT_ASSERT, and UT_DEBUGMSG.
void FV_View::drawSelectionBox | ( | UT_Rect & | inBox, | |
bool | drawHandles | |||
) | [virtual] |
Draw a 1px line in selection background color with optional resize handles.
box | Where to draw. | |
drawHandles | If handles are to be drawn. |
References _drawResizeHandle(), GR_Painter::drawLine(), getColorSelBackground(), getGraphics(), getImageSelInfo(), UT_Rect::height, UT_Rect::left, m_InlineImage, GR_Graphics::setColor(), GR_Graphics::setLineProperties(), FV_VisualInlineImage::setSelectionDrawn(), GR_Graphics::tlu(), GR_Graphics::tluD(), UT_Rect::top, UT_Rect::width, and xxx_UT_DEBUGMSG.
Referenced by fp_ImageRun::_draw(), fp_EmbedRun::_drawResizeBox(), FV_VisualInlineImage::_mouseDrag(), and fp_FrameContainer::drawHandles().
References _generalUpdate(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), PD_Document::beginUserAtomicGlob(), cmdCut(), cmdPaste(), PD_Document::disableListUpdates(), PD_Document::enableListUpdates(), PD_Document::endUserAtomicGlob(), getDocPositionFromXY(), m_pDoc, moveInsPtTo(), PD_Document::setDontImmediatelyLayout(), and PD_Document::updateDirtyLists().
void FV_View::ensureInsertionPointOnScreen | ( | void | ) |
void FV_View::extSelHorizontal | ( | bool | bForward, | |
UT_uint32 | count | |||
) |
References _charMotion(), _drawSelection(), _ensureInsertionPointOnScreen(), _extSel(), _resetSelection(), _setPoint(), _setSelectionAnchor(), AV_CHG_MOTION, getPoint(), isSelectionEmpty(), and notifyListeners().
Referenced by AbiGimp_invoke(), DECLARE_ABI_PLUGIN_METHOD(), and AP_Dialog_Spell::makeWordVisible().
void FV_View::extSelNextPrevLine | ( | bool | bNext | ) |
void FV_View::extSelNextPrevPage | ( | bool | bNext | ) |
void FV_View::extSelNextPrevScreen | ( | bool | bNext | ) |
void FV_View::extSelTo | ( | FV_DocPos | dp | ) |
References _ensureInsertionPointOnScreen(), _extSelToPos(), _fixInsertionPointCoords(), _getDocPos(), AV_CHG_MOTION, isSelectionEmpty(), and notifyListeners().
Referenced by AbiGoogle_invoke(), AiksaurusABI_invoke(), GDict_invoke(), URLDict_invoke(), and Wikipedia_invoke().
References _autoScroll(), _extSelToPos(), _getPageForXY(), _updateSelectionHandles(), AUTO_SCROLL_MSECS, AV_CHG_MOTION, AV_View::getWindowHeight(), AV_View::getWindowWidth(), m_pAutoScrollTimer, m_xLastMouse, m_yLastMouse, fp_Page::mapXYToPosition(), notifyListeners(), UT_Timer::set(), UT_Timer::start(), UT_Timer::static_constructor(), UT_Timer::stop(), and xxx_UT_DEBUGMSG.
Referenced by _actuallyScroll().
References _autoScroll(), _clearSelection(), _extSelToPos(), _getDocPosFromPoint(), _getPageForXY(), AUTO_SCROLL_MSECS, AV_CHG_MOTION, FV_DOCPOS_BOW, FV_DOCPOS_EOW_SELECT, getPoint(), getSelectionAnchor(), FV_Selection::getSelectionAnchor(), FV_Selection::getSelectionLeftAnchor(), FV_Selection::getSelectionRightAnchor(), AV_View::getWindowHeight(), AV_View::getWindowWidth(), PD_Document::isBlockAtPos(), PD_Document::isCellAtPos(), PD_Document::isEndTableAtPos(), isSelectionEmpty(), PD_Document::isTableAtPos(), m_pAutoScrollTimer, m_pDoc, m_Selection, m_xLastMouse, m_yLastMouse, fp_Page::mapXYToPosition(), notifyListeners(), UT_Timer::set(), FV_Selection::setSelectionAnchor(), FV_Selection::setSelectionLeftAnchor(), FV_Selection::setSelectionRightAnchor(), UT_Timer::start(), UT_Timer::static_constructor(), UT_Timer::stop(), and xxx_UT_DEBUGMSG.
bool FV_View::findAgain | ( | void | ) |
Find next occurrence of last searched string
References _drawSelection(), findNext(), findPrev(), m_bReverseFind, and m_sFind.
Referenced by Defun1().
PT_DocPosition FV_View::findCellPosAt | ( | PT_DocPosition | posTable, | |
UT_sint32 | row, | |||
UT_sint32 | col | |||
) | const |
Returns the position of the cell strux of cell specified by (row,col) within the Table surrounding the supplied point.
References fp_TableContainer::getCellAtRowColumn(), PD_Document::getCellSDHFromRowCol(), fl_ContainerLayout::getFirstContainer(), FL_DocLayout::getLID(), PD_Document::getNthFmtHandle(), fl_ContainerLayout::getPosition(), getRevisionLevel(), fp_ContainerObject::getSectionLayout(), PD_Document::getStruxOfTypeFromPosition(), PD_Document::getStruxPosition(), isShowRevisions(), m_pDoc, m_pLayout, and PTX_SectionTable.
Referenced by _changeCellTo(), _deleteCellAt(), AP_Dialog_MergeCells::_generateSrcDest(), cmdDeleteCol(), cmdDeleteRow(), cmdMergeCells(), cmdSelectColumn(), and FV_Selection::pasteRowOrCol().
UT_UCSChar * FV_View::findGetFindString | ( | void | ) |
References m_sFind, UT_UCS4_cloneString(), and UT_UCS4_cloneString_char().
Referenced by AP_Dialog_Replace::getFindString(), AP_Dialog_Replace::setFindString(), and AP_Dialog_Replace::useStart().
bool FV_View::findGetMatchCase | ( | ) |
References m_bMatchCase.
Referenced by AP_Dialog_Replace::getMatchCase().
UT_UCSChar * FV_View::findGetReplaceString | ( | void | ) |
References m_sReplace, UT_UCS4_cloneString(), and UT_UCS4_cloneString_char().
Referenced by AP_Dialog_Replace::getReplaceString(), and AP_Dialog_Replace::useStart().
bool FV_View::findGetReverseFind | ( | ) |
References m_bReverseFind.
Referenced by AP_Dialog_Replace::getReverseFind().
bool FV_View::findGetWholeWord | ( | ) |
References m_bWholeWord.
Referenced by AP_Dialog_Replace::getWholeWord().
bool FV_View::findNext | ( | bool & | bDoneEntireDocument | ) |
References _clearSelection(), _computeFindPrefix(), _drawSelection(), _ensureInsertionPointOnScreen(), _findNext(), _updateInsertionPoint(), AV_CHG_MOTION, FREEP, isSelectionEmpty(), m_sFind, m_startPosition, notifyListeners(), and setPoint().
Referenced by abi_widget_find_next(), findAgain(), findNext(), and AP_Dialog_Replace::findNext().
bool FV_View::findNext | ( | const UT_UCSChar * | pFind, | |
bool & | bDoneEntireDocument | |||
) |
Find next occurrence of string
pFind | String to find | |
bMatchCase | True to match case, false to ignore case |
References findNext(), and findSetFindString().
bool FV_View::findPrev | ( | bool & | bDoneEntireDocument | ) |
References _clearSelection(), _computeFindPrefix(), _drawSelection(), _ensureInsertionPointOnScreen(), _findPrev(), _updateInsertionPoint(), AV_CHG_MOTION, FREEP, isSelectionEmpty(), m_sFind, and notifyListeners().
Referenced by abi_widget_find_prev(), findAgain(), findPrev(), and AP_Dialog_Replace::findPrev().
bool FV_View::findPrev | ( | const UT_UCSChar * | pFind, | |
bool & | bDoneEntireDocument | |||
) |
References findPrev(), and findSetFindString().
bool FV_View::findReplace | ( | bool & | bDoneEntireDocument | ) |
Find and replace string
pFind | String to find | |
pReplace | String to replace it with | |
bMatchCase | True to match case, false to ignore case |
References _computeFindPrefix(), _drawSelection(), _ensureInsertionPointOnScreen(), _findReplace(), _updateInsertionPoint(), FREEP, isSelectionEmpty(), m_sFind, m_sReplace, updateScreen(), and UT_ASSERT.
Referenced by AP_Dialog_Replace::findReplace().
UT_uint32 FV_View::findReplaceAll | ( | ) |
Find and replace all occurrences of string
pFind | String to find | |
pReplace | String to replace it with | |
bMatchCase | True to match case, false to ignore case |
References _computeFindPrefix(), _findNext(), _findReplace(), _generalUpdate(), _resetSelection(), _updateInsertionPoint(), AV_CHG_MOTION, PD_Document::beginUserAtomicGlob(), draw(), PD_Document::endUserAtomicGlob(), FREEP, getDocPositionFromXY(), getPoint(), AV_View::getWindowHeight(), AV_View::getWindowWidth(), m_bDontNotifyListeners, m_pDoc, m_sFind, m_startPosition, notifyListeners(), setCursorToContext(), setCursorWait(), and setPoint().
Referenced by AP_Dialog_Replace::findReplaceAll().
bool FV_View::findReplaceReverse | ( | bool & | bDoneEntireDocument | ) |
void FV_View::findSetFindString | ( | const UT_UCSChar * | string | ) |
References FREEP, m_sFind, and UT_UCS4_cloneString().
Referenced by abi_widget_set_find_string(), findNext(), findPrev(), and AP_Dialog_Replace::setFindString().
void FV_View::findSetMatchCase | ( | bool | newValue | ) |
References m_bMatchCase.
Referenced by AP_Dialog_Replace::setMatchCase().
void FV_View::findSetReplaceString | ( | const UT_UCSChar * | string | ) |
References FREEP, m_sReplace, and UT_UCS4_cloneString().
Referenced by AP_Dialog_Replace::setReplaceString().
void FV_View::findSetReverseFind | ( | bool | newValue | ) |
References m_bReverseFind.
Referenced by AP_Dialog_Replace::setReverseFind().
void FV_View::findSetStartAt | ( | PT_DocPosition | pos | ) |
References PD_Document::getBounds(), m_doneFind, m_pDoc, m_startPosition, m_wrappedEnd, and UT_return_if_fail.
Referenced by abi_widget_find_next().
void FV_View::findSetStartAtInsPoint | ( | void | ) |
Find operation reset
This function is called at the start of a new find operation to reset the search location parameters.
References m_doneFind, m_iInsPoint, m_startPosition, and m_wrappedEnd.
Referenced by AP_Win32Dialog_Replace::_onCommand(), abi_widget_find_next(), abi_widget_find_prev(), and AP_Dialog_Replace::setView().
void FV_View::findSetWholeWord | ( | bool | newValue | ) |
References m_bWholeWord.
Referenced by AP_Dialog_Replace::setWholeWord().
void FV_View::fixInsertionPointCoords | ( | void | ) |
References _fixInsertionPointCoords().
Referenced by ABI_Collab_Import::_enableUpdates().
void FV_View::focusChange | ( | AV_Focus | focus | ) | [virtual] |
Implements AV_View.
References _setPoint(), _updateSelectionHandles(), GR_Graphics::allCarets(), AV_CHG_FOCUS, AV_FOCUS_HERE, AV_FOCUS_MODELESS, AV_FOCUS_NEARBY, AV_FOCUS_NONE, AllCarets::disable(), AllCarets::enable(), FV_FrameEdit::getFrameEditMode(), getPoint(), FV_SelectionHandles::hide(), isSelectionEmpty(), m_bCursorBlink, m_countDisable, AV_View::m_focus, m_FrameEdit, AV_View::m_pApp, m_pG, m_pParentData, m_SelectionHandles, notifyListeners(), XAP_App::rememberFocussedFrame(), AllCarets::setBlink(), and xxx_UT_DEBUGMSG.
Referenced by AP_Win32Dialog_Replace::_onCommand(), AP_Win32Dialog_Goto::_onCommand(), abi_widget_turn_on_cursor(), cmdInsertTable(), Defun(), Defun1(), AP_Win32Dialog_Replace::runModeless(), AP_Win32Dialog_Goto::runModeless(), and s_StartStopLoadingCursor().
void FV_View::fontMetricsChange | ( | ) | [virtual] |
This function is called when the font metrics for the view change. This happens for example when on win32 the user changes the currently selected printer. In order to maintain WYSIWYG behaviour, we have to remeasure and rebuild
Implements AV_View.
References getBlockAtPosition(), fl_BlockLayout::getFirstRun(), FL_DocLayout::getFirstSection(), fl_ContainerLayout::getNextBlockInDocument(), fp_Run::getNextRun(), m_pLayout, fp_Run::markWidthDirty(), FL_DocLayout::rebuildFromHere(), and fp_Run::updateVerticalMetric().
bool FV_View::getAllAttrProp | ( | const PP_AttrProp *& | pSpanAP, | |
const PP_AttrProp *& | pBlockAP, | |||
const PP_AttrProp *& | pSectionAP, | |||
const PP_AttrProp *& | pDocAP | |||
) | const |
void FV_View::getAllBlocksInList | ( | UT_GenericVector< fl_BlockLayout * > * | v | ) | const |
This method fills a vector with all the blocks contained between the first and last blocks of a list structure.
v | Pointer to Vector of all the blocks found |
References UT_GenericVector< T >::addItem(), fl_Layout::getAutoNum(), fl_ContainerLayout::getContainerType(), getCurrentBlock(), fl_ContainerLayout::getNextBlockInDocument(), fl_BlockLayout::getSectionLayout(), and fl_Layout::getStruxDocHandle().
Referenced by setBlockIndents().
bool FV_View::getAnnotationAuthor | ( | UT_uint32 | iAnnotation, | |
std::string & | sAuthor | |||
) | const |
References getAnnotationLayout(), and fl_AnnotationLayout::getAuthor().
Referenced by cmdEditAnnotationWithDialog(), Defun(), getAnnotationAuthor(), and AP_UnixDialog_Goto::updateAnnotationList().
std::string FV_View::getAnnotationAuthor | ( | UT_uint32 | iAnnotation | ) | const |
References getAnnotationAuthor().
fl_AnnotationLayout * FV_View::getAnnotationLayout | ( | UT_uint32 | iAnnotation | ) | const |
References FL_DocLayout::findAnnotationLayout(), and m_pLayout.
Referenced by cmdEditAnnotationWithDialog(), cmdHyperlinkJump(), getAnnotationAuthor(), getAnnotationText(), getAnnotationTitle(), gotoTarget(), insertAnnotation(), insertAnnotationDescription(), setAnnotationAuthor(), setAnnotationText(), and setAnnotationTitle().
bool FV_View::getAnnotationRichText | ( | UT_uint32 | iAnnotation, | |
std::string & | sRTF | |||
) | const |
bool FV_View::getAnnotationText | ( | UT_uint32 | iAnnotation, | |
std::string & | sText | |||
) | const |
Return the plain text content of the annotation specified by iAnnotaion Content is returned in UT_UTF8String sText. Returns true if a valid annotation was found with valid content.
References UT_GrowBuf::append(), FL_DocLayout::findBlockAtPosition(), getAnnotationLayout(), fl_BlockLayout::getBlockBuf(), fp_Run::getBlockOffset(), getDocument(), fl_BlockLayout::getFirstRun(), UT_GrowBuf::getLength(), fp_Run::getLength(), fl_ContainerLayout::getNextBlockInDocument(), fp_Run::getNextRun(), UT_GrowBuf::getPointer(), fl_Layout::getStruxDocHandle(), PD_Document::getStruxPosition(), fp_Run::getType(), m_pLayout, fl_ContainerLayout::myContainingLayout(), and UT_GrowBuf::truncate().
Referenced by cmdEditAnnotationWithDialog(), Defun(), and getAnnotationText().
std::string FV_View::getAnnotationText | ( | UT_uint32 | iAnnotation | ) | const |
References getAnnotationText().
std::string FV_View::getAnnotationTitle | ( | UT_uint32 | iAnnotation | ) | const |
References getAnnotationTitle().
bool FV_View::getAnnotationTitle | ( | UT_uint32 | iAnnotation, | |
std::string & | sTitle | |||
) | const |
References getAnnotationLayout(), and fl_AnnotationLayout::getTitle().
Referenced by cmdEditAnnotationWithDialog(), Defun(), getAnnotationTitle(), and AP_UnixDialog_Goto::updateAnnotationList().
bool FV_View::getAttributes | ( | const PP_AttrProp ** | ppSpanAP, | |
const PP_AttrProp ** | ppBlockAP = NULL , |
|||
PT_DocPosition | posStart = 0 | |||
) | const |
References _findBlockAtPosition(), _findPositionCoords(), fl_ContainerLayout::getAP(), getLayout(), getPoint(), fl_BlockLayout::getPosition(), FV_Selection::getSelectionAnchor(), fl_ContainerLayout::getSpanAP(), isSelectionEmpty(), and m_Selection.
Referenced by insertAnnotation(), insertFootnote(), and s_doFormatImageDlg().
const PP_AttrProp * FV_View::getAttrPropForPoint | ( | ) | const |
References fl_BlockLayout::findRunAtOffset(), fp_Run::getBlockOffset(), getCurrentBlock(), getDocument(), getPoint(), fl_BlockLayout::getPosition(), fp_Run::getPrevRun(), PD_Document::getSpanAttrProp(), fl_Layout::getStruxDocHandle(), fp_Run::getType(), PP_AttrProp::miniDump(), and UT_return_val_if_fail.
Referenced by _charInsert(), insertFootnote(), and resetCharFormat().
FV_BIDI_Order FV_View::getBidiOrder | ( | ) | const [inline] |
fl_BlockLayout* FV_View::getBlockAtPosition | ( | PT_DocPosition | pos | ) | const [inline] |
Referenced by cmdInsertCol(), cmdInsertPositionedGraphic(), cmdInsertRow(), cmdSplitCells(), convertInLineToPositioned(), Defun(), Defun1(), fontMetricsChange(), getAllAttrProp(), HyperLinkOK(), IE_Imp_RTF::insertStrux(), FV_VisualInlineImage::mouseCopy(), FV_VisualInlineImage::mouseCut(), FV_VisualInlineImage::mouseLeftPress(), queryCharFormat(), remeasureCharsWithoutRebuild(), AP_Dialog_Spell::runModal(), and s_doFormatImageDlg().
bool FV_View::getBlockFormat | ( | PP_PropertyVector & | properties, | |
bool | bExpandStyles = true | |||
) | const |
References _findBlockAtPosition(), UT_GenericVector< T >::addItem(), fv_PropCache::clearProps(), UT_GenericVector< T >::deleteNthItem(), DELETEP, fv_PropCache::fillProps(), gchar, fl_ContainerLayout::getAP(), fv_PropCache::getCurrentCL(), UT_GenericVector< T >::getItemCount(), getLayout(), fl_ContainerLayout::getNextBlockInDocument(), UT_GenericVector< T >::getNthItem(), getPoint(), fv_PropCache::getProps(), fl_BlockLayout::getSectionLayout(), FV_Selection::getSelectionAnchor(), fv_PropCache::getTick(), AV_View::getTick(), isSelectionEmpty(), fv_PropCache::isValid(), m_BlockProps, m_pDoc, _fmtPair::m_prop, m_Selection, _fmtPair::m_val, PP_evalProperty(), PP_getNthPropertyLevel(), PP_getNthPropertyName(), PP_getPropertyCount(), PP_LEVEL_BLOCK, fv_PropCache::setCurrentCL(), fv_PropCache::setTick(), UT_ASSERT, UT_VECTOR_PURGEALL, and v.
Referenced by AP_Dialog_Tab::_populateWindowData(), _toggleSpanOrBlock(), AP_Dialog_Styles::fillVecFromCurrentPoint(), Stateful_ViewListener::notify(), notifyListeners(), s_doParagraphDlg(), and s_getPageMargins().
fl_BlockLayout * FV_View::getBlockFromSDH | ( | pf_Frag_Strux * | sdh | ) |
This method finds the appropiate matching block in the current view for the StruxDocHandle (actually a pointer to a pf_frag_strux)
References fl_BlockLayout::getDocLayout(), FL_DocLayout::getLID(), PD_Document::getNthFmtHandle(), m_pDoc, m_pLayout, UT_ASSERT, and UT_SHOULD_NOT_HAPPEN.
Referenced by setStyleAtPos().
void FV_View::getBlocksInSelection | ( | UT_GenericVector< fl_BlockLayout * > * | vBlock, | |
bool | bAllBlocks = true | |||
) | const |
References _findBlockAtPosition(), UT_GenericVector< T >::addItem(), fl_ContainerLayout::getContainerType(), getCurrentBlock(), getEditableBounds(), fl_ContainerLayout::getNextBlockInDocument(), getNthSelection(), getNumSelections(), getPoint(), fl_BlockLayout::getPosition(), FV_Selection::getSelectionAnchor(), isSelectionEmpty(), PD_DocumentRange::m_pos1, PD_DocumentRange::m_pos2, and m_Selection.
Referenced by AP_Dialog_Lists::Apply(), cmdTextToTable(), getNumColumnsInSelection(), getNumRowsInSelection(), getSelectedImage(), getSelectedObject(), insertAnnotation(), processSelectedBlocks(), setBlockFormat(), setBlockIndents(), setCellFormat(), and setStyleAtPos().
FV_View_BubbleBlocker FV_View::getBubbleBlocker | ( | ) |
References isAnnotationPreviewActive(), killAnnotationPreview(), and UT_DEBUGMSG.
Referenced by AP_Dialog_Modeless::closePopupPreviewBubbles(), and AP_Dialog_Modal::closePopupPreviewBubbles().
fp_CellContainer * FV_View::getCellAtPos | ( | PT_DocPosition | pos | ) | const |
Returns a pointer to the cell container surrounding the supplied point Return NULL if there isn't one.
References _findPositionCoords(), fp_Container::getContainer(), fl_ContainerLayout::getContainerType(), fp_ContainerObject::getContainerType(), fl_BlockLayout::getEnclosingBlock(), fl_ContainerLayout::getFirstContainer(), fp_Run::getLine(), isInTable(), and fl_ContainerLayout::myContainingLayout().
Referenced by _extSelToPos(), fp_Page::getContainingTable(), FV_VisualDragText::getImageFromSelection(), and setCellFormat().
bool FV_View::getCellFormat | ( | PT_DocPosition | pos, | |
std::string & | sCellProps | |||
) | const |
Set a string with the cell properties of the cell located at position pos
References _findBlockAtPosition(), gchar, fl_ContainerLayout::getAP(), PP_AttrProp::getProperty(), isInTable(), fl_ContainerLayout::myContainingLayout(), PP_getNthPropertyLevel(), PP_getNthPropertyName(), PP_getPropertyCount(), PP_LEVEL_TABLE, UT_ASSERT, UT_SHOULD_NOT_HAPPEN, and UT_std_string_setProperty().
Referenced by cmdSplitCells().
bool FV_View::getCellLineStyle | ( | PT_DocPosition | posCell, | |
UT_sint32 * | pLeft, | |||
UT_sint32 * | pRight, | |||
UT_sint32 * | pTop, | |||
UT_sint32 * | pBot | |||
) | const |
Return the left,right,top and bottom line styles of the cell containing the position cellPos. Values will be -1 if the style is not set.
References PD_Document::getPropertyFromSDH(), getRevisionLevel(), PD_Document::getStruxOfTypeFromPosition(), isShowRevisions(), m_pDoc, and PTX_SectionCell.
bool FV_View::getCellParams | ( | PT_DocPosition | posCell, | |
UT_sint32 * | pLeft, | |||
UT_sint32 * | pRight, | |||
UT_sint32 * | pTop, | |||
UT_sint32 * | pBot | |||
) | const |
Return the left,right,top and bottom attach points of the cell containing the position cellPos
References PD_Document::getPropertyFromSDH(), getRevisionLevel(), PD_Document::getStruxOfTypeFromPosition(), isShowRevisions(), m_pDoc, and PTX_SectionCell.
Referenced by _MergeCells(), FV_Selection::addCellToSelection(), fp_FieldTableSumCols::calculateValue(), fp_FieldTableSumRows::calculateValue(), cmdDeleteCol(), cmdDeleteRow(), cmdInsertCol(), cmdInsertRow(), cmdMergeCells(), cmdSelectColumn(), cmdSplitCells(), FV_Selection::pasteRowOrCol(), AP_Dialog_SplitCells::setAllSensitivities(), and AP_Dialog_MergeCells::setAllSensitivities().
bool FV_View::getCellProperty | ( | PT_DocPosition | posCell, | |
const gchar * | szPropName, | |||
gchar *& | szPropValue | |||
) | const |
Get the a particular property, such as the background color, of the cell containing the current cursor position
col | will be set to the cell to the property value, if the requested property exists |
References PD_Document::getPropertyFromSDH(), getRevisionLevel(), PD_Document::getStruxOfTypeFromPosition(), isShowRevisions(), m_pDoc, and PTX_SectionCell.
Referenced by AP_Dialog_FormatTable::setCurCellProps().
UT_UCSChar FV_View::getChar | ( | PT_DocPosition | pos, | |
UT_sint32 * | x = NULL , |
|||
UT_sint32 * | y = NULL , |
|||
UT_uint32 * | width = NULL , |
|||
UT_uint32 * | height = NULL | |||
) |
bool FV_View::getCharFormat | ( | PP_PropertyVector & | properties, | |
bool | bExpandStyles = true | |||
) | const |
Referenced by fl_BlockLayout::_createListLabel(), _fontSizeChange(), _getTranslationCode(), AP_Dialog_Styles::_populateAbiPreview(), AP_Win32Dialog_Lists::_selectFont(), _toggleSpanOrBlock(), cmdCharDelete(), cmdInsertEmbed(), cmdInsertLatexMath(), cmdInsertMathML(), cmdInsertTable(), cmdUpdateEmbed(), FL_DocLayout::considerSmartQuoteCandidateAt(), Defun1(), AP_Dialog_Styles::fillVecFromCurrentPoint(), insertSymbol(), Stateful_ViewListener::notify(), notifyListeners(), s_doFontDlg(), s_doFormatImageDlg(), and s_doLangDlg().
bool FV_View::getCharFormat | ( | PP_PropertyVector & | properties, | |
bool | bExpandStyles, | |||
PT_DocPosition | posStart | |||
) | const |
References _findBlockAtPosition(), _findPositionCoords(), UT_GenericVector< T >::addItem(), fv_PropCache::clearProps(), UT_GenericVector< T >::deleteNthItem(), DELETEP, fv_PropCache::fillProps(), gchar, fl_ContainerLayout::getAP(), fp_Run::getBlockOffset(), fl_BlockLayout::getFirstRun(), UT_GenericVector< T >::getItemCount(), getLayout(), fp_Run::getLength(), fl_ContainerLayout::getNextBlockInDocument(), fp_Run::getNextRun(), UT_GenericVector< T >::getNthItem(), getPoint(), fl_BlockLayout::getPosition(), fv_PropCache::getProps(), FV_Selection::getSelectionAnchor(), fl_ContainerLayout::getSpanAP(), fv_PropCache::getTick(), AV_View::getTick(), fp_Run::getType(), isSelectionEmpty(), fv_PropCache::isValid(), m_CharProps, m_pDoc, _fmtPair::m_prop, m_Selection, _fmtPair::m_val, PP_evalProperty(), PP_getNthPropertyLevel(), PP_getNthPropertyName(), PP_getPropertyCount(), PP_LEVEL_CHAR, fv_PropCache::setTick(), and UT_VECTOR_PURGEALL.
fl_AnnotationLayout * FV_View::getClosestAnnotation | ( | PT_DocPosition | pos | ) | const |
This method returns the closest annotation before or that contains the requested doc position. If the is no annnotation before the doc position, NULL is returned.
References FL_DocLayout::countAnnotations(), fl_EmbedLayout::getDocPosition(), FL_DocLayout::getNthAnnotation(), and m_pLayout.
Referenced by insertAnnotation(), and isInAnnotation().
fl_EndnoteLayout * FV_View::getClosestEndnote | ( | PT_DocPosition | pos | ) | const |
This method returns the closest endnote before or that contains the requested doc position. If the is no footnote before the doc position, NULL is returned.
References FL_DocLayout::countEndnotes(), fl_EmbedLayout::getDocPosition(), FL_DocLayout::getNthEndnote(), and m_pLayout.
Referenced by _deleteSelection(), _setPoint(), cmdCharDelete(), and isInEndnote().
fl_FootnoteLayout * FV_View::getClosestFootnote | ( | PT_DocPosition | pos | ) | const |
This method returns the closest footnote before or that contains the requested doc position. If the is no footnote before the doc position, NULL is returned.
References FL_DocLayout::countFootnotes(), fl_EmbedLayout::getDocPosition(), FL_DocLayout::getNthFootnote(), and m_pLayout.
Referenced by _deleteSelection(), _setPoint(), cmdCharDelete(), and isInFootnote().
void FV_View::getCmdInsertRangeVariables | ( | PT_DocPosition & | posStart, | |
PT_DocPosition & | posEnd, | |||
fl_BlockLayout *& | pBL1, | |||
fl_BlockLayout *& | pBL2 | |||
) | [private] |
References _findBlockAtPosition(), getPoint(), fl_BlockLayout::getPosition(), FV_Selection::getSelectionAnchor(), isInEndnote(), isInFootnote(), isSelectionEmpty(), and m_Selection.
Referenced by cmdInsertBookmark(), and cmdInsertXMLID().
UT_RGBColor FV_View::getColorAnnotation | ( | const fp_Run * | pRun | ) | const |
UT_RGBColor FV_View::getColorAnnotation | ( | fp_Page * | pPage, | |
UT_uint32 | pid | |||
) | const |
References fp_Page::getAnnotationPos(), and m_colorAnnotations.
UT_RGBColor FV_View::getColorColumnLine | ( | void | ) | const [inline] |
Referenced by fp_Page::draw().
UT_RGBColor FV_View::getColorFieldOffset | ( | void | ) | const [inline] |
Referenced by fp_TextRun::_clearScreen(), and fp_TextRun::_draw().
UT_RGBColor FV_View::getColorHdrFtr | ( | void | ) | const [inline] |
UT_RGBColor FV_View::getColorHyperLink | ( | void | ) | const [inline] |
Referenced by fp_Run::getFGColor().
UT_RGBColor FV_View::getColorImage | ( | void | ) | const [inline] |
Referenced by fp_ImageRun::_draw().
UT_RGBColor FV_View::getColorImageResize | ( | void | ) | const [inline] |
UT_RGBColor FV_View::getColorMargin | ( | void | ) | const [inline] |
Referenced by _draw().
UT_RGBColor FV_View::getColorRDFAnchor | ( | const fp_Run * | pRun | ) | const |
References fp_Run::_getColorFG(), fp_Run::getHyperlink(), fp_HyperlinkRun::getHyperlinkType(), fp_Run::getLine(), fp_Line::getPage(), m_colorRDFAnchors, and xxx_UT_DEBUGMSG.
Referenced by fp_Run::getFGColor().
UT_RGBColor FV_View::getColorRevisions | ( | int | rev | ) | const [inline] |
Referenced by addCaret(), and fp_Run::getFGColor().
UT_RGBColor FV_View::getColorSelBackground | ( | void | ) |
UT_RGBColor FV_View::getColorSelForeground | ( | void | ) | const |
References XAP_Frame::getColorSelForeground(), and AV_View::getParentData().
Referenced by fp_TextRun::_drawLastChar().
UT_RGBColor FV_View::getColorShowPara | ( | void | ) | const [inline] |
fl_BlockLayout * FV_View::getCurrentBlock | ( | void | ) | const |
References _findGetCurrentBlock().
Referenced by _charInsert(), _deleteSelection(), _doPaste(), AP_TopRuler::_drawParagraphProperties(), AP_TopRuler::_getParagraphMarkerRects(), AP_TopRuler::_getParagraphMarkerXCenters(), _insertSectionBreak(), changeListStyle(), cmdAcceptRejectRevision(), cmdCharDelete(), cmdFindRevision(), cmdHyperlinkJump(), cmdInsertTOC(), cmdStartList(), cmdStopList(), cmdUpdateEmbed(), createThisHdrFtr(), Defun(), Defun1(), AP_Dialog_FormatTOC::fillTOCPropsFromDoc(), getAllBlocksInList(), getAttrPropForPoint(), AP_Dialog_Lists::getBlock(), getBlocksInSelection(), getTextInCurrentBlock(), getTextInCurrentSection(), insertParagraphBreak(), isCurrentListBlockEmpty(), isPointBeforeListLabel(), AP_TopRuler::mousePress(), FV_VisualDragText::mouseRelease(), AP_UnixDialog_FormatFrame::notifyActiveFrame(), FV_Selection::pasteRowOrCol(), populateThisHdrFtr(), removeThisHdrFtr(), AP_Win32Dialog_Styles::runModal(), s_doFormatImageDlg(), AP_Dialog_Border_Shading::setCurBlockProps(), AP_Dialog_FormatTable::setCurCellProps(), AP_Dialog_FormatFrame::setCurFrameProps(), setStyleAtPos(), and AP_TopRuler::setTableLineDrag().
fp_Page * FV_View::getCurrentPage | ( | void | ) | const |
References _findPositionCoords(), fp_Run::getBlock(), getLayout(), fp_Run::getLine(), fp_Line::getPage(), getPoint(), fl_BlockLayout::isHdrFtr(), m_bPointEOL, and UT_DEBUGMSG.
Referenced by _cmdEditHdrFtr(), AP_Dialog_Styles::_createCharPreviewFromGC(), _fixInsertionPointCoords(), _moveInsPtNextPrevLine(), AP_Dialog_Styles::_populateAbiPreview(), cmdRemoveHdrFtr(), createThisHdrFtr(), getCurrentPageNumForStatusBar(), insertHeaderFooter(), isFooterOnPage(), isHeaderOnPage(), AP_Dialog_Styles::ModifyFont(), populateThisHdrFtr(), processPageNumber(), s_doFontDlg(), XAP_UnixDialog_Print::setupPrint(), and warpInsPtNextPrevLine().
UT_uint32 FV_View::getCurrentPageNumber | ( | void | ) | const |
References _findPositionCoords(), FL_DocLayout::countPages(), fp_Container::getContainer(), fp_Page::getDocLayout(), fp_Run::getLine(), FL_DocLayout::getNthPage(), fp_Container::getPage(), getPoint(), and m_bPointEOL.
Referenced by AP_TopRuler::_draw(), AP_TopRuler::_drawCellGap(), AP_TopRuler::_drawCellProperties(), AP_TopRuler::_drawTabProperties(), AP_TopRuler::_drawTicks(), AP_TopRuler::_getCellMarkerRect(), AP_TopRuler::_getColumnMarkerRect(), AP_TopRuler::_getColumnMarkerXRightEnd(), AP_TopRuler::_getMarginMarkerRects(), AP_TopRuler::_getParagraphMarkerXCenters(), AP_TopRuler::_getTabStopXAnchor(), AP_TopRuler::_getTabZoneRect(), AP_TopRuler::_setTabStops(), IE_Exp_S5::_writeSlide(), insertHeaderFooter(), insertSectionBreak(), AP_TopRuler::isMouseOverTab(), AP_TopRuler::mouseMotion(), AP_TopRuler::mousePress(), AP_TopRuler::mouseRelease(), and AP_TopRuler::setTableLineDrag().
UT_uint32 FV_View::getCurrentPageNumForStatusBar | ( | void | ) | const |
PT_DocPosition FV_View::getDocPositionFromLastXY | ( | void | ) |
Return the document position from the most recent mouse positions
References getDocPositionFromXY(), m_iMouseX, and m_iMouseY.
Referenced by Defun1(), Stateful_ViewListener::notify(), and s_doFormatImageDlg().
PT_DocPosition FV_View::getDocPositionFromXY | ( | UT_sint32 | xpos, | |
UT_sint32 | ypos, | |||
bool | bNotFrames = false | |||
) |
This method returns the document position at xpos,ypos on the screen.
References _getPageForXY(), fp_Page::mapXYToPosition(), and xxx_UT_DEBUGMSG.
Referenced by cmdInsertPositionedGraphic(), Defun(), endDragSelection(), findReplaceAll(), getDocPositionFromLastXY(), FV_FrameEdit::getFrameStrings(), FV_VisualInlineImage::getImageFromSelection(), FV_VisualDragText::getPosFromXY(), FV_VisualInlineImage::getPosFromXY(), FV_VisualInlineImage::mouseCopy(), FV_VisualInlineImage::mouseCut(), FV_VisualInlineImage::mouseLeftPress(), and FV_FrameEdit::setDragType().
PD_Document* FV_View::getDocument | ( | void | ) | const [inline] |
Referenced by AP_TopRuler::_draw(), _findGetNextBlockBuffer(), FV_VisualDragText::_mouseDrag(), _rdfApplyStylesheet(), AP_Frame::_replaceView(), _toggleSpanOrBlock(), abi_widget_load_file(), abi_widget_load_file_from_memory(), AP_Dialog_Lists::Apply(), AP_Dialog_FormatTable::askForGraphicPathName(), AP_Dialog_FormatFrame::askForGraphicPathName(), AP_Dialog_SplitCells::autoUpdateMC(), AP_Dialog_MergeCells::autoUpdateMC(), XAP_UnixDialog_Print::BeginPrint(), XAP_UnixDialog_Print::cleanup(), fl_Squiggles::clear(), Defun(), Defun1(), SugarAccountHandler::disconnectTube(), SugarAccountHandler::disjoinBuddy(), AP_LeftRuler::drawLU(), Drop(), AP_Dialog_FormatTOC::fillTOCPropsFromDoc(), PD_RDFSemanticStylesheet::format(), GDA_execSQL(), getAnnotationText(), getAttrPropForPoint(), getChar(), FV_Selection::getDoc(), FV_Base::getDoc(), AP_Dialog_Goto::getExistingBookmarksCount(), FV_VisualDragText::getImageFromSelection(), AP_Dialog_RDFEditor::getModel(), AP_Dialog_Goto::getNthExistingBookmark(), FV_VisualInlineImage::getPNGImage(), FV_FrameEdit::getPNGImage(), AP_Dialog_RDFQuery::getRDF(), AP_Dialog_RDFEditor::getRDF(), AP_Dialog_Goto::getRDF(), gotoTarget(), insertAnnotation(), insertAnnotationDescription(), AbiCollabSaveInterceptor::intercept(), FV_VisualDragText::mouseCut(), AP_LeftRuler::mouseMotion(), AP_TopRuler::mousePress(), AP_LeftRuler::mousePress(), FV_VisualDragText::mouseRelease(), AP_LeftRuler::mouseRelease(), AP_LeftRuler::notify(), Stateful_ViewListener::notify(), SugarAccountHandler::offerTube(), OnInsertReferenceBase(), PD_RDFDialogsGTK::runInsertReferenceDialog(), s_abi_widget_map_cb(), s_abicollab_authors(), s_closeWindow(), s_doLangDlg(), s_pasteText(), AP_LeftRuler::scrollRuler(), selectAnnotation(), setAnnotationText(), AP_Dialog_FormatFrame::setCurFrameProps(), AP_Dialog_InsertHyperlink::setDoc(), AP_Dialog_InsertBookmark::setDoc(), AP_Dialog_GetStringCommon::setDoc(), AP_Dialog_FormatFootnotes::setFrame(), AP_TopRuler::setTableLineDrag(), AP_LeftRuler::setTableLineDrag(), XAP_UnixDialog_Print::setupPrint(), AP_Dialog_Columns::setViewAndDoc(), AbiWidget_FrameListener::signalFrame(), XAP_PaletteProperties_DataSource::syncWithView:, toggleCase(), AP_Dialog_Stylist::updateDialog(), and AP_Dialog_FormatTOC::updateDialog().
void FV_View::getDocumentRangeOfCurrentSelection | ( | PD_DocumentRange * | pdr | ) | const |
References getPoint(), FV_Selection::getSelectionAnchor(), m_pDoc, m_Selection, and PD_DocumentRange::set().
Referenced by AP_Frame::_replaceView(), AP_UnixApp::cacheCurrentSelection(), AP_CocoaApp::cacheCurrentSelection(), cmdCopy(), Defun1(), FL_SelectionPreserver::FL_SelectionPreserver(), AP_UnixApp::getCurrentSelection(), AP_CocoaApp::getCurrentSelection(), and AP_Dialog_Spell::runModal().
bool FV_View::getDragTableLine | ( | void | ) | const [inline] |
Referenced by AP_TopRuler::mouseRelease(), and AP_LeftRuler::mouseRelease().
bool FV_View::getEditableBounds | ( | bool | isEnd, | |
PT_DocPosition & | posEOD, | |||
bool | bOveride = false | |||
) | const |
This method is a replacement for getBounds which returns the beginning and end points of the document. It keeps the insertion point out of the header/footer region of the document by not counting the size of the header/footer region in the document length. HOWEVER if m_bHdrFtr is true this means we are editting in the Header/Footer region so the insertion piont is constrained to be in shadow section UNLESS bOverride is true in which case we return the Edittable region again.
We need all this so that we can jump into a Header/Footer region, stay there with simple keyboard motions and jump out again with a cursor click outside the header/footer.
isEnd | true to get the end of the document. False gets the beginning | |
posEnd | is the value of the doc position at the beginning and end of the doc | |
bOveride | if true the EOD is made within the edittable region |
References fp_Run::getBlockOffset(), PD_Document::getBounds(), fl_ContainerLayout::getContainerType(), fl_ContainerLayout::getFirstLayout(), fl_BlockLayout::getFirstRun(), fl_ContainerLayout::getLastLayout(), FL_DocLayout::getLastSection(), fl_ContainerLayout::getNext(), fl_ContainerLayout::getNextBlockInDocument(), fp_Run::getNextRun(), fl_BlockLayout::getPosition(), fl_ContainerLayout::getPosition(), m_bEditHdrFtr, m_pDoc, m_pEditShadow, m_pLayout, UT_ASSERT, UT_return_val_if_fail, and UT_SHOULD_NOT_HAPPEN.
Referenced by _charInsert(), _charMotion(), _deleteSelection(), _extSel(), _extSelToPos(), _findGetNextBlockBuffer(), _findGetPrevBlockBuffer(), _findPositionCoords(), _getDocPosFromPoint(), _insertGraphic(), _makePointLegal(), _moveInsPtNextPrevLine(), FV_Selection::checkSelectAll(), cmdCharDelete(), cmdInsertField(), cmdInsertTable(), cmdInsertTOC(), cmdRedo(), cmdTextToTable(), cmdUndo(), convertPositionedToInLine(), fl_HdrFtrShadow::findBlockAtPosition(), getBlocksInSelection(), insertParagraphBreak(), IE_Imp_RTF::insertStrux(), isParaBreakNeededAtPos(), isPointLegal(), isTabListBehindPoint(), FV_FrameEdit::mouseRelease(), FV_Selection::setSelectionAnchor(), FV_Selection::setSelectionLeftAnchor(), FV_Selection::setSelectionRightAnchor(), and warpInsPtToXY().
fl_HdrFtrShadow * FV_View::getEditShadow | ( | void | ) | const |
Returns the pointer to the current shadow.
References m_pEditShadow.
Referenced by fl_DocSectionLayout::_HdrFtrChangeCallback(), fl_BlockLayout::doclistener_deleteStrux(), fp_ShadowContainer::draw(), FL_DocLayout::findBlockAtPosition(), FL_DocLayout::findBlockAtPositionReverse(), AP_LeftRuler::mouseMotion(), and AP_LeftRuler::mouseRelease().
UT_sint32 FV_View::getEmbedDepth | ( | PT_DocPosition | pos | ) | const |
This method returns the depth of the embedding level at the requested point. If the point is not inside a footnote or Endnote, we return zero. If the point is inside a footnote or endnote return 1, if the point is inside an endnote inside a footnote return 2 etc.
References FL_DocLayout::findBlockAtPosition(), fl_ContainerLayout::getContainerType(), m_pLayout, and fl_ContainerLayout::myContainingLayout().
Referenced by _charMotion(), and IE_Imp_RTF::insertStrux().
FV_FrameEdit * FV_View::getFrameEdit | ( | void | ) |
References m_FrameEdit.
Referenced by fl_FrameLayout::collapse(), Defun(), fp_FrameContainer::draw(), s_drag_data_get_cb(), and fl_FrameLayout::~fl_FrameLayout().
fl_FrameLayout * FV_View::getFrameLayout | ( | PT_DocPosition | pos | ) | const |
References _findBlockAtPosition(), fl_ContainerLayout::getContainerType(), getLayout(), fl_BlockLayout::getLength(), fl_ContainerLayout::getNextBlockInDocument(), fl_BlockLayout::getPosition(), PD_Document::getStruxOfTypeFromPosition(), PD_Document::isFrameAtPos(), m_pDoc, fl_ContainerLayout::myContainingLayout(), PTX_SectionFrame, and UT_ASSERT.
Referenced by IE_Imp_RTF::_appendField(), AP_LeftRuler::_getCellMarkerRects(), AP_Dialog_FormatFrame::applyChanges(), Defun(), Defun1(), AP_TopRuler::mouseRelease(), and AP_LeftRuler::mouseRelease().
fl_FrameLayout * FV_View::getFrameLayout | ( | void | ) | const |
References FV_FrameEdit::getFrameLayout(), getPoint(), FV_FrameEdit::isActive(), and m_FrameEdit.
Referenced by _deleteSelection(), cmdCharDelete(), cmdSelect(), copyFrame(), deleteFrame(), getLeftRulerInfo(), saveSelectedImage(), selectFrame(), and setFrameFormat().
UT_sint32 FV_View::getFrameMargin | ( | void | ) | const |
Referenced by AP_TopRuler::_getFirstPixelInColumn().
bool FV_View::getFrameStrings_view | ( | UT_sint32 | x, | |
UT_sint32 | y, | |||
fv_FrameStrings & | FrameStrings, | |||
fl_BlockLayout ** | pCloseBL, | |||
fp_Page ** | ppPage | |||
) |
References FV_FrameEdit::getFrameStrings(), and m_FrameEdit.
Referenced by AP_Dialog_FormatFrame::applyChanges(), and Defun1().
virtual GR_Graphics* FV_View::getGraphics | ( | void | ) | const [inline, virtual] |
Implements AV_View.
Referenced by FV_VisualDragText::_actuallyScroll(), FV_VisualInlineImage::_actuallyScroll(), AP_Win32FrameImpl::_DocumentWndProc(), _drawOrClearBetweenPositions(), _drawResizeHandle(), _fixInsertionPointCoords(), AP_TopRuler::_getCellMarkerRect(), AP_LeftRuler::_getCellMarkerRects(), AP_TopRuler::_getFirstPixelInColumn(), AP_LeftRuler::_getMarginMarkerRects(), FV_SelectionHandles::_getPositionCoords(), AP_TopRuler::_getUnitsFromRulerLeft(), AP_TopRuler::_ignoreEvent(), AP_Win32Dialog_Lists::_selectFont(), XAP_Win32FrameImpl::_setCursor(), XAP_UnixFrameImpl::_setCursor(), _setPoint(), abi_widget_get_mouse_pos(), abi_widget_render_page_to_image(), FV_ViewDoubleBuffering::beginDoubleBuffering(), XAP_UnixDialog_Print::BeginPrint(), btn0Frame(), calculateNumHorizPages(), calculateZoomPercentForPageHeight(), calculateZoomPercentForPageWidth(), FV_ViewDoubleBuffering::callUnifiedDraw(), XAP_UnixDialog_Print::cleanup(), clearCursorWait(), Defun(), Defun1(), XAP_UnixFrameImpl::_fe::do_ZoomUpdate(), XAP_UnixFrameImpl::_fe::draw(), fp_CellContainer::draw(), Presentation::drawNthPage(), fp_CellContainer::drawSelectedCell(), drawSelectionBox(), getChar(), FV_VisualDragText::getGraphics(), FV_Base::getGraphics(), fp_Run::getGraphics(), getImageSelInfo(), getNumHorizPages(), AP_TopRuler::getTabToggleAreaWidth(), AP_TopRuler::getWidth(), AP_TopRuler::mouseMotion(), AP_LeftRuler::mouseMotion(), AP_LeftRuler::mousePress(), AP_TopRuler::mouseRelease(), AP_LeftRuler::mouseRelease(), Presentation_context(), AP_Frame::quickZoom(), FV_ViewDoubleBuffering::recordViewDrawCall(), s_loadImage(), s_LoadingCursorCallback(), s_pasteFile(), sActualVisualDrag(), setCursorToContext(), setCursorWait(), fl_DocSectionLayout::setPaperColor(), AP_Preview_Annotation::setSizeFromAnnotation(), AP_TopRuler::setTableLineDrag(), AP_LeftRuler::setTableLineDrag(), Presentation::start(), AP_UnixFrame::toggleLeftRuler(), AP_CocoaFrame::toggleLeftRuler(), AP_UnixFrame::toggleTopRuler(), AP_CocoaFrame::toggleTopRuler(), FV_SelectionHandles::updateCursor(), fl_DocSectionLayout::updateLayout(), FV_SelectionHandles::updateSelectionEnd(), FV_SelectionHandles::updateSelectionStart(), and ODe_ThumbnailsWriter::writeThumbnails().
UT_uint32 FV_View::getHorizPageSpacing | ( | void | ) | const |
References m_horizPageSpacing.
Referenced by _getPageForXY(), calculateNumHorizPages(), and getWidthPrevPagesInRow().
fp_Run * FV_View::getHyperLinkRun | ( | PT_DocPosition | pos | ) |
References _findBlockAtPosition(), fl_BlockLayout::findRunAtOffset(), FPRUN_HYPERLINK, fp_Run::getHyperlink(), fp_Run::getNextRun(), fl_BlockLayout::getPosition(), fp_Run::getPrevRun(), fp_Run::getType(), fp_Run::getWidth(), fp_Run::getX(), and xxx_UT_DEBUGMSG.
Referenced by cmdHyperlinkCopyLocation(), cmdHyperlinkJump(), cmdInsertTable(), cmdInsertTOC(), Defun(), Defun1(), HyperLinkOK(), insertAnnotation(), insertAnnotationDescription(), insertFootnote(), IE_Imp_RTF::insertStrux(), s_doHyperlinkDlg(), and selectAnnotation().
GR_Graphics::Cursor FV_View::getImageSelCursor | ( | ) | const |
References m_imageSelCursor.
UT_sint32 FV_View::getImageSelInfo | ( | ) | const |
Returns the size of the image selection boxes
References getGraphics(), FV_VisualInlineImage::getImageSelBoxSize(), m_InlineImage, and GR_Graphics::tlu().
Referenced by drawSelectionBox().
EV_EditMouseContext FV_View::getInsertionPointContext | ( | UT_sint32 * | pxPos, | |
UT_sint32 * | pyPos | |||
) | [virtual] |
References _findPositionCoords(), fp_Run::containsRevisions(), FPRUN_BOOKMARK, FPRUN_DIRECTIONMARKER, FPRUN_ENDOFPARAGRAPH, FPRUN_FIELD, FPRUN_FMTMARK, FPRUN_FORCEDCOLUMNBREAK, FPRUN_FORCEDLINEBREAK, FPRUN_FORCEDPAGEBREAK, FPRUN_HYPERLINK, FPRUN_IMAGE, FPRUN_TAB, FPRUN_TEXT, fp_Run::getAscent(), fp_Line::getAscent(), fp_Run::getBlock(), fp_Run::getBlockOffset(), fp_Run::getHeight(), fp_Run::getHyperlink(), fp_Run::getLine(), getPoint(), fl_BlockLayout::getPosition(), fp_Line::getScreenOffsets(), getSelectionAnchor(), fp_Run::getType(), fp_Run::getWidth(), isPosSelected(), m_iInsPoint, m_iPointHeight, m_selImageRect, m_xPoint, m_yPoint, UT_ASSERT, UT_DEBUGMSG, UT_MAX, UT_MIN, UT_NOT_IMPLEMENTED, and xxx_UT_DEBUGMSG.
PT_DocPosition FV_View::getInsPoint | ( | ) | const [inline] |
EV_EditMouseContext FV_View::getLastMouseContext | ( | void | ) |
References m_prevMouseContext.
Referenced by Stateful_ViewListener::notify(), and s_drag_data_get_cb().
FL_DocLayout * FV_View::getLayout | ( | void | ) | const |
References m_pLayout.
Referenced by _actuallyScroll(), FV_FrameEdit::_actuallyScroll(), _autoScroll(), AP_Dialog_Paragraph::_createPreviewFromGC(), _deleteHyperlink(), _draw(), AP_UnixDialog_FormatTOC::_fillGUI(), _getPageXandYOffset(), FV_FrameEdit::_mouseDrag(), IE_Exp_S5::_writeDocument(), IE_Exp_Cairo::_writeDocument(), abi_widget_get_page_count(), abi_widget_render_page_to_image(), abi_widget_set_current_page(), TOCEntry::calculateLabel(), fp_FieldPageReferenceRun::calculateValue(), fp_FieldEndnoteRefRun::calculateValue(), fp_FieldEndnoteAnchorRun::calculateValue(), fp_FieldFootnoteAnchorRun::calculateValue(), fp_FieldFootnoteRefRun::calculateValue(), AP_Dialog_Latex::convertLatexToMathML(), copyTextToClipboard(), XAP_UnixFrameImpl::_fe::do_ZoomUpdate(), Presentation::drawNthPage(), getAllAttrProp(), getAttributes(), getBlockFormat(), getCharFormat(), getCurrentPage(), getFrameLayout(), FV_FrameEdit::getFrameStrings(), FV_Selection::getLayout(), FV_Base::getLayout(), AP_PrintingDelegate::getPageCount(), getSectionFormat(), getStyle(), isDocumentPresent(), AP_Win32Dialog_FormatTOC_Layout::loadCtrlsValuesForDetailsLevel(), moveInsPtTo(), AP_Dialog_Spell::nextMisspelledWord(), ap_sbf_PageInfo::notify(), Stateful_ViewListener::notify(), notifyListeners(), AP_PrintingDelegate::printPage(), AP_Frame::quickZoom(), s_doFontDlg(), s_doLangDlg(), s_doPrint(), s_doStylesDlg(), s_LoadingCursorCallback(), AP_Dialog_SplitCells::setAllSensitivities(), AP_Dialog_MergeCells::setAllSensitivities(), AP_UnixDialog_FormatTOC::setDetailsLevel(), FV_FrameEdit::setDragType(), AP_Dialog_FormatFootnotes::setFrame(), setFrameFormat(), PD_Document::setShowAuthors(), XAP_UnixDialog_Print::setupPrint(), Presentation::showNextPage(), Presentation::showPrevPage(), and IE_FieldUpdater::updateFields().
AP_LeftRuler* FV_View::getLeftRuler | ( | void | ) | const [inline] |
Referenced by Defun(), and AP_Frame::quickZoom().
void FV_View::getLeftRulerInfo | ( | AP_LeftRulerInfo * | pInfo | ) | [virtual] |
References AV_CHG_COLUMN, AV_CHG_FMTBLOCK, AV_CHG_FMTSECTION, getPoint(), and m_iFreePass.
Referenced by AP_LeftRuler::drawLU(), AP_LeftRuler::mouseMotion(), AP_LeftRuler::mousePress(), AP_LeftRuler::mouseRelease(), and AP_LeftRuler::setTableLineDrag().
void FV_View::getLeftRulerInfo | ( | PT_DocPosition | pos, | |
AP_LeftRulerInfo * | pInfo | |||
) | [virtual] |
References _findPositionCoords(), UT_GenericVector< T >::addItem(), AV_CHG_COLUMN, AV_CHG_FMTBLOCK, AV_CHG_FMTSECTION, fl_DocSectionLayout::getBottomMargin(), fp_TableContainer::getCellAtRowColumn(), fp_Container::getContainer(), fl_ContainerLayout::getContainerType(), fp_ContainerObject::getContainerType(), fl_HdrFtrSectionLayout::getDocSectionLayout(), fl_ContainerLayout::getDocSectionLayout(), fl_ContainerLayout::getFirstContainer(), fl_DocSectionLayout::getFooterMargin(), getFrameLayout(), fp_FrameContainer::getFullHeight(), fp_FrameContainer::getFullY(), fl_HdrFtrShadow::getHdrFtrSectionLayout(), fl_DocSectionLayout::getHeaderMargin(), fp_Page::getHeight(), fl_HdrFtrSectionLayout::getHFType(), UT_GenericVector< T >::getItemCount(), fp_CellContainer::getLeftAttach(), fp_Run::getLine(), fp_TableContainer::getNumRows(), fp_Page::getOwningSection(), fp_Line::getPage(), getPageYOffset(), getPoint(), fp_ContainerObject::getSectionLayout(), fl_DocSectionLayout::getTopMargin(), fp_ContainerObject::getY(), isHdrFtrEdit(), isInFrame(), AD_Document::isPieceTableChanging(), m_bPointEOL, AP_LeftRulerTableInfo::m_iBotCellPos, AP_LeftRulerTableInfo::m_iBotSpacing, AP_LeftRulerInfo::m_iCurrentRow, m_iFreePass, AP_LeftRulerInfo::m_iNumRows, AP_LeftRulerTableInfo::m_iTopCellPos, AP_LeftRulerTableInfo::m_iTopSpacing, AP_LeftRulerInfo::m_mode, AP_LeftRulerTableInfo::m_pCell, m_pDoc, m_pEditShadow, AP_LeftRulerInfo::m_vecTableRowInfo, AP_LeftRulerInfo::m_yBottomMargin, AP_LeftRulerInfo::m_yPageSize, AP_LeftRulerInfo::m_yPageStart, AP_LeftRulerInfo::m_yPoint, AP_LeftRulerInfo::m_yTopMargin, fl_ContainerLayout::myContainingLayout(), UT_ASSERT, UT_SHOULD_NOT_HAPPEN, xxx_UT_DEBUGMSG, and AP_LeftRulerInfo::~AP_LeftRulerInfo().
bool FV_View::getLineBounds | ( | PT_DocPosition | pos, | |
PT_DocPosition * | start, | |||
PT_DocPosition * | end | |||
) |
This method returns the bounds of a line, given an offset.
References _findPositionCoords(), fp_Run::getBlockOffset(), fp_Line::getFirstRun(), fp_Line::getLastRun(), fp_Run::getLength(), fp_Run::getLine(), fl_BlockLayout::getPosition(), and line().
const UT_ByteBuf * FV_View::getLocalBuf | ( | void | ) | const |
References m_pLocalBuf.
Referenced by FV_UnixVisualDrag::mouseDrag(), and s_drag_data_get_cb().
References fl_DocSectionLayout::getBottomMargin(), FL_DocLayout::getFirstSection(), fp_Page::getHeight(), fl_DocSectionLayout::getMaxSectionColumnHeight(), fp_Page::getNext(), FL_DocLayout::getNthPage(), getNumHorizPages(), fp_Page::getOwningSection(), fl_DocSectionLayout::getTopMargin(), getViewMode(), m_pLayout, and VIEW_PRINT.
Referenced by _getPageXandYOffset(), and FL_DocLayout::getHeight().
EV_EditMouseContext FV_View::getMouseContext | ( | UT_sint32 | xPos, | |
UT_sint32 | yPos | |||
) | [virtual] |
Implements AV_View.
References _getMouseContext(), EV_EMC_HYPERLINK, isAnnotationPreviewActive(), killAnnotationPreview(), UT_DEBUGMSG, and xxx_UT_DEBUGMSG.
Referenced by Defun(), FV_VisualInlineImage::mouseCopy(), FV_VisualInlineImage::mouseLeftPress(), FV_VisualDragText::mouseRelease(), FV_VisualInlineImage::mouseRelease(), and setCursorToContext().
References m_iMouseX, and m_iMouseY.
Referenced by abi_widget_get_mouse_pos().
UT_sint32 FV_View::getNormalModeXOffset | ( | void | ) | const |
References AV_View::getParentData(), getTabToggleAreaWidth(), getViewMode(), UT_ASSERT, and VIEW_PRINT.
Referenced by fp_Page::_reformatColumns(), calculateZoomPercentForPageWidth(), getTopRulerInfo(), and fp_Page::updateColumnX().
PD_DocumentRange * FV_View::getNthSelection | ( | UT_sint32 | i | ) | const |
References FV_Selection::getNthSelection(), and m_Selection.
Referenced by cmdSelectColumn(), getBlocksInSelection(), FV_VisualDragText::getImageFromSelection(), and setCharFormat().
UT_sint32 FV_View::getNumColumnsInSelection | ( | void | ) | const |
This returns the number of distinct columns in a selection. If part of the the selection is outside a table, it returns 0.
References getBlocksInSelection(), fl_ContainerLayout::getContainerType(), fl_ContainerLayout::getFirstContainer(), UT_GenericVector< T >::getItemCount(), fp_CellContainer::getLeftAttach(), UT_GenericVector< T >::getNthItem(), and fl_ContainerLayout::myContainingLayout().
Referenced by cmdInsertCol().
UT_uint32 FV_View::getNumHorizPages | ( | void | ) | const |
References GR_Graphics::DGP_SCREEN, getGraphics(), and m_iNumHorizPages.
Referenced by _draw(), _getPageForXY(), _getPageXandYOffset(), _moveInsPtNextPrevLine(), FL_DocLayout::getHeight(), getMaxHeight(), getWidthPagesInRow(), and getWidthPrevPagesInRow().
UT_sint32 FV_View::getNumRowsInSelection | ( | void | ) | const |
This returns the number of distinct rows in a selection. If part of the the selection is outside a table, it returns 0.
References getBlocksInSelection(), fl_ContainerLayout::getContainerType(), fl_ContainerLayout::getFirstContainer(), UT_GenericVector< T >::getItemCount(), fl_BlockLayout::getLength(), UT_GenericVector< T >::getNthItem(), getNumSelections(), getPoint(), fl_BlockLayout::getPosition(), FV_Selection::getSelectionAnchor(), fp_CellContainer::getTopAttach(), isSelectionEmpty(), m_Selection, and fl_ContainerLayout::myContainingLayout().
Referenced by cmdDeleteRow(), and cmdInsertRow().
UT_sint32 FV_View::getNumSelections | ( | void | ) | const |
References FV_Selection::getNumSelections(), and m_Selection.
Referenced by cmdSelectColumn(), getBlocksInSelection(), FV_VisualDragText::getImageFromSelection(), getNumRowsInSelection(), and setCharFormat().
void FV_View::getPageScreenOffsets | ( | const fp_Page * | pThePage, | |
UT_sint32 & | xoff, | |||
UT_sint32 & | yoff | |||
) | const |
Calculate the position of the top left corner of a page relative to the screen window.
References _getPageXandYOffset(), AV_View::m_xScrollOffset, and AV_View::m_yScrollOffset.
Referenced by _drawOrClearBetweenPositions(), fp_CellContainer::_getBrokenRect(), _getMouseContext(), _moveInsPtNextPrevScreen(), AP_Dialog_FormatFrame::applyChanges(), fp_FrameContainer::clearScreen(), Defun1(), fp_CellContainer::draw(), fp_Line::drawBorders(), FV_FrameEdit::drawFrame(), fp_CellContainer::drawSelectedCell(), fp_Page::expandDamageRect(), fp_Line::getAbsLeftRight(), FV_FrameEdit::getFrameStrings(), fp_Page::getScreenOffsets(), fp_CellContainer::getScreenPositions(), fp_VerticalContainer::getScreenRect(), fp_Page::isOnScreen(), and FV_FrameEdit::setDragType().
const fp_PageSize & FV_View::getPageSize | ( | void | ) | const |
References PD_Document::m_docPageSize, and m_pDoc.
Referenced by FV_Base::_checkDimensions(), calculateZoomPercentForPageHeight(), calculateZoomPercentForPageWidth(), Defun1(), Print_MailMerge_Listener::fireUpdate(), FV_FrameEdit::getFrameStrings(), FV_VisualInlineImage::mouseRelease(), XAP_Win32Dialog_PrintPreview::runModal(), XAP_CocoaDialog_Print::runPrint(), s_actuallyPrint(), s_doPrint(), s_printPage(), and XAP_UnixDialog_Print::setupPrint().
UT_sint32 FV_View::getPageViewLeftMargin | ( | void | ) | const [virtual] |
References GR_Graphics::DGP_PAPER, AV_View::getParentData(), getViewMode(), XAP_Frame::isMenuScrollHidden(), isPreview(), FL_DocLayout::isQuickPrint(), m_pG, m_pLayout, and GR_Graphics::queryProperties().
Referenced by _draw(), _ensureInsertionPointOnScreen(), _findPositionCoords(), _fixInsertionPointCoords(), _getPageForXY(), _getPageXandYOffset(), _moveInsPtNextPrevLine(), calculateZoomPercentForPageWidth(), fp_Run::draw(), fp_CellContainer::drawBroken(), getTopRulerInfo(), getVisibleDocumentPagesAndRectangles(), FL_DocLayout::getWidth(), and fp_Run::Run_ClearScreen().
UT_sint32 FV_View::getPageViewSep | ( | void | ) | const [virtual] |
References GR_Graphics::DGP_PAPER, AV_View::getParentData(), getViewMode(), XAP_Frame::isMenuScrollHidden(), isPreview(), m_pG, GR_Graphics::queryProperties(), and GR_Graphics::tlu().
Referenced by _draw(), _getPageForXY(), _getPageXandYOffset(), _moveInsPtNextPrevScreen(), _moveInsPtToPage(), cmdScroll(), Presentation::drawNthPage(), FL_DocLayout::getHeight(), and getVisibleDocumentPagesAndRectangles().
UT_sint32 FV_View::getPageViewTopMargin | ( | void | ) | const [virtual] |
References GR_Graphics::DGP_PAPER, AV_View::getParentData(), getViewMode(), XAP_Frame::isMenuScrollHidden(), isPreview(), FL_DocLayout::isQuickPrint(), m_pG, m_pLayout, and GR_Graphics::queryProperties().
Referenced by _draw(), _getPageForXY(), _getPageXandYOffset(), calculateZoomPercentForPageHeight(), cmdScroll(), FL_DocLayout::getHeight(), and getVisibleDocumentPagesAndRectangles().
Calculate the y coordinate of the top left corner of a page relative to the application frame.
References _getPageXandYOffset().
Referenced by _draw(), _findPositionCoords(), _moveInsPtNextPrevLine(), _moveInsPtToPage(), and getLeftRulerInfo().
virtual PT_DocPosition FV_View::getPoint | ( | void | ) | const [inline, virtual] |
Implements AV_View.
Referenced by _actuallyScroll(), _charInsert(), _charMotion(), _clearSelection(), AP_UnixDialog_RDFEditor::_constructWindow(), fl_BlockLayout::_createListLabel(), AP_Dialog_Paragraph::_createPreviewFromGC(), fp_FieldRun::_defaultDraw(), _deleteSelection(), _deleteXMLID(), _doPaste(), fp_TextRun::_draw(), fp_ImageRun::_draw(), fp_EndOfParagraphRun::_draw(), fp_ForcedLineBreakRun::_draw(), fp_TabRun::_draw(), fp_RDFAnchorRun::_draw(), fp_MathRun::_draw(), fp_EmbedRun::_draw(), fp_DirectionMarkerRun::_draw(), fp_AnnotationRun::_draw(), AP_TopRuler::_draw(), AP_TopRuler::_drawBar(), _drawOrClearBetweenPositions(), _drawSelection(), _ensureInsertionPointOnScreen(), _eraseSelection(), _extSel(), _extSelToPos(), _findPositionCoords(), _findReplace(), _findReplaceReverse(), _fixInsertionPointAfterRevision(), _fixInsertionPointCoords(), AP_LeftRuler::_getCellMarkerRects(), _getCurrentPage(), _getDocPos(), _getMouseContext(), fl_DocSectionLayout::_HdrFtrChangeCallback(), _insertField(), _insertGraphic(), _insertSectionBreak(), _makePointLegal(), FV_VisualDragText::_mouseDrag(), _moveInsPtNextPrevLine(), _moveInsPtNextPrevScreen(), _moveToSelectionEnd(), IE_Imp_Component::_parseStream(), IE_Imp_Object::_parseStream(), AP_Dialog_Styles::_populateAbiPreview(), FL_DocLayout::_prefsListener(), FL_DocLayout::_redrawUpdate(), _resetSelection(), _setSelectionAnchor(), AP_Win32TopRuler::_TopRulerWndProc(), abi_widget_find_next(), abi_widget_get_selection(), AbiMathView_FileInsert(), FL_DocLayout::addNewPage(), AP_Dialog_Stylist::Apply(), AP_Dialog_Lists::Apply(), AP_Dialog_FormatTOC::Apply(), 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(), AP_UnixLeftRuler::_fe::button_press_event(), AP_UnixLeftRuler::_fe::button_release_event(), changed_cb(), FV_Selection::checkSelectAll(), cmdAcceptRejectRevision(), cmdAdvanceNextPrevCell(), cmdAutoFitTable(), cmdAutoSizeCols(), cmdAutoSizeRows(), cmdCharDelete(), cmdCharInsert(), cmdCharMotion(), cmdCut(), cmdDeleteHyperlink(), cmdDeleteTable(), cmdFindRevision(), cmdHyperlinkJump(), cmdInsertEmbed(), cmdInsertField(), cmdInsertHyperlink(), cmdInsertLatexMath(), cmdInsertMathML(), cmdInsertPositionedGraphic(), cmdInsertTable(), cmdInsertTOC(), cmdPaste(), cmdRedo(), cmdRemoveHdrFtr(), cmdSplitCells(), cmdTextToTable(), cmdUndo(), cmdUpdateEmbed(), FL_DocLayout::considerSmartQuoteCandidateAt(), convertPositionedToInLine(), createThisHdrFtr(), Defun(), Defun1(), FV_FrameEdit::deleteFrame(), FL_DocLayout::deletePage(), delTo(), fl_BlockLayout::doclistener_deleteObject(), fl_BlockLayout::doclistener_deleteSpan(), fl_BlockLayout::doclistener_deleteStrux(), fl_BlockLayout::doclistener_insertBlock(), fl_BlockLayout::doclistener_insertFirstBlock(), fl_BlockLayout::doclistener_insertFrame(), fl_BlockLayout::doclistener_insertObject(), fl_BlockLayout::doclistener_insertSection(), fl_BlockLayout::doclistener_insertSpan(), fl_BlockLayout::doclistener_insertTable(), draw(), AP_LeftRuler::drawLU(), Drop(), extSelHorizontal(), extSelNextPrevLine(), extSelNextPrevPage(), extSelNextPrevScreen(), extSelToXYword(), findReplaceAll(), focusChange(), PD_RDFSemanticStylesheet::format(), FV_View(), getAllAttrProp(), getAttributes(), getAttrPropForPoint(), getBlockFormat(), getBlocksInSelection(), getCharFormat(), getCmdInsertRangeVariables(), getCurrentPage(), getCurrentPageNumber(), getDocumentRangeOfCurrentSelection(), getFrameLayout(), FV_VisualDragText::getImageFromSelection(), getInsertionPointContext(), getLeftRulerInfo(), AP_Dialog_FormatTOC::getNewStyle(), getNumRowsInSelection(), getSectionFormat(), getSelectedImage(), getSelectedObject(), getStyle(), getTopRulerInfo(), HyperLinkOK(), insertAnnotation(), fl_FrameLayout::insertBlockAfter(), insertFootnote(), insertFootnoteSection(), insertHeaderFooter(), insertPageNum(), insertParagraphBreak(), insertParagraphBreaknoListUpdate(), insertSymbol(), PD_RDFSemanticItem::insertTextWithXMLID(), isInAnnotation(), isInDocSection(), isInEndnote(), isInFootnote(), isInTable(), isMathSelected(), isPointBeforeListLabel(), isPointLegal(), FV_Selection::isPosSelected(), isSelectionEmpty(), isTabListAheadPoint(), isTabListBehindPoint(), AP_UnixLeftRuler::_fe::motion_notify_event(), FV_VisualDragText::mouseCopy(), FV_VisualDragText::mouseCut(), FV_VisualInlineImage::mouseCut(), FV_VisualDragText::mouseRelease(), FV_VisualInlineImage::mouseRelease(), AP_TopRuler::mouseRelease(), AP_LeftRuler::mouseRelease(), moveInsPtTo(), AP_UnixDialog_FormatFrame::notifyActiveFrame(), notifyListeners(), FV_Selection::pasteRowOrCol(), fl_ShadowListener::populate(), fl_DocListener::populateStrux(), populateThisHdrFtr(), processPageNumber(), processSelectedBlocks(), queryCharFormat(), AP_Frame::quickZoom(), rememberCurrentPosition(), removeStruxAttrProps(), removeThisHdrFtr(), AP_Dialog_Spell::runModal(), s_doBorderShadingDlg(), s_doFindOrFindReplaceDlg(), s_doFormatImageDlg(), s_doFormatTableDlg(), s_doHyperlinkDlg(), s_LoadingCursorCallback(), s_pasteText(), AP_Dialog_SplitCells::setAllSensitivities(), AP_Dialog_MergeCells::setAllSensitivities(), AP_Dialog_FormatTable::setAllSensitivities(), setBlockFormat(), setCellFormat(), setCharFormat(), setCollapsedRange(), AP_Dialog_Border_Shading::setCurBlockProps(), AP_Dialog_FormatTable::setCurCellProps(), AP_Dialog_FormatFrame::setCurFrameProps(), setFrameFormat(), setSectionFormat(), FV_Selection::setSelectionAnchor(), setShowPara(), setStyle(), setStyleAtPos(), setTableFormat(), fl_BlockLayout::StopListInBlock(), swapSelectionOrientation(), AP_Dialog_Stylist::updateDialog(), AP_Dialog_FormatTOC::updateDialog(), warpInsPtNextPrevLine(), warpInsPtNextPrevPage(), warpInsPtNextPrevScreen(), and warpInsPtToXY().
PreViewMode FV_View::getPreviewMode | ( | void | ) | [inline] |
FV_SelectionMode FV_View::getPrevSelectionMode | ( | void | ) | const |
References FV_Selection::getPrevSelectionMode(), and m_Selection.
Referenced by IE_Imp_RTF::HandleAbiTable(), FV_VisualDragText::mouseCopy(), and FV_VisualDragText::mouseRelease().
UT_uint32 FV_View::getRevisionLevel | ( | ) | const |
Revision level i means that the document is to be shown as it looks _after_ revision with id == i. In non-revisioning mode, any revision level is OK, but when marking revisions legal values are >= current revisioning level - 1.
References AD_Document::getHighestRevisionId(), isMarkRevisions(), m_iViewRevision, and m_pDoc.
Referenced by _removeThisHdrFtr(), fp_FieldTableSumCols::calculateValue(), fp_FieldTableSumRows::calculateValue(), cmdMergeCells(), cmdSelectColumn(), cmdSplitCells(), cmdTableToText(), Defun1(), fp_Run::draw(), findCellPosAt(), fl_AutoNum::fixHierarchy(), fl_ContainerLayout::getAP(), getCellLineStyle(), getCellParams(), getCellProperty(), fp_Run::getFGColor(), fp_Run::getSpanAP(), fl_ContainerLayout::getSpanAP(), isImageAtStrux(), FV_Selection::pasteRowOrCol(), and setCellFormat().
PT_DocPosition FV_View::getSavedPosition | ( | void | ) | const |
This method returns the saved insertion point of the insertion point in the doc. This is needed during undo's of insert Page Number. Maybe elsewhere later.
References m_iSavedPosition.
bool FV_View::getSectionFormat | ( | PP_PropertyVector & | properties | ) | const |
References _findBlockAtPosition(), UT_GenericVector< T >::addItem(), fv_PropCache::clearProps(), UT_GenericVector< T >::deleteNthItem(), DELETEP, fv_PropCache::fillProps(), gchar, fl_ContainerLayout::getAP(), fl_BlockLayout::getDocSectionLayout(), UT_GenericVector< T >::getItemCount(), getLayout(), fl_DocSectionLayout::getNextDocSection(), UT_GenericVector< T >::getNthItem(), getPoint(), fv_PropCache::getProps(), FV_Selection::getSelectionAnchor(), fv_PropCache::getTick(), AV_View::getTick(), isSelectionEmpty(), fv_PropCache::isValid(), m_pDoc, _fmtPair::m_prop, m_SecProps, m_Selection, _fmtPair::m_val, PP_evalProperty(), PP_getNthPropertyLevel(), PP_getNthPropertyName(), PP_getPropertyCount(), PP_LEVEL_SECT, fv_PropCache::setTick(), UT_ASSERT, UT_ASSERT_HARMLESS, UT_return_val_if_fail, UT_VECTOR_PURGEALL, and xxx_UT_DEBUGMSG.
Referenced by AP_Dialog_Styles::_populatePreviews(), Defun(), Defun1(), notifyListeners(), and AP_Dialog_Columns::setViewAndDoc().
PT_DocPosition FV_View::getSelectedImage | ( | const char ** | dataId | ) | const |
Referenced by isImageSelected(), isImageSelected(), FV_VisualInlineImage::mouseCopy(), s_doFormatImageDlg(), and saveSelectedImage().
PT_DocPosition FV_View::getSelectedImage | ( | const char ** | dataId, | |
const fp_Run ** | pImRun | |||
) | const |
References _findPositionCoords(), fp_Run::getBlockOffset(), getBlocksInSelection(), fl_BlockLayout::getFirstRun(), UT_GenericVector< T >::getItemCount(), fp_Run::getNextRun(), UT_GenericVector< T >::getNthItem(), getPoint(), fl_BlockLayout::getPosition(), FV_Selection::getSelectionAnchor(), fp_Run::getType(), isSelectionEmpty(), and m_Selection.
fp_Run * FV_View::getSelectedObject | ( | void | ) | const |
References _findPositionCoords(), getBlocksInSelection(), fl_BlockLayout::getFirstRun(), UT_GenericVector< T >::getItemCount(), fp_Run::getNextRun(), UT_GenericVector< T >::getNthItem(), getPoint(), FV_Selection::getSelectionAnchor(), fp_Run::getType(), isSelectionEmpty(), and m_Selection.
Referenced by Defun1().
PT_DocPosition FV_View::getSelectionAnchor | ( | void | ) | const |
References FV_Selection::getSelectionAnchor(), FV_Selection::isSelected(), m_iInsPoint, and m_Selection.
Referenced by fp_FieldRun::_defaultDraw(), fp_TextRun::_draw(), fp_ImageRun::_draw(), fp_EndOfParagraphRun::_draw(), fp_ForcedLineBreakRun::_draw(), fp_TabRun::_draw(), fp_RDFAnchorRun::_draw(), fp_MathRun::_draw(), fp_EmbedRun::_draw(), fp_DirectionMarkerRun::_draw(), fp_AnnotationRun::_draw(), _drawOrClearBetweenPositions(), _extSel(), _extSelToPos(), _getMouseContext(), AP_Win32Dialog_Replace::_onCommand(), IE_Exp_S5::_writeSlide(), abi_widget_find_next(), abi_widget_get_selection(), AP_Dialog_Lists::Apply(), AP_Dialog_FormatTOC::applyTOCPropsToDoc(), cmdAcceptRejectRevision(), cmdCut(), cmdUpdateEmbed(), Defun(), Defun1(), doesSelectionContainRevision(), extSelToXYword(), AP_Dialog_FormatTOC::fillTOCPropsFromDoc(), FV_VisualDragText::getImageFromSelection(), getInsertionPointContext(), HyperLinkOK(), isInTable(), isMathSelected(), isSelectionEmpty(), FV_VisualDragText::mouseCopy(), FV_VisualDragText::mouseCut(), FV_VisualInlineImage::mouseCut(), s_doBorderShadingDlg(), and AP_Dialog_FormatTable::setCurCellProps().
PT_DocPosition FV_View::getSelectionLeftAnchor | ( | void | ) | const |
References FV_Selection::getSelectionLeftAnchor(), and m_Selection.
Referenced by _updateSelectionHandles(), Stateful_ViewListener::notify(), and FV_SelectionHandles::updateSelectionEnd().
UT_uint32 FV_View::getSelectionLength | ( | void | ) | const |
References FV_Selection::getSelectionAnchor(), m_iInsPoint, and m_Selection.
Referenced by IE_Exp_S5::_writeSlide(), FL_SelectionPreserver::cmdCharInsert(), and getSelectionText().
FV_SelectionMode FV_View::getSelectionMode | ( | void | ) | const |
References FV_Selection::getSelectionMode(), and m_Selection.
Referenced by fp_TextRun::_draw(), cmdTextToTable(), FV_VisualDragText::getImageFromSelection(), IE_Imp_RTF::HandleAbiTable(), and FV_VisualDragText::mouseCut().
PT_DocPosition FV_View::getSelectionRightAnchor | ( | void | ) | const |
References FV_Selection::getSelectionRightAnchor(), and m_Selection.
Referenced by _updateSelectionHandles(), Stateful_ViewListener::notify(), and FV_SelectionHandles::updateSelectionStart().
void FV_View::getSelectionText | ( | UT_UCS4Char *& | text | ) | const |
References FL_DocLayout::findBlockAtPosition(), fl_BlockLayout::getBlockBuf(), UT_GrowBuf::getLength(), UT_GrowBuf::getPointer(), fl_BlockLayout::getPosition(), FV_Selection::getSelectionAnchor(), getSelectionLength(), isSelectionEmpty(), m_iInsPoint, m_pLayout, m_Selection, UT_ASSERT, and UT_calloc().
Referenced by AP_Win32Dialog_Replace::_onCommand(), AbiGoogle_invoke(), AiksaurusABI_invoke(), BabelFish_invoke(), FreeTranslation_invoke(), GDict_invoke(), insertAnnotation(), s_doBookmarkDlg(), s_doFindOrFindReplaceDlg(), s_doFontDlg(), AP_Dialog_InsertHyperlink::setDoc(), URLDict_invoke(), and Wikipedia_invoke().
bool FV_View::getShowPara | ( | void | ) | const [inline] |
Referenced by fp_BookmarkRun::_clearScreen(), fp_DirectionMarkerRun::_deleteFollowingIfAtInsPoint(), fp_TextRun::_draw(), fp_ForcedPageBreakRun::_draw(), fp_ForcedColumnBreakRun::_draw(), fp_EndOfParagraphRun::_draw(), fp_BookmarkRun::_draw(), fp_ForcedLineBreakRun::_draw(), fp_TabRun::_draw(), fp_DirectionMarkerRun::_draw(), fp_CellContainer::_drawBoundaries(), fp_Column::_drawBoundaries(), fp_TableContainer::_drawBrokenBoundaries(), fp_Page::_drawCropMarks(), fl_BlockLayout::_insertEndOfParagraphRun(), fp_EndOfParagraphRun::_lookupProperties(), fp_ForcedLineBreakRun::_lookupProperties(), fp_DirectionMarkerRun::_recalcWidth(), fp_Run::_wouldBeHidden(), fl_ContainerLayout::canContainPoint(), fp_ForcedPageBreakRun::findPointCoords(), fp_ForcedLineBreakRun::findPointCoords(), fl_DocSectionLayout::format(), fl_ContainerLayout::isOnScreen(), fl_BlockLayout::itemizeSpan(), and fl_DocSectionLayout::updateLayout().
bool FV_View::getStyle | ( | const gchar ** | style | ) | const |
References _findBlockAtPosition(), _findPositionCoords(), gchar, fl_ContainerLayout::getAP(), fp_Run::getBlockOffset(), fl_BlockLayout::getFirstRun(), getLayout(), fp_Run::getLength(), fl_ContainerLayout::getNextBlockInDocument(), fp_Run::getNextRun(), getPoint(), fl_BlockLayout::getPosition(), FV_Selection::getSelectionAnchor(), fl_ContainerLayout::getSpanAP(), isSelectionEmpty(), m_Selection, and x_getStyle().
Referenced by cmdInsertEmbed(), cmdInsertLatexMath(), cmdInsertMathML(), cmdUpdateEmbed(), insertParagraphBreak(), Stateful_ViewListener::notify(), and AP_Dialog_Stylist::updateDialog().
fl_TableLayout * FV_View::getTableAtPos | ( | PT_DocPosition | pos | ) | const |
References FL_DocLayout::findBlockAtPosition(), fl_ContainerLayout::getContainerType(), m_pLayout, and fl_ContainerLayout::myContainingLayout().
Referenced by _fixInsertionPointCoords(), cmdDeleteRow(), cmdPaste(), cmdTableToText(), FV_VisualDragText::getImageFromSelection(), and IE_Imp_RTF::insertStrux().
UT_uint32 FV_View::getTabToggleAreaWidth | ( | ) | const |
References AP_TopRuler::getFixedWidth(), AP_TopRuler::getTabToggleAreaWidth(), m_pG, m_pTopRuler, and GR_Graphics::tlu().
Referenced by fp_Page::_reformatAnnotations(), fp_Page::_reformatFootnotes(), and getNormalModeXOffset().
UT_UCSChar * FV_View::getTextBetweenPos | ( | PT_DocPosition | pos1, | |
PT_DocPosition | pos2 | |||
) | const |
References FL_DocLayout::findBlockAtPosition(), fl_BlockLayout::getBlockBuf(), fl_BlockLayout::getLength(), UT_GrowBuf::getLength(), fl_ContainerLayout::getNextBlockInDocument(), UT_GrowBuf::getPointer(), fl_BlockLayout::getPosition(), m_pLayout, UT_GrowBuf::truncate(), UT_ASSERT, UT_MIN, and UT_return_val_if_fail.
Referenced by XAP_UnixFrameImpl::_imRetrieveSurrounding_cb().
void FV_View::getTextInCurrentBlock | ( | UT_GrowBuf & | buf | ) | const |
This method appends all the text in the current Block to the supplied Growbuf.
References fl_BlockLayout::appendTextToBuf(), and getCurrentBlock().
void FV_View::getTextInCurrentSection | ( | UT_GrowBuf & | buf | ) | const |
This method appends all the text in the current DocSection to the supplied Growbuf.
References fl_ContainerLayout::appendTextToBuf(), getCurrentBlock(), and fl_BlockLayout::getDocSectionLayout().
void FV_View::getTextInDocument | ( | UT_GrowBuf & | buf | ) | const |
This method appends all the text in the Document to the supplied Growbuf.
References fl_ContainerLayout::appendTextToBuf(), FL_DocLayout::getFirstSection(), fl_ContainerLayout::getNext(), and m_pLayout.
Referenced by AbiOts_invoke().
AP_TopRuler* FV_View::getTopRuler | ( | void | ) | const [inline] |
Referenced by Defun(), and AP_Frame::quickZoom().
void FV_View::getTopRulerInfo | ( | AP_TopRulerInfo * | pInfo | ) | [virtual] |
References AV_CHG_COLUMN, AV_CHG_FMTBLOCK, AV_CHG_FMTSECTION, getPoint(), and m_iFreePass.
Referenced by AP_TopRuler::_draw(), AP_Dialog_Tab::_populateWindowData(), AP_TopRuler::isMouseOverTab(), AP_Dialog_Styles::ModifyParagraph(), AP_TopRuler::mousePress(), s_doParagraphDlg(), and AP_TopRuler::setTableLineDrag().
void FV_View::getTopRulerInfo | ( | PT_DocPosition | pos, | |
AP_TopRulerInfo * | pInfo | |||
) | [virtual] |
References _findPositionCoords(), UT_GenericVector< T >::addItem(), AV_CHG_COLUMN, AV_CHG_FMTBLOCK, AV_CHG_FMTSECTION, AP_TopRulerInfo::_u::c, UT_String::c_str(), DIM_IN, FL_CONTAINER_ANNOTATION, FL_CONTAINER_FOOTNOTE, FL_SECTION_DOC, FP_CONTAINER_FRAME, fp_TableContainer::getCellAtRowColumn(), fp_CellContainer::getColumn(), fl_DocSectionLayout::getColumnGap(), fp_Container::getContainer(), fp_ContainerObject::getContainerType(), fl_ContainerLayout::getContainerType(), fl_BlockLayout::getDefaultTabInterval(), fl_ContainerLayout::getDocSectionLayout(), fl_HdrFtrSectionLayout::getDocSectionLayout(), fp_Column::getFollower(), fp_FrameContainer::getFullWidth(), fp_FrameContainer::getFullX(), fl_HdrFtrShadow::getHdrFtrSectionLayout(), UT_GenericVector< T >::getItemCount(), fp_Column::getLeader(), fl_BlockLayout::getLeftMargin(), fl_DocSectionLayout::getLeftMargin(), fp_CellContainer::getLeftPos(), fp_Run::getLine(), getNormalModeXOffset(), fp_TableContainer::getNthCol(), fp_Page::getNthColumnLeader(), fp_TableContainer::getNumCols(), fl_DocSectionLayout::getNumColumns(), fp_Page::getOwningSection(), fp_FrameContainer::getPage(), fp_Container::getPage(), getPageViewLeftMargin(), getPoint(), fl_BlockLayout::getProperty(), fp_CellContainer::getRightAttach(), fl_BlockLayout::getRightMargin(), fl_DocSectionLayout::getRightMargin(), fp_CellContainer::getRightPos(), fp_ContainerObject::getSectionLayout(), fl_BlockLayout::getTabsCount(), AP_TopRuler::getTabToggleAreaWidth(), fl_BlockLayout::getTextIndent(), fp_CellContainer::getTopAttach(), fl_SectionLayout::getType(), getViewMode(), fp_Page::getWidth(), fp_ContainerObject::getWidth(), fp_VerticalContainer::getWidth(), fp_VerticalContainer::getX(), fp_FrameContainer::getX(), fp_ContainerObject::getX(), iExtra, fp_ContainerObject::isColumnType(), isHdrFtrEdit(), isInFrame(), fl_TableLayout::isInitialLayoutCompleted(), AD_Document::isPieceTableChanging(), m_bPointEOL, PD_Document::m_docPageSize, AP_TopRulerInfo::m_iCells, AP_TopRulerInfo::m_iCurCell, AP_TopRulerInfo::m_iCurrentColumn, AP_TopRulerInfo::m_iDefaultTabInterval, m_iFreePass, AP_TopRulerTableInfo::m_iLeftCellPos, AP_TopRulerTableInfo::m_iLeftSpacing, AP_TopRulerInfo::m_iNumColumns, AP_TopRulerTableInfo::m_iRightCellPos, AP_TopRulerTableInfo::m_iRightSpacing, AP_TopRulerInfo::m_iTabStops, AP_TopRulerInfo::m_mode, AP_TopRulerTableInfo::m_pCell, m_pDoc, m_pEditShadow, AP_TopRulerInfo::m_pfnEnumTabStops, AP_TopRulerInfo::m_pszTabStops, m_pTopRuler, AP_TopRulerInfo::m_pVoidEnumTabStopsData, AP_TopRulerInfo::m_vecFullTable, AP_TopRulerInfo::m_vecTableColInfo, AP_TopRulerInfo::_u::_c::m_xaLeftMargin, AP_TopRulerInfo::_u::_c::m_xaRightMargin, AP_TopRulerInfo::_u::_c::m_xColumnGap, AP_TopRulerInfo::_u::_c::m_xColumnWidth, AP_TopRulerInfo::m_xPageViewMargin, AP_TopRulerInfo::m_xPaperSize, AP_TopRulerInfo::m_xrFirstLineIndent, AP_TopRulerInfo::m_xrLeftIndent, AP_TopRulerInfo::m_xrPoint, AP_TopRulerInfo::m_xrRightIndent, AP_TopRulerInfo::u, UT_ASSERT, UT_convertToLogicalUnits(), UT_return_if_fail, UT_SHOULD_NOT_HAPPEN, UT_String_sprintf(), VIEW_NORMAL, VIEW_WEB, fp_PageSize::Width(), xxx_UT_DEBUGMSG, and AP_TopRulerInfo::~AP_TopRulerInfo().
ViewMode FV_View::getViewMode | ( | void | ) | const [inline] |
Referenced by _abi_widget_set_show_margin(), _draw(), AP_TopRuler::_draw(), AP_TopRuler::_drawBar(), AP_TopRuler::_drawCellProperties(), fp_Page::_drawCropMarks(), fp_ShadowContainer::_drawHdrFtrBoundaries(), AP_TopRuler::_drawTabProperties(), AP_TopRuler::_drawTicks(), fp_CellContainer::_getBrokenRect(), AP_TopRuler::_getFirstPixelInColumn(), _getPageForXY(), _getPageXandYOffset(), AP_TopRuler::_getTabToggleRect(), AP_TopRuler::_getUnitsFromRulerLeft(), fl_TableLayout::_lookupMarginProperties(), fl_FrameLayout::_lookupMarginProperties(), fl_BlockLayout::_lookupMarginProperties(), fl_TableLayout::_lookupProperties(), fl_BlockLayout::_lookupProperties(), _moveInsPtNextPrevLine(), fp_Page::_reformatAnnotations(), fp_Page::_reformatColumns(), fp_Page::_reformatFootnotes(), AP_TopRuler::_xorGuide(), abi_widget_render_page_to_image(), XAP_UnixDialog_Print::BeginPrint(), calculateNumHorizPages(), calculateZoomPercentForPageWidth(), checkViewModeIsPrint(), fp_ShadowContainer::clearScreen(), XAP_UnixFrameImpl::_fe::do_ZoomUpdate(), fp_Page::draw(), fp_FrameContainer::draw(), fp_ShadowContainer::draw(), fp_Line::drawBorders(), fp_FrameContainer::drawBoundaries(), fp_FrameContainer::drawHandles(), getMaxHeight(), getNormalModeXOffset(), fp_VerticalContainer::getOffsets(), getPageViewLeftMargin(), getPageViewSep(), getPageViewTopMargin(), fp_VerticalContainer::getScreenOffsets(), fp_CellContainer::getScreenPositions(), AP_TopRuler::getTabToggleAreaWidth(), getTopRulerInfo(), getVisibleDocumentPagesAndRectangles(), fp_ShadowContainer::layout(), fp_Page::mapXYToPosition(), AP_TopRuler::mouseMotion(), AP_TopRuler::mousePress(), AP_TopRuler::mouseRelease(), AP_TopRuler::notify(), AP_Frame::quickZoom(), fp_Page::redrawDamagedFrames(), AP_TopRuler::scrollRuler(), FL_DocLayout::setDocViewPageSize(), AP_TopRuler::setTableLineDrag(), AP_LeftRuler::setTableLineDrag(), and fp_Page::updateColumnX().
PP_PropertyVector FV_View::getViewPersistentProps | ( | ) | const |
References FV_Order_Logical_LTR, FV_Order_Logical_RTL, and m_eBidiOrder.
Referenced by cmdSave(), and cmdSaveAs().
void FV_View::getVisibleDocumentPagesAndRectangles | ( | UT_GenericVector< UT_Rect * > & | vRect, | |
UT_GenericVector< fp_Page * > & | vPages | |||
) | const |
find out which pages in the document are visible on the screen and calculate the rectangles of their view-ports (the rectangles are relative to the top-left corner of the page, not to the screen the caller must use UT_VECTOR_PURGEALL() on vRect to delete the objects allocated by this function, but NOT on vPages
vRect | -- vector where to store UT_Rect* referring to vieports of pages in vPages | |
vPage | -- vector where to store pointers to currently visible pages |
References UT_GenericVector< T >::addItem(), FL_DocLayout::findPage(), fl_DocSectionLayout::getBottomMargin(), FL_DocLayout::getFirstPage(), fp_Page::getHeight(), fp_Page::getNext(), fp_Page::getOwningSection(), getPageViewLeftMargin(), getPageViewSep(), getPageViewTopMargin(), fl_DocSectionLayout::getTopMargin(), getViewMode(), fp_Page::getWidth(), AV_View::getWindowHeight(), AV_View::getWindowWidth(), m_pLayout, AV_View::m_xScrollOffset, AV_View::m_yScrollOffset, UT_ASSERT, UT_MIN, UT_SHOULD_NOT_HAPPEN, VIEW_PRINT, and xxx_UT_DEBUGMSG.
Referenced by fl_ContainerLayout::isOnScreen().
const FV_VisualDragText* FV_View::getVisualText | ( | void | ) | const [inline] |
Referenced by Defun(), Defun1(), and sActualVisualDrag().
FV_VisualDragText* FV_View::getVisualText | ( | void | ) | [inline] |
References FL_DocLayout::findPage(), FL_DocLayout::getFirstPage(), FL_DocLayout::getFirstSection(), FL_DocLayout::getNthPage(), getNumHorizPages(), fl_DocSectionLayout::getWidth(), fp_Page::getWidth(), getWidthPrevPagesInRow(), m_pLayout, and rtlPages().
Referenced by _getMouseContext(), _getPageForXY(), calculateNumHorizPages(), and fp_CellContainer::drawBroken().
References getHorizPageSpacing(), fp_Page::getNext(), FL_DocLayout::getNthPage(), getNumHorizPages(), fp_Page::getWidth(), m_pLayout, and rtlPages().
Referenced by _draw(), AP_TopRuler::_draw(), AP_TopRuler::_drawCellGap(), AP_TopRuler::_drawCellProperties(), AP_TopRuler::_drawTabProperties(), AP_TopRuler::_drawTicks(), _findPositionCoords(), AP_TopRuler::_getCellMarkerRect(), AP_TopRuler::_getColumnMarkerRect(), AP_TopRuler::_getColumnMarkerXRightEnd(), AP_TopRuler::_getMarginMarkerRects(), _getPageForXY(), _getPageXandYOffset(), AP_TopRuler::_getParagraphMarkerXCenters(), AP_TopRuler::_getTabStopXAnchor(), AP_TopRuler::_getTabZoneRect(), _moveInsPtNextPrevLine(), AP_TopRuler::_setTabStops(), fp_Run::draw(), getWidthPagesInRow(), AP_TopRuler::isMouseOverTab(), AP_TopRuler::mouseMotion(), AP_TopRuler::mousePress(), AP_TopRuler::mouseRelease(), and AP_TopRuler::setTableLineDrag().
bool FV_View::gotoTarget | ( | AP_JumpTarget | type, | |
const UT_UCSChar * | data | |||
) |
References FREEP, s, UT_calloc(), UT_return_val_if_fail, UT_UCS4_strlen(), and UT_UCS4String::utf8_str().
Referenced by abi_widget_set_current_page(), cmdHyperlinkJump(), AP_Win32Dialog_Goto::GoTo(), AP_Dialog_Goto::performGoto(), AP_Dialog_Goto::performGotoNext(), and AP_Dialog_Goto::performGotoPrev().
bool FV_View::gotoTarget | ( | AP_JumpTarget | type, | |
const char * | numberString | |||
) |
References _clearSelection(), _ensureInsertionPointOnScreen(), _getCurrentPage(), _moveInsPtNextPrevLine(), _moveInsPtNthPage(), _moveInsPtToPage(), XAP_Dialog_MessageBox::a_OK, AP_JUMPTARGET_ANNOTATION, AP_JUMPTARGET_BOOKMARK, AP_JUMPTARGET_LINE, AP_JUMPTARGET_PAGE, AP_JUMPTARGET_XMLID, AV_CHG_HDRFTR, AV_CHG_MOTION, XAP_Dialog_MessageBox::b_O, getAnnotationLayout(), AV_View::getApp(), fp_Line::getBlock(), fp_Run::getBlockOffset(), fp_BookmarkRun::getBookmarkedDocPosition(), getDocument(), PD_Document::getDocumentRDF(), fl_ContainerLayout::getFirstContainer(), fl_BlockLayout::getFirstRun(), fp_Line::getFirstRun(), FL_DocLayout::getFirstSection(), fp_BookmarkRun::getName(), fl_ContainerLayout::getNext(), fp_Container::getNext(), fp_Page::getNext(), fl_ContainerLayout::getNextBlockInDocument(), fp_Run::getNextRun(), AV_View::getParentData(), fl_BlockLayout::getPosition(), fp_Page::getPrev(), fp_Run::getType(), PD_Document::isBookmarkUnique(), isSelectionEmpty(), m_pDoc, m_pLayout, moveInsPtTo(), notifyListeners(), XAP_App::openURL(), selectAnnotation(), selectRange(), XAP_Frame::showMessageBox(), UT_ASSERT, UT_DEBUGMSG, UT_go_path_is_uri(), and UT_return_val_if_fail.
void FV_View::incremenetBubbleBlockerCount | ( | ) | [protected] |
References m_bubbleBlockerCount, and UT_DEBUGMSG.
Referenced by FV_View_BubbleBlocker::FV_View_BubbleBlocker(), and FV_View_BubbleBlocker::operator=().
bool FV_View::insertAnnotation | ( | UT_sint32 | iAnnotation, | |
const std::string & | sDescr, | |||
const std::string & | sAuthor, | |||
const std::string & | sTitle, | |||
bool | bCopy | |||
) |
Insert annotation number iAnnotation across the current selection. The text of the annotation is contained in pStr. If pstr is NULL default text is inserted. If bCopy is true, the current selection is copied and placed into an annotation.
References _clearSelection(), _findBlockAtPosition(), _generalUpdate(), _getHyperlinkInRange(), _pasteFromLocalTo(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), PD_Document::beginUserAtomicGlob(), copyToLocal(), PD_Document::disableListUpdates(), PD_Document::enableListUpdates(), PD_Document::endUserAtomicGlob(), getAttributes(), getBlocksInSelection(), getClosestAnnotation(), fl_ContainerLayout::getContainerType(), getHyperLinkRun(), UT_GenericVector< T >::getItemCount(), fl_BlockLayout::getLength(), UT_GenericVector< T >::getNthItem(), getPoint(), fl_BlockLayout::getPosition(), fl_ContainerLayout::getPosition(), fl_BlockLayout::getSectionLayout(), FV_Selection::getSelectionAnchor(), PD_Document::insertObject(), PD_Document::insertSpan(), PD_Document::insertStrux(), FV_FrameEdit::isActive(), PD_Document::isTOCAtPos(), UT_UCS4String::length(), m_FrameEdit, m_pDoc, m_Selection, PTO_Annotation, PTX_Block, PTX_EndAnnotation, PTX_SectionAnnotation, selectAnnotation(), setPoint(), time, UT_UCS4String::ucs4_str(), and UT_std_string_sprintf().
Referenced by insertAnnotation().
fl_AnnotationLayout * FV_View::insertAnnotationDescription | ( | UT_uint32 | aID, | |
AP_Dialog_Annotation * | pDialog | |||
) |
References cmdCharInsert(), cmdSelect(), getAnnotationLayout(), fp_Run::getBlock(), fp_Run::getBlockOffset(), getDocument(), getHyperLinkRun(), fp_Run::getNextRun(), PD_Document::getNextStruxOfType(), fl_BlockLayout::getPosition(), fl_Layout::getStruxDocHandle(), PD_Document::getStruxPosition(), fp_Run::getType(), PTX_EndAnnotation, and UT_return_val_if_fail.
Referenced by cmdEditAnnotationWithDialog(), and insertAnnotation().
bool FV_View::insertFootnote | ( | bool | bFootnote | ) |
References _deleteSelection(), _ensureInsertionPointOnScreen(), _findBlockAtPosition(), _findPositionCoords(), _fixInsertionPointCoords(), _generalUpdate(), _insertField(), _makePointLegal(), _resetSelection(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), _setPoint(), _updateInsertionPoint(), AV_CHG_ALL, AV_CHG_MOTION, PD_Document::beginUserAtomicGlob(), PD_Document::changeSpanFmt(), PD_Document::changeStruxFmt(), PP_AttrProp::createExactly(), UT_UniqueId::Endnote, PD_Document::endUserAtomicGlob(), UT_UniqueId::Footnote, PP_AttrProp::getAttributes(), getAttributes(), getAttrPropForPoint(), fl_ContainerLayout::getContainerType(), fl_BlockLayout::getFirstRun(), getHyperLinkRun(), fp_Run::getNextRun(), getPoint(), fl_ContainerLayout::getPosition(), PP_AttrProp::getProperties(), fl_BlockLayout::getSectionLayout(), fp_Run::getType(), PD_Document::getUID(), UT_UniqueId::HeaderFtr, PD_Document::insertFmtMark(), insertFootnoteSection(), PD_Document::insertSpan(), FV_FrameEdit::isActive(), isSelectionEmpty(), PD_Document::isTOCAtPos(), m_FrameEdit, m_pDoc, notifyListeners(), PTC_AddFmt, PTC_RemoveFmt, PTX_Block, fp_Run::recalcWidth(), fl_BlockLayout::setNeedsReformat(), setPoint(), FV_FrameEdit::setPointInside(), setScreenUpdateOnGeneralUpdate(), UT_ASSERT, UT_DEBUGMSG, UT_return_val_if_fail, UT_std_string_sprintf(), and xxx_UT_DEBUGMSG.
Referenced by Defun1().
bool FV_View::insertFootnoteSection | ( | bool | bFootnote, | |
const gchar * | enpid | |||
) |
References _generalUpdate(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), _setPoint(), _updateInsertionPoint(), PD_Document::beginUserAtomicGlob(), PD_Document::disableListUpdates(), PD_Document::enableListUpdates(), PD_Document::endUserAtomicGlob(), getPoint(), PD_Document::insertStrux(), m_pDoc, PTX_Block, PTX_EndEndnote, PTX_EndFootnote, PTX_SectionEndnote, PTX_SectionFootnote, PD_Document::updateDirtyLists(), and UT_DEBUGMSG.
Referenced by insertFootnote().
void FV_View::insertHeaderFooter | ( | HdrFtrType | hfType | ) |
References _clearSelection(), _ensureInsertionPointOnScreen(), _fixInsertionPointCoords(), _generalUpdate(), AV_CHG_HDRFTR, AV_CHG_MOTION, PD_Document::beginUserAtomicGlob(), clearCursorWait(), clearHdrFtrEdit(), PD_Document::disableListUpdates(), PD_Document::enableListUpdates(), PD_Document::endUserAtomicGlob(), FL_HDRFTR_FOOTER, FL_HDRFTR_HEADER, getCurrentPageNumber(), fp_Page::getHdrFtrP(), FL_DocLayout::getNthPage(), fp_ShadowContainer::getShadow(), isHdrFtrEdit(), isSelectionEmpty(), m_iPieceTableState, m_pDoc, m_pLayout, notifyListeners(), PD_Document::notifyPieceTableChangeEnd(), PD_Document::notifyPieceTableChangeStart(), setCursorWait(), setHdrFtrEdit(), PD_Document::updateDirtyLists(), FL_DocLayout::updateLayout(), UT_ASSERT, UT_return_if_fail, and UT_SHOULD_NOT_HAPPEN.
Referenced by _cmdEditHdrFtr(), _insertSectionBreak(), createThisHdrFtr(), and insertPageNum().
bool FV_View::insertHeaderFooter | ( | const PP_PropertyVector & | props, | |
HdrFtrType | hfType, | |||
fl_DocSectionLayout * | pDSL = NULL | |||
) |
References _getDocPos(), _setPoint(), PD_Document::changeStruxFmt(), 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, FV_DOCPOS_EOD, getCurrentPage(), fl_ContainerLayout::getNextBlockInDocument(), fp_Page::getOwningSection(), getPoint(), fl_BlockLayout::getPosition(), PD_Document::getUID(), UT_UniqueId::HeaderFtr, PD_Document::insertStrux(), m_pDoc, PD_SIGNAL_REFORMAT_LAYOUT, PTC_AddFmt, PTX_Block, PTX_Section, PTX_SectionHdrFtr, setPoint(), PD_Document::signalListeners(), UT_return_val_if_fail, and UT_std_string_sprintf().
bool FV_View::insertPageNum | ( | const PP_PropertyVector & | props, | |
HdrFtrType | hfType | |||
) |
References _generalUpdate(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), _updateInsertionPoint(), PD_Document::beginUserAtomicGlob(), PD_Document::disableListUpdates(), PD_Document::enableListUpdates(), PD_Document::endUserAtomicGlob(), getPoint(), insertHeaderFooter(), PD_Document::insertObject(), m_pDoc, m_pLayout, moveInsPtTo(), PTO_Field, PD_Document::updateDirtyLists(), and FL_DocLayout::updateLayout().
Referenced by processPageNumber().
bool FV_View::insertParaBreakIfNeededAtPos | ( | PT_DocPosition | pos | ) |
Insrts a block and returns true if the point is at the end of a section or document and the previous strux is not a block
References PD_Document::insertStrux(), isParaBreakNeededAtPos(), m_pDoc, and PTX_Block.
Referenced by _charInsert(), _doPaste(), _insertField(), cmdInsertPositionedGraphic(), cmdInsertTOC(), convertInLineToPositioned(), FL_DocLayout::loadPendingObjects(), FV_FrameEdit::mouseRelease(), and FL_DocLayout::relocateFrame().
void FV_View::insertParagraphBreak | ( | void | ) |
References _deleteSelection(), _ensureInsertionPointOnScreen(), _findBlockAtPosition(), _fixInsertionPointCoords(), _generalUpdate(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), _setPoint(), AV_CHG_ALL, AV_CHG_MOTION, PD_Document::beginUserAtomicGlob(), FL_DocLayout::considerPendingSmartQuoteCandidate(), fl_BlockLayout::deleteListLabel(), PD_Document::disableListUpdates(), PD_Document::enableListUpdates(), PD_Document::endUserAtomicGlob(), gchar, PD_Style::getAttribute(), getCurrentBlock(), getEditableBounds(), PD_Style::getFollowedBy(), fl_BlockLayout::getListTypeFromStyle(), getPoint(), fl_ContainerLayout::getPrev(), PD_Style::getProperty(), fl_Layout::getStruxDocHandle(), PD_Document::getStyle(), getStyle(), PD_Document::insertStrux(), FV_FrameEdit::isActive(), isCurrentListBlockEmpty(), isPointBeforeListLabel(), isSelectionEmpty(), m_bInsertAtTablePending, m_FrameEdit, m_iPosAtTable, m_pDoc, m_pLayout, NOT_A_LIST, notifyListeners(), PT_NAME_ATTRIBUTE_NAME, PTX_Block, setPoint(), FV_FrameEdit::setPointInside(), setStyle(), STD_DOUBLE_BUFFERING_FOR_THIS_FUNCTION, PD_Document::StopList(), style, PD_Document::updateDirtyLists(), and UT_ASSERT.
Referenced by AP_Dialog_Styles::_populateAbiPreview(), cmdCharInsert(), cmdInsertTOC(), cmdTableToText(), and Defun1().
void FV_View::insertParagraphBreaknoListUpdate | ( | void | ) |
void FV_View::insertSectionBreak | ( | void | ) |
void FV_View::insertSectionBreak | ( | BreakSectionType | type | ) |
References _insertSectionBreak(), AV_CHG_ALL, PD_Document::beginUserAtomicGlob(), BreakSectionContinuous, BreakSectionEvenPage, BreakSectionNextPage, BreakSectionOddPage, cmdCharInsert(), PD_Document::endUserAtomicGlob(), getCurrentPageNumber(), m_iPieceTableState, m_pDoc, notifyListeners(), PD_Document::notifyPieceTableChangeEnd(), PD_Document::notifyPieceTableChangeStart(), UT_ASSERT, and UT_SHOULD_NOT_HAPPEN.
Referenced by Defun1(), and s_doBreakDlg().
void FV_View::insertSymbol | ( | UT_UCSChar | c, | |
const gchar * | symfont | |||
) |
References _deleteSelection(), _generalUpdate(), PD_Document::beginUserAtomicGlob(), cmdCharInsert(), PD_Document::endUserAtomicGlob(), FL_DocLayout::findBlockAtPosition(), fl_BlockLayout::findPointCoords(), getCharFormat(), getPoint(), fp_Run::getPrevRun(), FV_FrameEdit::isActive(), isSelectionEmpty(), m_FrameEdit, m_pDoc, m_pLayout, fp_Run::markAsDirty(), PP_getAttribute(), setCharFormat(), and FV_FrameEdit::setPointInside().
bool FV_View::isActive | ( | void | ) | const [virtual] |
Implements AV_View.
References AV_View::couldBeActive(), AV_View::getApp(), XAP_Frame::getCurrentView(), XAP_App::getLastFocussedFrame(), AD_Document::getMyUUIDString(), m_pDoc, and m_sDocUUID.
Referenced by fl_BlockLayout::_createListLabel(), 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_DocListener::change(), fl_BlockLayout::doclistener_changeFmtMark(), fl_BlockLayout::doclistener_deleteFmtMark(), fl_BlockLayout::doclistener_deleteObject(), fl_BlockLayout::doclistener_deleteSpan(), fl_BlockLayout::doclistener_deleteStrux(), fl_BlockLayout::doclistener_insertBlock(), fl_BlockLayout::doclistener_insertFirstBlock(), fl_BlockLayout::doclistener_insertFmtMark(), fl_BlockLayout::doclistener_insertFrame(), fl_BlockLayout::doclistener_insertObject(), fl_BlockLayout::doclistener_insertSection(), fl_BlockLayout::doclistener_insertSpan(), fl_BlockLayout::doclistener_insertTable(), fl_FrameLayout::insertBlockAfter(), and fl_BlockLayout::StopListInBlock().
bool FV_View::isAnnotationPreviewActive | ( | void | ) | const [inline] |
bool FV_View::isCurrentListBlockEmpty | ( | void | ) | const |
bool FV_View::isDocumentPresent | ( | void | ) | const [virtual] |
Returns true if there is some Layout classes defined. Not true at startup.
Implements AV_View.
References getLayout().
bool FV_View::isFooterOnPage | ( | void | ) | const |
This function returns true if there is a footer on the current page.
References FL_HDRFTR_FOOTER, getCurrentPage(), and fp_Page::getHdrFtrP().
bool FV_View::isFrameSelected | ( | void | ) | const |
References FV_FrameEdit::isActive(), and m_FrameEdit.
Referenced by Defun1().
bool FV_View::isGrammarLoaded | ( | void | ) | const |
Returns true if the abigrammar plugin is loaded
References XAP_App::getPlugin(), and AV_View::m_pApp.
bool FV_View::isHdrFtrEdit | ( | void | ) | const |
Returns true if we're currently editting a HdrFtr section.
References m_bEditHdrFtr.
Referenced by _charMotion(), _cmdEditHdrFtr(), FV_VisualDragText::_mouseDrag(), _moveInsPtNextPrevLine(), _moveInsPtNextPrevScreen(), IE_Imp_RTF::ApplyParagraphAttributes(), cmdInsertTable(), cmdRemoveHdrFtr(), cmdSelect(), fl_HdrFtrSectionLayout::collapse(), FL_DocLayout::considerSmartQuoteCandidateAt(), createThisHdrFtr(), Defun1(), fl_BlockLayout::doclistener_deleteStrux(), fp_ShadowContainer::draw(), FL_DocLayout::findBlockAtPosition(), FL_DocLayout::findBlockAtPositionReverse(), getLeftRulerInfo(), getTopRulerInfo(), IE_Imp_RTF::HandleStarKeyword(), insertHeaderFooter(), AP_LeftRuler::mouseMotion(), AP_LeftRuler::mouseRelease(), processPageNumber(), s_doBreakDlg(), s_doStylesDlg(), FL_DocLayout::setDocViewPageSize(), setFrameFormat(), setSectionFormat(), setStyleAtPos(), and IE_Imp_RTF::TranslateKeywordID().
bool FV_View::isHeaderOnPage | ( | void | ) | const |
This function returns true if there is a header on the current page.
References FL_HDRFTR_HEADER, getCurrentPage(), and fp_Page::getHdrFtrP().
bool FV_View::isImageAtStrux | ( | PT_DocPosition | ipos1, | |
PTStruxType | iStrux | |||
) |
bool FV_View::isImageSelected | ( | void | ) | const |
Check that an image is currently selected
References getSelectedImage().
bool FV_View::isInAnnotation | ( | PT_DocPosition | pos | ) | const |
Returns true if the requested position is inside a endnote.
References getClosestAnnotation(), fl_EmbedLayout::getDocPosition(), fl_EmbedLayout::getLength(), and fl_EmbedLayout::isEndFootnoteIn().
bool FV_View::isInAnnotation | ( | void | ) | const |
Returns true if the current insertion point is inside a annotation.
References getPoint().
bool FV_View::isInDocSection | ( | PT_DocPosition | pos = 0 |
) | const |
Returns true if the suppiled position is not is a sepecial structure like a frame or table or whatever.
pos defaults to 0. Ifpos == 0, I assume you actually what the values of getPoint()
References _findBlockAtPosition(), fl_ContainerLayout::getContainerType(), getPoint(), and fl_ContainerLayout::myContainingLayout().
Referenced by IE_Imp_RTF::ApplySectionAttributes().
bool FV_View::isInEndnote | ( | PT_DocPosition | pos | ) | const |
Returns true if the requested position is inside a endnote.
References getClosestEndnote(), fl_EmbedLayout::getDocPosition(), fl_EmbedLayout::getLength(), and fl_EmbedLayout::isEndFootnoteIn().
Referenced by IE_Imp_RTF::HandleStarKeyword(), and IE_Imp_RTF::TranslateKeywordID().
bool FV_View::isInEndnote | ( | void | ) | const |
Returns true if the current insertion point is inside a footnote.
References getPoint().
Referenced by _deleteSelection(), cmdCharDelete(), cmdInsertHyperlink(), and getCmdInsertRangeVariables().
bool FV_View::isInFootnote | ( | PT_DocPosition | pos | ) | const |
Returns true if the requested position is inside a footnote.
References getClosestFootnote(), fl_EmbedLayout::getDocPosition(), fl_EmbedLayout::getLength(), and fl_EmbedLayout::isEndFootnoteIn().
Referenced by IE_Imp_RTF::HandleStarKeyword(), and IE_Imp_RTF::TranslateKeywordID().
bool FV_View::isInFootnote | ( | void | ) | const |
Returns true if the current insertion point is inside a footnote.
References getPoint().
Referenced by _charMotion(), _deleteSelection(), cmdCharDelete(), cmdInsertHyperlink(), and getCmdInsertRangeVariables().
bool FV_View::isInFrame | ( | PT_DocPosition | pos | ) | const |
Returns true if the supplied Doc Position is inside a frame.
References _findBlockAtPosition(), fl_ContainerLayout::getContainerType(), PD_Document::isEndFrameAtPos(), PD_Document::isFrameAtPos(), m_pDoc, and fl_ContainerLayout::myContainingLayout().
Referenced by IE_Imp_RTF::_appendField(), _deleteSelection(), AP_LeftRuler::_getCellMarkerRects(), _getMouseContext(), cmdCharDelete(), cmdSelect(), Defun1(), fp_Page::getContainingTable(), getLeftRulerInfo(), getTopRulerInfo(), IE_Imp_RTF::insertStrux(), FV_VisualDragText::mouseRelease(), AP_TopRuler::mouseRelease(), AP_LeftRuler::mouseRelease(), AP_UnixDialog_FormatFrame::notifyActiveFrame(), and AP_Dialog_FormatFrame::setCurFrameProps().
bool FV_View::isInHdrFtr | ( | PT_DocPosition | pos | ) | const |
bool FV_View::isInTable | ( | PT_DocPosition | pos | ) | const |
Returns true if the point supplied is inside a Table.
References FL_DocLayout::findBlockAtPosition(), fp_Container::getContainer(), fl_ContainerLayout::getContainerType(), fp_ContainerObject::getContainerType(), fl_BlockLayout::getEnclosingBlock(), PD_Document::getEndTableStruxFromTableSDH(), FL_DocLayout::getLID(), fl_ContainerLayout::getNext(), PD_Document::getNthFmtHandle(), pf_Frag::getPos(), fl_BlockLayout::getPosition(), fl_ContainerLayout::getPrev(), fl_Layout::getStruxDocHandle(), PD_Document::getStruxOfTypeFromPosition(), PD_Document::getStruxPosition(), PD_Document::isCellAtPos(), PD_Document::isTableAtPos(), m_pDoc, m_pLayout, fl_ContainerLayout::myContainingLayout(), PTX_SectionTable, UT_ASSERT, UT_return_val_if_fail, and xxx_UT_DEBUGMSG.
bool FV_View::isInTable | ( | ) | const |
returns true if the current insertion point is inside a table.
References getPoint(), getSelectionAnchor(), and isSelectionEmpty().
Referenced by _deleteSelection(), _extSelToPos(), _getMouseContext(), _insertField(), fp_FieldTableSumCols::calculateValue(), fp_FieldTableSumRows::calculateValue(), cmdAdvanceNextPrevCell(), cmdInsertRow(), cmdInsertTable(), cmdPaste(), cmdSelectColumn(), cmdSplitCells(), Defun1(), getCellAtPos(), getCellFormat(), IE_Imp_RTF::HandleStarKeyword(), IE_Imp_RTF::insertStrux(), AP_TopRuler::mouseRelease(), AP_LeftRuler::mouseRelease(), Stateful_ViewListener::notify(), s_doBorderShadingDlg(), s_doFormatTableDlg(), AP_Dialog_SplitCells::setAllSensitivities(), AP_Dialog_MergeCells::setAllSensitivities(), AP_Dialog_FormatTable::setAllSensitivities(), and AP_Dialog_FormatTable::setCurCellProps().
References _getPageForXY(), and fp_Page::mapXYToPosition().
Referenced by _getMouseContext().
bool FV_View::isMarkRevisions | ( | ) | const |
References AD_Document::isMarkRevisions(), and m_pDoc.
Referenced by _deleteCellAt(), _deleteSelection(), cmdCharDelete(), Defun1(), FV_FrameEdit::deleteFrame(), delTo(), fp_Run::draw(), fp_Run::getFGColor(), getRevisionLevel(), and toggleCase().
bool FV_View::isMathLoaded | ( | void | ) | const |
Returns true if the abimathview plugin is loaded
References XAP_App::getPlugin(), and AV_View::m_pApp.
bool FV_View::isMathSelected | ( | UT_sint32 | x, | |
UT_sint32 | y, | |||
PT_DocPosition & | pos | |||
) | const |
Returns true if the (x,y) location on the screen is over a selected fp_MathRun.
References _findPositionCoords(), _getPageForXY(), getPoint(), getSelectionAnchor(), fp_Run::getType(), isSelectionEmpty(), m_bPointEOL, and fp_Page::mapXYToPosition().
bool FV_View::isNumberedHeadingHere | ( | fl_BlockLayout * | pBlock | ) | const |
This method returns true if the block presented has a numbered heading defined or in it's ancestray.
References gchar, fl_ContainerLayout::getAP(), PP_AttrProp::getAttribute(), PD_Style::getBasedOn(), PD_Style::getName(), PD_Document::getStyle(), m_pDoc, and PT_STYLE_ATTRIBUTE_NAME.
Referenced by processSelectedBlocks().
bool FV_View::isParaBreakNeededAtPos | ( | PT_DocPosition | pos | ) | const |
Returns true if the point at at the end of a section or document and the previous strux is not a block
References getEditableBounds(), PD_Document::getFragFromPosition(), pf_Frag::getPos(), pf_Frag::getPrev(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), PD_Document::isEndFrameAtPos(), PD_Document::isEndTableAtPos(), PD_Document::isHdrFtrAtPos(), PD_Document::isSectionAtPos(), and m_pDoc.
Referenced by insertParaBreakIfNeededAtPos().
bool FV_View::isPointBeforeListLabel | ( | void | ) | const |
bool FV_View::isPointLegal | ( | PT_DocPosition | pos | ) | const |
Returns true if the point is located with a block so stuff can be typed or inserted.
References _findBlockAtPosition(), fl_ContainerLayout::canContainPoint(), getEditableBounds(), fl_BlockLayout::getLength(), PD_Document::getNextStrux(), fl_BlockLayout::getPosition(), PD_Document::getStruxOfTypeFromPosition(), PD_Document::getStruxPosition(), PD_Document::getStruxType(), PD_Document::isEndFootnoteAtPos(), PD_Document::isEndFrameAtPos(), PD_Document::isEndTableAtPos(), PD_Document::isFootnoteAtPos(), PD_Document::isFrameAtPos(), PD_Document::isTOCAtPos(), m_pDoc, and PTX_Block.
Referenced by FV_FrameEdit::mouseRelease().
bool FV_View::isPointLegal | ( | void | ) | const |
References getPoint().
Referenced by _charInsert(), _charMotion(), _deleteSelection(), _insertField(), _insertGraphic(), _makePointLegal(), cmdCharMotion(), cmdInsertPositionedGraphic(), cmdInsertTOC(), cmdRedo(), cmdTextToTable(), cmdUndo(), convertInLineToPositioned(), convertPositionedToInLine(), moveInsPtTo(), and setCharFormat().
bool FV_View::isPosSelected | ( | PT_DocPosition | pos | ) | const |
Returns true of the point presented is within a selection.
References FV_Selection::isPosSelected(), and m_Selection.
Referenced by _getMouseContext(), getInsertionPointContext(), fl_CellLayout::isCellSelected(), and isXYSelected().
bool FV_View::isPreview | ( | void | ) | const [inline] |
References VIEW_PREVIEW.
Referenced by fl_BlockLayout::_createListLabel(), _draw(), _generalUpdate(), 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_BlockLayout::doclistener_changeFmtMark(), fl_BlockLayout::doclistener_deleteFmtMark(), fl_BlockLayout::doclistener_deleteObject(), fl_BlockLayout::doclistener_deleteSpan(), fl_BlockLayout::doclistener_deleteStrux(), fl_BlockLayout::doclistener_insertBlock(), fl_BlockLayout::doclistener_insertFirstBlock(), fl_BlockLayout::doclistener_insertFmtMark(), fl_BlockLayout::doclistener_insertFrame(), fl_BlockLayout::doclistener_insertObject(), fl_BlockLayout::doclistener_insertSection(), fl_BlockLayout::doclistener_insertSpan(), fl_BlockLayout::doclistener_insertTable(), getPageViewLeftMargin(), getPageViewSep(), getPageViewTopMargin(), fl_FrameLayout::insertBlockAfter(), notifyListeners(), and fl_BlockLayout::StopListInBlock().
bool FV_View::isSelectAll | ( | void | ) | const [inline] |
Referenced by FV_VisualDragText::_mouseDrag().
bool FV_View::isSelectionEmpty | ( | void | ) | const [virtual] |
Implements AV_View.
References GR_Graphics::allCarets(), AllCarets::disable(), getPoint(), FV_Selection::getSelectionAnchor(), getSelectionAnchor(), FV_Selection::getSelectionLeftAnchor(), FV_Selection::getSelectionMode(), FV_FrameEdit::isActive(), FV_FrameEdit::isImageWrapper(), FV_Selection::isSelected(), m_FrameEdit, m_pG, and m_Selection.
Referenced by _charInsert(), _clearSelection(), _cmdEditHdrFtr(), _deleteHyperlink(), _deleteSelection(), _deleteXMLID(), _doPaste(), _drawSelection(), _extSelToPos(), _findReplace(), _findReplaceReverse(), _fixInsertionPointAfterRevision(), _getMouseContext(), _insertField(), _insertSectionBreak(), _moveToSelectionEnd(), AP_Win32Dialog_Replace::_onCommand(), AP_Frame::_replaceView(), _setPoint(), _updateInsertionPoint(), _updateSelectionHandles(), abi_widget_find_next(), abi_widget_get_selection(), AbiGoogle_invoke(), AiksaurusABI_invoke(), BabelFish_invoke(), cmdAcceptRejectRevision(), cmdCharDelete(), FL_SelectionPreserver::cmdCharInsert(), cmdCharMotion(), cmdCopy(), cmdCut(), cmdDeleteCell(), cmdDeleteCol(), cmdDeleteRow(), cmdDeleteTable(), cmdFindRevision(), cmdInsertCol(), cmdInsertEmbed(), cmdInsertGraphic(), cmdInsertHyperlink(), cmdInsertLatexMath(), cmdInsertMathML(), cmdInsertPositionedGraphic(), cmdInsertRow(), cmdInsertTable(), cmdInsertTOC(), cmdPasteSelectionAt(), cmdRedo(), cmdRemoveHdrFtr(), cmdSelectColumn(), cmdSelectNoNotify(), cmdSplitCells(), cmdTableToText(), cmdTextToTable(), cmdUndo(), cmdUpdateEmbed(), AP_UnixApp::copyToClipboard(), countWords(), createThisHdrFtr(), Defun1(), extSelHorizontal(), extSelNextPrevLine(), extSelNextPrevPage(), extSelNextPrevScreen(), extSelTo(), extSelToXYword(), findNext(), findPrev(), findReplace(), findReplaceReverse(), FL_SelectionPreserver::FL_SelectionPreserver(), focusChange(), FreeTranslation_invoke(), getAllAttrProp(), getAttributes(), getBlockFormat(), getBlocksInSelection(), getCharFormat(), getCmdInsertRangeVariables(), AP_UnixApp::getCurrentSelection(), getNumRowsInSelection(), getSectionFormat(), getSelectedImage(), getSelectedObject(), getSelectionText(), getStyle(), gotoTarget(), HyperLinkOK(), insertFootnote(), insertHeaderFooter(), insertParagraphBreak(), insertParagraphBreaknoListUpdate(), insertSymbol(), isInTable(), isMathSelected(), isXYSelected(), FV_VisualInlineImage::mouseCopy(), moveInsPtTo(), Stateful_ViewListener::notify(), notifyListeners(), pasteFromLocalTo(), FV_Selection::pasteRowOrCol(), populateThisHdrFtr(), processSelectedBlocks(), queryCharFormat(), removeThisHdrFtr(), AP_Dialog_Spell::runModal(), s_doBookmarkDlg(), s_doFindOrFindReplaceDlg(), s_doFontDlg(), s_doHyperlinkDlg(), s_doToggleCase(), setBlockFormat(), setCellFormat(), setCharFormat(), AP_Dialog_InsertHyperlink::setDoc(), setFrameFormat(), setSectionFormat(), setStyleAtPos(), setTableFormat(), SetupSavePieceTableState(), swapSelectionOrientation(), toggleCase(), URLDict_invoke(), warpInsPtNextPrevLine(), warpInsPtNextPrevPage(), warpInsPtNextPrevScreen(), warpInsPtToXY(), Wikipedia_invoke(), and AP_Dialog_Spell::~AP_Dialog_Spell().
bool FV_View::isShowRevisions | ( | ) | const [inline] |
Referenced by fp_EndOfParagraphRun::_draw(), _removeThisHdrFtr(), fp_FieldTableSumCols::calculateValue(), fp_FieldTableSumRows::calculateValue(), cmdMergeCells(), cmdSelectColumn(), cmdSplitCells(), cmdTableToText(), cmdTextToTable(), Defun1(), fp_Run::draw(), findCellPosAt(), fl_AutoNum::fixHierarchy(), fl_ContainerLayout::getAP(), getCellLineStyle(), getCellParams(), getCellProperty(), fp_Run::getFGColor(), fp_Run::getSpanAP(), fl_ContainerLayout::getSpanAP(), isImageAtStrux(), FV_Selection::pasteRowOrCol(), and setCellFormat().
bool FV_View::isTabListAheadPoint | ( | void | ) | const |
References _findPositionCoords(), fp_FieldRun::getFieldType(), fp_Run::getNextRun(), getPoint(), and fp_Run::getType().
Referenced by _charInsert(), _deleteSelection(), and cmdCharDelete().
bool FV_View::isTabListBehindPoint | ( | UT_sint32 & | iNumToDelete | ) | const |
References _findPositionCoords(), getEditableBounds(), fp_FieldRun::getFieldType(), fp_Run::getLength(), getPoint(), fp_Run::getPrevRun(), fp_Run::getType(), fl_BlockLayout::isListItem(), and UT_ASSERT.
Referenced by _charInsert(), and cmdCharDelete().
bool FV_View::isTOCSelected | ( | void | ) | const |
Returns true if a TOC is selected.
References FV_Selection::getSelectionMode(), and m_Selection.
Referenced by AP_Dialog_FormatTOC::Apply(), cmdInsertBookmark(), cmdInsertHyperlink(), cmdInsertXMLID(), AP_Dialog_FormatTOC::fillTOCPropsFromDoc(), HyperLinkOK(), and AP_Dialog_FormatTOC::updateDialog().
References _getPageForXY(), fp_Page::getWidth(), isPosSelected(), isSelectionEmpty(), and fp_Page::mapXYToPosition().
Referenced by s_doContextMenu().
void FV_View::killAnnotationPreview | ( | ) |
References AP_DIALOG_ID_ANNOTATION_PREVIEW, XAP_Dialog_Modeless::destroy(), XAP_Frame::getDialogFactory(), AV_View::getParentData(), XAP_DialogFactory::releaseDialog(), XAP_DialogFactory::requestDialog(), setAnnotationPreviewActive(), UT_ASSERT, and UT_DEBUGMSG.
Referenced by cmdEditAnnotationWithDialog(), Defun(), getBubbleBlocker(), getMouseContext(), s_doRDFEditorDlg(), and s_doRDFQueryDlg().
void FV_View::killBlink | ( | void | ) |
References GR_Graphics::allCarets(), m_pG, and AllCarets::setBlink().
PT_DocPosition FV_View::mapDocPos | ( | FV_DocPos | dp | ) |
References _getDocPos().
PT_DocPosition FV_View::mapDocPosSimple | ( | FV_DocPos | dp | ) |
References _getDocPos().
Referenced by XAP_UnixFrameImpl::_imRetrieveSurrounding_cb().
void FV_View::markSavedPositionAsNeeded | ( | void | ) |
This method tells the undo to use the remembered position.
References m_bNeedSavedPosition.
void FV_View::moveInsPtTo | ( | PT_DocPosition | dp | ) |
References _clearIfAtFmtMark(), _ensureInsertionPointOnScreen(), _makePointLegal(), _setPoint(), and getPoint().
void FV_View::moveInsPtTo | ( | FV_DocPos | dp, | |
bool | bClearSelection = true | |||
) |
References _clearIfAtFmtMark(), _clearSelection(), _ensureInsertionPointOnScreen(), _getDocPos(), _makePointLegal(), _setPoint(), AV_CHG_MOTION, FV_DOCPOS_BOD, FV_DOCPOS_EOD, FV_DOCPOS_EOL, getLayout(), getPoint(), PD_Document::isEndFrameAtPos(), PD_Document::isHdrFtrAtPos(), isPointLegal(), isSelectionEmpty(), m_pDoc, and notifyListeners().
Referenced by XAP_UnixFrameImpl::_imCommit(), XAP_UnixFrameImpl::_imDeleteSurrounding_cb(), XAP_UnixFrameImpl::_imPreeditChanged_cb(), XAP_UnixFrameImpl::_imPreeditEnd_cb(), _moveInsPtNextPrevLine(), _moveInsPtNextPrevPage(), _moveInsPtNextPrevScreen(), AP_Win32Dialog_Replace::_onCommand(), AP_Frame::_replaceView(), AbiGoogle_invoke(), AbiOts_invoke(), AiksaurusABI_invoke(), FL_DocLayout::considerSmartQuoteCandidateAt(), endDragSelection(), FL_DocLayout::fillLayouts(), GDict_invoke(), gotoTarget(), insertPageNum(), AP_Dialog_Spell::makeWordVisible(), fl_DocListener::populateStrux(), URLDict_invoke(), Wikipedia_invoke(), and AP_Dialog_Spell::~AP_Dialog_Spell().
bool FV_View::needSavedPosition | ( | void | ) | const |
This method tells us we need the old position after an undo because of header/footer undo's. Might be useful for other stuff later.
References m_bNeedSavedPosition.
bool FV_View::notifyListeners | ( | const AV_ChangeMask | hint | ) | [virtual] |
References _findBlockAtPosition(), _findPositionCoords(), GR_Graphics::allCarets(), AV_CHG_CELL, AV_CHG_COLUMN, AV_CHG_DIRTY, AV_CHG_DO, AV_CHG_EMPTYSEL, AV_CHG_FILENAME, AV_CHG_FMTBLOCK, AV_CHG_FMTCHAR, AV_CHG_FMTSECTION, AV_CHG_FMTSTYLE, AV_CHG_NONE, AV_CHG_PAGECOUNT, AV_CHG_WINDOWSIZE, fv_ChangeState::bDirty, fv_ChangeState::bRedo, fv_ChangeState::bSelection, fv_ChangeState::bUndo, canDo(), FL_DocLayout::countPages(), fp_Run::getBlock(), getBlockFormat(), getCharFormat(), fp_Line::getColumn(), fl_ContainerLayout::getContainerType(), fp_ContainerObject::getContainerType(), fl_ContainerLayout::getFirstContainer(), fl_HdrFtrShadow::getFirstContainer(), fp_Column::getFollower(), getLayout(), fp_Column::getLeader(), fp_Run::getLine(), getPoint(), getSectionFormat(), fl_BlockLayout::getSectionLayout(), fl_SectionLayout::getType(), AV_View::getWindowHeight(), AV_View::getWindowWidth(), fv_ChangeState::iColumn, PD_Document::isDirty(), isPreview(), isSelectionEmpty(), m_bDontNotifyListeners, m_bEditHdrFtr, m_bPointEOL, m_chg, m_iFreePass, m_iOldPageCount, m_pDoc, m_pEditShadow, m_pG, fl_ContainerLayout::myContainingLayout(), fl_BlockLayout::needsReformat(), fv_ChangeState::pCellLayout, fv_ChangeState::propsBlock, fv_ChangeState::propsChar, fv_ChangeState::propsSection, AllCarets::setWindowSize(), UT_ASSERT, and xxx_UT_DEBUGMSG.
Referenced by _charInsert(), _charMotion(), _clearIfAtFmtMark(), _generalUpdate(), fl_DocSectionLayout::_HdrFtrChangeCallback(), ABI_Collab_Import::_import(), abi_widget_set_style(), FL_DocLayout::addNewPage(), AP_Dialog_Stylist::Apply(), AP_Dialog_Lists::Apply(), fl_DocListener::change(), checkViewModeIsPrint(), cmdAdvanceNextPrevCell(), cmdAutoFitTable(), cmdAutoSizeCols(), cmdAutoSizeRows(), cmdCharDelete(), cmdCharMotion(), cmdCopy(), cmdCut(), cmdDeleteCell(), cmdDeleteCol(), cmdDeleteHyperlink(), cmdDeleteRow(), cmdDeleteTable(), cmdEditFooter(), cmdEditHeader(), cmdHyperlinkJump(), cmdInsertCol(), cmdInsertPositionedGraphic(), cmdInsertRow(), cmdInsertTable(), cmdInsertTOC(), cmdMergeCells(), cmdPaste(), cmdPasteSelectionAt(), cmdRedo(), cmdRemoveHdrFtr(), cmdSave(), cmdSaveAs(), cmdSelect(), cmdSelectColumn(), cmdSplitCells(), cmdTableToText(), cmdUndo(), convertInLineToPositioned(), copyFrame(), Defun(), Defun1(), FV_FrameEdit::deleteFrame(), FL_DocLayout::deletePage(), extSelHorizontal(), extSelNextPrevLine(), extSelNextPrevPage(), extSelNextPrevScreen(), extSelTo(), extSelToXY(), extSelToXYword(), findNext(), findPrev(), findReplaceAll(), focusChange(), gotoTarget(), insertFootnote(), insertHeaderFooter(), insertParagraphBreak(), insertSectionBreak(), FV_FrameEdit::mouseRelease(), AP_LeftRuler::mouseRelease(), moveInsPtTo(), FL_DocLayout::notifyListeners(), pasteFromLocalTo(), FV_Selection::pasteRowOrCol(), fl_DocListener::processDeferredNotifications(), processSelectedBlocks(), AP_Frame::quickZoom(), s_doMarkRevisions(), s_LoadingCursorCallback(), selectAnnotation(), setBlockFormat(), setBlockIndents(), setCellFormat(), setFrameFormat(), setSectionFormat(), setTableFormat(), warpInsPtNextPrevLine(), warpInsPtNextPrevPage(), warpInsPtNextPrevScreen(), and warpInsPtToXY().
void FV_View::pasteFromLocalTo | ( | PT_DocPosition | pos | ) |
References _charMotion(), _ensureInsertionPointOnScreen(), _fixInsertionPointCoords(), _generalUpdate(), _pasteFromLocalTo(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), AV_CHG_HDRFTR, AV_CHG_MOTION, PD_Document::beginUserAtomicGlob(), clearCursorWait(), PD_Document::clearDoingPaste(), PD_Document::disableListUpdates(), PD_Document::enableListUpdates(), PD_Document::endUserAtomicGlob(), isSelectionEmpty(), m_pDoc, m_pLocalBuf, notifyListeners(), setCursorWait(), PD_Document::setDoingPaste(), PD_Document::setDontImmediatelyLayout(), PD_Document::updateDirtyLists(), and UT_return_if_fail.
Referenced by FV_VisualDragText::mouseRelease().
References m_VisualDragText, and FV_VisualDragText::mouseRelease().
Referenced by Defun(), and sActualVisualDrag().
void FV_View::populateThisHdrFtr | ( | HdrFtrType | hfType, | |
bool | bSkipPTSaves = false | |||
) |
OK, This method copies the content from either the header or footer to the HdrFtrType specified here. This is used by the set HdrFtr properties types in the GUI.
HdrFtrType | hfType | |
bool | bSkipPTSaves if true don't save the PieceTable stuff |
References _clearSelection(), _generalUpdate(), _populateThisHdrFtr(), _setPoint(), _updateInsertionPoint(), PD_Document::beginUserAtomicGlob(), clearCursorWait(), PD_Document::disableListUpdates(), PD_Document::enableListUpdates(), PD_Document::endUserAtomicGlob(), FL_HDRFTR_FOOTER, FL_HDRFTR_FOOTER_EVEN, FL_HDRFTR_FOOTER_FIRST, FL_HDRFTR_FOOTER_LAST, FL_HDRFTR_HEADER_EVEN, FL_HDRFTR_HEADER_FIRST, FL_HDRFTR_HEADER_LAST, fl_ContainerLayout::getContainerType(), getCurrentBlock(), getCurrentPage(), fl_BlockLayout::getDocSectionLayout(), fl_DocSectionLayout::getFooter(), fl_DocSectionLayout::getFooterEven(), fl_DocSectionLayout::getFooterFirst(), fl_DocSectionLayout::getFooterLast(), fl_DocSectionLayout::getHeader(), fl_DocSectionLayout::getHeaderEven(), fl_DocSectionLayout::getHeaderFirst(), fl_DocSectionLayout::getHeaderLast(), fp_Page::getOwningSection(), getPoint(), isSelectionEmpty(), m_iPieceTableState, m_pDoc, PD_Document::notifyPieceTableChangeEnd(), PD_Document::notifyPieceTableChangeStart(), setCursorWait(), PD_Document::updateDirtyLists(), and UT_ASSERT.
Referenced by Defun1().
bool FV_View::processPageNumber | ( | HdrFtrType | hfType, | |
const PP_PropertyVector & | atts | |||
) |
This method does the insert Page Number logic. It inserts with this logic. For the sake of not writing header/footer every time I will just write "footer" 1. If no footer exists one will be created and a page number inserted. 2. If a footer with a page number exists the paragraph containing the footer will be right center or left justified as requested by the user. 3. If a footer with no page number exists a new paragraph containg the page number will be inserted at the top of the container.
bIsFooter | true if the user wants a pagenumber in a footer. | |
atts | PP_PropertyVector describing left , center or right justification. |
References _generalUpdate(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), _setPoint(), PD_Document::beginUserAtomicGlob(), PD_Document::changeStruxFmt(), clearHdrFtrEdit(), PD_Document::endUserAtomicGlob(), FL_HDRFTR_FOOTER, FL_HDRFTR_HEADER, getCurrentPage(), fp_FieldRun::getFieldType(), fl_BlockLayout::getFirstRun(), fl_DocSectionLayout::getFooter(), fl_DocSectionLayout::getHeader(), fl_ContainerLayout::getNext(), fl_ContainerLayout::getNextBlockInDocument(), fp_Run::getNextRun(), fp_Page::getOwningSection(), getPoint(), fl_BlockLayout::getPosition(), fp_Run::getType(), PD_Document::insertObject(), insertPageNum(), PD_Document::insertStrux(), PD_Document::isEndFrameAtPos(), isHdrFtrEdit(), m_pDoc, m_pEditShadow, PTC_AddFmt, PTO_Field, PTX_Block, setHdrFtrEdit(), setPoint(), and warpInsPtToXY().
Referenced by s_doInsertPageNumbers().
void FV_View::processSelectedBlocks | ( | FL_ListType | listType | ) |
References _clearSelection(), _drawSelection(), _ensureInsertionPointOnScreen(), _fixInsertionPointCoords(), _generalUpdate(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), _setSelectionAnchor(), UT_GenericVector< T >::addItem(), AV_CHG_HDRFTR, AV_CHG_MOTION, PD_Document::beginUserAtomicGlob(), PD_Document::changeSpanFmt(), PD_Document::changeStruxFmt(), PD_Document::disableListUpdates(), PD_Document::enableListUpdates(), PD_Document::endUserAtomicGlob(), gchar, fl_Layout::getAutoNum(), fp_Run::getBlockOffset(), getBlocksInSelection(), fl_ContainerLayout::getContainerType(), fl_BlockLayout::getDominantDirection(), fl_BlockLayout::getFirstRun(), UT_GenericVector< T >::getItemCount(), fl_BlockLayout::getListStyleString(), fp_Run::getNextRun(), UT_GenericVector< T >::getNthItem(), getPoint(), fl_BlockLayout::getPosition(), fl_ContainerLayout::getPrev(), fl_BlockLayout::getProperty(), FV_Selection::getSelectionAnchor(), fl_BlockLayout::isListItem(), isNumberedHeadingHere(), isSelectionEmpty(), m_pDoc, m_Selection, notifyListeners(), PTC_RemoveFmt, PTX_Block, fl_BlockLayout::resumeList(), setPoint(), fl_BlockLayout::StartList(), PD_Document::updateDirtyLists(), UT_ASSERT, UT_BIDI_LTR, UT_convertToInches(), and UT_DEBUGMSG.
Referenced by Defun1().
bool FV_View::queryCharFormat | ( | const gchar * | szProperty, | |
UT_UTF8String & | szValue, | |||
bool & | bExplicitlyDefined, | |||
PT_DocPosition | position | |||
) | const |
bool FV_View::queryCharFormat | ( | const gchar * | szProperty, | |
UT_UTF8String & | szValue, | |||
bool & | bExplicitlyDefined, | |||
bool & | bMixedSelection | |||
) | const |
void FV_View::rebuildLayout | ( | void | ) | [virtual] |
Implements AV_View.
References FL_DocLayout::getFirstSection(), m_pLayout, and FL_DocLayout::rebuildFromHere().
Referenced by XAP_UnixFrameImpl::_fe::do_ZoomUpdate(), AP_Frame::quickZoom(), and setViewMode().
bool FV_View::registerDoubleBufferingObject | ( | FV_ViewDoubleBuffering * | obj | ) |
References m_pViewDoubleBufferingObject.
Referenced by FV_ViewDoubleBuffering::beginDoubleBuffering().
References m_FrameEdit, and FV_FrameEdit::mouseRelease().
Referenced by Defun(), and sActualDragFrame().
Complete the drag which either finishes the drag of the image or completes the resize of the image.
References m_InlineImage, and FV_VisualInlineImage::mouseRelease().
Referenced by Defun(), and sActualDragInlineImage().
void FV_View::remeasureCharsWithoutRebuild | ( | ) | [virtual] |
This method forces remeasuring of widths for all characters in the document. It is called on zoom to allow us to adjust positioning of individual chars in response to changes to metrics of screen font.
NB: this function does not force rebuild; on the zoom the actual character sizes remain the same, and so does the overall layout.
Implements AV_View.
References getBlockAtPosition(), fl_BlockLayout::getFirstRun(), fl_ContainerLayout::getNextBlockInDocument(), fp_Run::getNextRun(), fp_Run::getType(), fp_TextRun::measureCharWidths(), and updateLayout().
void FV_View::rememberCurrentPosition | ( | void | ) |
This method saves the current insertion point of the insertion point in the doc. This is needed during undo's of insert Page Number. Maybe elsewhere later.
References getPoint(), m_bNeedSavedPosition, and m_iSavedPosition.
Referenced by cmdRedo(), cmdUndo(), and fl_HdrFtrSectionLayout::collapse().
void FV_View::removeCaret | ( | const std::string & | sCaretID | ) |
References UT_GenericVector< T >::deleteNthItem(), DELETEP, GR_Caret::disable(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), fv_CaretProps::m_ListenerID, fv_CaretProps::m_pCaret, m_pG, fv_CaretProps::m_sCaretID, m_vecCarets, GR_Graphics::removeCaret(), AV_View::removeListener(), and UT_continue_if_fail.
Referenced by PD_Document::removeCaret().
bool FV_View::removeStruxAttrProps | ( | PT_DocPosition | ipos1, | |
PT_DocPosition | ipos2, | |||
PTStruxType | iStrux, | |||
const PP_PropertyVector & | attributes, | |||
const PP_PropertyVector & | properties | |||
) |
void FV_View::removeThisHdrFtr | ( | HdrFtrType | hfType, | |
bool | bSkipPTSaves = false | |||
) |
Remove the Header/Footer type specified by hfType
HdrFtrType | hfType the type of the Header/Footer to be removed. | |
bool | bSkipPTSaves if true don't save the PieceTable stuff |
References _clearSelection(), _generalUpdate(), _removeThisHdrFtr(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), _setPoint(), _updateInsertionPoint(), PD_Document::beginUserAtomicGlob(), clearCursorWait(), PD_Document::endUserAtomicGlob(), 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, getCurrentBlock(), fl_BlockLayout::getDocSectionLayout(), fl_DocSectionLayout::getFooter(), fl_DocSectionLayout::getFooterEven(), fl_DocSectionLayout::getFooterFirst(), fl_DocSectionLayout::getFooterLast(), fl_DocSectionLayout::getHeader(), fl_DocSectionLayout::getHeaderEven(), fl_DocSectionLayout::getHeaderFirst(), fl_DocSectionLayout::getHeaderLast(), getPoint(), isSelectionEmpty(), m_pDoc, setCursorWait(), updateScreen(), and UT_DEBUGMSG.
Referenced by Defun1().
void FV_View::replaceGraphics | ( | GR_Graphics * | pG | ) |
bool FV_View::resetCharFormat | ( | bool | bAll | ) |
clears props and attribs bAll specifies that everything is to go; if !bAll some selected props will be preserved
Notes: This function is to be called in response to reset fmt command (ctrl+space). The idea is this: we use props and attributes to store things that are not strictly speaking text fmt. For example, spellchecker language is a property, but not strictly text fmt; when pressing ctrl+space, more often than not the user wants to get rid of bold, italics, etc., but not of the langauge markup. So we exercise a degree of discretion.
References PD_Document::beginUserAtomicGlob(), PD_Document::endUserAtomicGlob(), gchar, PP_AttrProp::getAttributes(), getAttrPropForPoint(), PP_AttrProp::getNthProperty(), PP_AttrProp::getProperties(), PP_AttrProp::hasAttributes(), PP_AttrProp::hasProperties(), m_pDoc, setCharFormat(), PP_AttrProp::setProperty(), and szName.
Referenced by Defun1().
void FV_View::RestoreSavedPieceTableState | ( | void | ) |
This method combines all the things we need to save before doing extensive piecetable manipulations.
References _generalUpdate(), _updateInsertionPoint(), PD_Document::enableListUpdates(), PD_Document::endUserAtomicGlob(), m_iPieceTableState, m_pDoc, PD_Document::notifyPieceTableChangeEnd(), setScreenUpdateOnGeneralUpdate(), and PD_Document::updateDirtyLists().
Referenced by Defun1().
bool FV_View::rtlPages | ( | void | ) | const |
Referenced by _getPageForXY(), getWidthPagesInRow(), and getWidthPrevPagesInRow().
PT_DocPosition FV_View::saveSelectedImage | ( | UT_ConstByteBufPtr & | outByteBuf | ) |
PT_DocPosition FV_View::saveSelectedImage | ( | const char * | toFile | ) |
bool FV_View::selectAnnotation | ( | fl_AnnotationLayout * | pAL | ) |
Select the text that is covered by the annotation
References _ensureInsertionPointOnScreen(), AV_CHG_HDRFTR, AV_CHG_MOTION, cmdSelect(), fp_Run::getBlock(), fp_Run::getBlockOffset(), getDocument(), getHyperLinkRun(), fp_Run::getNextRun(), PD_Document::getNextStruxOfType(), fl_BlockLayout::getPosition(), fl_Layout::getStruxDocHandle(), PD_Document::getStruxPosition(), fp_Run::getType(), notifyListeners(), PTX_EndAnnotation, setCursorToContext(), setPoint(), UT_DEBUGMSG, and UT_return_val_if_fail.
Referenced by cmdEditAnnotationWithDialog(), gotoTarget(), insertAnnotation(), and insertAnnotation().
void FV_View::selectFrame | ( | void | ) |
References _clearSelection(), _drawSelection(), _setSelectionAnchor(), EV_Mouse::clearMouseContext(), FV_FrameEdit_NOT_ACTIVE, getFrameLayout(), fl_FrameLayout::getLength(), XAP_Frame::getMouse(), AV_View::getParentData(), fl_ContainerLayout::getPosition(), FV_FrameEdit::isActive(), m_FrameEdit, m_iMouseX, m_iMouseY, m_pDoc, m_prevMouseContext, FV_FrameEdit::mouseLeftPress(), setCursorToContext(), FV_FrameEdit::setMode(), and setPoint().
Referenced by Defun1(), and deleteFrame().
void FV_View::selectRange | ( | const std::pair< PT_DocPosition, PT_DocPosition > & | range | ) |
References selectRange().
void FV_View::selectRange | ( | PT_DocPosition | start, | |
PT_DocPosition | end | |||
) |
References _clearSelection(), _drawBetweenPositions(), _setPoint(), _setSelectionAnchor(), _updateSelectionHandles(), FV_Selection::getSelectionLeftAnchor(), FV_Selection::getSelectionRightAnchor(), m_Selection, setPoint(), FV_Selection::setSelectionLeftAnchor(), and FV_Selection::setSelectionRightAnchor().
Referenced by Defun1(), PD_RDFSemanticStylesheet::format(), gotoTarget(), PD_RDFSemanticItem::insertTextWithXMLID(), IE_Imp_RDF::insertTextWithXMLID(), rdfAnchorSelectPos(), PD_RDFSemanticItemViewSite::selectRange(), selectRange(), PD_DocumentRDF::selectXMLIDs(), FV_SelectionHandles::updateSelectionEnd(), and FV_SelectionHandles::updateSelectionStart().
bool FV_View::setAnnotationAuthor | ( | UT_uint32 | iAnnotation, | |
const std::string & | sAuthor | |||
) |
void FV_View::setAnnotationPreviewActive | ( | bool | b | ) | [inline] |
Referenced by Defun(), and killAnnotationPreview().
bool FV_View::setAnnotationRichText | ( | UT_uint32 | iAnnotation, | |
const std::string & | sRTF | |||
) |
bool FV_View::setAnnotationText | ( | UT_uint32 | iAnnotation, | |
const std::string & | sText | |||
) |
Set the content of the annotation to the plain text supplied by UT_UTF8String sText. Returns true if a valid annotation was found with valid content.
References _generalUpdate(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), PD_Document::beginUserAtomicGlob(), PD_Document::deleteSpan(), PD_Document::disableListUpdates(), PD_Document::endUserAtomicGlob(), getAnnotationLayout(), getDocument(), PD_Document::getNextStruxOfType(), fl_Layout::getStruxDocHandle(), PD_Document::getStruxPosition(), PD_Document::insertSpan(), m_pDoc, PTX_EndAnnotation, UT_UCS4String::size(), text, UT_UCS4String::ucs4_str(), and UT_return_val_if_fail.
Referenced by cmdEditAnnotationWithDialog(), and insertAnnotation().
bool FV_View::setAnnotationText | ( | UT_uint32 | iAnnotation, | |
const std::string & | sText, | |||
const std::string & | sAuthor, | |||
const std::string & | sTitle | |||
) |
Set the content of the annotation to the plain text supplied by UT_UTF8String sText. Returns true if a valid annotation was found with valid content.
References _generalUpdate(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), PD_Document::beginUserAtomicGlob(), PD_Document::changeStruxFmt(), PD_Document::deleteSpan(), PD_Document::disableListUpdates(), PD_Document::endUserAtomicGlob(), getAnnotationLayout(), getDocument(), PD_Document::getNextStruxOfType(), fl_Layout::getStruxDocHandle(), PD_Document::getStruxPosition(), PD_Document::insertSpan(), m_pDoc, PTC_AddFmt, PTX_EndAnnotation, PTX_SectionAnnotation, UT_UCS4String::size(), text, time, UT_UCS4String::ucs4_str(), UT_return_val_if_fail, UT_std_string_sprintf(), and xxx_UT_DEBUGMSG.
bool FV_View::setAnnotationTitle | ( | UT_uint32 | iAnnotation, | |
const std::string & | sTitle | |||
) |
void FV_View::setBidiOrder | ( | FV_BIDI_Order | o | ) | [inline] |
bool FV_View::setBlockFormat | ( | const PP_PropertyVector & | properties | ) |
References _clearIfAtFmtMark(), _findBlockAtPosition(), _fixInsertionPointCoords(), _generalUpdate(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), AV_CHG_ALL, AV_CHG_MOTION, PD_Document::changeStruxFmt(), getBlocksInSelection(), fl_ContainerLayout::getContainerType(), UT_GenericVector< T >::getItemCount(), fl_ContainerLayout::getNextBlockInDocument(), UT_GenericVector< T >::getNthItem(), getPoint(), fl_BlockLayout::getPosition(), FV_Selection::getSelectionAnchor(), PD_Document::getStruxOfTypeFromPosition(), isSelectionEmpty(), m_pDoc, m_Selection, fl_ContainerLayout::myContainingLayout(), notifyListeners(), PP_getAttribute(), PTC_AddFmt, PTX_Block, PTX_SectionTable, UT_BIDI_LTR, and UT_BIDI_RTL.
Referenced by _toggleSpanOrBlock(), AP_Dialog_Border_Shading::applyChanges(), Defun1(), AP_TopRuler::mousePress(), AP_TopRuler::mouseRelease(), s_doParagraphDlg(), and s_TabSaveCallBack().
bool FV_View::setBlockIndents | ( | bool | doLists, | |
double | indentChange, | |||
double | page_size | |||
) |
This method increases or decreases the indents of a range of blocks. The blocks can be either all those contained by a list structure or just those in a selection.
doList | true if you want to indents all the blocks in the list of which the current block is a member. If false just those blocks within the current selected range. | |
indentChange | +-ve value by which the block will be indented. | |
page_size | width of the page in inches. |
References _fixInsertionPointCoords(), _generalUpdate(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), AV_CHG_HDRFTR, AV_CHG_MOTION, PD_Document::beginUserAtomicGlob(), UT_String::c_str(), PD_Document::changeStruxFmt(), dim, PD_Document::endUserAtomicGlob(), gchar, getAllBlocksInList(), getBlocksInSelection(), fl_BlockLayout::getDominantDirection(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), fl_BlockLayout::getProperty(), fl_Layout::getStruxDocHandle(), PD_Document::getStruxPosition(), m_pDoc, notifyListeners(), PTC_AddFmt, PTX_Block, UT_convertInchesToDimensionString(), UT_convertToInches(), and UT_determineDimension().
Referenced by Defun1().
bool FV_View::setCellFormat | ( | const PP_PropertyVector & | properties, | |
FormatTable | applyTo, | |||
const FG_ConstGraphicPtr & | pFG, | |||
UT_String & | sDataID | |||
) |
Set cells in a table to a given format. The formatting of the current selection, row, column or the whole table can be changed.
properties | the new cell format | |
applyTo | the range to apply the changes to |
References _changeCellParams(), _ensureInsertionPointOnScreen(), _generalUpdate(), _restoreCellParams(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), AV_CHG_MOTION, UT_String::c_str(), PD_Document::changeStruxFmt(), clearCursorWait(), PD_Document::disableListUpdates(), PD_Document::enableListUpdates(), FORMAT_TABLE_COLUMN, FORMAT_TABLE_ROW, FORMAT_TABLE_SELECTION, FORMAT_TABLE_TABLE, getBlocksInSelection(), getCellAtPos(), PD_Document::getCellSDHFromRowCol(), fl_ContainerLayout::getContainerType(), PD_Document::getEndTableStruxFromTablePos(), UT_GenericVector< T >::getItemCount(), fp_CellContainer::getLeftAttach(), UT_GenericVector< T >::getNthItem(), getPoint(), fl_BlockLayout::getPosition(), getRevisionLevel(), PD_Document::getRowsColsFromTableSDH(), FV_Selection::getSelectionAnchor(), PD_Document::getStruxOfTypeFromPosition(), PD_Document::getStruxPosition(), fp_CellContainer::getTopAttach(), isSelectionEmpty(), isShowRevisions(), m_pDoc, m_Selection, fl_ContainerLayout::myContainingLayout(), notifyListeners(), PTC_AddFmt, PTC_RemoveFmt, PTX_SectionCell, PTX_SectionTable, setCursorWait(), PD_Document::setDontImmediatelyLayout(), PD_Document::updateDirtyLists(), UT_ASSERT, UT_DEBUGMSG, and UT_SHOULD_NOT_HAPPEN.
Referenced by AP_Dialog_FormatTable::applyChanges().
bool FV_View::setCharFormat | ( | const PP_PropertyVector & | properties, | |
const PP_PropertyVector & | attribs = PP_NOPROPS | |||
) |
References _fixInsertionPointCoords(), _generalUpdate(), _makePointLegal(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), PD_Document::beginUserAtomicGlob(), PD_Document::changeSpanFmt(), PD_Document::endUserAtomicGlob(), getNthSelection(), getNumSelections(), getPoint(), FV_Selection::getSelectionAnchor(), PD_Document::insertStrux(), PD_Document::isEndFootnoteAtPos(), isPointLegal(), isSelectionEmpty(), m_bInsertAtTablePending, m_iPosAtTable, m_pDoc, PD_DocumentRange::m_pos1, PD_DocumentRange::m_pos2, m_Selection, PTC_AddFmt, and PTX_Block.
Referenced by _fontSizeChange(), AP_Dialog_Styles::_populateAbiPreview(), _toggleSpanOrBlock(), abi_widget_set_text_color(), cmdCharDelete(), Defun(), Defun1(), insertSymbol(), FV_VisualInlineImage::mouseRelease(), resetCharFormat(), s_doFontDlg(), s_doFormatImageDlg(), and s_doLangDlg().
bool FV_View::setCollapsedRange | ( | PT_DocPosition | posLow, | |
PT_DocPosition | posHigh, | |||
const PP_PropertyVector & | properties | |||
) |
Collapse text to the level specified over the range of text given.
References _clearIfAtFmtMark(), _fixInsertionPointCoords(), _generalUpdate(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), PD_Document::changeStruxFmt(), getPoint(), m_pDoc, and PTC_AddFmt.
Referenced by AP_Dialog_Lists::Apply().
void FV_View::setCursorToContext | ( | void | ) | [virtual] |
This method sets the cursor to match current context.
Implements AV_View.
References GR_Graphics::DGP_SCREEN, EV_EMC_ANNOTATIONMISSPELLED, EV_EMC_ANNOTATIONTEXT, EV_EMC_EMBED, EV_EMC_FIELD, EV_EMC_FRAME, EV_EMC_HLINE, EV_EMC_HYPERLINK, EV_EMC_HYPERLINKMISSPELLED, EV_EMC_HYPERLINKTEXT, EV_EMC_IMAGE, EV_EMC_IMAGESIZE, EV_EMC_LEFTOFTEXT, EV_EMC_MATH, EV_EMC_MISSPELLEDTEXT, EV_EMC_POSOBJECT, EV_EMC_RIGHTOFTEXT, EV_EMC_TEXT, EV_EMC_TOPCELL, EV_EMC_UNKNOWN, EV_EMC_VISUALTEXTDRAG, EV_EMC_VLINE, FV_Base::getDragWhat(), FV_FrameEdit::getFrameEditMode(), getGraphics(), getMouseContext(), FV_FrameEdit::isActive(), FV_VisualInlineImage::isActive(), m_FrameEdit, m_iMouseX, m_iMouseY, m_InlineImage, GR_Graphics::setCursor(), UT_DEBUGMSG, and xxx_UT_DEBUGMSG.
Referenced by _generalUpdate(), btn0Frame(), btn0InlineImage(), btn0VisualDrag(), FV_VisualInlineImage::cleanUP(), clearCursorWait(), cmdDeleteHyperlink(), cmdRedo(), cmdUndo(), copyFrame(), Defun(), deleteFrame(), findReplaceAll(), FV_VisualInlineImage::mouseCopy(), FV_FrameEdit::mouseLeftPress(), FV_FrameEdit::mouseRelease(), s_StartStopLoadingCursor(), selectAnnotation(), selectFrame(), FV_VisualInlineImage::setDragType(), FV_FrameEdit::setDragType(), and warpInsPtToXY().
void FV_View::setCursorWait | ( | void | ) | [virtual] |
This sets the mouse pointer to show the little watch or some other icon if if a long operation is in progress.
Implements AV_View.
References GR_Graphics::DGP_SCREEN, getGraphics(), AV_View::getParentData(), GR_Graphics::GR_CURSOR_WAIT, m_pG, XAP_Frame::setCursor(), and GR_Graphics::setCursor().
Referenced by cmdPaste(), cmdRemoveHdrFtr(), createThisHdrFtr(), Defun1(), findReplaceAll(), FV_View(), insertHeaderFooter(), pasteFromLocalTo(), populateThisHdrFtr(), removeThisHdrFtr(), s_doPrint(), setCellFormat(), setFrameFormat(), setSectionFormat(), and setTableFormat().
void FV_View::setDontChangeInsPoint | ( | void | ) |
References m_pDoc, and PD_Document::setDontChangeInsPoint().
void FV_View::setFrameFormat | ( | const PP_PropertyVector & | attribs, | |
const PP_PropertyVector & | props, | |||
fl_BlockLayout * | pNewBL = NULL | |||
) |
References _ensureInsertionPointOnScreen(), _generalUpdate(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), AV_CHG_MOTION, PD_Document::changeStruxFmt(), clearCursorWait(), clearHdrFtrEdit(), getFrameLayout(), getLayout(), fl_FrameLayout::getParentContainer(), fl_ContainerLayout::getPosition(), isHdrFtrEdit(), m_pDoc, notifyListeners(), PTC_AddFmt, PTX_SectionFrame, FL_DocLayout::relocateFrame(), setCursorWait(), UT_ASSERT, UT_DEBUGMSG, and warpInsPtToXY().
void FV_View::setFrameFormat | ( | const PP_PropertyVector & | props, | |
const FG_ConstGraphicPtr & | pFG, | |||
const std::string & | dataID, | |||
fl_BlockLayout * | pNewBL = NULL | |||
) |
References _ensureInsertionPointOnScreen(), _generalUpdate(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), AV_CHG_MOTION, PD_Document::changeStruxFmt(), clearCursorWait(), clearHdrFtrEdit(), getFrameLayout(), getLayout(), fl_FrameLayout::getParentContainer(), getPoint(), FV_Selection::getSelectionAnchor(), isHdrFtrEdit(), isSelectionEmpty(), m_pDoc, m_Selection, notifyListeners(), PTC_AddFmt, PTC_RemoveFmt, PTX_SectionFrame, FL_DocLayout::relocateFrame(), setCursorWait(), UT_ASSERT, UT_ASSERT_HARMLESS, UT_DEBUGMSG, UT_SHOULD_NOT_HAPPEN, and warpInsPtToXY().
void FV_View::setFrameFormat | ( | const PP_PropertyVector & | props | ) |
Referenced by AP_Dialog_FormatFrame::applyChanges(), Defun1(), AP_TopRuler::mouseRelease(), and AP_LeftRuler::mouseRelease().
void FV_View::setGraphics | ( | GR_Graphics * | pG | ) |
References AV_View::addListener(), GR_Graphics::allCarets(), GR_Graphics::createCaret(), DELETEP, GR_Graphics::DGP_SCREEN, AllCarets::enable(), AV_View::getParentData(), m_caretListener, m_CaretListID, m_pG, GR_Graphics::queryProperties(), and AV_View::removeListener().
Referenced by replaceGraphics().
void FV_View::setHdrFtrEdit | ( | fl_HdrFtrShadow * | pShadow | ) |
This method sets a bool variable which tells getEditableBounds we are editing a header/Footer.
pSectionLayout | pointer to the SectionLayout being editted. |
References m_bEditHdrFtr, m_pEditShadow, and updateScreen().
Referenced by _cmdEditHdrFtr(), fl_DocSectionLayout::_HdrFtrChangeCallback(), FL_DocLayout::findBlockAtPosition(), FL_DocLayout::findBlockAtPositionReverse(), insertHeaderFooter(), FV_VisualDragText::mouseRelease(), AP_LeftRuler::mouseRelease(), processPageNumber(), and warpInsPtToXY().
void FV_View::setLeftRuler | ( | AP_LeftRuler * | pRuler | ) | [inline] |
Referenced by AP_Win32FrameImpl::_toggleLeftRuler(), and Defun().
void FV_View::setPaperColor | ( | const gchar * | clr | ) | [virtual] |
References _draw(), AV_View::getWindowHeight(), AV_View::getWindowWidth(), setSectionFormat(), and UT_DEBUGMSG.
Referenced by Defun1().
void FV_View::setPoint | ( | UT_uint32 | pt | ) | [virtual] |
Implements AV_View.
References _setPoint(), and m_bPointEOL.
Referenced by _deleteSelection(), _findReplaceReverse(), fl_DocSectionLayout::_HdrFtrChangeCallback(), _insertSectionBreak(), FakeAccountHandler::_loadDocument(), _moveInsPtNextPrevLine(), abi_widget_find_next(), AbiGimp_invoke(), AP_Dialog_Lists::Apply(), 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(), cmdAdvanceNextPrevCell(), cmdCharDelete(), cmdCharInsert(), cmdDeleteTable(), cmdHyperlinkJump(), cmdInsertCol(), cmdInsertHyperlink(), cmdInsertRow(), cmdInsertTable(), cmdInsertTOC(), cmdMergeCells(), cmdRedo(), cmdSplitCells(), cmdTableToText(), cmdTextToTable(), convertInLineToPositioned(), convertPositionedToInLine(), DECLARE_ABI_PLUGIN_METHOD(), Defun1(), fl_EmbedLayout::doclistener_deleteStrux(), FL_DocLayout::fillLayouts(), findNext(), findReplaceAll(), PD_RDFSemanticStylesheet::format(), insertAnnotation(), fl_FrameLayout::insertBlockAfter(), insertFootnote(), insertHeaderFooter(), insertParagraphBreak(), FV_VisualInlineImage::mouseCut(), FV_VisualDragText::mouseRelease(), FV_VisualInlineImage::mouseRelease(), FV_FrameEdit::mouseRelease(), AP_TopRuler::mouseRelease(), AP_LeftRuler::mouseRelease(), FV_Selection::pasteRowOrCol(), fl_ShadowListener::populate(), processPageNumber(), processSelectedBlocks(), AP_Frame::quickZoom(), s_doBorderShadingDlg(), s_doFindOrFindReplaceDlg(), s_doHyperlinkDlg(), selectAnnotation(), selectFrame(), selectRange(), and AP_Dialog_Styles::updateCurrentStyle().
void FV_View::setPointRemote | ( | PT_DocPosition | docPos | ) |
void FV_View::setPreviewMode | ( | PreViewMode | pre | ) | [inline] |
Referenced by AP_Preview_Abi::AP_Preview_Abi().
void FV_View::setPrevMouseContext | ( | EV_EditMouseContext | emc | ) | [inline] |
Referenced by FV_UnixVisualDrag::mouseDrag().
void FV_View::setRevisionLevel | ( | UT_uint32 | i | ) |
same as cmdSetRevisionLevel() except without layout rebuild
References m_iViewRevision, m_pDoc, PD_MAX_REVISION, AD_Document::setShowRevisionId(), and UT_return_if_fail.
Referenced by Defun1().
void FV_View::setScreenUpdateOnGeneralUpdate | ( | bool | bDoit | ) | [inline] |
bool FV_View::setSectionFormat | ( | const PP_PropertyVector & | properties | ) |
References _ensureInsertionPointOnScreen(), _generalUpdate(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), AV_CHG_MOTION, PD_Document::changeStruxFmt(), clearCursorWait(), clearHdrFtrEdit(), getPoint(), FV_Selection::getSelectionAnchor(), isHdrFtrEdit(), isSelectionEmpty(), m_pDoc, m_Selection, notifyListeners(), PTC_AddFmt, PTX_Section, setCursorWait(), and warpInsPtToXY().
Referenced by AP_Dialog_Styles::_populateAbiPreview(), Defun(), Defun1(), AP_TopRuler::mouseRelease(), AP_LeftRuler::mouseRelease(), and setPaperColor().
void FV_View::setSelectionMode | ( | FV_SelectionMode | selMode | ) |
References m_Selection, and FV_Selection::setMode().
Referenced by FV_VisualDragText::_mouseDrag(), and FV_VisualDragText::mouseCut().
void FV_View::setShowPara | ( | bool | bShowPara | ) |
void FV_View::setShowRevisions | ( | bool | bShow | ) |
References _fixInsertionPointCoords(), draw(), FL_DocLayout::getFirstSection(), m_bShowRevisions, m_pDoc, m_pLayout, FL_DocLayout::rebuildFromHere(), and AD_Document::setShowRevisions().
Referenced by Defun(), and toggleShowRevisions().
bool FV_View::setStyle | ( | const gchar * | style, | |
bool | bDontGeneralUpdate = false | |||
) |
References getPoint(), and setStyleAtPos().
Referenced by AP_Win32Dialog_Styles::_onCommand(), AP_Dialog_Styles::_populateAbiPreview(), abi_widget_set_style(), AP_Dialog_Stylist::Apply(), Defun(), Defun1(), AP_UnixDialog_Styles::event_Apply(), insertParagraphBreak(), and AP_Dialog_Styles::updateCurrentStyle().
bool FV_View::setStyleAtPos | ( | const gchar * | style, | |
PT_DocPosition | posStart, | |||
PT_DocPosition | posEnd, | |||
bool | bDontGeneralUpdate = false | |||
) |
References _clearIfAtFmtMark(), _clearSelection(), _drawSelection(), _eraseSelection(), _findBlockAtPosition(), _generalUpdate(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), _setPoint(), _setSelectionAnchor(), PD_Document::beginUserAtomicGlob(), PD_Document::changeSpanFmt(), PD_Document::changeStruxFmt(), PD_Document::disableListUpdates(), PD_Document::enableListUpdates(), PD_Document::endUserAtomicGlob(), PD_Document::findForwardStyleStrux(), PD_Document::findPreviousStyleStrux(), gchar, PD_Style::getBasedOn(), getBlockFromSDH(), getBlocksInSelection(), fl_ContainerLayout::getContainerType(), getCurrentBlock(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getLastItem(), PD_Document::getListsCount(), fl_BlockLayout::getListTypeFromStyle(), PD_Style::getName(), fl_ContainerLayout::getNext(), UT_GenericVector< T >::getNthItem(), PD_Document::getNthList(), getPoint(), fl_BlockLayout::getPosition(), fl_ContainerLayout::getPrev(), fl_ContainerLayout::getPrevBlockInDocument(), PD_Document::getPrevNumberedHeadingStyle(), PD_Style::getProperty(), FV_Selection::getSelectionAnchor(), fl_Layout::getStruxDocHandle(), PD_Document::getStyle(), PD_Document::getStyleFromSDH(), PD_Style::isCharStyle(), fl_BlockLayout::isHdrFtr(), isHdrFtrEdit(), fl_BlockLayout::isListItem(), isSelectionEmpty(), m_pDoc, m_Selection, fl_ContainerLayout::myContainingLayout(), NOT_A_LIST, fl_BlockLayout::prependList(), PTC_AddStyle, PTX_Block, fl_BlockLayout::resumeList(), setScreenUpdateOnGeneralUpdate(), fl_BlockLayout::StartList(), PD_Document::StopList(), PD_Document::updateDirtyLists(), PD_Style::used(), UT_ASSERT, UT_DEBUGMSG, UT_HeadingDepth(), and UT_SHOULD_NOT_HAPPEN.
Referenced by setStyle().
bool FV_View::setTableFormat | ( | const PP_PropertyVector & | properties | ) |
References getPoint().
Referenced by AP_TopRuler::mouseRelease(), and AP_LeftRuler::mouseRelease().
bool FV_View::setTableFormat | ( | PT_DocPosition | pos, | |
const PP_PropertyVector & | properties | |||
) |
References _ensureInsertionPointOnScreen(), _generalUpdate(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), AV_CHG_MOTION, PD_Document::changeStruxFmt(), clearCursorWait(), FV_Selection::getSelectionAnchor(), PD_Document::getStruxOfTypeFromPosition(), PD_Document::getStruxPosition(), isSelectionEmpty(), m_pDoc, m_Selection, notifyListeners(), PTC_AddFmt, PTX_SectionTable, setCursorWait(), and UT_ASSERT.
bool FV_View::setTOCProps | ( | PT_DocPosition | pos, | |
const char * | szProps | |||
) |
This method assumes that pos points to exactly the location of PTX_SectionTOC. It should only really be called if the TOC is selected.
References _generalUpdate(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), PD_Document::changeStruxFmt(), m_pDoc, PTC_AddFmt, and PTX_SectionTOC.
Referenced by AP_Dialog_FormatTOC::applyTOCPropsToDoc().
void FV_View::setTopRuler | ( | AP_TopRuler * | pRuler | ) | [inline] |
Referenced by AP_Win32FrameImpl::_toggleTopRuler(), Defun(), and AP_TopRuler::~AP_TopRuler().
void FV_View::SetupSavePieceTableState | ( | void | ) |
This method combines all the things we need to save before doing extensive piecetable manipulations.
References _clearSelection(), _saveAndNotifyPieceTableChange(), PD_Document::beginUserAtomicGlob(), PD_Document::disableListUpdates(), isSelectionEmpty(), m_pDoc, and setScreenUpdateOnGeneralUpdate().
Referenced by Defun1().
void FV_View::setViewMode | ( | ViewMode | vm | ) |
References _fixInsertionPointCoords(), _generalUpdate(), FL_DocLayout::countPages(), FL_DocLayout::formatAll(), FL_DocLayout::getNthPage(), m_pLayout, m_viewMode, rebuildLayout(), fp_Page::updateColumnX(), FL_DocLayout::updateOnViewModeChange(), UT_DEBUGMSG, and UT_return_if_fail.
Referenced by _abi_widget_set_show_margin(), AP_Preview_Abi::AP_Preview_Abi(), checkViewModeIsPrint(), Defun1(), FV_View(), and s_abi_widget_map_cb().
void FV_View::setVisualSelectionEnabled | ( | bool | bActive | ) |
Reimplemented from AV_View.
References FV_SelectionHandles::hide(), m_SelectionHandles, and AV_View::m_VisualSelectionActive.
void FV_View::setXScrollOffset | ( | UT_sint32 | v | ) | [virtual] |
void FV_View::setYScrollOffset | ( | UT_sint32 | v | ) | [virtual] |
Implements AV_View.
References _fixInsertionPointCoords(), _updateSelectionHandles(), CHECK_WINDOW_SIZE, m_pG, AV_View::m_yScrollOffset, and GR_Graphics::scroll().
Referenced by FV_FrameEdit::_actuallyScroll(), FV_FrameEdit::_mouseDrag(), and Presentation::drawNthPage().
bool FV_View::shouldScreenUpdateOnGeneralUpdate | ( | void | ) | const [inline] |
Referenced by ABI_Collab_Import::_enableUpdates(), _generalUpdate(), and FL_DocLayout::addNewPage().
void FV_View::swapSelectionOrientation | ( | void | ) |
Reverse the direction of the current selection Does so without changing the screen.
References _fixInsertionPointCoords(), _setPoint(), getPoint(), FV_Selection::getSelectionAnchor(), isSelectionEmpty(), m_Selection, FV_Selection::setSelectionAnchor(), and UT_ASSERT.
Referenced by _moveToSelectionEnd(), and s_doFormatTableDlg().
void FV_View::toggleCase | ( | ToggleCase | c | ) | [virtual] |
References _charMotion(), _generalUpdate(), _getDocPos(), _isSpaceBefore(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), _setPoint(), _toggleFirstCapital(), _toggleLower(), _toggleToggle(), _toggleUpper(), PD_Document::beginUserAtomicGlob(), fp_TextRun::canMergeWithNext(), CASE_FIRST_CAPITAL, CASE_LOWER, CASE_ROTATE, CASE_SENTENCE, CASE_TITLE, CASE_TOGGLE, CASE_UPPER, PD_Document::changeSpanFmt(), PD_Document::deleteSpan(), PD_Document::endUserAtomicGlob(), FL_DocLayout::findBlockAtPosition(), fl_BlockLayout::findRunAtOffset(), FPRUN_ENDOFPARAGRAPH, FV_DOCPOS_BOW, FV_DOCPOS_EOW_SELECT, PP_AttrProp::getAttributes(), fl_BlockLayout::getBlockBuf(), fp_Run::getBlockOffset(), fl_ContainerLayout::getContainerType(), getDocument(), fp_Run::getLength(), UT_GrowBuf::getLength(), fl_BlockLayout::getLength(), fl_ContainerLayout::getNextBlockInDocument(), fp_Run::getNextRun(), UT_GrowBuf::getPointer(), fl_BlockLayout::getPosition(), PP_AttrProp::getProperties(), FV_Selection::getSelectionAnchor(), fl_ContainerLayout::getSpanAP(), fp_Run::getType(), PD_Document::insertSpan(), isMarkRevisions(), isSelectionEmpty(), m_iInsPoint, m_pDoc, m_pLayout, m_Selection, PP_AttrProp::miniDump(), PTC_SetFmt, PD_Document::tellPTDoNotTweakPosition(), text, UT_GrowBuf::truncate(), UT_ASSERT, UT_ASSERT_HARMLESS, UT_DEBUGMSG, UT_MIN, UT_return_if_fail, UT_SHOULD_NOT_HAPPEN, UT_UCS4_isalpha(), UT_UCS4_islower(), UT_UCS4_isSentenceSeparator(), UT_UCS4_isspace(), UT_UCS4_toupper(), and xxx_UT_DEBUGMSG.
Referenced by Defun1(), and s_doToggleCase().
void FV_View::toggleMarkRevisions | ( | ) |
References m_pDoc, AD_Document::toggleMarkRevisions(), and updateScreen().
Referenced by Defun1(), and s_doMarkRevisions().
void FV_View::toggleShowRevisions | ( | ) |
References m_bShowRevisions, and setShowRevisions().
Referenced by Defun1().
UT_uint32 FV_View::undoCount | ( | bool | bUndo | ) | const [virtual] |
References m_pDoc, and PD_Document::undoCount().
bool FV_View::unregisterDoubleBufferingObject | ( | FV_ViewDoubleBuffering * | obj | ) |
References m_pViewDoubleBufferingObject.
Referenced by FV_ViewDoubleBuffering::endDoubleBuffering().
void FV_View::updateCarets | ( | PT_DocPosition | docPos, | |
UT_sint32 | iLen | |||
) |
References _setPoint(), addCaret(), UT_GenericVector< T >::getItemCount(), PD_Document::getLastAuthorInt(), AD_Document::getMyUUIDString(), UT_GenericVector< T >::getNthItem(), fv_CaretProps::m_iInsPoint, fv_CaretProps::m_pCaret, m_pDoc, fv_CaretProps::m_sCaretID, m_sDocUUID, m_vecCarets, GR_Caret::resetBlinkTimeout(), and UT_DEBUGMSG.
Referenced by fl_BlockLayout::_createListLabel(), 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_FrameLayout::bl_doclistener_insertEndFrame(), fl_TableLayout::bl_doclistener_insertEndTable(), 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_BlockLayout::doclistener_deleteFmtMark(), fl_BlockLayout::doclistener_deleteObject(), fl_BlockLayout::doclistener_deleteSpan(), fl_BlockLayout::doclistener_deleteStrux(), fl_BlockLayout::doclistener_insertBlock(), fl_BlockLayout::doclistener_insertFirstBlock(), fl_BlockLayout::doclistener_insertFmtMark(), fl_BlockLayout::doclistener_insertFrame(), fl_BlockLayout::doclistener_insertObject(), fl_BlockLayout::doclistener_insertSection(), fl_BlockLayout::doclistener_insertSpan(), fl_BlockLayout::doclistener_insertTable(), fl_FrameLayout::insertBlockAfter(), and fl_BlockLayout::StopListInBlock().
void FV_View::updateLayout | ( | void | ) | [virtual] |
Goes through the document and reformats any paragraphs that need this.
Implements AV_View.
References m_pLayout, and FL_DocLayout::updateLayout().
Referenced by AP_Dialog_Lists::Apply(), FL_DocLayout::fillLayouts(), and remeasureCharsWithoutRebuild().
void FV_View::updateRevisionMode | ( | ) |
This function brings our revision settings into sync with the document-wide settings and is called by fl_DocListener in response to PD_SIGNAL_REVISION_MODE_CHANGED. This funciton does not initiate layout rebuild, that is the responsibility of the caller.
References _fixInsertionPointAfterRevision(), AD_Document::getShowRevisionId(), AD_Document::isAutoRevisioning(), AD_Document::isShowRevisions(), m_bShowRevisions, m_iViewRevision, and m_pDoc.
Referenced by fl_DocListener::signal().
void FV_View::updateScreen | ( | bool | bDirtyRunsOnly = true |
) | [virtual] |
Implements AV_View.
References _draw(), AV_View::getWindowHeight(), and AV_View::getWindowWidth().
Referenced by FV_VisualDragText::_actuallyScroll(), FV_VisualInlineImage::_actuallyScroll(), FV_FrameEdit::_actuallyScroll(), FV_VisualDragText::_mouseDrag(), FV_VisualInlineImage::_mouseDrag(), FV_FrameEdit::_mouseDrag(), FL_DocLayout::_prefsListener(), FV_VisualDragText::abortDrag(), FV_FrameEdit::abortDrag(), AP_Dialog_Lists::Apply(), fl_DocListener::change(), AP_Dialog_Spell::changeWordWith(), checkViewModeIsPrint(), FV_VisualInlineImage::cleanUP(), clearHdrFtrEdit(), cmdRemoveHdrFtr(), fl_BlockLayout::debugFlashing(), Defun1(), XAP_UnixFrameImpl::_fe::do_ZoomUpdate(), AP_Preview_Abi::draw(), FL_DocLayout::fillLayouts(), findReplace(), findReplaceReverse(), AP_Dialog_Spell::makeWordVisible(), FV_VisualDragText::mouseCopy(), FV_VisualInlineImage::mouseCopy(), FV_VisualDragText::mouseCut(), FV_VisualInlineImage::mouseCut(), FV_UnixVisualDrag::mouseDrag(), FV_UnixVisualInlineImage::mouseDrag(), FV_FrameEdit::mouseLeftPress(), FV_VisualDragText::mouseRelease(), FV_VisualInlineImage::mouseRelease(), FV_FrameEdit::mouseRelease(), AP_Frame::quickZoom(), removeThisHdrFtr(), FV_VisualDragText::reposOffsets(), s_doFormatImageDlg(), s_LoadingCursorCallback(), setHdrFtrEdit(), FV_VisualInlineImage::setMode(), fl_TOCLayout::setSelected(), PD_Document::setShowAuthors(), fl_DocListener::signal(), toggleMarkRevisions(), and FL_DocLayout::updateColor().
void FV_View::warpInsPtNextPrevLine | ( | bool | bNext | ) |
Move point to next or previous line
bNext | True if moving to next line |
References _clearIfAtFmtMark(), _moveInsPtNextPrevLine(), _moveToSelectionEnd(), _resetSelection(), AV_CHG_ALL, AV_CHG_MOTION, getCurrentPage(), getPoint(), isSelectionEmpty(), and notifyListeners().
void FV_View::warpInsPtNextPrevPage | ( | bool | bNext | ) |
Move point to next or previous page
bNext | True if moving to next page |
References _clearIfAtFmtMark(), _moveInsPtNextPrevPage(), _moveToSelectionEnd(), _resetSelection(), AV_CHG_ALL, AV_CHG_MOTION, getPoint(), isSelectionEmpty(), and notifyListeners().
Referenced by IE_Exp_S5::_writeDocument().
void FV_View::warpInsPtNextPrevScreen | ( | bool | bNext | ) |
Move point by one screen
bNext | True if moving to next screen |
References _clearIfAtFmtMark(), _moveInsPtNextPrevScreen(), _moveToSelectionEnd(), _resetSelection(), AV_CHG_ALL, AV_CHG_MOTION, getPoint(), isSelectionEmpty(), and notifyListeners().
References _clearIfAtFmtMark(), _clearSelection(), _ensureInsertionPointOnScreen(), _getPageForXY(), _setPoint(), _updateSelectionHandles(), AV_CHG_HDRFTR, AV_CHG_MOTION, clearHdrFtrEdit(), FV_FrameEdit_NOT_ACTIVE, FV_InlineDrag_NOT_ACTIVE, getEditableBounds(), getPoint(), isSelectionEmpty(), m_FrameEdit, m_InlineImage, fp_Page::mapXYToPosition(), notifyListeners(), setCursorToContext(), setHdrFtrEdit(), FV_VisualInlineImage::setMode(), and FV_FrameEdit::setMode().
Referenced by _moveInsPtNextPrevScreen(), cmdAcceptRejectRevision(), cmdFindRevision(), cmdHyperlinkJump(), cmdInsertPositionedGraphic(), cmdPasteSelectionAt(), cmdSelect(), fl_HdrFtrSectionLayout::collapse(), Defun1(), FV_VisualInlineImage::mouseLeftPress(), FV_FrameEdit::mouseLeftPress(), FV_VisualDragText::mouseRelease(), FV_VisualInlineImage::mouseRelease(), FV_FrameEdit::mouseRelease(), processPageNumber(), s_doContextMenu(), s_doStylesDlg(), FL_DocLayout::setDocViewPageSize(), setFrameFormat(), setSectionFormat(), and FV_SelectionHandles::updateCursor().
friend class CellLine [friend] |
Referenced by _drawOrClearBetweenPositions().
friend class fl_BlockLayout [friend] |
friend class FL_DocLayout [friend] |
Referenced by copyTextToClipboard().
friend class fl_DocListener [friend] |
friend class fl_DocSectionLayout [friend] |
friend class fl_Squiggles [friend] |
friend class FV_FrameEdit [friend] |
friend class FV_Selection [friend] |
friend class FV_SelectionHandles [friend] |
friend class FV_View_BubbleBlocker [friend] |
friend class FV_ViewDoubleBuffering [friend] |
friend class FV_VisualDragText [friend] |
friend class FV_VisualInlineImage [friend] |
friend class GR_Caret [friend] |
bool FV_View::m_autoNumHorizPages [private] |
Referenced by calculateNumHorizPages().
bool FV_View::m_bAllowSmartQuoteReplacement [private] |
Referenced by cmdRedo(), cmdUndo(), and FL_DocLayout::considerSmartQuoteCandidateAt().
bool FV_View::m_bAnnotationPreviewActive [private] |
bool FV_View::m_bCursorBlink [private] |
Referenced by _prefsListener(), focusChange(), and FV_View().
bool FV_View::m_bCursorIsOn [private] |
Referenced by _prefsListener().
bool FV_View::m_bDefaultDirectionRtl [private] |
Referenced by _prefsListener(), and FV_View().
bool FV_View::m_bDontNotifyListeners [private] |
Referenced by findReplaceAll(), and notifyListeners().
bool FV_View::m_bdontSpellCheckRightNow [private] |
bool FV_View::m_bDontUpdateScreenOnGeneralUpdate [private] |
bool FV_View::m_bDragTableLine [private] |
Referenced by _getMouseContext().
bool FV_View::m_bEditHdrFtr [private] |
Referenced by _findBlockAtPosition(), clearHdrFtrEdit(), getEditableBounds(), isHdrFtrEdit(), notifyListeners(), and setHdrFtrEdit().
bool FV_View::m_bEraseSaysStopBlinking [private] |
bool FV_View::m_bgColorInitted [private] |
Referenced by _prefsListener(), and getColorSelBackground().
bool FV_View::m_bInFootnote [private] |
bool FV_View::m_bInsertAtTablePending [private] |
Referenced by _charMotion(), _fixInsertionPointCoords(), _setPoint(), cmdCharInsert(), cmdCharMotion(), insertParagraphBreak(), and setCharFormat().
bool FV_View::m_bIsDraggingImage [private] |
bool FV_View::m_bIsResizingImage [private] |
fv_PropCache FV_View::m_BlockProps [mutable, private] |
Referenced by getBlockFormat().
bool FV_View::m_bMatchCase [private] |
Referenced by _computeFindPrefix(), _findNext(), _findPrev(), findGetMatchCase(), and findSetMatchCase().
bool FV_View::m_bNeedSavedPosition [private] |
Referenced by clearSavedPosition(), markSavedPositionAsNeeded(), needSavedPosition(), and rememberCurrentPosition().
bool FV_View::m_bPointDirection [private] |
Referenced by _fixInsertionPointCoords().
bool FV_View::m_bPointEOL [private] |
Referenced by _charMotion(), _fixInsertionPointCoords(), _getCurrentPage(), _getDocPosFromPoint(), _moveInsPtNextPrevLine(), _setPoint(), cmdCharMotion(), cmdInsertField(), getCurrentPage(), getCurrentPageNumber(), getLeftRulerInfo(), getTopRulerInfo(), isMathSelected(), isPointBeforeListLabel(), notifyListeners(), and setPoint().
bool FV_View::m_bPointVisible [private] |
bool FV_View::m_bReverseFind [private] |
Referenced by findAgain(), findGetReverseFind(), and findSetReverseFind().
bool FV_View::m_bShowPara [private] |
Referenced by setShowPara().
bool FV_View::m_bShowRevisions [private] |
Referenced by FV_View(), setShowRevisions(), toggleShowRevisions(), and updateRevisionMode().
int FV_View::m_bubbleBlockerCount [private] |
Referenced by bubblesAreBlocked(), decremenetBubbleBlockerCount(), and incremenetBubbleBlockerCount().
bool FV_View::m_bUseHebrewContextGlyphs [private] |
Referenced by _prefsListener(), and FV_View().
bool FV_View::m_bWarnedThatRestartNeeded [private] |
Referenced by _prefsListener().
bool FV_View::m_bWholeWord [private] |
Referenced by _findNext(), _findPrev(), findGetWholeWord(), and findSetWholeWord().
FV_Caret_Listener* FV_View::m_caretListener [private] |
Referenced by FV_View(), setGraphics(), and ~FV_View().
AV_ListenerId FV_View::m_CaretListID [private] |
Referenced by FV_View(), and setGraphics().
fv_PropCache FV_View::m_CharProps [mutable, private] |
Referenced by getCharFormat().
fv_ChangeState FV_View::m_chg [private] |
Referenced by notifyListeners().
UT_RGBColor FV_View::m_colorAnnotations[10] [private] |
Referenced by FV_View(), and getColorAnnotation().
UT_RGBColor FV_View::m_colorColumnLine [private] |
Referenced by _prefsListener(), and FV_View().
UT_RGBColor FV_View::m_colorFieldOffset [private] |
Referenced by _prefsListener(), and FV_View().
UT_RGBColor FV_View::m_colorGrammarSquiggle [private] |
Referenced by _prefsListener(), and FV_View().
UT_RGBColor FV_View::m_colorHdrFtr [private] |
Referenced by _prefsListener(), and FV_View().
UT_RGBColor FV_View::m_colorHyperLink [private] |
Referenced by _prefsListener(), and FV_View().
UT_RGBColor FV_View::m_colorImage [private] |
Referenced by _prefsListener(), and FV_View().
UT_RGBColor FV_View::m_colorImageResize [private] |
UT_RGBColor FV_View::m_colorMargin [private] |
Referenced by _prefsListener(), and FV_View().
UT_RGBColor FV_View::m_colorRDFAnchors[10] [private] |
Referenced by FV_View(), and getColorRDFAnchor().
UT_RGBColor FV_View::m_colorRevisions[10] [private] |
Referenced by _prefsListener(), and FV_View().
UT_RGBColor FV_View::m_colorShowPara [private] |
Referenced by _prefsListener(), and FV_View().
UT_RGBColor FV_View::m_colorSpellSquiggle [private] |
Referenced by _prefsListener(), and FV_View().
UT_uint32 FV_View::m_countDisable [private] |
UT_Rect FV_View::m_curImageSel [private] |
bool FV_View::m_doneFind [private] |
Referenced by _findNext(), _findPrev(), _findReplace(), _findReplaceReverse(), findSetStartAt(), and findSetStartAtInsPoint().
UT_Rect FV_View::m_dragImageRect [private] |
FV_BIDI_Order FV_View::m_eBidiOrder [private] |
Referenced by FV_View(), and getViewPersistentProps().
FV_FrameEdit FV_View::m_FrameEdit [private] |
Referenced by _charInsert(), _charMotion(), _deleteSelection(), _doPaste(), _findBlockAtPosition(), _findReplace(), _findReplaceReverse(), _getMouseContext(), _insertField(), activateFrame(), btn0Frame(), btn1Frame(), cmdCharDelete(), cmdDeleteCell(), cmdDeleteCol(), cmdDeleteRow(), cmdInsertGraphic(), cmdInsertTable(), convertPositionedToInLine(), copyFrame(), deleteFrame(), dragFrame(), focusChange(), getFrameEdit(), getFrameLayout(), getFrameStrings_view(), insertAnnotation(), insertFootnote(), insertParagraphBreak(), insertSymbol(), isFrameSelected(), isSelectionEmpty(), releaseFrame(), selectFrame(), setCursorToContext(), and warpInsPtToXY().
Referenced by calculateNumHorizPages().
UT_uint32 FV_View::m_horizPageSpacing [private] |
Referenced by getHorizPageSpacing().
UT_uint32 FV_View::m_iAnnPviewID [private] |
UT_uint32 FV_View::m_iFreePass [private] |
Referenced by getLeftRulerInfo(), getTopRulerInfo(), and notifyListeners().
UT_sint32 FV_View::m_iGrabCell [private] |
Referenced by _extSelToPos(), and _resetSelection().
PT_DocPosition FV_View::m_iHighDrawPoint [private] |
Referenced by _clearSelection(), _drawSelection(), and _eraseSelection().
PT_DocPosition FV_View::m_iInsPoint [private] |
Referenced by _charMotion(), _deleteCellAt(), _findGetCurrentBlock(), _findGetCurrentOffset(), _setPoint(), cmdCharDelete(), cmdCharMotion(), cmdSelect(), cmdSelectTOC(), countWords(), doesSelectionContainRevision(), findSetStartAtInsPoint(), getInsertionPointContext(), getSelectionAnchor(), getSelectionLength(), getSelectionText(), and toggleCase().
PT_DocPosition FV_View::m_iLowDrawPoint [private] |
Referenced by _clearSelection(), _drawSelection(), and _eraseSelection().
GR_Graphics::Cursor FV_View::m_imageSelCursor [private] |
Referenced by getImageSelCursor().
UT_sint32 FV_View::m_iMouseX [private] |
UT_sint32 FV_View::m_iMouseY [private] |
FV_VisualInlineImage FV_View::m_InlineImage [private] |
UT_uint32 FV_View::m_iNumHorizPages [private] |
Referenced by calculateNumHorizPages(), and getNumHorizPages().
UT_sint32 FV_View::m_iOldPageCount [private] |
Referenced by notifyListeners().
UT_uint32 FV_View::m_iPieceTableState [private] |
UT_uint32 FV_View::m_iPointHeight [private] |
Referenced by _ensureInsertionPointOnScreen(), _fixInsertionPointCoords(), and getInsertionPointContext().
PT_DocPosition FV_View::m_iPosAtTable [private] |
Referenced by _charMotion(), _fixInsertionPointCoords(), _setPoint(), cmdCharInsert(), insertParagraphBreak(), and setCharFormat().
PT_DocPosition FV_View::m_iSavedPosition [private] |
Referenced by clearSavedPosition(), getSavedPosition(), and rememberCurrentPosition().
UT_uint32 FV_View::m_iViewRevision [private] |
Referenced by cmdAcceptRejectRevision(), cmdSetRevisionLevel(), FV_View(), getRevisionLevel(), setRevisionLevel(), and updateRevisionMode().
UT_sint32 FV_View::m_ixDragOrigin [private] |
UT_sint32 FV_View::m_ixResizeOrigin [private] |
UT_sint32 FV_View::m_iyDragOrigin [private] |
UT_sint32 FV_View::m_iyResizeOrigin [private] |
UT_Timer* FV_View::m_pAutoScrollTimer [private] |
Referenced by endDrag(), extSelToXY(), extSelToXYword(), and ~FV_View().
PD_Document* FV_View::m_pDoc [private] |
Referenced by _changeCellAttach(), _changeCellParams(), _changeCellTo(), _charInsert(), _charMotion(), _clearIfAtFmtMark(), _clearSelection(), _deleteBookmark(), _deleteCellAt(), _deleteHyperlink(), _deleteSelection(), _deleteXMLID(), _doPaste(), _findPositionCoords(), _findReplace(), _findReplaceReverse(), _fixInsertionPointAfterRevision(), _generalUpdate(), _getMouseContext(), _insertCellAt(), _insertField(), _insertGraphic(), _insertSectionBreak(), _makePointLegal(), _MergeCells(), _pasteFromLocalTo(), _populateThisHdrFtr(), _removeThisHdrFtr(), _restoreCellParams(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), _setPoint(), _updateDatesBeforeSave(), addCaret(), allowChangeInsPoint(), appendStyle(), canDo(), changeListStyle(), FV_Selection::checkSelectAll(), cmdAcceptRejectRevision(), cmdAdvanceNextPrevCell(), cmdAutoFitTable(), cmdAutoSizeCols(), cmdAutoSizeRows(), cmdCharDelete(), cmdCharInsert(), cmdCut(), cmdDeleteCell(), cmdDeleteCol(), cmdDeleteEmbed(), cmdDeleteRow(), cmdDeleteTable(), cmdInsertBookmark(), cmdInsertCol(), cmdInsertEmbed(), cmdInsertGraphic(), cmdInsertGraphicAtStrux(), cmdInsertHyperlink(), cmdInsertLatexMath(), cmdInsertMathML(), cmdInsertPositionedGraphic(), cmdInsertRow(), cmdInsertTable(), cmdInsertTOC(), cmdInsertXMLID(), cmdMergeCells(), cmdPaste(), cmdPasteSelectionAt(), cmdRedo(), cmdRemoveHdrFtr(), cmdSave(), cmdSaveAs(), cmdSelectColumn(), cmdSelectNoNotify(), cmdSetRevisionLevel(), cmdSplitCells(), cmdStartList(), cmdStopList(), cmdTableToText(), cmdTextToTable(), cmdUndo(), cmdUpdateEmbed(), convertInLineToPositioned(), convertPositionedToInLine(), copyFrame(), copyToLocal(), countWords(), createThisHdrFtr(), endDragSelection(), extSelToXYword(), findCellPosAt(), findReplaceAll(), findSetStartAt(), FV_View(), getAllAttrProp(), getBlockFormat(), getBlockFromSDH(), getCellLineStyle(), getCellParams(), getCellProperty(), getCharFormat(), getDocumentRangeOfCurrentSelection(), getEditableBounds(), getFrameLayout(), getLeftRulerInfo(), getPageSize(), getRevisionLevel(), getSectionFormat(), getTopRulerInfo(), gotoTarget(), insertAnnotation(), insertFootnote(), insertFootnoteSection(), insertHeaderFooter(), insertPageNum(), insertParaBreakIfNeededAtPos(), insertParagraphBreak(), insertParagraphBreaknoListUpdate(), insertSectionBreak(), insertSymbol(), isActive(), isImageAtStrux(), isInFrame(), isInTable(), isMarkRevisions(), isNumberedHeadingHere(), isParaBreakNeededAtPos(), isPointLegal(), moveInsPtTo(), notifyListeners(), pasteFromLocalTo(), populateThisHdrFtr(), processPageNumber(), processSelectedBlocks(), queryCharFormat(), removeStruxAttrProps(), removeThisHdrFtr(), resetCharFormat(), RestoreSavedPieceTableState(), saveSelectedImage(), selectFrame(), setAnnotationAuthor(), setAnnotationText(), setAnnotationTitle(), setBlockFormat(), setBlockIndents(), setCellFormat(), setCharFormat(), setCollapsedRange(), setDontChangeInsPoint(), setFrameFormat(), setRevisionLevel(), setSectionFormat(), setShowPara(), setShowRevisions(), setStyleAtPos(), setTableFormat(), setTOCProps(), SetupSavePieceTableState(), toggleCase(), toggleMarkRevisions(), undoCount(), updateCarets(), and updateRevisionMode().
fp_Run* FV_View::m_pDraggedImageRun [private] |
fl_HdrFtrShadow* FV_View::m_pEditShadow [private] |
GR_Graphics* FV_View::m_pG [private] |
Referenced by _charInsert(), _clearSelection(), _deleteSelection(), _draw(), _drawOrClearBetweenPositions(), _fixInsertionPointCoords(), _insertGraphic(), _moveInsPtNextPrevLine(), _prefsListener(), _setPoint(), addCaret(), cmdInsertGraphicAtStrux(), cmdScroll(), cmdSelectTOC(), copyTextToClipboard(), focusChange(), FV_View(), getPageViewLeftMargin(), getPageViewSep(), getPageViewTopMargin(), getTabToggleAreaWidth(), isSelectionEmpty(), killBlink(), notifyListeners(), removeCaret(), replaceGraphics(), setCursorWait(), setGraphics(), setXScrollOffset(), and setYScrollOffset().
FL_DocLayout* FV_View::m_pLayout [private] |
Referenced by _changeCellParams(), _charMotion(), _deleteBookmark(), _findBlockAtPosition(), _findGetNextBlockBuffer(), _findGetPrevBlockBuffer(), _findPositionCoords(), _fixInsertionPointCoords(), _getDocPosFromPoint(), _getMouseContext(), _getPageForXY(), _getPageXandYOffset(), _isSpaceBefore(), _moveInsPtNextPrevLine(), _moveInsPtNthPage(), _restoreCellParams(), _setPoint(), calculateNumHorizPages(), calculateZoomPercentForPageWidth(), FV_Selection::checkSelectAll(), cmdAdvanceNextPrevCell(), cmdCharDelete(), cmdCharInsert(), cmdDeleteCol(), cmdDeleteRow(), cmdInsertCol(), cmdInsertRow(), cmdScroll(), cmdSetRevisionLevel(), cmdSplitCells(), countAnnotations(), draw(), findCellPosAt(), fontMetricsChange(), getAnnotationLayout(), getAnnotationText(), getBlockFromSDH(), getClosestAnnotation(), getClosestEndnote(), getClosestFootnote(), getCurrentPageNumForStatusBar(), getEditableBounds(), getEmbedDepth(), getLayout(), getMaxHeight(), getPageViewLeftMargin(), getPageViewTopMargin(), getSelectionText(), getTableAtPos(), getTextBetweenPos(), getTextInDocument(), getVisibleDocumentPagesAndRectangles(), getWidthPagesInRow(), getWidthPrevPagesInRow(), gotoTarget(), insertHeaderFooter(), insertPageNum(), insertParagraphBreak(), insertSymbol(), isInTable(), rebuildLayout(), replaceGraphics(), FV_Selection::setSelectionAnchor(), setShowRevisions(), setViewMode(), toggleCase(), and updateLayout().
AP_LeftRuler* FV_View::m_pLeftRuler [private] |
UT_ByteBuf* FV_View::m_pLocalBuf [private] |
Referenced by _pasteFromLocalTo(), copyToLocal(), getLocalBuf(), pasteFromLocalTo(), and ~FV_View().
void* FV_View::m_pParentData [private] |
Reimplemented from AV_View.
Referenced by _drawOrClearBetweenPositions(), and focusChange().
PreViewMode FV_View::m_previewMode [private] |
Referenced by _fixInsertionPointCoords(), _getMouseContext(), FV_VisualInlineImage::cleanUP(), cmdDeleteHyperlink(), cmdPasteSelectionAt(), copyFrame(), deleteFrame(), getLastMouseContext(), FV_VisualInlineImage::mouseCopy(), FV_FrameEdit::mouseLeftPress(), FV_FrameEdit::mouseRelease(), saveSelectedImage(), and selectFrame().
AP_TopRuler* FV_View::m_pTopRuler [private] |
Referenced by getTabToggleAreaWidth(), and getTopRulerInfo().
Referenced by _draw(), registerDoubleBufferingObject(), and unregisterDoubleBufferingObject().
std::string FV_View::m_sDocUUID [private] |
Referenced by addCaret(), FV_View(), isActive(), and updateCarets().
fv_PropCache FV_View::m_SecProps [mutable, private] |
Referenced by getSectionFormat().
FV_Selection FV_View::m_Selection [private] |
Referenced by _clearSelection(), _deleteSelection(), _drawSelection(), _eraseSelection(), _extSel(), _extSelToPos(), _getMouseContext(), _moveToSelectionEnd(), _resetSelection(), _setPoint(), _setSelectionAnchor(), cmdCut(), cmdInsertHyperlink(), cmdPaste(), cmdSelectColumn(), cmdSelectNoNotify(), cmdSelectTOC(), countWords(), extSelToXYword(), FV_View(), getAllAttrProp(), getAttributes(), getBlockFormat(), getBlocksInSelection(), getCharFormat(), getCmdInsertRangeVariables(), getDocumentRangeOfCurrentSelection(), getNthSelection(), getNumRowsInSelection(), getNumSelections(), getPrevSelectionMode(), getSectionFormat(), getSelectedImage(), getSelectedObject(), getSelectionAnchor(), getSelectionLeftAnchor(), getSelectionLength(), getSelectionMode(), getSelectionRightAnchor(), getSelectionText(), getStyle(), insertAnnotation(), isPosSelected(), isSelectionEmpty(), isTOCSelected(), processSelectedBlocks(), queryCharFormat(), selectRange(), setBlockFormat(), setCellFormat(), setCharFormat(), setFrameFormat(), setSectionFormat(), setSelectionMode(), setStyleAtPos(), setTableFormat(), swapSelectionOrientation(), and toggleCase().
Referenced by _updateSelectionHandles(), cmdCut(), focusChange(), and setVisualSelectionEnabled().
UT_Rect FV_View::m_selImageRect [private] |
Referenced by _getMouseContext(), and getInsertionPointContext().
UT_UCSChar* FV_View::m_sFind [private] |
UT_UCSChar* FV_View::m_sReplace [private] |
Referenced by _findReplace(), _findReplaceReverse(), findGetReplaceString(), findReplace(), findReplaceReverse(), findSetReplaceString(), and ~FV_View().
PT_DocPosition FV_View::m_startPosition [private] |
UT_GenericVector<fv_CaretProps *> FV_View::m_vecCarets [private] |
Referenced by _fixAllInsertionPointCoords(), addCaret(), removeCaret(), updateCarets(), and ~FV_View().
ViewMode FV_View::m_viewMode [private] |
Referenced by setViewMode().
FV_VisualDragText FV_View::m_VisualDragText [private] |
Referenced by copyVisualText(), dragVisualText(), and pasteVisualText().
bool FV_View::m_wrappedEnd [private] |
UT_sint32 FV_View::m_xLastMouse [private] |
Referenced by _actuallyScroll(), btn0VisualDrag(), endDrag(), extSelToXY(), and extSelToXYword().
UT_sint32 FV_View::m_xPoint [private] |
Referenced by _ensureInsertionPointOnScreen(), _fixInsertionPointCoords(), and getInsertionPointContext().
UT_sint32 FV_View::m_xPoint2 [private] |
Referenced by _fixInsertionPointCoords().
UT_sint32 FV_View::m_xPointSticky [private] |
Referenced by _fixInsertionPointCoords(), and _moveInsPtNextPrevLine().
UT_sint32 FV_View::m_yLastMouse [private] |
Referenced by _actuallyScroll(), btn0VisualDrag(), endDrag(), extSelToXY(), and extSelToXYword().
UT_sint32 FV_View::m_yPoint [private] |
Referenced by _ensureInsertionPointOnScreen(), _fixInsertionPointCoords(), and getInsertionPointContext().
UT_sint32 FV_View::m_yPoint2 [private] |
Referenced by _fixInsertionPointCoords().