#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, fv_ChangeState::bDirty, fv_ChangeState::bRedo, fv_ChangeState::bSelection, fv_ChangeState::bUndo, 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(), fv_ChangeState::iColumn, AD_Document::isShowRevisions(), m_bCursorBlink, m_bDefaultDirectionRtl, AP_FrameData::m_bIsWidget, m_bShowRevisions, m_bUseHebrewContextGlyphs, m_caretListener, m_CaretListID, m_chg, 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(), fv_ChangeState::propsBlock, fv_ChangeState::propsChar, fv_ChangeState::propsSection, 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] |
References _prefsListener(), DELETEP, FREEP, XAP_App::getPrefs(), m_caretListener, m_chg, AV_View::m_pApp, m_pAutoScrollTimer, m_pLocalBuf, m_sFind, m_sReplace, m_vecCarets, fv_ChangeState::propsBlock, fv_ChangeState::propsChar, fv_ChangeState::propsSection, XAP_Prefs::removeListener(), and UT_VECTOR_PURGEALL.
| void FV_View::_actuallyScroll | ( | UT_Worker * | pTimer | ) | [static, protected] |
References _ensureInsertionPointOnScreen(), AV_SCROLLCMD_LINEDOWN, AV_SCROLLCMD_LINELEFT, AV_SCROLLCMD_LINERIGHT, AV_SCROLLCMD_LINEUP, bScrollRunning, 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(), bScrollRunning, 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().
| UT_sint32 FV_View::_changeCellParams | ( | PT_DocPosition | posTable, | |
| PL_StruxDocHandle | tableSDH | |||
| ) |
Change the parameters of the table. Return the line type of the table. We'll restore this later.
References _saveAndNotifyPieceTableChange(), PD_Document::beginUserAtomicGlob(), UT_String::c_str(), PD_Document::changeStruxFmt(), PD_Document::disableListUpdates(), PD_Document::getPropertyFromSDH(), getRevisionLevel(), isShowRevisions(), m_pDoc, PTC_AddFmt, PTX_SectionTable, PD_Document::setDontChangeInsPoint(), PD_Document::setDontImmediatelyLayout(), UT_DEBUGMSG, and UT_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 | |||
| ) |
This method changes the coordinates of the cell at (row,col) in the table specified by posTable to the cordinates specified.
References UT_String::c_str(), PD_Document::changeStruxFmt(), findCellPosAt(), m_pDoc, PTC_AddFmt, PTX_SectionCell, and UT_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(), _setPoint(), 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(), fl_AutoNum::getDecimal(), fl_AutoNum::getDelim(), getEditableBounds(), fl_ContainerLayout::getFirstContainer(), fl_AutoNum::getID(), XAP_App::getKbdLanguage(), fl_BlockLayout::getLevel(), fl_BlockLayout::getListType(), getPoint(), XAP_App::getPrefsValueBool(), fl_BlockLayout::getProperty(), fl_AutoNum::getStartValue32(), 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 | ( | void | ) | [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(), cmdTextToTable(), cmdUndo(), cmdUnselectSelection(), createThisHdrFtr(), extSelToXYword(), findNext(), findPrev(), gotoTarget(), insertAnnotation(), insertFootnote(), insertHeaderFooter(), FV_VisualInlineImage::mouseCut(), FV_FrameEdit::mouseRelease(), moveInsPtTo(), FV_Selection::pasteRowOrCol(), populateThisHdrFtr(), processSelectedBlocks(), removeThisHdrFtr(), selectFrame(), 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, 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 | |||
| ) | [protected] |
References _deleteXMLID(), and s.
| 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().
| 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 dg_DrawArgs::bDirtyRunsOnly, GR_Painter::beginDoubleBuffering(), calculateNumHorizPages(), GR_Graphics::CLR3D_BevelDown, fp_Page::draw(), GR_Painter::drawLine(), GR_Painter::fillRect(), FV_ViewDoubleBuffering::getCallDrawOnlyAtTheEnd(), fg_FillType::getColor(), GR_Graphics::getColor3D(), getColorMargin(), fp_Page::getFillType(), getLayout(), getNumHorizPages(), fp_Page::getPageNumber(), getPageViewLeftMargin(), getPageViewSep(), getPageViewTopMargin(), getPageYOffset(), AV_View::getParentData(), getViewMode(), 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(), and _extSelToPos().
| 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(), selectRange(), 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(), _restoreCellParams(), _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(), 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(), setBlockFormat(), setCharFormat(), 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(), _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 | ( | 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::_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(), _swapSelectionOrientation(), 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(), setCellFormat(), setCharFormat(), setCollapsedRange(), setShowRevisions(), setViewMode(), setXScrollOffset(), and setYScrollOffset().
| 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(), 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_CellContainer::getRightPos(), fp_Line::getScreenOffsets(), fp_Page::getScreenOffsets(), fp_Line::getScreenRect(), getSelectionAnchor(), fp_CellContainer::getStartY(), fp_CellContainer::getStopY(), PD_Document::getStruxOfTypeFromPosition(), fp_CellContainer::getTopAttach(), fp_Run::getType(), fp_Run::getWidth(), getWidthPagesInRow(), 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(), 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 | ) | [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(), and warpInsPtToXY().
| bool FV_View::_insertCellAfter | ( | PT_DocPosition | posTable, | |
| UT_sint32 | rowold, | |||
| UT_sint32 | colold, | |||
| UT_sint32 | left, | |||
| UT_sint32 | right, | |||
| UT_sint32 | top, | |||
| UT_sint32 | bot | |||
| ) |
This method inserts the cell after the coordinates of the cell at (row,col) in the table specified by posTable at the cordinates specified.
References UT_String::c_str(), findCellPosAt(), PD_Document::getEndCellStruxFromCellSDH(), PD_Document::getStruxOfTypeFromPosition(), PD_Document::getStruxPosition(), PD_Document::insertStrux(), m_pDoc, PTX_Block, PTX_EndCell, PTX_SectionCell, and UT_String_sprintf().
| bool FV_View::_insertCellBefore | ( | PT_DocPosition | posTable, | |
| UT_sint32 | rowold, | |||
| UT_sint32 | colold, | |||
| UT_sint32 | left, | |||
| UT_sint32 | right, | |||
| UT_sint32 | top, | |||
| UT_sint32 | bot | |||
| ) |
This method inserts the cell before the coordinates of the cell at (row,col) in the table specified by posTable at the cordinates specified.
References UT_String::c_str(), findCellPosAt(), PD_Document::insertStrux(), m_pDoc, PTX_Block, PTX_EndCell, PTX_SectionCell, and UT_String_sprintf().
| bool FV_View::_insertField | ( | const char * | szName, | |
| const gchar ** | extra_attrs = NULL, |
|||
| const gchar ** | extra_props = NULL | |||
| ) | [protected] |
References _deleteSelection(), _makePointLegal(), PD_Document::beginUserAtomicGlob(), PD_Document::endUserAtomicGlob(), gchar, 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 | ( | FG_Graphic * | pFG, | |
| const char * | szName, | |||
| PT_DocPosition | pos | |||
| ) | [protected] |
| UT_Error FV_View::_insertGraphic | ( | FG_Graphic * | pFG, | |
| const char * | szName | |||
| ) | [protected] |
References _makePointLegal(), GR_Graphics::getDeviceResolution(), getPoint(), FG_Graphic::insertIntoDocument(), isPointLegal(), m_pDoc, m_pG, UT_ASSERT, UT_ERROR, and UT_return_val_if_fail.
Referenced by cmdInsertGraphic().
| 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, gchar, 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, | |
| fl_PartOfBlock * | 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(), fl_DocSectionLayout::getTopMargin(), fl_SectionLayout::getType(), getViewMode(), getWidthPrevPagesInRow(), fp_ContainerObject::getY(), fp_VerticalContainer::getY(), 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 | ) | [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(), _swapSelectionOrientation(), getPoint(), FV_Selection::getSelectionAnchor(), isSelectionEmpty(), m_Selection, 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(), FV_FrameEdit::mouseRelease(), 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, | |
| UT_sint32 | iLineType | |||
| ) |
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 _ensureInsertionPointOnScreen(), _generalUpdate(), _restorePieceTableState(), PD_Document::allowChangeInsPoint(), UT_String::c_str(), PD_Document::changeStruxFmt(), PD_Document::enableListUpdates(), PD_Document::endUserAtomicGlob(), m_pDoc, PTC_AddFmt, PTX_SectionTable, PD_Document::setDontImmediatelyLayout(), PD_Document::updateDirtyLists(), UT_DEBUGMSG, and UT_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(), 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(),