Public Member Functions | Protected Member Functions | Static Protected Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Friends

FV_View Class Reference

#include <fv_View.h>

Inheritance diagram for FV_View:
AV_View

List of all members.

Public Member Functions

 FV_View (XAP_App *, void *, FL_DocLayout *)
virtual ~FV_View ()
virtual GR_GraphicsgetGraphics (void) const
void setGraphics (GR_Graphics *pG)
void replaceGraphics (GR_Graphics *pG)
virtual PT_DocPosition getPoint (void) const
PT_DocPosition getSelectionAnchor (void) const
PT_DocPosition getSelectionLeftAnchor (void) const
PT_DocPosition getSelectionRightAnchor (void) const
UT_uint32 getSelectionLength (void) const
UT_sint32 getFrameMargin (void) const
virtual void focusChange (AV_Focus focus)
virtual bool isActive (void) const
virtual void setXScrollOffset (UT_sint32)
virtual void setYScrollOffset (UT_sint32)
virtual void cmdScroll (AV_ScrollCmd cmd, UT_uint32 iPos=0)
virtual void cmdHyperlinkJump (UT_sint32 xPos, UT_sint32 yPos)
void cmdHyperlinkJump (PT_DocPosition pos)
void cmdHyperlinkCopyLocation (PT_DocPosition pos)
virtual void draw (const UT_Rect *pRect=static_cast< UT_Rect * >(NULL))
virtual void drawSelectionBox (UT_Rect &box, bool drawHandles)
void setVisualSelectionEnabled (bool bActive)
const PP_AttrPropgetAttrPropForPoint () const
virtual bool notifyListeners (const AV_ChangeMask hint)
virtual bool canDo (bool bUndo) const
virtual UT_uint32 undoCount (bool bUndo) const
virtual void cmdUndo (UT_uint32 count)
virtual void cmdRedo (UT_uint32 count)
virtual UT_Error cmdSave (void)
virtual UT_Error cmdSaveAs (const char *szFilename, int ieft)
virtual UT_Error cmdSaveAs (const char *szFilename, int ieft, bool cpy)
UT_Error cmdInsertField (const char *szName, const PP_PropertyVector &extra_attrs=PP_NOPROPS, const PP_PropertyVector &extra_props=PP_NOPROPS)
UT_Error cmdInsertBookmark (const char *szName)
UT_Error cmdDeleteBookmark (const char *szName)
UT_Error cmdInsertHyperlink (const char *szName, const char *szTitle=NULL)
UT_Error cmdInsertXMLID (const std::string &name)
UT_Error cmdDeleteXMLID (const std::string &name)
fp_RungetHyperLinkRun (PT_DocPosition pos)
UT_Error cmdDeleteHyperlink ()
bool cmdInsertMathML (const char *szFileName, PT_DocPosition pos)
bool cmdInsertEmbed (const UT_ConstByteBufPtr &pBuf, PT_DocPosition pos, const char *szMime, const char *szProps)
bool cmdUpdateEmbed (const UT_ConstByteBufPtr &pBuf, const char *szMime, const char *szProps)
bool cmdUpdateEmbed (fp_Run *pRun, const UT_ConstByteBufPtr &pBuf, const char *szMime, const char *szProps)
bool cmdDeleteEmbed (fp_Run *pRun)
bool cmdInsertLatexMath (UT_UTF8String &sLatex, UT_UTF8String &sMath, bool compact)
UT_Error cmdInsertTOC (void)
UT_Error cmdHyperlinkStatusBar (UT_sint32 xPos, UT_sint32 yPos)
UT_Error cmdInsertGraphic (const FG_ConstGraphicPtr &)
UT_Error cmdInsertGraphicAtStrux (const FG_ConstGraphicPtr &pFG, PT_DocPosition iPos, PTStruxType iStruxType)
virtual void toggleCase (ToggleCase c)
virtual void setPaperColor (const gchar *clr)
virtual bool isDocumentPresent (void) const
virtual void cmdCopy (bool bToClipboard=true)
virtual void cmdCut (void)
virtual void cmdPaste (bool bHonorFormatting=true)
virtual void cmdPasteSelectionAt (UT_sint32 xPos, UT_sint32 yPos)
void pasteFromLocalTo (PT_DocPosition pos)
void _pasteFromLocalTo (PT_DocPosition pos)
void copyToLocal (PT_DocPosition pos1, PT_DocPosition pos2)
void copyTextToClipboard (const UT_UCS4String sIncoming, bool useClipboard=true)
virtual void getTopRulerInfo (AP_TopRulerInfo *pInfo)
virtual void getTopRulerInfo (PT_DocPosition pos, AP_TopRulerInfo *pInfo)
virtual void getLeftRulerInfo (AP_LeftRulerInfo *pInfo)
virtual void getLeftRulerInfo (PT_DocPosition pos, AP_LeftRulerInfo *pInfo)
virtual void setCursorWait (void)
virtual void clearCursorWait (void)
virtual void setCursorToContext (void)
EV_EditMouseContext getLastMouseContext (void)
void getMousePos (UT_sint32 *x, UT_sint32 *y)
virtual EV_EditMouseContext getMouseContext (UT_sint32 xPos, UT_sint32 yPos)
EV_EditMouseContext _getMouseContext (UT_sint32 xPos, UT_sint32 yPos)
virtual EV_EditMouseContext getInsertionPointContext (UT_sint32 *pxPos, UT_sint32 *pyPos)
void setPrevMouseContext (EV_EditMouseContext emc)
virtual void updateLayout (void)
virtual void rebuildLayout (void)
virtual void remeasureCharsWithoutRebuild ()
virtual void fontMetricsChange ()
virtual bool isSelectionEmpty (void) const
bool isSelectAll (void) const
virtual void cmdUnselectSelection (void)
void getDocumentRangeOfCurrentSelection (PD_DocumentRange *pdr) const
PT_DocPosition mapDocPos (FV_DocPos dp)
PT_DocPosition mapDocPosSimple (FV_DocPos dp)
PT_DocPosition saveSelectedImage (const char *toFile)
PT_DocPosition saveSelectedImage (UT_ConstByteBufPtr &outByteBuf)
PT_DocPosition getSelectedImage (const char **dataId) const
PT_DocPosition getSelectedImage (const char **dataId, const fp_Run **pImRun) const
fp_RungetSelectedObject (void) const
void getTextInCurrentBlock (UT_GrowBuf &buf) const
void getTextInCurrentSection (UT_GrowBuf &buf) const
void getTextInDocument (UT_GrowBuf &buf) const
bool getLineBounds (PT_DocPosition pos, PT_DocPosition *start, PT_DocPosition *end)
UT_UCSChar getChar (PT_DocPosition pos, UT_sint32 *x=NULL, UT_sint32 *y=NULL, UT_uint32 *width=NULL, UT_uint32 *height=NULL)
FL_DocLayoutgetLayout () const
UT_uint32 getCurrentPageNumForStatusBar (void) const
fp_PagegetCurrentPage (void) const
fl_BlockLayoutgetCurrentBlock (void) const
void draw (int page, dg_DrawArgs *da)
void getPageScreenOffsets (const fp_Page *pPage, UT_sint32 &xoff, UT_sint32 &yoff) const
void getPageYOffset (const fp_Page *pPage, UT_sint32 &yoff) const
virtual UT_sint32 getPageViewLeftMargin (void) const
virtual UT_sint32 getPageViewTopMargin (void) const
virtual UT_sint32 getPageViewSep (void) const
bool setSectionFormat (const PP_PropertyVector &properties)
bool getSectionFormat (PP_PropertyVector &properties) const
bool setBlockIndents (bool doLists, double indentChange, double page_size)
bool setCollapsedRange (PT_DocPosition posLow, PT_DocPosition posHigh, const PP_PropertyVector &properties)
bool setBlockFormat (const PP_PropertyVector &properties)
bool getBlockFormat (PP_PropertyVector &properties, bool bExpandStyles=true) const
bool removeStruxAttrProps (PT_DocPosition ipos1, PT_DocPosition ipos2, PTStruxType iStrux, const PP_PropertyVector &attributes, const PP_PropertyVector &properties)
bool isImageAtStrux (PT_DocPosition ipos1, PTStruxType iStrux)
bool processPageNumber (HdrFtrType hfType, const PP_PropertyVector &atts)
bool isTabListBehindPoint (UT_sint32 &iNumToDelete) const
bool isTabListAheadPoint (void) const
void processSelectedBlocks (FL_ListType listType)
void getBlocksInSelection (UT_GenericVector< fl_BlockLayout * > *vBlock, bool bAllBlocks=true) const
UT_sint32 getNumColumnsInSelection (void) const
UT_sint32 getNumRowsInSelection (void) const
void getAllBlocksInList (UT_GenericVector< fl_BlockLayout * > *vBlock) const
bool isPointBeforeListLabel (void) const
bool isCurrentListBlockEmpty (void) const
bool cmdStartList (const gchar *style)
bool cmdStopList (void)
void changeListStyle (const fl_AutoNumPtr &pAuto, FL_ListType lType, UT_uint32 startv, const gchar *pszDelim, const gchar *pszDecimal, const gchar *pszFormat, float Aligm, float Indent)
void setDontChangeInsPoint (void)
void allowChangeInsPoint (void)
bool getAttributes (const PP_AttrProp **ppSpanAP, const PP_AttrProp **ppBlockAP=NULL, PT_DocPosition posStart=0) const
bool getAllAttrProp (const PP_AttrProp *&pSpanAP, const PP_AttrProp *&pBlockAP, const PP_AttrProp *&pSectionAP, const PP_AttrProp *&pDocAP) const
bool queryCharFormat (const gchar *szProperty, UT_UTF8String &szValue, bool &bExplicitlyDefined, bool &bMixedSelection) const
bool queryCharFormat (const gchar *szProperty, UT_UTF8String &szValue, bool &bExplicitlyDefined, PT_DocPosition position) const
bool setCharFormat (const PP_PropertyVector &properties, const PP_PropertyVector &attribs=PP_NOPROPS)
bool resetCharFormat (bool bAll)
bool getCharFormat (PP_PropertyVector &properties, bool bExpandStyles=true) const
bool getCharFormat (PP_PropertyVector &properties, bool bExpandStyles, PT_DocPosition posStart) const
fl_BlockLayoutgetBlockFromSDH (pf_Frag_Strux *sdh)
bool setStyle (const gchar *style, bool bDontGeneralUpdate=false)
bool setStyleAtPos (const gchar *style, PT_DocPosition posStart, PT_DocPosition posEnd, bool bDontGeneralUpdate=false)
bool isNumberedHeadingHere (fl_BlockLayout *pBlock) const
bool getStyle (const gchar **style) const
bool appendStyle (const PP_PropertyVector &style)
UT_uint32 getCurrentPageNumber (void) const
bool getEditableBounds (bool bEnd, PT_DocPosition &docPos, bool bOverride=false) const
bool isParaBreakNeededAtPos (PT_DocPosition pos) const
bool insertParaBreakIfNeededAtPos (PT_DocPosition pos)
void insertParagraphBreak (void)
void insertParagraphBreaknoListUpdate (void)
void insertSectionBreak (BreakSectionType type)
void insertSectionBreak (void)
void insertSymbol (UT_UCSChar c, const gchar *symfont)
bool isLeftMargin (UT_sint32 xPos, UT_sint32 yPos) const
void selectRange (PT_DocPosition start, PT_DocPosition end)
void selectRange (const std::pair< PT_DocPosition, PT_DocPosition > &range)
void cmdSelect (UT_sint32 xPos, UT_sint32 yPos, FV_DocPos dpBeg, FV_DocPos dpEnd)
void cmdSelectTOC (UT_sint32 xPos, UT_sint32 yPos)
bool isTOCSelected (void) const
bool setTOCProps (PT_DocPosition pos, const char *szProps)
bool cmdSelectNoNotify (PT_DocPosition dpBeg, PT_DocPosition dpEnd)
void cmdSelect (PT_DocPosition dpBeg, PT_DocPosition dpEnd)
void cmdSelect (const std::pair< PT_DocPosition, PT_DocPosition > &range)
void cmdCharMotion (bool bForward, UT_uint32 count)
bool cmdCharInsert (const UT_UCSChar *text, UT_uint32 count, bool bForce=false)
bool cmdCharInsert (const std::string &s, bool bForce=false)
void cmdCharDelete (bool bForward, UT_uint32 count)
void delTo (FV_DocPos dp)
void getSelectionText (UT_UCS4Char *&text) const
UT_UCSChargetTextBetweenPos (PT_DocPosition pos1, PT_DocPosition pos2) const
PT_DocPosition getInsPoint () const
void warpInsPtToXY (UT_sint32 xPos, UT_sint32 yPos, bool bClick)
void moveInsPtTo (FV_DocPos dp, bool bClearSelection=true)
void moveInsPtTo (PT_DocPosition dp)
void warpInsPtNextPrevPage (bool bNext)
void warpInsPtNextPrevLine (bool bNext)
void warpInsPtNextPrevScreen (bool bNext)
void extSelHorizontal (bool bForward, UT_uint32 count)
void extSelToXY (UT_sint32 xPos, UT_sint32 yPos, bool bDrag)
void extSelToXYword (UT_sint32 xPos, UT_sint32 yPos, bool bDrag)
void extSelTo (FV_DocPos dp)
void swapSelectionOrientation (void)
void extSelNextPrevLine (bool bNext)
void extSelNextPrevPage (bool bNext)
void extSelNextPrevScreen (bool bNext)
void endDrag (UT_sint32 xPos, UT_sint32 yPos)
void endDragSelection (UT_sint32 xPos, UT_sint32 yPos)
PT_DocPosition getDocPositionFromXY (UT_sint32 xpos, UT_sint32 ypos, bool bNotFrames=false)
PT_DocPosition getDocPositionFromLastXY (void)
fl_BlockLayoutgetBlockAtPosition (PT_DocPosition pos) const
virtual void updateScreen (bool bDirtyRunsOnly=true)
bool isInDocSection (PT_DocPosition pos=0) const
void cutVisualText (UT_sint32 x, UT_sint32 y)
void copyVisualText (UT_sint32 x, UT_sint32 y)
void dragVisualText (UT_sint32 x, UT_sint32 y)
void pasteVisualText (UT_sint32 x, UT_sint32 y)
void btn0VisualDrag (UT_sint32 x, UT_sint32 y)
const FV_VisualDragTextgetVisualText (void) const
FV_VisualDragTextgetVisualText (void)
const UT_ByteBufgetLocalBuf (void) const
void btn0InlineImage (UT_sint32 x, UT_sint32 y)
void btn1InlineImage (UT_sint32 x, UT_sint32 y)
void btn1CopyImage (UT_sint32 x, UT_sint32 y)
void dragInlineImage (UT_sint32 x, UT_sint32 y)
void releaseInlineImage (UT_sint32 x, UT_sint32 y)
FV_FrameEditgetFrameEdit (void)
void btn0Frame (UT_sint32 x, UT_sint32 y)
void btn1Frame (UT_sint32 x, UT_sint32 y)
void dragFrame (UT_sint32 x, UT_sint32 y)
void releaseFrame (UT_sint32 x, UT_sint32 y)
bool isInFrame (PT_DocPosition pos) const
void deleteFrame (void)
void copyFrame (bool b_keepFrame=true)
void selectFrame (void)
bool isFrameSelected (void) const
void activateFrame (void)
fl_FrameLayoutgetFrameLayout (PT_DocPosition pos) const
fl_FrameLayoutgetFrameLayout (void) const
void setFrameFormat (const PP_PropertyVector &props)
void setFrameFormat (const PP_PropertyVector &attribs, const PP_PropertyVector &props, fl_BlockLayout *pNewBL=NULL)
void setFrameFormat (const PP_PropertyVector &props, const FG_ConstGraphicPtr &pFG, const std::string &dataID, fl_BlockLayout *pNewBL=NULL)
bool getFrameStrings_view (UT_sint32 x, UT_sint32 y, fv_FrameStrings &FrameStrings, fl_BlockLayout **pCloseBL, fp_Page **ppPage)
void convertInLineToPositioned (PT_DocPosition pos, const PP_PropertyVector &attribs)
bool convertPositionedToInLine (fl_FrameLayout *pFrame)
UT_Error cmdInsertPositionedGraphic (const FG_ConstGraphicPtr &pFG, UT_sint32 mouseX, UT_sint32 mouseY)
UT_Error cmdInsertPositionedGraphic (const FG_ConstGraphicPtr &pFG)
bool isPosSelected (PT_DocPosition pos) const
bool isXYSelected (UT_sint32 xPos, UT_sint32 yPos) const
FV_SelectionMode getSelectionMode (void) const
FV_SelectionMode getPrevSelectionMode (void) const
PD_DocumentRangegetNthSelection (UT_sint32 i) const
UT_sint32 getNumSelections (void) const
void setSelectionMode (FV_SelectionMode selMode)
bool isInHdrFtr (PT_DocPosition pos) const
void setHdrFtrEdit (fl_HdrFtrShadow *pShadow)
void clearHdrFtrEdit (void)
bool isHdrFtrEdit (void) const
fl_HdrFtrShadowgetEditShadow (void) const
void rememberCurrentPosition (void)
PT_DocPosition getSavedPosition (void) const
void clearSavedPosition (void)
void markSavedPositionAsNeeded (void)
bool needSavedPosition (void) const
void insertHeaderFooter (HdrFtrType hfType)
bool insertHeaderFooter (const PP_PropertyVector &props, HdrFtrType hfType, fl_DocSectionLayout *pDSL=NULL)
void cmdEditHeader (void)
void cmdEditFooter (void)
void cmdRemoveHdrFtr (bool isHeader)
bool isFooterOnPage (void) const
bool isHeaderOnPage (void) const
void SetupSavePieceTableState (void)
void RestoreSavedPieceTableState (void)
void removeThisHdrFtr (HdrFtrType hfType, bool bSkipPTSaves=false)
void createThisHdrFtr (HdrFtrType hfType, bool bSkipPTSaves=false)
void populateThisHdrFtr (HdrFtrType hfType, bool bSkipPTSaves=false)
void _populateThisHdrFtr (fl_HdrFtrSectionLayout *pHdrFtrSrc, fl_HdrFtrSectionLayout *pHdrFtrDest)
bool insertFootnote (bool bFootnote)
bool insertFootnoteSection (bool bFootnote, const gchar *enpid)
bool isInFootnote (PT_DocPosition pos) const
bool isInFootnote (void) const
bool isInEndnote (PT_DocPosition pos) const
bool isInEndnote (void) const
bool isInAnnotation (PT_DocPosition pos) const
bool isInAnnotation (void) const
fl_FootnoteLayoutgetClosestFootnote (PT_DocPosition pos) const
fl_EndnoteLayoutgetClosestEndnote (PT_DocPosition pos) const
fl_AnnotationLayoutgetClosestAnnotation (PT_DocPosition pos) const
UT_sint32 getEmbedDepth (PT_DocPosition pos) const
bool insertAnnotation (UT_sint32 iAnnotation, const std::string &sDescr, const std::string &sAuthor, const std::string &sTitle, bool bReplace)
bool getAnnotationText (UT_uint32 iAnnotation, std::string &sText) const
std::string getAnnotationText (UT_uint32 iAnnotation) const
bool setAnnotationText (UT_uint32 iAnnotation, const std::string &sText)
bool setAnnotationText (UT_uint32 iAnnotation, const std::string &sText, const std::string &sAuthor, const std::string &sTitle)
bool getAnnotationRichText (UT_uint32 iAnnotation, std::string &sRTF) const
bool setAnnotationRichText (UT_uint32 iAnnotation, const std::string &sRTF)
bool getAnnotationTitle (UT_uint32 iAnnotation, std::string &sTitle) const
std::string getAnnotationTitle (UT_uint32 iAnnotation) const
bool setAnnotationTitle (UT_uint32 iAnnotation, const std::string &sTitle)
bool getAnnotationAuthor (UT_uint32 iAnnotation, std::string &sAuthor) const
std::string getAnnotationAuthor (UT_uint32 iAnnotation) const
bool setAnnotationAuthor (UT_uint32 iAnnotation, const std::string &sAuthor)
bool isAnnotationPreviewActive (void) const
void setAnnotationPreviewActive (bool b)
UT_uint32 getActivePreviewAnnotationID () const
void setActivePreviewAnnotationID (UT_uint32 iID)
void killAnnotationPreview ()
bool cmdEditAnnotationWithDialog (UT_uint32 aID)
fl_AnnotationLayoutinsertAnnotationDescription (UT_uint32 aID, AP_Dialog_Annotation *pDialog)
fl_AnnotationLayoutgetAnnotationLayout (UT_uint32 iAnnotation) const
bool selectAnnotation (fl_AnnotationLayout *pAL)
UT_uint32 countAnnotations (void) const
FV_View_BubbleBlocker getBubbleBlocker ()
bool bubblesAreBlocked () const
bool gotoTarget (AP_JumpTarget type, const UT_UCSChar *data)
bool gotoTarget (AP_JumpTarget type, const char *numberString)
void changeNumColumns (UT_uint32 iNumColumns)
void findSetFindString (const UT_UCSChar *string)
void findSetReplaceString (const UT_UCSChar *string)
void findSetReverseFind (bool newValue)
void findSetMatchCase (bool newValue)
void findSetWholeWord (bool newValue)
UT_UCSCharfindGetFindString (void)
UT_UCSCharfindGetReplaceString (void)
bool findGetReverseFind ()
bool findGetMatchCase ()
bool findGetWholeWord ()
bool findAgain (void)
void findSetStartAt (PT_DocPosition pos)
void findSetStartAtInsPoint (void)
bool findNext (bool &bDoneEntireDocument)
bool findNext (const UT_UCSChar *pFind, bool &bDoneEntireDocument)
UT_uint32_computeFindPrefix (const UT_UCSChar *pFind)
bool _findNext (UT_uint32 *pPrefix, bool &bDoneEntireDocument)
bool findPrev (bool &bDoneEntireDocument)
bool findPrev (const UT_UCSChar *pFind, bool &bDoneEntireDocument)
bool _findPrev (UT_uint32 *pPrefix, bool &bDoneEntireDocument)
bool findReplaceReverse (bool &bDoneEntireDocument)
bool _findReplaceReverse (UT_uint32 *pPrefix, bool &bDoneEntireDocument, bool bNoUpdate)
bool _findReplace (UT_uint32 *pPrefix, bool &bDoneEntireDocument, bool bNoUpdate)
bool findReplace (bool &bDoneEntireDocument)
UT_uint32 findReplaceAll ()
FV_DocCount countWords (bool bActuallyCountWords=true)
bool insertPageNum (const PP_PropertyVector &props, HdrFtrType hfType)
virtual void setPoint (UT_uint32 pt)
void ensureInsertionPointOnScreen (void)
void removeCaret (const std::string &sCaretID)
void addCaret (PT_DocPosition docPos, UT_sint32 iAuthorId)
void setPointRemote (PT_DocPosition docPos)
void updateCarets (PT_DocPosition docPos, UT_sint32 iLen)
void fixInsertionPointCoords (void)
void killBlink (void)
void setShowPara (bool)
bool getShowPara (void) const
const fp_PageSizegetPageSize (void) const
virtual UT_uint32 calculateZoomPercentForPageWidth () const
virtual UT_uint32 calculateZoomPercentForPageHeight () const
virtual UT_uint32 calculateZoomPercentForWholePage () const
void setViewMode (ViewMode vm)
ViewMode getViewMode (void) const
bool isPreview (void) const
void setPreviewMode (PreViewMode pre)
PreViewMode getPreviewMode (void)
UT_uint32 getTabToggleAreaWidth () const
UT_sint32 getNormalModeXOffset () const
void setScreenUpdateOnGeneralUpdate (bool bDoit)
bool shouldScreenUpdateOnGeneralUpdate (void) const
PD_DocumentgetDocument (void) const
void toggleMarkRevisions ()
void cmdAcceptRejectRevision (bool bReject, UT_sint32 x, UT_sint32 y)
bool isMarkRevisions () const
bool isShowRevisions () const
void toggleShowRevisions ()
void setShowRevisions (bool bShow)
void cmdSetRevisionLevel (UT_uint32 i)
UT_uint32 getRevisionLevel () const
void setRevisionLevel (UT_uint32 i)
bool cmdFindRevision (bool bNext, UT_sint32 xPos, UT_sint32 yPos)
bool doesSelectionContainRevision () const
void updateRevisionMode ()
bool isPointLegal (PT_DocPosition pos) const
bool isPointLegal (void) const
bool isInTable () const
fl_TableLayoutgetTableAtPos (PT_DocPosition) const
bool isInTable (PT_DocPosition pos) const
bool cmdAutoSizeCols (void)
bool cmdTextToTable (UT_uint32 iDelim)
bool cmdAutoSizeRows (void)
bool cmdAdvanceNextPrevCell (bool bGoNext)
fp_CellContainergetCellAtPos (PT_DocPosition pos) const
PT_DocPosition findCellPosAt (PT_DocPosition posTable, UT_sint32 row, UT_sint32 col) const
bool _deleteCellAt (PT_DocPosition posTable, UT_sint32 row, UT_sint32 col)
bool _restoreCellParams (PT_DocPosition posTable, pf_Frag_Strux *tableSDH)
bool _changeCellParams (PT_DocPosition posTable, pf_Frag_Strux *tableSDH)
bool deleteCellAt (PT_DocPosition posTable, UT_sint32 row, UT_sint32 col)
bool cmdDeleteCell (PT_DocPosition pos)
bool cmdDeleteCol (PT_DocPosition pos)
bool cmdDeleteRow (PT_DocPosition pos)
bool cmdDeleteTable (PT_DocPosition pos, bool bDontNotify=false)
bool cmdInsertRow (PT_DocPosition posTable, bool bBfore)
bool cmdInsertCol (PT_DocPosition posTable, bool bBefore)
bool cmdSplitCells (AP_CellSplitType iSplitType)
bool cmdSelectColumn (PT_DocPosition posOfColumn)
bool cmdAutoFitTable (void)
bool cmdMergeCells (PT_DocPosition posSource, PT_DocPosition posDestination)
bool cmdTableToText (PT_DocPosition posSource, UT_sint32 iSepType)
bool _MergeCells (PT_DocPosition posDestination, PT_DocPosition posSource, bool bBefore)
bool getCellParams (PT_DocPosition posCol, UT_sint32 *iLeft, UT_sint32 *iRight, UT_sint32 *iTop, UT_sint32 *iBot) const
bool getCellLineStyle (PT_DocPosition posCell, UT_sint32 *pLeft, UT_sint32 *pRight, UT_sint32 *pTop, UT_sint32 *pBot) const
bool setCellFormat (const PP_PropertyVector &properties, FormatTable applyTo, const FG_ConstGraphicPtr &pFG, UT_String &sDataID)
bool getCellProperty (PT_DocPosition pos, const gchar *szPropName, gchar *&szPropValue) const
bool setTableFormat (const PP_PropertyVector &properties)
bool setTableFormat (PT_DocPosition pos, const PP_PropertyVector &properties)
bool getCellFormat (PT_DocPosition pos, std::string &sCellProps) const
UT_Error cmdInsertTable (UT_sint32 numRows, UT_sint32 numCols, const PP_PropertyVector &pPropsArray)
void _generalUpdate (void)
UT_RGBColor getColorShowPara (void) const
UT_RGBColor getColorMargin (void) const
UT_RGBColor getColorSelBackground (void)
UT_RGBColor getColorSelForeground (void) const
UT_RGBColor getColorFieldOffset (void) const
UT_RGBColor getColorImage (void) const
UT_RGBColor getColorImageResize (void) const
UT_RGBColor getColorHyperLink (void) const
UT_RGBColor getColorAnnotation (const fp_Run *pRun) const
UT_RGBColor getColorAnnotation (fp_Page *pPage, UT_uint32 pid) const
UT_RGBColor getColorRDFAnchor (const fp_Run *pRun) const
UT_RGBColor getColorRevisions (int rev) const
UT_RGBColor getColorHdrFtr (void) const
UT_RGBColor getColorColumnLine (void) const
void getVisibleDocumentPagesAndRectangles (UT_GenericVector< UT_Rect * > &vRect, UT_GenericVector< fp_Page * > &vPages) const
UT_sint32 getImageSelInfo () const
GR_Graphics::Cursor getImageSelCursor () const
bool isImageSelected (void) const
void setDragTableLine (bool bSet)
bool getDragTableLine (void) const
void setTopRuler (AP_TopRuler *pRuler)
AP_TopRulergetTopRuler (void) const
void setLeftRuler (AP_LeftRuler *pRuler)
AP_LeftRulergetLeftRuler (void) const
PP_PropertyVector getViewPersistentProps () const
FV_BIDI_Order getBidiOrder () const
void setBidiOrder (FV_BIDI_Order o)
bool isMathSelected (UT_sint32 x, UT_sint32 y, PT_DocPosition &pos) const
bool isMathLoaded (void) const
bool isGrammarLoaded (void) const
UT_uint32 getNumHorizPages (void) const
void calculateNumHorizPages (void)
UT_uint32 getMaxHeight (UT_uint32 iRow) const
UT_uint32 getWidthPrevPagesInRow (UT_uint32 iPageNumber) const
UT_uint32 getWidthPagesInRow (fp_Page *page) const
UT_uint32 getHorizPageSpacing (void) const
bool rtlPages (void) const
bool registerDoubleBufferingObject (FV_ViewDoubleBuffering *obj)
bool unregisterDoubleBufferingObject (FV_ViewDoubleBuffering *obj)

