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 gchar **extra_attrs=NULL, const gchar **extra_props=NULL)
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_ByteBuf *pBuf, PT_DocPosition pos, const char *szMime, const char *szProps)
bool cmdUpdateEmbed (const UT_ByteBuf *pBuf, const char *szMime, const char *szProps)
bool cmdUpdateEmbed (fp_Run *pRun, const UT_ByteBuf *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 (FG_Graphic *)
UT_Error cmdInsertGraphicAtStrux (FG_Graphic *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 (const UT_ByteBuf **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 gchar *properties[])
bool getSectionFormat (const gchar ***properties) const
bool setBlockIndents (bool doLists, double indentChange, double page_size)
bool setCollapsedRange (PT_DocPosition posLow, PT_DocPosition posHigh, const gchar *properties[])
bool setBlockFormat (const gchar *properties[])
bool getBlockFormat (const gchar ***properties, bool bExpandStyles=true) const
bool removeStruxAttrProps (PT_DocPosition ipos1, PT_DocPosition ipos2, PTStruxType iStrux, const gchar *attributes[], const gchar *properties[])
bool isImageAtStrux (PT_DocPosition ipos1, PTStruxType iStrux)
bool processPageNumber (HdrFtrType hfType, const gchar **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 (fl_AutoNum *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 gchar *properties[], const gchar *attribs[]=NULL)
bool resetCharFormat (bool bAll)
bool getCharFormat (const gchar ***properties, bool bExpandStyles=true) const
bool getCharFormat (const gchar ***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 gchar **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 gchar **props)
void setFrameFormat (const gchar **attribs, const gchar **props, fl_BlockLayout *pNewBL=NULL)
void setFrameFormat (const gchar **props, FG_Graphic *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 gchar **attribs)
bool convertPositionedToInLine (fl_FrameLayout *pFrame)
UT_Error cmdInsertPositionedGraphic (FG_Graphic *pFG, UT_sint32 mouseX, UT_sint32 mouseY)
UT_Error cmdInsertPositionedGraphic (FG_Graphic *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 gchar **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 gchar **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 gchar *properties[], FormatTable applyTo, FG_Graphic *pFG, UT_String &sDataID)
bool getCellProperty (PT_DocPosition pos, const gchar *szPropName, gchar *&szPropValue) const
bool setTableFormat (const gchar *properties[])
bool setTableFormat (PT_DocPosition pos, const gchar *properties[])
bool getCellFormat (PT_DocPosition pos, UT_String &sCellProps) const
UT_Error cmdInsertTable (UT_sint32 numRows, UT_sint32 numCols, const gchar *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
const gchar ** 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 gchar **extra_attrs=NULL, const gchar **extra_props=NULL)
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 (FG_Graphic *, const char *)
UT_Error _insertGraphic (FG_Graphic *, const char *, PT_DocPosition pos)
UT_UCSChar_lookupSuggestion (fl_BlockLayout *pBL, fl_PartOfBlock *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 gchar **attrsBlock, const gchar **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
UT_UTF8String 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, fv_ChangeState::bDirty, fv_ChangeState::bRedo, fv_ChangeState::bSelection, fv_ChangeState::bUndo, GR_Graphics::createCaret(), GR_Graphics::DGP_SCREEN, AllCarets::enable(), GR_Graphics::findNearestFont(), gchar, XAP_EncodingManager::get_instance(), PD_Document::getAttrProp(), XAP_Frame::getFrameData(), XAP_EncodingManager::getLanguageISOName(), XAP_EncodingManager::getLanguageISOTerritory(), AD_Document::getMyUUIDString(), AV_View::getParentData(), getPoint(), XAP_App::getPrefs(), XAP_App::getPrefsValue(), XAP_App::getPrefsValueBool(), PP_AttrProp::getProperty(), AD_Document::getShowRevisionId(), fv_ChangeState::iColumn, AD_Document::isShowRevisions(), m_bCursorBlink, m_bDefaultDirectionRtl, AP_FrameData::m_bIsWidget, m_bShowRevisions, m_bUseHebrewContextGlyphs, m_caretListener, m_CaretListID, m_chg, m_colorAnnotations, m_colorColumnLine, m_colorFieldOffset, m_colorGrammarSquiggle, m_colorHdrFtr, m_colorHyperLink, m_colorImage, m_colorMargin, m_colorRDFAnchors, m_colorRevisions, m_colorShowPara, m_colorSpellSquiggle, m_eBidiOrder, m_iViewRevision, m_pDoc, m_pG, m_sDocUUID, m_Selection, fv_ChangeState::pCellLayout, PP_resetInitialBiDiValues(), PP_setDefaultFontFamily(), fv_ChangeState::propsBlock, fv_ChangeState::propsChar, fv_ChangeState::propsSection, GR_Graphics::queryProperties(), XAP_Frame::repopulateCombos(), s, setCursorWait(), FV_Selection::setSelectionAnchor(), FL_DocLayout::setView(), setViewMode(), UT_parseColor(), UT_UTF8String::utf8_str(), VIEW_NORMAL, VIEW_PRINT, VIEW_WEB, XAP_PREF_KEY_ColorForColumnLine, XAP_PREF_KEY_ColorForFieldOffset, XAP_PREF_KEY_ColorForGrammarSquiggle, XAP_PREF_KEY_ColorForHdrFtr, XAP_PREF_KEY_ColorForHyperLink, XAP_PREF_KEY_ColorForImage, XAP_PREF_KEY_ColorForMargin, XAP_PREF_KEY_ColorForRevision1, XAP_PREF_KEY_ColorForRevision10, XAP_PREF_KEY_ColorForRevision2, XAP_PREF_KEY_ColorForRevision3, XAP_PREF_KEY_ColorForRevision4, XAP_PREF_KEY_ColorForRevision5, XAP_PREF_KEY_ColorForRevision6, XAP_PREF_KEY_ColorForRevision7, XAP_PREF_KEY_ColorForRevision8, XAP_PREF_KEY_ColorForRevision9, XAP_PREF_KEY_ColorForShowPara, XAP_PREF_KEY_ColorForSquiggle, and XAP_PREF_KEY_UseHebrewContextGlyphs.

Referenced by copyTextToClipboard().


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 UT_String::c_str(), PD_Document::changeStruxFmt(), m_pDoc, PTC_AddFmt, PTX_SectionCell, and UT_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 UT_String::c_str(), PD_Document::changeStruxFmt(), findCellPosAt(), m_pDoc, PTC_AddFmt, PTX_SectionCell, and UT_String_sprintf().

Referenced by _MergeCells(), and cmdMergeCells().

bool FV_View::_charInsert ( const UT_UCSChar text,
UT_uint32  count,
bool  bForce = false 
) [protected]

References _charMotion(), _deleteSelection(), _ensureInsertionPointOnScreen(), _fixInsertionPointCoords(), _generalUpdate(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), AV_CHG_ALL, PD_Document::beginUserAtomicGlob(), cmdCharDelete(), PD_Document::disableListUpdates(), PD_Document::enableListUpdates(), PD_Document::endUserAtomicGlob(), FV_FrameEdit_NOT_ACTIVE, gchar, fl_ContainerLayout::getAP(), getAttrPropForPoint(), fl_Layout::getAutoNum(), fp_Container::getContainer(), getCurrentBlock(), fl_AutoNum::getDecimal(), fl_AutoNum::getDelim(), getEditableBounds(), fl_ContainerLayout::getFirstContainer(), fl_AutoNum::getID(), XAP_App::getKbdLanguage(), fl_BlockLayout::getLevel(), fl_BlockLayout::getListType(), getPoint(), XAP_App::getPrefsValueBool(), fl_BlockLayout::getProperty(), fl_AutoNum::getStartValue32(), fp_ContainerObject::getWidth(), PD_Document::insertFmtMark(), insertParaBreakIfNeededAtPos(), PD_Document::insertSpan(), FV_FrameEdit::isActive(), PD_Document::isEndFrameAtPos(), PD_Document::isFrameAtPos(), isPointLegal(), isSelectionEmpty(), isTabListAheadPoint(), isTabListBehindPoint(), LIST_DEFAULT_INDENT, AV_View::m_bInsertMode, m_FrameEdit, AV_View::m_pApp, m_pDoc, m_pG, UT_LangRecord::m_szLangCode, notifyListeners(), PTC_AddFmt, FV_FrameEdit::setMode(), FV_FrameEdit::setPointInside(), PP_AttrProp::setProperty(), fl_BlockLayout::StartList(), STD_DOUBLE_BUFFERING_FOR_THIS_FUNCTION, UCS_TAB, PD_Document::updateDirtyLists(), UT_ASSERT, UT_return_val_if_fail, and XAP_PREF_KEY_ChangeLanguageWithKeyboard.

Referenced by cmdCharInsert().

bool FV_View::_charMotion ( bool  bForward,
UT_uint32  countChars,
bool  bSkipCannotContainPoint = true 
) [protected]
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 dg_DrawArgs::bDirtyRunsOnly, GR_Painter::beginDoubleBuffering(), calculateNumHorizPages(), GR_Graphics::CLR3D_BevelDown, 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(), 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(), 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(), 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(), FV_VisualInlineImage::isActive(), FV_FrameEdit::isActive(), fp_ContainerObject::isColumnType(), PD_Document::isFrameAtPos(), fp_TableContainer::isInBrokenTable(), isInFrame(), isInTable(), isLeftMargin(), isPosSelected(), FV_Selection::isPosSelected(), isSelectionEmpty(), m_bDragTableLine, m_FrameEdit, m_iMouseX, m_iMouseY, m_InlineImage, m_pDoc, m_pLayout, m_prevMouseContext, m_Selection, m_selImageRect, fp_Page::mapXYToPosition(), fl_ContainerLayout::myContainingLayout(), UT_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 gchar **  attrsBlock,
const gchar **  propsBlock 
) [protected]

This method inserts a cell at PT_DocPosition with the given left, right, top and bottom attach.

References UT_String::c_str(), PD_Document::insertStrux(), m_pDoc, PTX_Block, PTX_EndCell, PTX_SectionCell, UT_return_val_if_fail, and UT_String_sprintf().

Referenced by cmdInsertCol(), and cmdInsertRow().

bool FV_View::_insertFormatPair ( const gchar *  szName,
const gchar *  properties[] 
) [protected]
UT_UCSChar* FV_View::_lookupSuggestion ( fl_BlockLayout pBL,
fl_PartOfBlock 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(), 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(), 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(), 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, 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 gchar **  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(), fl_AutoNum::getFirstItem(), getFrameLayout(), fl_FrameLayout::getFramePositionTo(), fl_BlockLayout::getHeightOfBlock(), fl_AutoNum::getLastItem(), 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(), 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_getAttribute(), 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(), UT_String::c_str(), 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_String_sprintf().

Referenced by Defun1(), and FV_Selection::pasteRowOrCol().

bool FV_View::cmdInsertEmbed ( const UT_ByteBuf 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(), UT_ByteBuf::getLength(), AD_Document::getNewUUID(), getPoint(), UT_ByteBuf::getPointer(), getStyle(), PD_Document::insertObject(), isSelectionEmpty(), m_pDoc, PTO_Embed, s, UT_UUID::toString(), UT_DEBUGMSG, UT_return_val_if_fail, UT_UTF8String_addPropertyString(), UT_UTF8String_setProperty(), and UT_UTF8String::utf8_str().

Referenced by IE_Imp_Component::_parseStream(), IE_Imp_Object::_parseStream(), and changed_cb().

UT_Error FV_View::cmdInsertField ( const char *  szName,
const gchar **  extra_attrs = NULL,
const gchar **  extra_props = NULL 
)
UT_Error FV_View::cmdInsertGraphicAtStrux ( FG_Graphic 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(), FG_Graphic::insertAtStrux(), m_pDoc, m_pG, s, UT_UUID::toString(), UT_ERROR, UT_return_val_if_fail, and UT_UTF8String::utf8_str().

bool FV_View::cmdInsertMathML ( const char *  szUID,
PT_DocPosition  pos 
)
UT_Error FV_View::cmdInsertPositionedGraphic ( FG_Graphic pFG,
UT_sint32  mouseX,
UT_sint32  mouseY 
)
UT_Error FV_View::cmdInsertPositionedGraphic ( FG_Graphic 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(), UT_String::c_str(), 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_String_sprintf().

Referenced by cmdAdvanceNextPrevCell(), and Defun1().

UT_Error FV_View::cmdInsertTable ( UT_sint32  numRows,
UT_sint32  numCols,
const gchar *  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(), UT_String::c_str(), PD_Document::changeStruxFmt(), PD_Document::disableListUpdates(), PD_Document::enableListUpdates(), PD_Document::endUserAtomicGlob(), gchar, 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_String_setProperty(), UT_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  ) 

Convert a text fragment to a table to Text. The column delimiters are tabs, commas and spaces as follows: iDelim == 0 Use tabs iDelim == 1 Use commas iDelim == 2 Use spaces iDelim == 3 Use tabs, commas and spaces as delemiters Paragraph breaks are the row delimiters.

References _clearSelection(), _ensureInsertionPointOnScreen(), _fixInsertionPointCoords(), _generalUpdate(), _pasteFromLocalTo(), _restorePieceTableState(), _saveAndNotifyPieceTableChange(), PD_Document::beginUserAtomicGlob(), UT_String::c_str(), UT_UTF8String::clear(), PD_Document::clearDoingPaste(), copyToLocal(), PD_Document::deleteSpan(), PD_Document::disableListUpdates(), PD_Document::enableListUpdates(), PD_Document::endUserAtomicGlob(), FV_SelectionMode_Single, gchar, getBlocksInSelection(), PD_Document::getCellSDHFromRowCol(), getEditableBounds(), UT_GenericVector< T >::getItemCount(), UT_GrowBuf::getLength(), UT_GenericVector< T >::getNthItem(), getPoint(), fl_BlockLayout::getPosition(), getSelectionMode(), PD_Document::getStruxOfTypeFromPosition(), PD_Document::getStruxPosition(), PD_Document::insertStrux(), isInHdrFtr(), isPointLegal(), isSelectionEmpty(), isShowRevisions(), m_iPieceTableState, m_pDoc, PD_MAX_REVISION, PTX_Block, PTX_EndCell, PTX_EndTable, PTX_SectionCell, PTX_SectionTable, PD_Document::setDontImmediatelyLayout(), setPoint(), STD_DOUBLE_BUFFERING_FOR_THIS_FUNCTION, PD_Document::updateDirtyLists(), UT_ASSERT, UT_DEBUGMSG, UT_MAX, UT_return_val_if_fail, and UT_String_sprintf().

Referenced by Defun1().

bool FV_View::cmdUpdateEmbed ( const UT_ByteBuf pBuf,
const char *  szMime,
const char *  szProps 
)
bool FV_View::cmdUpdateEmbed ( fp_Run pRun,
const UT_ByteBuf 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(), 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(), PTC_AddFmt, s, UT_UUID::toString(), UT_DEBUGMSG, UT_return_val_if_fail, UT_UTF8String_addPropertyString(), UT_UTF8String_setProperty(), and UT_UTF8String::utf8_str().

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_AutoNum::getFirstItem(), fl_ContainerLayout::getNextBlockInDocument(), fl_AutoNum::getNthBlock(), fl_AutoNum::getNumLabels(), 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::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().