Protected Member Functions

void _fixInsertionPointAfterRevision ()
bool _makePointLegal (void)
void _updateDatesBeforeSave (bool bOverwriteCreated)
void _saveAndNotifyPieceTableChange (void)
void _restorePieceTableState (void)
void _draw (UT_sint32, UT_sint32, UT_sint32, UT_sint32, bool bDirtyRunsOnly, bool bClip=false)
void _drawBetweenPositions (PT_DocPosition left, PT_DocPosition right)
bool _clearBetweenPositions (PT_DocPosition left, PT_DocPosition right, bool bFullLineHeightRect)
bool _drawOrClearBetweenPositions (PT_DocPosition iPos1, PT_DocPosition iPos2, bool bClear, bool bFullLineHeight)
bool _ensureInsertionPointOnScreen ()
void _moveInsPtNextPrevPage (bool bNext)
void _moveInsPtNextPrevScreen (bool bNext, bool bClearSelection)
void _moveInsPtNextPrevLine (bool bNext)
fp_Line_getNextLineInDoc (fp_Container *pCon) const
fp_Page_getCurrentPage (void) const
void _moveInsPtNthPage (UT_sint32 n)
void _moveInsPtToPage (fp_Page *page)
void _insertSectionBreak (void)
void _getPageXandYOffset (const fp_Page *pPage, UT_sint32 &xoff, UT_sint32 &yoff, bool bYOnly) const
PT_DocPosition _getDocPosFromPoint (PT_DocPosition iPoint, FV_DocPos dp, bool bKeepLooking=true) const
PT_DocPosition _getDocPos (FV_DocPos dp, bool bKeepLooking=true) const
void _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
fl_BlockLayout_findBlockAtPosition (PT_DocPosition pos) const
fp_Page_getPageForXY (UT_sint32 xPos, UT_sint32 yPos, UT_sint32 &xClick, UT_sint32 &yClick) const
bool _insertField (const char *szName, const PP_PropertyVector &extra_attrs=PP_NOPROPS, const PP_PropertyVector &extra_props=PP_NOPROPS)
void _moveToSelectionEnd (bool bForward)
void _eraseSelection (void)
void _clearSelection (bool bRedraw=true)
void _resetSelection (void)
void _setSelectionAnchor (void)
void _deleteSelection (PP_AttrProp *p_AttrProp_Before=NULL, bool bNoUpdate=false, bool bCaretLeft=false)
bool _insertFormatPair (const gchar *szName, const gchar *properties[])
void _updateInsertionPoint ()
void _fixInsertionPointCoords (bool bIgnoreAll=false)
void _fixInsertionPointCoords (fv_CaretProps *pCP) const
void _fixAllInsertionPointCoords (void) const
void _drawSelection ()
void _extSel (UT_uint32 iOldPoint)
void _extSelToPos (PT_DocPosition pos)
UT_Error _insertGraphic (const FG_ConstGraphicPtr &, const char *)
UT_Error _insertGraphic (const FG_ConstGraphicPtr &, const char *, PT_DocPosition pos)
UT_UCSChar_lookupSuggestion (fl_BlockLayout *pBL, const fl_PartOfBlockPtr &pPOB, UT_sint32 ndx)
void _setPoint (PT_DocPosition pt, bool bEOL=false)
void _setPoint (fv_CaretProps *pCP, PT_DocPosition pt, UT_sint32 iLen) const
UT_uint32 _getDataCount (UT_uint32 pt1, UT_uint32 pt2) const
bool _charMotion (bool bForward, UT_uint32 countChars, bool bSkipCannotContainPoint=true)
void _doPaste (bool bUseClipboard, bool bHonorFormatting=true)
void _clearIfAtFmtMark (PT_DocPosition dpos)
bool _isSpaceBefore (PT_DocPosition pos) const
void _removeThisHdrFtr (fl_HdrFtrSectionLayout *pHdrFtr)
void _cmdEditHdrFtr (HdrFtrType hfType)
UT_Error _deleteBookmark (const char *szName, bool bSignal, PT_DocPosition *pos1=NULL, PT_DocPosition *pos2=NULL)
UT_Error _deleteHyperlink (PT_DocPosition &i, bool bSignal)
UT_Error _deleteXMLID (const std::string &xmlid, bool bSignal, PT_DocPosition &posStart, PT_DocPosition &posEnd)
UT_Error _deleteXMLID (const std::string &xmlid, bool bSignal)
fp_HyperlinkRun_getHyperlinkInRange (PT_DocPosition &posStart, PT_DocPosition &posEnd)
bool _charInsert (const UT_UCSChar *text, UT_uint32 count, bool bForce=false)
void _adjustDeletePosition (UT_uint32 &iDocPos, UT_uint32 &iCount)
void incremenetBubbleBlockerCount ()
void decremenetBubbleBlockerCount ()
bool _changeCellTo (PT_DocPosition posTable, UT_sint32 rowOld, UT_sint32 colOld, UT_sint32 left, UT_sint32 right, UT_sint32 top, UT_sint32 bot)
bool _insertCellAt (PT_DocPosition posCell, UT_sint32 left, UT_sint32 right, UT_sint32 top, UT_sint32 bot, const PP_PropertyVector &attrsBlock, const PP_PropertyVector &propsBlock)
bool _changeCellAttach (PT_DocPosition posCell, UT_sint32 left, UT_sint32 right, UT_sint32 top, UT_sint32 bot)

Static Protected Member Functions

static void _autoScroll (UT_Worker *pTimer)
static void _actuallyScroll (UT_Worker *pTimer)

Private Member Functions

void _drawResizeHandle (UT_Rect &box)
void getCmdInsertRangeVariables (PT_DocPosition &posStart, PT_DocPosition &posEnd, fl_BlockLayout *&pBL1, fl_BlockLayout *&pBL2)
void _updateSelectionHandles (void)
PT_DocPosition _BlockOffsetToPos (fl_BlockLayout *block, PT_DocPosition offset) const
fl_BlockLayout_findGetCurrentBlock (void) const
PT_DocPosition _findGetCurrentOffset (void) const
UT_UCSChar_findGetNextBlockBuffer (fl_BlockLayout **block, PT_DocPosition *offset)
UT_UCSChar_findGetPrevBlockBuffer (fl_BlockLayout **block, PT_DocPosition *offset, UT_sint32 &endIndex)
UT_sint32 _findBlockSearchRegexp (const UT_UCSChar *haystack, const UT_UCSChar *needle)

Static Private Member Functions

static void _prefsListener (XAP_Prefs *, UT_StringPtrMap *, void *)

Private Attributes

UT_uint32 m_iNumHorizPages
UT_uint32 m_getNumHorizPagesCachedWindowWidth
bool m_autoNumHorizPages
UT_uint32 m_horizPageSpacing
PT_DocPosition m_iInsPoint
UT_sint32 m_xPoint
UT_sint32 m_yPoint
UT_sint32 m_xPoint2
UT_sint32 m_yPoint2
bool m_bPointDirection
bool m_bDefaultDirectionRtl
bool m_bUseHebrewContextGlyphs
UT_uint32 m_iPointHeight
UT_sint32 m_xPointSticky
bool m_bPointVisible
bool m_bPointEOL
FL_DocLayoutm_pLayout
PD_Documentm_pDoc
GR_Graphicsm_pG
void * m_pParentData
UT_Timerm_pAutoScrollTimer
UT_sint32 m_xLastMouse
UT_sint32 m_yLastMouse
bool m_bCursorIsOn
bool m_bEraseSaysStopBlinking
bool m_bCursorBlink
bool m_bdontSpellCheckRightNow
fv_ChangeState m_chg
bool m_wrappedEnd
PT_DocPosition m_startPosition
bool m_doneFind
bool m_bEditHdrFtr
fl_HdrFtrShadowm_pEditShadow
PT_DocPosition m_iSavedPosition
bool m_bNeedSavedPosition
bool m_bReverseFind
bool m_bWholeWord
bool m_bMatchCase
UT_UCSCharm_sFind
UT_UCSCharm_sReplace
bool m_bShowPara
ViewMode m_viewMode
PreViewMode m_previewMode
bool m_bDontUpdateScreenOnGeneralUpdate
UT_uint32 m_iPieceTableState
UT_sint32 m_iMouseX
UT_sint32 m_iMouseY
UT_uint32 m_iViewRevision
bool m_bWarnedThatRestartNeeded
UT_Rect m_selImageRect
GR_Graphics::Cursor m_imageSelCursor
UT_sint32 m_ixResizeOrigin
UT_sint32 m_iyResizeOrigin
bool m_bIsResizingImage
UT_Rect m_curImageSel
bool m_bIsDraggingImage
fp_Runm_pDraggedImageRun
UT_Rect m_dragImageRect
UT_sint32 m_ixDragOrigin
UT_sint32 m_iyDragOrigin
UT_RGBColor m_colorShowPara
UT_RGBColor m_colorSpellSquiggle
UT_RGBColor m_colorGrammarSquiggle
UT_RGBColor m_colorMargin
UT_RGBColor m_colorFieldOffset
UT_RGBColor m_colorImage
UT_RGBColor m_colorImageResize
UT_RGBColor m_colorHyperLink
UT_RGBColor m_colorRevisions [10]
UT_RGBColor m_colorHdrFtr
UT_RGBColor m_colorColumnLine
UT_RGBColor m_colorAnnotations [10]
UT_RGBColor m_colorRDFAnchors [10]
UT_uint32 m_countDisable
bool m_bDragTableLine
EV_EditMouseContext m_prevMouseContext
AP_TopRulerm_pTopRuler
AP_LeftRulerm_pLeftRuler
bool m_bInFootnote
FV_Caret_Listenerm_caretListener
bool m_bgColorInitted
PT_DocPosition m_iLowDrawPoint
PT_DocPosition m_iHighDrawPoint
fv_PropCache m_CharProps
fv_PropCache m_BlockProps
fv_PropCache m_SecProps
AV_ListenerId m_CaretListID
FV_FrameEdit m_FrameEdit
FV_VisualDragText m_VisualDragText
FV_Selection m_Selection
bool m_bShowRevisions
FV_BIDI_Order m_eBidiOrder
UT_uint32 m_iFreePass
bool m_bDontNotifyListeners
UT_ByteBufm_pLocalBuf
UT_sint32 m_iGrabCell
FV_VisualInlineImage m_InlineImage
bool m_bInsertAtTablePending
PT_DocPosition m_iPosAtTable
UT_GenericVector< fv_CaretProps * > m_vecCarets
std::string m_sDocUUID
bool m_bAnnotationPreviewActive
UT_uint32 m_iAnnPviewID
bool m_bAllowSmartQuoteReplacement
int m_bubbleBlockerCount
UT_sint32 m_iOldPageCount
FV_SelectionHandles m_SelectionHandles
FV_ViewDoubleBufferingm_pViewDoubleBufferingObject

Friends

class fl_DocListener
class fl_BlockLayout
class FL_DocLayout
class fl_Squiggles
class fl_DocSectionLayout
class GR_Caret
class FV_FrameEdit
class FV_VisualDragText
class FV_VisualInlineImage
class FV_Selection
class CellLine
class FV_View_BubbleBlocker
class FV_ViewDoubleBuffering
class FV_SelectionHandles

Constructor & Destructor Documentation

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().


Member Function Documentation

PT_DocPosition FV_View::_BlockOffsetToPos ( fl_BlockLayout block,
PT_DocPosition  offset 
) const [private]
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::_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]
bool FV_View::_charMotion ( bool  bForward,
UT_uint32  countChars,
bool  bSkipCannotContainPoint = true 
) [protected]
UT_uint32 * FV_View::_computeFindPrefix ( const UT_UCSChar pFind  ) 

Compute prefix function for search

Parameters:
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().

bool FV_View::_deleteCellAt ( PT_DocPosition  posTable,
UT_sint32  row,
UT_sint32  col 
)
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 
) [protected]

References _deleteXMLID(), and s.

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]
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().

bool FV_View::_ensureInsertionPointOnScreen (  )  [protected]

Scrolls the screen to make sure that the IP is on-screen.

Returns:
true iff scrolling took place Q: should this get called if there is a selection? Does it do harm? It may, because point may be the beginning of the selection.

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().

UT_sint32 FV_View::_findBlockSearchRegexp ( const UT_UCSChar haystack,
const UT_UCSChar needle 
) [private]
fl_BlockLayout * FV_View::_findGetCurrentBlock ( void   )  const [private]
PT_DocPosition FV_View::_findGetCurrentOffset ( void   )  const [private]

References _findGetCurrentBlock(), and m_iInsPoint.

Referenced by _findNext(), and _findPrev().

bool FV_View::_findNext ( UT_uint32 pPrefix,
bool &  bDoneEntireDocument 
)

Find next occurrence of string

Parameters:
pFind String to find
True to match case, false to ignore case
Returns:
bDoneEntireDocument True if entire document searched, false otherwise
True if string was found, false otherwise

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::_findReplace ( UT_uint32 pPrefix,
bool &  bDoneEntireDocument,
bool  bNoUpdate 
)

Find and replace text unit

Parameters:
pFind String to find
pReplace String to replace it with
pPrefix Search prefix function
bMatchCase True to match case, false to ignore case
Returns:
bDoneEntireDocument True if entire document searched, false otherwise
True if string was replaced, false otherwise

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().

void FV_View::_fixAllInsertionPointCoords ( void   )  const [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::_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]
UT_uint32 FV_View::_getDataCount ( UT_uint32  pt1,
UT_uint32  pt2 
) const [protected]

References UT_ASSERT.

PT_DocPosition FV_View::_getDocPos ( FV_DocPos  dp,
bool  bKeepLooking = true 
) const [protected]
fp_HyperlinkRun * FV_View::_getHyperlinkInRange ( PT_DocPosition posStart,
PT_DocPosition posEnd 
) [protected]
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().

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::_insertFormatPair ( const gchar *  szName,
const gchar *  properties[] 
) [protected]
UT_Error FV_View::_insertGraphic ( const FG_ConstGraphicPtr pFG,
const char *  szName 
) [protected]
UT_Error FV_View::_insertGraphic ( const FG_ConstGraphicPtr pFG,
const char *  szName,
PT_DocPosition  pos 
) [protected]
UT_UCSChar* FV_View::_lookupSuggestion ( fl_BlockLayout pBL,
const fl_PartOfBlockPtr pPOB,
UT_sint32  ndx 
) [protected]
bool FV_View::_MergeCells ( PT_DocPosition  posDestination,
PT_DocPosition  posSource,
bool  bBefore 
)
void FV_View::_moveInsPtNextPrevLine ( bool  bNext  )  [protected]

Move insertion point to previous or next line

Parameters:
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]
void FV_View::_moveInsPtNthPage ( UT_sint32  n  )  [protected]
void FV_View::_moveToSelectionEnd ( bool  bForward  )  [protected]

Move point to requested end of selection and clear selection

Parameters:
bForward True if point should be moved to the forward position
Note:
Do not draw the insertion point after clearing the selection. BIDI broken?

References _clearSelection(), getPoint(), FV_Selection::getSelectionAnchor(), isSelectionEmpty(), m_Selection, swapSelectionOrientation(), and UT_ASSERT.

Referenced by cmdCharMotion(), cmdFindRevision(), warpInsPtNextPrevLine(), warpInsPtNextPrevPage(), and warpInsPtNextPrevScreen().

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::_updateDatesBeforeSave ( bool  bOverwriteCreated  )  [protected]
void FV_View::activateFrame ( void   ) 
void FV_View::allowChangeInsPoint ( void   ) 

References PD_Document::allowChangeInsPoint(), and m_pDoc.

Referenced by cmdRedo(), and cmdUndo().

bool FV_View::appendStyle ( const PP_PropertyVector style  ) 
void FV_View::btn0InlineImage ( UT_sint32  x,
UT_sint32  y 
)

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().

void FV_View::btn0VisualDrag ( UT_sint32  x,
UT_sint32  y 
)
void FV_View::btn1CopyImage ( UT_sint32  x,
UT_sint32  y 
)

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().

void FV_View::btn1Frame ( UT_sint32  x,
UT_sint32  y 
)

References m_FrameEdit, and FV_FrameEdit::mouseLeftPress().

Referenced by Defun().

void FV_View::btn1InlineImage ( UT_sint32  x,
UT_sint32  y 
)

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().

UT_uint32 FV_View::calculateZoomPercentForWholePage (  )  const [virtual]
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::changeNumColumns ( UT_uint32  iNumColumns  ) 
void FV_View::clearSavedPosition ( void   ) 

This method clears the saved position of the insertion point in the doc.

References m_bNeedSavedPosition, and m_iSavedPosition.

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 
)
void FV_View::cmdCharMotion ( bool  bForward,
UT_uint32  count 
)

Move point a number of character positions

Parameters:
bForward True if moving forward
count Number of char positions to move
Note:
Cursor movement while there's a selection has the effect of clearing the selection. And only that. See bug 993.

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().

UT_Error FV_View::cmdDeleteBookmark ( const char *  szName  ) 

References _deleteBookmark().

Referenced by s_doBookmarkDlg().

UT_Error FV_View::cmdDeleteXMLID ( const std::string &  name  ) 

References _deleteXMLID().

Referenced by AbiCommand::parseTokens(), and s_xmlidDlg().

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().

void FV_View::cmdHyperlinkCopyLocation ( PT_DocPosition  pos  ) 
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::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.

bool FV_View::cmdInsertMathML ( const char *  szUID,
PT_DocPosition  pos 
)
UT_Error FV_View::cmdInsertPositionedGraphic ( const FG_ConstGraphicPtr pFG  ) 
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 
)
UT_Error FV_View::cmdSaveAs ( const char *  szFilename,
int  ieft,
bool  cpy 
) [virtual]
UT_Error FV_View::cmdSaveAs ( const char *  szFilename,
int  ieft 
) [virtual]

Implements AV_View.

void FV_View::cmdSelect ( PT_DocPosition  dpBeg,
PT_DocPosition  dpEnd 
)
void FV_View::cmdSelect ( const std::pair< PT_DocPosition, PT_DocPosition > &  range  ) 
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  ) 
bool FV_View::cmdTextToTable ( UT_uint32  iDelim  ) 
bool FV_View::cmdUpdateEmbed ( const UT_ConstByteBufPtr pBuf,
const char *  szMime,
const char *  szProps 
)
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::copyVisualText ( UT_sint32  x,
UT_sint32  y 
)

References m_VisualDragText, and FV_VisualDragText::mouseCopy().

Referenced by Defun().

UT_uint32 FV_View::countAnnotations ( void   )  const
void FV_View::cutVisualText ( UT_sint32  x,
UT_sint32  y 
)

Referenced by Defun().

void FV_View::decremenetBubbleBlockerCount (  )  [protected]
bool FV_View::deleteCellAt ( PT_DocPosition  posTable,
UT_sint32  row,
UT_sint32  col 
)
void FV_View::dragFrame ( UT_sint32  x,
UT_sint32  y 
)

References m_FrameEdit, and FV_Base::mouseDrag().

Referenced by sActualDragFrame().

void FV_View::dragInlineImage ( UT_sint32  x,
UT_sint32  y 
)

Drag on an image. Either drag the whole image or do a resize.

References m_InlineImage, and FV_Base::mouseDrag().

Referenced by sActualDragInlineImage().

void FV_View::dragVisualText ( UT_sint32  x,
UT_sint32  y 
)
void FV_View::drawSelectionBox ( UT_Rect inBox,
bool  drawHandles 
) [virtual]
bool FV_View::findAgain ( void   ) 

Find next occurrence of last searched string

Returns:
True if found, otherwise false This function is used for non-dialog search operations.

References _drawSelection(), findNext(), findPrev(), m_bReverseFind, and m_sFind.

Referenced by Defun1().

bool FV_View::findGetMatchCase (  ) 

References m_bMatchCase.

Referenced by AP_Dialog_Replace::getMatchCase().

UT_UCSChar * FV_View::findGetReplaceString ( void   ) 
bool FV_View::findGetReverseFind (  ) 
bool FV_View::findGetWholeWord (  ) 

References m_bWholeWord.

Referenced by AP_Dialog_Replace::getWholeWord().

bool FV_View::findNext ( const UT_UCSChar pFind,
bool &  bDoneEntireDocument 
)

Find next occurrence of string

Parameters:
pFind String to find
bMatchCase True to match case, false to ignore case
Returns:
bDoneEntireDocument True if entire document searched, false otherwise
True if string was found, false otherwise

References findNext(), and findSetFindString().

bool FV_View::findPrev ( const UT_UCSChar pFind,
bool &  bDoneEntireDocument 
)

References findPrev(), and findSetFindString().

bool FV_View::findReplace ( bool &  bDoneEntireDocument  ) 

Find and replace string

Parameters:
pFind String to find
pReplace String to replace it with
bMatchCase True to match case, false to ignore case
Returns:
bDoneEntireDocument True if entire document searched, false otherwise
True if string was replaced, false otherwise

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 (  ) 
void FV_View::findSetFindString ( const UT_UCSChar string  ) 
void FV_View::findSetMatchCase ( bool  newValue  ) 

References m_bMatchCase.

Referenced by AP_Dialog_Replace::setMatchCase().

void FV_View::findSetReplaceString ( const UT_UCSChar string  ) 
void FV_View::findSetReverseFind ( bool  newValue  ) 
void FV_View::findSetStartAt ( PT_DocPosition  pos  ) 
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   ) 
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().

UT_uint32 FV_View::getActivePreviewAnnotationID (  )  const [inline]

Referenced by Defun().

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.

Parameters:
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
std::string FV_View::getAnnotationAuthor ( UT_uint32  iAnnotation  )  const

References getAnnotationAuthor().

bool FV_View::getAnnotationRichText ( UT_uint32  iAnnotation,
std::string &  sRTF 
) const
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
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().

bool FV_View::getCellFormat ( PT_DocPosition  pos,
std::string &  sCellProps 
) const
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::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

Parameters:
col will be set to the cell to the property value, if the requested property exists
Returns:
True if succesful (ie. the property value is set), false otherwise

References PD_Document::getPropertyFromSDH(), getRevisionLevel(), PD_Document::getStruxOfTypeFromPosition(), isShowRevisions(), m_pDoc, and PTX_SectionCell.

Referenced by AP_Dialog_FormatTable::setCurCellProps().

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]
UT_RGBColor FV_View::getColorAnnotation ( fp_Page pPage,
UT_uint32  pid 
) const
UT_RGBColor FV_View::getColorColumnLine ( void   )  const [inline]

Referenced by fp_Page::draw().

UT_RGBColor FV_View::getColorFieldOffset ( void   )  const [inline]
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::getColorRevisions ( int  rev  )  const [inline]

Referenced by addCaret(), and fp_Run::getFGColor().

UT_RGBColor FV_View::getColorSelForeground ( 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().

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().

bool FV_View::getDragTableLine ( void   )  const [inline]
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.

Parameters:
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
Returns:
true if succesful
Todo:
speed this up by finding clever way to cache the size of the header/footer region so we can just subtract it off.

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().

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().

UT_sint32 FV_View::getFrameMargin ( void   )  const
bool FV_View::getFrameStrings_view ( UT_sint32  x,
UT_sint32  y,
fv_FrameStrings FrameStrings,
fl_BlockLayout **  pCloseBL,
fp_Page **  ppPage 
)
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
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::getLastMouseContext ( void   ) 
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 ( 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 
)
const UT_ByteBuf * FV_View::getLocalBuf ( void   )  const
void FV_View::getMousePos ( UT_sint32 x,
UT_sint32 y 
)

References m_iMouseX, and m_iMouseY.

Referenced by abi_widget_get_mouse_pos().

UT_sint32 FV_View::getNumColumnsInSelection ( void   )  const
void FV_View::getPageYOffset ( const fp_Page pThePage,
UT_sint32 yoff 
) const

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]
UT_uint32 FV_View::getRevisionLevel (  )  const
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.

PT_DocPosition FV_View::getSelectedImage ( const char **  dataId  )  const
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 ( 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
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

Parameters:
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]
void FV_View::incremenetBubbleBlockerCount (  )  [protected]
bool FV_View::insertAnnotation ( UT_sint32  iAnnotation,
const std::string &  sDescr,
const std::string &  sAuthor,
const std::string &  sTitle,
bool  bCopy 
)
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().

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::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.

Returns:
true if is there 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::isHeaderOnPage ( void   )  const

This function returns true if there is a header on the current page.

Returns:
true if is there a header on the current page.

References FL_HDRFTR_HEADER, getCurrentPage(), and fp_Page::getHdrFtrP().

bool FV_View::isImageSelected ( void   )  const

Check that an image is currently selected

Returns:
true if an image is selected otherwise false.
Todo:
eventually make it faster by not fetching the image data ID.

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
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
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::isLeftMargin ( UT_sint32  xPos,
UT_sint32  yPos 
) const
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
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]
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::isTabListAheadPoint ( void   )  const
bool FV_View::isXYSelected ( UT_sint32  xPos,
UT_sint32  yPos 
) const
void FV_View::killBlink ( void   ) 
PT_DocPosition FV_View::mapDocPos ( FV_DocPos  dp  ) 

References _getDocPos().

PT_DocPosition FV_View::mapDocPosSimple ( FV_DocPos  dp  ) 
void FV_View::markSavedPositionAsNeeded ( void   ) 

This method tells the undo to use the remembered position.

References m_bNeedSavedPosition.

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::pasteVisualText ( UT_sint32  x,
UT_sint32  y 
)
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.

Parameters:
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().

bool FV_View::queryCharFormat ( const gchar *  szProperty,
UT_UTF8String szValue,
bool &  bExplicitlyDefined,
bool &  bMixedSelection 
) const
void FV_View::rebuildLayout ( void   )  [virtual]
bool FV_View::registerDoubleBufferingObject ( FV_ViewDoubleBuffering obj  ) 
void FV_View::releaseFrame ( UT_sint32  x,
UT_sint32  y 
)
void FV_View::releaseInlineImage ( UT_sint32  x,
UT_sint32  y 
)

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().

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   ) 
bool FV_View::rtlPages ( void   )  const
PT_DocPosition FV_View::saveSelectedImage ( const char *  toFile  ) 
void FV_View::selectRange ( const std::pair< PT_DocPosition, PT_DocPosition > &  range  ) 

References selectRange().

void FV_View::setActivePreviewAnnotationID ( UT_uint32  iID  )  [inline]

Referenced by Defun().

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::setAnnotationTitle ( UT_uint32  iAnnotation,
const std::string &  sTitle 
)
void FV_View::setBidiOrder ( FV_BIDI_Order  o  )  [inline]
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.

Parameters:
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.

Parameters:
properties the new cell format
applyTo the range to apply the changes to
Returns:
True if the operation was succesful, false otherwise

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::setCollapsedRange ( PT_DocPosition  posLow,
PT_DocPosition  posHigh,
const PP_PropertyVector properties 
)
void FV_View::setCursorWait ( void   )  [virtual]
void FV_View::setDontChangeInsPoint ( void   ) 
void FV_View::setDragTableLine ( bool  bSet  )  [inline]

Referenced by Defun(), and Defun1().

void FV_View::setFrameFormat ( const PP_PropertyVector props  ) 
void FV_View::setHdrFtrEdit ( fl_HdrFtrShadow pShadow  ) 

This method sets a bool variable which tells getEditableBounds we are editing a header/Footer.

Parameters:
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]
void FV_View::setPaperColor ( const gchar *  clr  )  [virtual]
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]
void FV_View::setPrevMouseContext ( EV_EditMouseContext  emc  )  [inline]
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::setSelectionMode ( FV_SelectionMode  selMode  ) 
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  ) 
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]
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::setVisualSelectionEnabled ( bool  bActive  ) 
bool FV_View::shouldScreenUpdateOnGeneralUpdate ( void   )  const [inline]
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 (  ) 
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  ) 
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]
void FV_View::warpInsPtNextPrevLine ( bool  bNext  ) 

Move point to next or previous line

Parameters:
bNext True if moving to next line
Note:
Cursor movement while there's a selection has the effect of clearing the selection. And only that. See bug 993.

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

Parameters:
bNext True if moving to next page
Note:
Cursor movement while there's a selection has the effect of clearing the selection. And only that. See bug 993.

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

Parameters:
bNext True if moving to next screen

References _clearIfAtFmtMark(), _moveInsPtNextPrevScreen(), _moveToSelectionEnd(), _resetSelection(), AV_CHG_ALL, AV_CHG_MOTION, getPoint(), isSelectionEmpty(), and notifyListeners().


Friends And Related Function Documentation

friend class CellLine [friend]
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]

Member Data Documentation

bool FV_View::m_bCursorBlink [private]
bool FV_View::m_bCursorIsOn [private]

Referenced by _prefsListener().

Referenced by _prefsListener(), and FV_View().

bool FV_View::m_bDragTableLine [private]

Referenced by _getMouseContext().

bool FV_View::m_bInFootnote [private]
fv_PropCache FV_View::m_BlockProps [mutable, private]

Referenced by getBlockFormat().

bool FV_View::m_bPointVisible [private]
bool FV_View::m_bShowPara [private]

Referenced by setShowPara().

fv_PropCache FV_View::m_CharProps [mutable, private]

Referenced by getCharFormat().

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().

void* FV_View::m_pParentData [private]

Reimplemented from AV_View.

Referenced by _drawOrClearBetweenPositions(), and focusChange().

std::string FV_View::m_sDocUUID [private]
fv_PropCache FV_View::m_SecProps [mutable, private]

Referenced by getSectionFormat().

Referenced by setViewMode().


The documentation for this class was generated from the following files: