#include <pd_Document.h>
Public Member Functions | |
| PD_Document () | |
| virtual AD_DOCUMENT_TYPE | getType () const |
| virtual UT_Error | readFromFile (const char *szFilename, int ieft, const char *impProps=NULL) |
| virtual UT_Error | importFile (const char *szFilename, int ieft, bool markClean=false, bool bImportStylesFirst=true, const char *impProps=NULL) |
| UT_Error | readFromFile (GsfInput *input, int ieft, const char *impProps=NULL) |
| UT_Error | importFile (GsfInput *input, int ieft, bool markClean=false, bool bImportStylesFirst=true, const char *impProps=NULL) |
| virtual UT_Error | importStyles (const char *szFilename, int ieft, bool bDocProps=false) |
| AP_StatusBar * | getStatusBar (void) |
| void | updateStatus (void) |
| virtual UT_Error | newDocument (void) |
| UT_Error | saveAs (GsfOutput *output, int ieft, bool cpy=false, const char *expProps=NULL) |
| UT_Error | createRawDocument (void) |
| void | finishRawCreation (void) |
| virtual bool | isDirty (void) const |
| virtual void | forceDirty () |
| bool | isConnected (void) |
| virtual bool | canDo (bool bUndo) const |
| virtual UT_uint32 | undoCount (bool bUndo) const |
| virtual bool | undoCmd (UT_uint32 repeatCount) |
| virtual bool | redoCmd (UT_uint32 repeatCount) |
| bool | isDoingTheDo (void) const |
| void | removeCaret (const std::string &sCaretID) |
| void | addPageReferencedImage (UT_UTF8String &sImageId, UT_sint32 iPage, double xInch, double yInch, const char *pzProps) |
| void | addPageReferencedTextbox (UT_ByteBuf &sContent, UT_sint32 iPage, double xInch, double yInch, const char *pzProps) |
| ImagePage * | getNthImagePage (UT_sint32 iImagePage) |
| TextboxPage * | getNthTextboxPage (UT_sint32 iTextboxPage) |
| void | clearAllPendingObjects (void) |
| void | setShowAuthors (bool bAuthors) |
| bool | isShowAuthors (void) const |
| bool | isExportAuthorAtts (void) const |
| void | setExportAuthorAtts (bool bExport) |
| UT_GenericVector< pp_Author * > & | getAuthors () |
| UT_sint32 | getMyAuthorInt (void) const |
| void | setMyAuthorInt (UT_sint32 iAuthor) |
| UT_sint32 | getLastAuthorInt (void) const |
| UT_sint32 | getNumAuthors (void) const |
| pp_Author * | getNthAuthor (UT_sint32 i) const |
| pp_Author * | getAuthorByInt (UT_sint32 i) const |
| pp_Author * | addAuthor (UT_sint32 iAuthor) |
| bool | sendAddAuthorCR (pp_Author *pAuthor) |
| bool | sendChangeAuthorCR (pp_Author *pAuthor) |
| UT_sint32 | findFirstFreeAuthorInt (void) const |
| void | beginUserAtomicGlob (void) |
| void | endUserAtomicGlob (void) |
| void | setMarginChangeOnly (bool b) |
| bool | isMarginChangeOnly (void) const |
| bool | changeObjectFormatNoUpdate (PTChangeFmt ptc, PL_ObjectHandle odh, const gchar **attributes, const gchar **properties) |
| PT_AttrPropIndex | getAPIFromSOH (PL_ObjectHandle odh) |
| bool | insertObject (PT_DocPosition dpos, PTObjectType pto, const gchar **attributes, const gchar **properties) |
| bool | insertObject (PT_DocPosition dpos, PTObjectType pto, const gchar **attributes, const gchar **properties, fd_Field **pField) |
| bool | insertSpan (PT_DocPosition dpos, const UT_UCSChar *p, UT_uint32 length, PP_AttrProp *p_AttrProp=NULL) |
| bool | deleteSpan (PT_DocPosition dpos1, PT_DocPosition dpos2, PP_AttrProp *p_AttrProp_Before, UT_uint32 &iRealDeleteCount, bool bDeleteTableStruxes=false) |
| bool | deleteFmtMark (PT_DocPosition dpos) |
| bool | changeSpanFmt (PTChangeFmt ptc, PT_DocPosition dpos1, PT_DocPosition dpos2, const gchar **attributes, const gchar **properties) |
| bool | insertStrux (PT_DocPosition dpos, PTStruxType pts, pf_Frag_Strux **ppfs_ret=0) |
| bool | deleteStrux (PT_DocPosition dpos, PTStruxType pts, bool bRecordChange) |
| bool | createAndSendCR (PT_DocPosition dpos, UT_sint32 iType, bool bsave, UT_Byte iGlob) |
| virtual bool | createAndSendDocPropCR (const gchar **pAtts, const gchar **pProps) |
| bool | changeDocPropeties (const gchar **szAtts, const gchar **pProps) |
| bool | insertStrux (PT_DocPosition dpos, PTStruxType pts, const gchar **attributes, const gchar **properties, pf_Frag_Strux **ppfs_ret=0) |
| void | deleteHdrFtrStrux (PL_StruxDocHandle sdh) |
| bool | changeStruxFmt (PTChangeFmt ptc, PT_DocPosition dpos1, PT_DocPosition dpos2, const gchar **attributes, const gchar **properties, PTStruxType pts) |
| bool | changeStruxFmt (PTChangeFmt ptc, PT_DocPosition dpos1, PT_DocPosition dpos2, const gchar **attributes, const gchar **properties) |
| bool | changeStruxFmtNoUndo (PTChangeFmt ptc, PL_StruxDocHandle sdh, const gchar **attributes, const gchar **properties) |
| bool | changeStruxForLists (PL_StruxDocHandle sdh, const char *pszParentID) |
| bool | insertFmtMark (PTChangeFmt ptc, PT_DocPosition dpos, PP_AttrProp *p_AttrProp) |
| bool | changeLastStruxFmtNoUndo (PT_DocPosition dpos, PTStruxType pts, const gchar **attrs, const gchar **props, bool bSkipEmbededSections) |
| bool | changeLastStruxFmtNoUndo (PT_DocPosition dpos, PTStruxType pts, const gchar **attrs, const gchar *props, bool bSkipEmbededSections) |
| bool | appendStrux (PTStruxType pts, const gchar **attributes, pf_Frag_Strux **ppfs_ret=0) |
| bool | appendStruxFmt (pf_Frag_Strux *pfs, const gchar **attributes) |
| bool | appendLastStruxFmt (PTStruxType pts, const gchar **attrs, const gchar **props, bool bSkipEmbededSections) |
| bool | appendLastStruxFmt (PTStruxType pts, const gchar **attrs, const gchar *props, bool bSkipEmbededSections) |
| bool | appendFmt (const gchar **attributes) |
| bool | appendFmt (const UT_GenericVector< const gchar * > *pVecAttributes) |
| bool | appendSpan (const UT_UCSChar *p, UT_uint32 length) |
| bool | appendObject (PTObjectType pto, const gchar **attributes) |
| bool | appendFmtMark (void) |
| bool | appendStyle (const gchar **attributes) |
| bool | changeStruxFormatNoUpdate (PTChangeFmt ptc, PL_StruxDocHandle sdh, const gchar **attributes) |
| bool | insertStruxBeforeFrag (pf_Frag *pF, PTStruxType pts, const gchar **attributes, pf_Frag_Strux **ppfs_ret=0) |
| bool | insertSpanBeforeFrag (pf_Frag *pF, const UT_UCSChar *p, UT_uint32 length) |
| bool | insertObjectBeforeFrag (pf_Frag *pF, PTObjectType pto, const gchar **attributes) |
| bool | insertFmtMarkBeforeFrag (pf_Frag *pF) |
| bool | insertFmtMarkBeforeFrag (pf_Frag *pF, const gchar **attributes) |
| pf_Frag * | findFragOfType (pf_Frag::PFType iType, UT_sint32 iSubtype=-1, const pf_Frag *pfStart=NULL) |
| pf_Frag * | getLastFrag () const |
| bool | checkForSuspect (void) |
| bool | repairDoc (void) |
| bool | removeStyle (const gchar *name) |
| bool | tellListener (PL_Listener *pListener) |
| bool | tellListenerSubset (PL_Listener *pListener, PD_DocumentRange *pDocRange, PL_ListenerCoupleCloser *closer=0) |
| bool | addListener (PL_Listener *pListener, PL_ListenerId *pListenerId) |
| bool | removeListener (PL_ListenerId listenerId) |
| bool | signalListeners (UT_uint32 iSignal) const |
| bool | notifyListeners (const pf_Frag_Strux *pfs, const PX_ChangeRecord *pcr) const |
| bool | notifyListeners (const pf_Frag_Strux *pfs, pf_Frag_Strux *pfsNew, const PX_ChangeRecord *pcr) const |
| void | deferNotifications (void) |
| void | processDeferredNotifications (void) |
| UT_sint32 | getAdjustmentForCR (const PX_ChangeRecord *pcr) const |
| bool | getAttrProp (PT_AttrPropIndex indexAP, const PP_AttrProp **ppAP) const |
| bool | getSpanAttrProp (PL_StruxDocHandle sdh, UT_uint32 offset, bool bLeftSide, const PP_AttrProp **ppAP) const |
| bool | getAttrProp (PT_AttrPropIndex apIndx, const PP_AttrProp **ppAP, PP_RevisionAttr **pRevisions, bool bShowRevisions, UT_uint32 iRevisionId, bool &bHiddenRevision) const |
| bool | getSpanAttrProp (PL_StruxDocHandle sdh, UT_uint32 offset, bool bLeftSide, const PP_AttrProp **ppAP, PP_RevisionAttr **pRevisions, bool bShowRevisions, UT_uint32 iRevisionId, bool &bHiddenRevision) const |
| const UT_UCSChar * | getPointer (PT_BufIndex bi) const |
| bool | getBlockBuf (PL_StruxDocHandle sdh, UT_GrowBuf *pgb) const |
| bool | getBounds (bool bEnd, PT_DocPosition &docPos) const |
| PTStruxType | getStruxType (PL_StruxDocHandle sdh) const |
| PT_DocPosition | getStruxPosition (PL_StruxDocHandle sdh) const |
| bool | getStruxFromPosition (PL_ListenerId listenerId, PT_DocPosition docPos, PL_StruxFmtHandle *psfh) const |
| bool | getStruxOfTypeFromPosition (PL_ListenerId listenerId, PT_DocPosition docPos, PTStruxType pts, PL_StruxFmtHandle *psfh) const |
| bool | getStruxOfTypeFromPosition (PT_DocPosition, PTStruxType pts, PL_StruxDocHandle *sdh) const |
| return the SDH of the last strux of the given type immediately prior to the given absolute document position. | |
| PL_StruxDocHandle | getBlockFromPosition (PT_DocPosition pos) const |
| pf_Frag * | getFragFromPosition (PT_DocPosition docPos) const |
| bool | getNextStruxOfType (PL_StruxDocHandle sdh, PTStruxType pts, PL_StruxDocHandle *nextsdh) |
| Return the sdh of type pts immediately after sdh. | |
| bool | getPrevStruxOfType (PL_StruxDocHandle sdh, PTStruxType pts, PL_StruxDocHandle *prevsdh) |
| Return the sdh of type pts immediately prior to sdh. | |
| bool | getNextStrux (PL_StruxDocHandle sdh, PL_StruxDocHandle *nextSDH) |
| get the next strux after the strux given. | |
| virtual bool | createDataItem (const char *szName, bool bBase64, const UT_ByteBuf *pByteBuf, const std::string &mime_type, void **ppHandle) |
| virtual bool | replaceDataItem (const char *szName, const UT_ByteBuf *pByteBuf) |
| virtual bool | getDataItemDataByName (const char *szName, const UT_ByteBuf **ppByteBuf, std::string *pMimeType, void **ppHandle) const |
| bool | setDataItemToken (void *pHandle, void *pToken) |
| bool | getDataItemData (void *pHandle, const char **pszName, const UT_ByteBuf **ppByteBuf, const void **ppToken) const |
| bool | getDataItemFileExtension (const char *szDataID, std::string &sExt, bool bDot=true) const |
| bool | enumDataItems (UT_uint32 k, void **ppHandle, const char **pszName, const UT_ByteBuf **ppByteBuf, std::string *pMimeType) const |
| PL_StruxDocHandle | findHdrFtrStrux (const gchar *pszHdtFtr, const gchar *pszHdrFtrID) |
| bool | verifySectionID (const gchar *pszId) |
| PL_StruxDocHandle | getLastSectionSDH (void) |
| PL_StruxDocHandle | getLastStruxOfType (PTStruxType pts) |
| bool | changeStruxAttsNoUpdate (PL_StruxDocHandle sdh, const char *attr, const char *attvalue) |
| bool | deleteStruxNoUpdate (PL_StruxDocHandle sdh) |
| bool | deleteFragNoUpdate (pf_Frag *pf) |
| bool | insertStruxNoUpdateBefore (PL_StruxDocHandle sdh, PTStruxType pts, const gchar **attributes) |
| bool | isStruxBeforeThis (PL_StruxDocHandle sdh, PTStruxType pts) |
| PT_AttrPropIndex | getAPIFromSDH (PL_StruxDocHandle sdh) |
| bool | getAttributeFromSDH (PL_StruxDocHandle sdh, bool bShowRevisions, UT_uint32 iRevisionLevel, const char *szAttribute, const char **pszValue) |
| bool | getPropertyFromSDH (PL_StruxDocHandle sdh, bool bShowRevisions, UT_uint32 iRevisionLevel, const char *szProperty, const char **pszValue) |
| void | getAllUsedStyles (UT_GenericVector< PD_Style * > *pVecStyles) |
| PL_StruxFmtHandle | getNthFmtHandle (PL_StruxDocHandle sdh, UT_uint32 n) |
| const char * | getDefaultStyle () const |
| bool | getStyle (const char *szName, PD_Style **ppStyle) const |
| PD_Style * | getStyleFromSDH (PL_StruxDocHandle sdh) |
| PL_StruxDocHandle | getPrevNumberedHeadingStyle (PL_StruxDocHandle sdh) |
| size_t | getStyleCount (void) |
| bool | enumStyles (UT_uint32 k, const char **pszName, const PD_Style **ppStyle) const |
| bool | enumStyles (UT_GenericVector< PD_Style * > *&pStyles) const |
| bool | addStyleProperty (const gchar *szStyleName, const gchar *szPropertyName, const gchar *szPropertyValue) |
| bool | addStyleProperties (const gchar *szStyleName, const gchar **pProperties) |
| bool | setAllStyleAttributes (const gchar *szStyleName, const gchar **pAttribs) |
| bool | addStyleAttributes (const gchar *szStyleName, const gchar **pAttribs) |
| PL_StruxDocHandle | findPreviousStyleStrux (const gchar *szStyle, PT_DocPosition pos) |
| PL_StruxDocHandle | findForwardStyleStrux (const gchar *szStyle, PT_DocPosition pos) |
| bool | updateDocForStyleChange (const gchar *szStyleName, bool isParaStyle) |
| void | updateAllLayoutsInDoc (PL_StruxDocHandle sdh) |
| void | clearIfAtFmtMark (PT_DocPosition dpos) |
| virtual UT_uint32 | getLastSavedAsType () const |
| UT_uint32 | getLastOpenedType () const |
| bool | updateFields (void) |
| bool | getField (PL_StruxDocHandle sdh, UT_uint32 offset, fd_Field *&pField) |
| po_Bookmark * | getBookmark (PL_StruxDocHandle sdh, UT_uint32 offset) |
| pf_Frag * | findBookmark (const char *pName, bool bEnd=false, pf_Frag *pfStart=NULL) |
| bool | hasMath (void) |
| void | setDontChangeInsPoint (void) |
| void | allowChangeInsPoint (void) |
| bool | getAllowChangeInsPoint (void) const |
| bool | isFootnoteAtPos (PT_DocPosition pos) |
| bool | isEndFootnoteAtPos (PT_DocPosition pos) |
| UT_sint32 | getEmbeddedOffset (PL_StruxDocHandle sdh, PT_DocPosition posOff, PL_StruxDocHandle &sdhEmbedded) |
| bool | isTOCAtPos (PT_DocPosition pos) |
| bool | isFrameAtPos (PT_DocPosition pos) |
| bool | isEndFrameAtPos (PT_DocPosition pos) |
| bool | isHdrFtrAtPos (PT_DocPosition pos) |
| bool | isSectionAtPos (PT_DocPosition pos) |
| bool | isBlockAtPos (PT_DocPosition pos) |
| bool | isTableAtPos (PT_DocPosition pos) |
| bool | isEndTableAtPos (PT_DocPosition pos) |
| bool | isCellAtPos (PT_DocPosition pos) |
| PL_StruxDocHandle | getEndTableStruxFromTableSDH (PL_StruxDocHandle tableSDH) |
| PL_StruxDocHandle | getEndCellStruxFromCellSDH (PL_StruxDocHandle cellSDH) |
| PL_StruxDocHandle | getEndTableStruxFromTablePos (PT_DocPosition posTable) |
| bool | getRowsColsFromTableSDH (PL_StruxDocHandle tableSDH, bool bShowRevisions, UT_uint32 iRevisionLevel, UT_sint32 *numRows, UT_sint32 *numCols) |
| PL_StruxDocHandle | getCellSDHFromRowCol (PL_StruxDocHandle tableSDH, bool bShowRevisions, UT_uint32 iRevisionLevel, UT_sint32 row, UT_sint32 col) |
| void | miniDump (PL_StruxDocHandle sdh, UT_sint32 nstruxes) |
| bool | dumpDoc (const char *msg, PT_DocPosition currentpos, PT_DocPosition endpos) |
| bool | isInsertHyperLinkValid (PT_DocPosition pos) const |
| fl_AutoNum * | getListByID (UT_uint32 id) const |
| fl_AutoNum * | getNthList (UT_uint32 i) const |
| bool | enumLists (UT_uint32 k, fl_AutoNum **pAutoNum) |
| UT_uint32 | getListsCount (void) const |
| void | addList (fl_AutoNum *pAutoNum) |
| bool | appendList (const gchar **attributes) |
| bool | fixListHierarchy (void) |
| void | removeList (fl_AutoNum *pAutoNum, PL_StruxDocHandle sdh) |
| void | listUpdate (PL_StruxDocHandle sdh) |
| void | StopList (PL_StruxDocHandle sdh) |
| void | disableListUpdates (void) |
| void | enableListUpdates (void) |
| void | updateDirtyLists (void) |
| bool | areListUpdatesAllowed (void) |
| void | setHasListStopped (bool bStop) |
| bool | hasListStopped (void) const |
| void | setDoingPaste (void) |
| void | clearDoingPaste (void) |
| bool | isDoingPaste (void) |
| void | setRedrawHappenning (bool bIsHappening) |
| bool | isRedrawHappenning (void) const |
| bool | convertPercentToInches (const char *szPercent, UT_UTF8String &sInches) |
| bool | setPageSizeFromFile (const gchar **attributes) |
| const fp_PageSize * | getPageSize (void) const |
| bool | isBookmarkUnique (const gchar *pName) const |
| bool | isBookmarkRelativeLink (const gchar *pName) const |
| UT_sint32 | getBookmarkCount () const |
| const gchar * | getNthBookmark (UT_sint32 n) const |
| void | addBookmark (const gchar *pName) |
| void | removeBookmark (const gchar *pName) |
| virtual void | setMarkRevisions (bool bMark) |
| void | setMarkRevisionsNoNotify (bool bMark) |
| virtual bool | acceptRejectRevision (bool bReject, UT_uint32 iStart, UT_uint32 iEnd, UT_uint32 iLevel) |
| virtual bool | rejectAllHigherRevisions (UT_uint32 iLevel) |
| virtual bool | acceptAllRevisions () |
| const PP_AttrProp * | explodeRevisions (PP_RevisionAttr *&pRevisions, const PP_AttrProp *pAP, bool bShow, UT_uint32 iId, bool &bHiddenRevision) const |
| virtual void | purgeRevisionTable (bool bUnconditional=false) |
| void | notifyPieceTableChangeStart (void) |
| void | notifyPieceTableChangeEnd (void) |
| pt_PieceTable * | getPieceTable (void) const |
| PD_DocumentRDFHandle | getDocumentRDF (void) const |
| PD_XMLIDCreatorHandle | makeXMLIDCreator () |
| bool | areStylesLocked () const |
| void | lockStyles (bool b) |
| virtual void | setMetaDataProp (const UT_String &key, const UT_UTF8String &value) |
| virtual bool | getMetaDataProp (const UT_String &key, UT_UTF8String &outProp) const |
| virtual void | setAnnotationProp (const UT_String &key, const UT_UTF8String &value) |
| virtual bool | getAnnotationProp (const UT_String &key, UT_UTF8String &outProp) const |
| UT_GenericStringMap < UT_UTF8String * > & | getMetaData () |
| const PP_AttrProp * | getAttrProp () const |
| PT_AttrPropIndex | getAttrPropIndex () const |
| bool | setAttrProp (const gchar **ppAttr) |
| bool | setAttributes (const gchar **ppAttr) |
| bool | setProperties (const gchar **ppProps) |
| void | setDontImmediatelyLayout (bool b) |
| bool | isDontImmediateLayout (void) const |
| UT_UTF8String | getMailMergeField (const UT_String &key) const |
| bool | mailMergeFieldExists (const UT_String &key) const |
| void | setMailMergeField (const UT_String &key, const UT_UTF8String &value) |
| void | clearMailMergeMap () |
| void | setMailMergeLink (const char *file) |
| const UT_UTF8String & | getMailMergeLink () const |
| const UT_GenericStringMap < UT_UTF8String * > & | getMailMergeMap () const |
| void | invalidateCache (void) |
| UT_uint32 | getUID (UT_UniqueId::idType t) |
| bool | setMinUID (UT_UniqueId::idType t, UT_uint32 i) |
| bool | isIdUnique (UT_UniqueId::idType t, UT_uint32 i) const |
| virtual bool | areDocumentContentsEqual (const AD_Document &d, UT_uint32 &pos) const |
| virtual bool | areDocumentFormatsEqual (const AD_Document &d, UT_uint32 &pos) const |
| virtual bool | areDocumentStylesheetsEqual (const AD_Document &d) const |
| bool | findFirstDifferenceInContent (PT_DocPosition &pos, UT_sint32 &iOffset2, const PD_Document &d) const |
| bool | findWhereSimilarityResumes (PT_DocPosition &pos, UT_sint32 &iOffset2, UT_uint32 &iKnownLength, const PD_Document &d) const |
| virtual void | setAutoRevisioning (bool autorev) |
| virtual UT_uint32 | getXID () const |
| virtual UT_uint32 | getTopXID () const |
| void | fixMissingXIDs () |
| UT_uint32 | getFragXIDforVersion (const pf_Frag *pf, UT_uint32 iVersion) const |
| void | removeConnections (void) |
| void | changeConnectedDocument (PD_Document *pDoc) |
| UT_sint32 | getNewHdrHeight (void) const |
| UT_sint32 | getNewFtrHeight (void) const |
| void | setNewHdrHeight (UT_sint32 newHeight) |
| void | setNewFtrHeight (UT_sint32 newHeight) |
| bool | purgeFmtMarks () |
| void | tellPTDoNotTweakPosition (bool b) |
| void | setVDNDinProgress (bool b) |
| bool | isVDNDinProgress () const |
| UT_sint32 | getCRNumber () const |
| void | setCRNumber (UT_sint32 iCRCounter) |
| UT_sint32 | getNextCRNumber (void) |
| void | getAllViews (UT_GenericVector< AV_View * > *vecViews) const |
| void | ignoreSignals (void) |
| void | dontIgnoreSignals (void) |
| void | setClean (void) |
| void | setCoalescingMask (bool mask) |
| bool | isCoalescingMasked () const |
| bool | exportGetVisDirectionAtPos (PT_DocPosition pos, UT_BidiCharType &type) |
Public Attributes | |
| fp_PageSize | m_docPageSize |
| IE_FileInfo | m_fileImpExpInfo |
Protected Member Functions | |
| virtual | ~PD_Document () |
| virtual UT_Error | _saveAs (const char *szFilename, int ieft, const char *expProps=NULL) |
| virtual UT_Error | _saveAs (const char *szFilename, int ieft, bool cpy, const char *expProps=NULL) |
| virtual UT_Error | _saveAs (GsfOutput *output, int ieft, bool cpy, const char *expProps) |
| virtual UT_Error | _save (void) |
| void | _setClean (void) |
| void | _destroyDataItemData (void) |
| bool | _syncFileTypes (bool bReadSaveWriteOpen) |
| bool | _acceptRejectRevision (bool bReject, UT_uint32 iStart, UT_uint32 iEnd, const PP_Revision *pRev, PP_RevisionAttr &RevAttr, pf_Frag *pf, bool &bDeleted) |
| virtual void | _clearUndo () |
| UT_Error | _importFile (const char *szFilename, int ieft, bool markClean, bool bImportStylesFirst, bool isImportFile, const char *impProps) |
| UT_Error | _importFile (GsfInput *input, int ieft, bool markClean, bool bImportStylesFirst, bool bIsImportFile, const char *impProps) |
| bool | _removeRepeatedHdrFtr (pf_Frag_Strux *pfs, UT_GenericVector< pf_Frag_Strux * > *vecHdrFtrs, UT_sint32 i) |
| bool | _pruneSectionAPI (pf_Frag_Strux *pfs, const char *szHType, UT_GenericVector< pf_Frag_Strux * > *vecHdrFtrs) |
| bool | _matchSection (pf_Frag_Strux *pfs, UT_GenericVector< pf_Frag_Strux * > *vecSections) |
| bool | _removeHdrFtr (pf_Frag_Strux *pfs) |
| bool | _checkAndFixTable (pf_Frag_Strux *pfs) |
Private Member Functions | |
| bool | addAuthorAttributeIfBlank (const gchar **szAttsIn, const gchar **&szAttsOut, UT_String &storage) |
| bool | addAuthorAttributeIfBlank (PP_AttrProp *&p_AttrProp) |
| bool | _buildAuthorProps (pp_Author *pAuthor, const gchar **&szProps) |
| bool | _exportInitVisDirection (PT_DocPosition pos) |
| bool | _exportFindVisDirectionRunAtPos (PT_DocPosition pos) |
Private Attributes | |
| bool | m_ballowListUpdates |
| pt_PieceTable * | m_pPieceTable |
| PD_DocumentRDFHandle | m_hDocumentRDF |
| UT_GenericVector< PL_Listener * > | m_vecListeners |
| UT_GenericVector< fl_AutoNum * > | m_vecLists |
| bool | m_bHasListStopped |
| UT_GenericStringMap< struct _dataItemPair * > | m_hashDataItems |
| IEFileType | m_lastOpenedType |
| IEFileType | m_lastSavedAsType |
| bool | m_bDoingPaste |
| bool | m_bAllowInsertPointChange |
| bool | m_bRedrawHappenning |
| bool | m_bLoading |
| UT_Vector | m_vBookmarkNames |
| bool | m_bLockedStyles |
| UT_GenericStringMap < UT_UTF8String * > | m_metaDataMap |
| PT_AttrPropIndex | m_indexAP |
| bool | m_bDontImmediatelyLayout |
| UT_GenericStringMap < UT_UTF8String * > | m_mailMergeMap |
| UT_UCS4Char | m_iLastDirMarker |
| UT_UTF8String | m_mailMergeLink |
| const fl_BlockLayout * | m_pVDBl |
| fp_Run * | m_pVDRun |
| PT_DocPosition | m_iVDLastPos |
| UT_UniqueId | m_UID |
| UT_sint32 | m_iNewHdrHeight |
| UT_sint32 | m_iNewFtrHeight |
| bool | m_bMarginChangeOnly |
| UT_GenericVector< pf_Frag * > | m_vecSuspectFrags |
| bool | m_bVDND |
| UT_sint32 | m_iCRCounter |
| UT_sint32 | m_iUpdateCount |
| bool | m_bIgnoreSignals |
| bool | m_bCoalescingMask |
| bool | m_bShowAuthors |
| UT_GenericVector< pp_Author * > | m_vecAuthors |
| bool | m_bExportAuthorAtts |
| UT_sint32 | m_iMyAuthorInt |
| UT_sint32 | m_iLastAuthorInt |
| UT_GenericVector< ImagePage * > | m_pPendingImagePage |
| UT_GenericVector< TextboxPage * > | m_pPendingTextboxPage |
| UT_sint32 | m_iStruxCount |
PD_Document is the representation for a document.
| PD_Document::PD_Document | ( | ) |
| PD_Document::~PD_Document | ( | ) | [protected, virtual] |
| bool PD_Document::_acceptRejectRevision | ( | bool | bReject, | |
| UT_uint32 | iStart, | |||
| UT_uint32 | iEnd, | |||
| const PP_Revision * | pRev, | |||
| PP_RevisionAttr & | RevAttr, | |||
| pf_Frag * | pf, | |||
| bool & | bDeleted | |||
| ) | [protected] |
carries out the actual change in PieceTable; called by acceptRejectRevision() and rejectAllHigherRevisions()
this method operates on a fragment at a time, but if it results in deletion from PT, more fragments might be deleted
References AD_Document::_setMarkRevisions(), changeSpanFmt(), changeStruxFmt(), deleteSpan(), gchar, PP_AttrProp::getAttributeCount(), PP_Revision::getId(), pf_Frag::getLength(), pf_Frag::getNext(), PP_AttrProp::getNthAttribute(), PP_AttrProp::getNthProperty(), PP_AttrProp::getPropertyCount(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), PP_Revision::getType(), PP_RevisionAttr::getXMLstring(), AD_Document::isMarkRevisions(), pf_Frag::PFT_Strux, PP_REVISION_ADDITION, PP_REVISION_ADDITION_AND_FMT, PP_REVISION_DELETION, PP_REVISION_FMT_CHANGE, PTC_AddFmt, PTC_RemoveFmt, PTX_Block, PTX_SectionAnnotation, PTX_SectionCell, PTX_SectionEndnote, PTX_SectionFootnote, PTX_SectionFrame, PTX_SectionMarginnote, PTX_SectionTable, PTX_SectionTOC, PP_RevisionAttr::removeAllHigherOrEqualIds(), UT_ASSERT_HARMLESS, UT_return_val_if_fail, and UT_SHOULD_NOT_HAPPEN.
Referenced by acceptAllRevisions(), acceptRejectRevision(), and rejectAllHigherRevisions().
| bool PD_Document::_buildAuthorProps | ( | pp_Author * | pAuthor, | |
| const gchar **& | szProps | |||
| ) | [private] |
References UT_String::c_str(), gchar, pp_Author::getAttrProp(), pp_Author::getAuthorInt(), PP_AttrProp::getNthProperty(), PP_AttrProp::getPropertyCount(), szName, UT_DEBUGMSG, and UT_String_sprintf().
Referenced by sendAddAuthorCR(), and sendChangeAuthorCR().
| bool PD_Document::_checkAndFixTable | ( | pf_Frag_Strux * | pfs | ) | [protected] |
This method looks to see if we have a table strux without a matching cell or an endtable without a matching endcell preceding it If we do it deletes the table/endtable.
References pt_PieceTable::deleteFragNoUpdate(), pf_Frag::getNext(), pf_Frag::getPrev(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), and m_pPieceTable.
Referenced by repairDoc().
| void PD_Document::_clearUndo | ( | ) | [protected, virtual] |
Implements AD_Document.
References pt_PieceTable::clearUndo(), m_pPieceTable, and UT_return_if_fail.
| void PD_Document::_destroyDataItemData | ( | void | ) | [protected] |
References FREEP, m_hashDataItems, _dataItemPair::pBuf, _dataItemPair::pToken, UT_GenericStringMap< T >::remove(), UT_GenericStringMap< T >::size(), UT_return_if_fail, and xxx_UT_DEBUGMSG.
Referenced by ~PD_Document().
| bool PD_Document::_exportFindVisDirectionRunAtPos | ( | PT_DocPosition | pos | ) | [private] |
| bool PD_Document::_exportInitVisDirection | ( | PT_DocPosition | pos | ) | [private] |
References FL_DocLayout::findBlockAtPosition(), fl_BlockLayout::findRunAtOffset(), UT_GenericVector< T >::getItemCount(), fl_DocListener::getLayout(), UT_GenericVector< T >::getNthItem(), fl_BlockLayout::getPosition(), PL_Listener::getType(), m_bLoading, m_pVDBl, m_pVDRun, m_vecListeners, and UT_return_val_if_fail.
Referenced by _exportFindVisDirectionRunAtPos(), and exportGetVisDirectionAtPos().
| UT_Error PD_Document::_importFile | ( | GsfInput * | input, | |
| int | ieft, | |||
| bool | markClean, | |||
| bool | bImportStylesFirst, | |||
| bool | bIsImportFile, | |||
| const char * | impProps | |||
| ) | [protected] |
References _setClean(), AD_Document::_setFilename(), AD_Document::_setForceDirty(), _syncFileTypes(), XAP_Dialog_MessageBox::a_OK, XAP_Prefs::addRecent(), XAP_Dialog_MessageBox::b_O, buildTemplateList(), DELETEP, gchar, XAP_App::getApp(), PP_AttrProp::getAttribute(), getAttrProp(), AD_Document::getFilename(), AD_Document::getHighestRevisionId(), UT_GenericVector< T >::getItemCount(), XAP_App::getLastFocussedFrame(), XAP_App::getPrefs(), AD_Document::getRevisions(), AD_Document::getShowRevisionId(), getStatusBar(), AP_StatusBar::hideProgressBar(), importStyles(), AD_Document::isMarkRevisions(), AD_Document::isOrigUUID(), AD_Document::isShowRevisions(), IE_Imp::loadFile(), m_bLoading, m_bLockedStyles, m_hDocumentRDF, m_indexAP, m_lastOpenedType, m_pPieceTable, XAP_Frame::nullUpdate(), PROGRESS_INDEFINATE, PTS_Editing, PTS_Loading, repairDoc(), setAttrProp(), AD_Document::setLastOpenedTime(), pt_PieceTable::setPieceTableState(), AP_StatusBar::setStatusProgressType(), pt_PieceTable::setXIDThreshold(), XAP_Frame::showMessageBox(), AP_StatusBar::showProgressBar(), time, updateFields(), UT_ASSERT, UT_DEBUGMSG, UT_IS_IE_SUCCESS, and UT_OK.
| UT_Error PD_Document::_importFile | ( | const char * | szFilename, | |
| int | ieft, | |||
| bool | markClean, | |||
| bool | bImportStylesFirst, | |||
| bool | isImportFile, | |||
| const char * | impProps | |||
| ) | [protected] |
References UT_DEBUGMSG, and UT_go_file_open().
Referenced by importFile(), and readFromFile().
| bool PD_Document::_matchSection | ( | pf_Frag_Strux * | pfs, | |
| UT_GenericVector< pf_Frag_Strux * > * | vecSections | |||
| ) | [protected] |
pfs point to a header footer section. This Method returns true if there is a section that has a reference to it's HdrFtr type and id
References getAttributeFromSDH(), UT_GenericVector< T >::getItemCount(), and UT_GenericVector< T >::getNthItem().
Referenced by repairDoc().
| bool PD_Document::_pruneSectionAPI | ( | pf_Frag_Strux * | pfs, | |
| const char * | szHType, | |||
| UT_GenericVector< pf_Frag_Strux * > * | vecHdrFtrs | |||
| ) | [protected] |
This scans the HdrFtrs to see if there is a match for the header/footer type in the section strux pfs. Return true of a prune happened
References pt_PieceTable::changeStruxFormatNoUpdate(), getAttributeFromSDH(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), m_pPieceTable, PTC_RemoveFmt, and UT_DEBUGMSG.
Referenced by repairDoc().
| bool PD_Document::_removeHdrFtr | ( | pf_Frag_Strux * | pfs | ) | [protected] |
Remove the HdrFtr starting at pfs. No changeRecords are cre created. Only used for document repair during import.
References pt_PieceTable::deleteFragNoUpdate(), pf_Frag::getNext(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), m_pPieceTable, and UT_DEBUGMSG.
Referenced by _removeRepeatedHdrFtr(), and repairDoc().
| bool PD_Document::_removeRepeatedHdrFtr | ( | pf_Frag_Strux * | pfs, | |
| UT_GenericVector< pf_Frag_Strux * > * | vecHdrFtrs, | |||
| UT_sint32 | iStart | |||
| ) | [protected] |
Look for a Hdr/Ftr with exactly the same identification as that of the input strux. If we find a match delete the HdrFtr
References _removeHdrFtr(), UT_GenericVector< T >::deleteNthItem(), getAttributeFromSDH(), UT_GenericVector< T >::getItemCount(), and UT_GenericVector< T >::getNthItem().
Referenced by repairDoc().
| UT_Error PD_Document::_save | ( | void | ) | [protected, virtual] |
| UT_Error PD_Document::_saveAs | ( | const char * | szFilename, | |
| int | ieft, | |||
| const char * | expProps = NULL | |||
| ) | [protected, virtual] |
Implements AD_Document.
Referenced by saveAs().
| UT_Error PD_Document::_saveAs | ( | const char * | szFilename, | |
| int | ieft, | |||
| bool | cpy, | |||
| const char * | expProps = NULL | |||
| ) | [protected, virtual] |
Implements AD_Document.
References AD_Document::_adjustHistoryOnSave(), _setClean(), AD_Document::_setFilename(), _syncFileTypes(), XAP_Prefs::addRecent(), IE_Exp::constructExporter(), XAP_App::getApp(), XAP_App::getPrefs(), m_lastSavedAsType, PD_SIGNAL_DOCNAME_CHANGED, purgeRevisionTable(), IE_Exp::setProps(), signalListeners(), UT_DEBUGMSG, UT_SAVE_CANCELLED, and IE_Exp::writeFile().
| UT_Error PD_Document::_saveAs | ( | GsfOutput * | output, | |
| int | ieft, | |||
| bool | cpy, | |||
| const char * | expProps | |||
| ) | [protected, virtual] |
References AD_Document::_adjustHistoryOnSave(), _setClean(), AD_Document::_setFilename(), _syncFileTypes(), XAP_Prefs::addRecent(), IE_Exp::constructExporter(), XAP_App::getApp(), XAP_App::getPrefs(), m_lastSavedAsType, PD_SIGNAL_DOCNAME_CHANGED, purgeRevisionTable(), IE_Exp::setProps(), signalListeners(), UT_DEBUGMSG, UT_return_val_if_fail, UT_SAVE_CANCELLED, UT_SAVE_NAMEERROR, and IE_Exp::writeFile().
| void PD_Document::_setClean | ( | void | ) | [protected] |
References AD_Document::_setForceDirty(), m_pPieceTable, and pt_PieceTable::setClean().
Referenced by _importFile(), _save(), _saveAs(), finishRawCreation(), and newDocument().
| bool PD_Document::_syncFileTypes | ( | bool | bReadSaveWriteOpen | ) | [protected] |
Synchronize the last opened/last saves filetypes.
| bReadLastSavedAsType | True to write last opened and read last saved type; otherwise, write last saved type from last opened type. |
There are actually two filetypes - one for importers and one for exporters. This function tries to synchronize the one to the other.
References IE_Exp::fileTypeForSuffixes(), IE_Imp::fileTypeForSuffixes(), IEFT_Bogus, IEFT_Unknown, m_lastOpenedType, m_lastSavedAsType, IE_Imp::suffixesForFileType(), and IE_Exp::suffixesForFileType().
Referenced by _importFile(), _save(), and _saveAs().
| bool PD_Document::acceptAllRevisions | ( | ) | [virtual] |
Implements AD_Document.
References _acceptRejectRevision(), beginUserAtomicGlob(), endUserAtomicGlob(), gchar, PP_AttrProp::getAttribute(), pt_PieceTable::getAttrProp(), PD_DocIterator::getFrag(), pf_Frag::getIndexAP(), pf_Frag::getLength(), PP_RevisionAttr::getNthRevision(), PD_DocIterator::getPosition(), PP_RevisionAttr::getRevisionsCount(), PD_DocIterator::getStatus(), m_pPieceTable, notifyPieceTableChangeEnd(), notifyPieceTableChangeStart(), PD_SIGNAL_UPDATE_LAYOUT, PP_RevisionAttr::pruneForCumulativeResult(), purgeFmtMarks(), PD_DocIterator::reset(), signalListeners(), UT_ASSERT_HARMLESS, UT_return_val_if_fail, and UT_SHOULD_NOT_HAPPEN.
| bool PD_Document::acceptRejectRevision | ( | bool | bReject, | |
| UT_uint32 | iPos1, | |||
| UT_uint32 | iPos2, | |||
| UT_uint32 | iLevel | |||
| ) | [virtual] |
accepts or reject top visible revision between document positions iStart and iEnd.
| bReject | true if revisions are to be rejected | |
| iPos1 | document position to start at | |
| iPos2 | document position to finish at | |
| iLevel | the highest revision level to accept |
NB: For each fragment this function removes the highest revision <= iLevel. For example, if iLevel is 3 and fragment contains revisions 1,2, 4, revision 2 will be removed.
Implements AD_Document.
References _acceptRejectRevision(), beginUserAtomicGlob(), endUserAtomicGlob(), gchar, PP_AttrProp::getAttribute(), pt_PieceTable::getAttrProp(), PD_DocIterator::getFrag(), PP_RevisionAttr::getGreatestLesserOrEqualRevision(), pf_Frag::getIndexAP(), pf_Frag::getLength(), pf_Frag::getPos(), PD_DocIterator::getPosition(), PD_DocIterator::getStatus(), m_pPieceTable, notifyPieceTableChangeEnd(), notifyPieceTableChangeStart(), PD_SIGNAL_UPDATE_LAYOUT, PD_DocIterator::reset(), signalListeners(), UT_ASSERT_HARMLESS, UT_MAX, UT_MIN, UT_return_val_if_fail, UT_SHOULD_NOT_HAPPEN, and UTIter_OK.
Referenced by FV_View::cmdAcceptRejectRevision().
References UT_GenericVector< T >::addItem(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), m_vecAuthors, and UT_DEBUGMSG.
Referenced by AccountHandler::_handlePacket(), addAuthorAttributeIfBlank(), changeDocPropeties(), IE_Imp_AbiWord_1::startElement(), and AbiCollabSessionManager::startSession().
| bool PD_Document::addAuthorAttributeIfBlank | ( | const gchar ** | szAttsIn, | |
| const gchar **& | szAttsOut, | |||
| UT_String & | storage | |||
| ) | [private] |
Add the current documents UUID as the author to the attribute list if the author attribute is not present. The caller must delete [] the szAttsOut after use.
| storage | an UT_String storage for until the properties are copied. Returns true if author attribute is present. |
References addAuthor(), UT_String::c_str(), findFirstFreeAuthorInt(), gchar, getMyAuthorInt(), m_iLastAuthorInt, PT_AUTHOR_NAME, sendAddAuthorCR(), setMyAuthorInt(), UT_String_sprintf(), and xxx_UT_DEBUGMSG.
Referenced by changeSpanFmt(), insertObject(), insertSpan(), and insertStrux().
| bool PD_Document::addAuthorAttributeIfBlank | ( | PP_AttrProp *& | p_AttrProp | ) | [private] |
Add the current documents UUID as the author to the ppAttrProps if the attribute is not set. returns true if author is set
References addAuthor(), UT_String::c_str(), findFirstFreeAuthorInt(), gchar, PP_AttrProp::getAttribute(), getMyAuthorInt(), m_iLastAuthorInt, PT_AUTHOR_NAME, sendAddAuthorCR(), PP_AttrProp::setAttribute(), setMyAuthorInt(), UT_String_sprintf(), and xxx_UT_DEBUGMSG.
| void PD_Document::addBookmark | ( | const gchar * | pName | ) |
References UT_GenericVector< T >::addItem(), and m_vBookmarkNames.
Referenced by pt_PieceTable::_createObject().
| void PD_Document::addList | ( | fl_AutoNum * | pAutoNum | ) |
References UT_GenericVector< T >::addItem(), fl_AutoNum::getID(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), and m_vecLists.
Referenced by IE_Imp_OPML::_createList(), fl_BlockLayout::_lookupProperties(), IE_Imp_WordPerfect::_updateDocumentOrderedListDefinition(), IE_Imp_WordPerfect::_updateDocumentUnorderedListDefinition(), FL_DocLayout::addList(), appendList(), IE_Imp_RTF::ApplyParagraphAttributes(), IE_Imp_DocBook::createList(), fl_AutoNum::fl_AutoNum(), and fl_BlockLayout::StartList().
| bool PD_Document::addListener | ( | PL_Listener * | pListener, | |
| PL_ListenerId * | pListenerId | |||
| ) |
References UT_GenericVector< T >::addItem(), pt_PieceTable::addListener(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), m_pPieceTable, m_vecListeners, UT_GenericVector< T >::setNthItem(), UT_ASSERT_HARMLESS, UT_return_val_if_fail, and UT_SHOULD_NOT_HAPPEN.
Referenced by AbiCollab::_setDocument(), FL_DocLayout::fillLayouts(), and ServiceAccountHandler::startSession().
| void PD_Document::addPageReferencedImage | ( | UT_UTF8String & | sImageId, | |
| UT_sint32 | iPage, | |||
| double | xInch, | |||
| double | yInch, | |||
| const char * | pzProps | |||
| ) |
References UT_GenericVector< T >::addItem(), and m_pPendingImagePage.
Referenced by ODi_TextContent_ListenerState::startElement().
| void PD_Document::addPageReferencedTextbox | ( | UT_ByteBuf & | sContent, | |
| UT_sint32 | iPage, | |||
| double | xInch, | |||
| double | yInch, | |||
| const char * | pzProps | |||
| ) |
References UT_GenericVector< T >::addItem(), and m_pPendingTextboxPage.
Referenced by ODi_TextContent_ListenerState::endElement().
| bool PD_Document::addStyleAttributes | ( | const gchar * | szStyleName, | |
| const gchar ** | pAttribs | |||
| ) |
This methods changes the attributes of a style (basedon,followedby)
| szStyleName | the const gchar * name of the style | |
| pAttribs | The list of attributes of the updated style. |
References PD_Style::getBasedOn(), PD_Style::getFollowedBy(), pt_PieceTable::getStyle(), m_pPieceTable, and updateDocForStyleChange().
Referenced by AP_Dialog_Styles::_populateAbiPreview(), and AP_Dialog_Styles::updateCurrentStyle().
| bool PD_Document::addStyleProperties | ( | const gchar * | szStyleName, | |
| const gchar ** | pProperties | |||
| ) |
References pt_PieceTable::getStyle(), m_pPieceTable, and updateDocForStyleChange().
Referenced by AP_Dialog_Styles::_populateAbiPreview(), and FV_View::FV_View().
| bool PD_Document::addStyleProperty | ( | const gchar * | szStyleName, | |
| const gchar * | szPropertyName, | |||
| const gchar * | szPropertyValue | |||
| ) |
| void PD_Document::allowChangeInsPoint | ( | void | ) |
References m_bAllowInsertPointChange.
Referenced by FV_View::_restoreCellParams(), FV_View::allowChangeInsPoint(), fl_HdrFtrSectionLayout::bl_doclistener_changeFmtMark(), fl_HdrFtrSectionLayout::bl_doclistener_changeObject(), fl_HdrFtrSectionLayout::bl_doclistener_changeSpan(), fl_HdrFtrSectionLayout::bl_doclistener_changeStrux(), fl_HdrFtrSectionLayout::bl_doclistener_deleteFmtMark(), fl_HdrFtrSectionLayout::bl_doclistener_deleteObject(), fl_HdrFtrSectionLayout::bl_doclistener_deleteSpan(), fl_HdrFtrSectionLayout::bl_doclistener_deleteStrux(), fl_HdrFtrSectionLayout::bl_doclistener_insertCell(), fl_HdrFtrSectionLayout::bl_doclistener_insertEndTable(), fl_HdrFtrSectionLayout::bl_doclistener_insertFirstBlock(), fl_HdrFtrSectionLayout::bl_doclistener_insertFmtMark(), fl_HdrFtrSectionLayout::bl_doclistener_insertObject(), fl_HdrFtrSectionLayout::bl_doclistener_insertSpan(), fl_HdrFtrSectionLayout::bl_doclistener_insertTable(), fl_HdrFtrSectionLayout::bl_doclistener_populateObject(), fl_HdrFtrSectionLayout::bl_doclistener_populateSpan(), FV_View::setShowPara(), and updateFields().
| bool PD_Document::appendFmt | ( | const gchar ** | attributes | ) |
References pt_PieceTable::appendFmt(), checkForSuspect(), m_pPieceTable, and UT_return_val_if_fail.
Referenced by IE_Imp_MsWord_97::_appendFmt(), IE_Imp_RTF::_appendSpan(), IE_Imp_MsWord_97::_beginPara(), IE_Imp_MsWord_97::_insertHeaderSection(), ODi_TextContent_ListenerState::_startParagraphElement(), OXML_Element_Run::addToPT(), OXML_Element_Paragraph::addToPT(), IE_Imp_XHTML::appendFmt(), IE_Imp::appendFmt(), IE_Imp_RTF::ApplyCharacterAttributes(), IE_Imp_RTF::ApplyParagraphAttributes(), ODi_TextContent_ListenerState::endElement(), OpenWriter_ContentStream_Listener::endElement(), IE_Exp_DocRangeListener::populate(), ODi_TextContent_ListenerState::startElement(), and OpenWriter_ContentStream_Listener::startElement().
| bool PD_Document::appendFmt | ( | const UT_GenericVector< const gchar * > * | pVecAttributes | ) |
References pt_PieceTable::appendFmt(), checkForSuspect(), m_pPieceTable, and UT_return_val_if_fail.
| bool PD_Document::appendFmtMark | ( | void | ) |
| bool PD_Document::appendLastStruxFmt | ( | PTStruxType | pts, | |
| const gchar ** | attributes, | |||
| const gchar ** | props, | |||
| bool | bSkipEmbededSections | |||
| ) |
appends given fmt to the last strux in document
References pt_PieceTable::appendLastStruxFmt(), m_pPieceTable, updateStatus(), and UT_return_val_if_fail.
| bool PD_Document::appendLastStruxFmt | ( | PTStruxType | pts, | |
| const gchar ** | attrs, | |||
| const gchar * | props, | |||
| bool | bSkipEmbededSections | |||
| ) |
References pt_PieceTable::appendLastStruxFmt(), m_pPieceTable, updateStatus(), and UT_return_val_if_fail.
| bool PD_Document::appendList | ( | const gchar ** | attributes | ) |
References addList(), gchar, fl_AutoNum::getID(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), id, m_vecLists, and type.
Referenced by IE_Imp_MsWord_97::_beginPara(), OXML_List::addToPT(), IE_Imp_Psion::applyParagraphAttributes(), ODi_ListLevelStyle::defineAbiList(), and OpenWriter_ContentStream_Listener::startElement().
| bool PD_Document::appendObject | ( | PTObjectType | pto, | |
| const gchar ** | attributes | |||
| ) |
References pt_PieceTable::appendObject(), checkForSuspect(), m_pPieceTable, and UT_return_val_if_fail.
Referenced by IE_Imp_RTF::_appendField(), IE_Imp_MsWord_97::_appendObject(), IE_Imp_MsWord_97::_appendObjectHdrFtr(), ODi_Frame_ListenerState::_drawObject(), ODi_TextContent_ListenerState::_insertBookmark(), OpenWriter_ContentStream_Listener::_insertBookmark(), IE_Imp_RTF::_parseFldinstBlock(), ODi_TextContent_ListenerState::_startParagraphElement(), OXML_Element_Paragraph::addToPT(), OXML_Element_Image::addToPT(), OXML_Element_Hyperlink::addToPT(), OXML_Element_Field::addToPT(), OXML_Element_Bookmark::addToPT(), OXML_Section::addToPTAsEndnote(), OXML_Section::addToPTAsFootnote(), IE_Imp_XHTML::appendObject(), IE_Imp::appendObject(), IE_Imp_RTF::ApplyParagraphAttributes(), IE_Imp_RTF::EndAnnotation(), ODi_TextContent_ListenerState::endElement(), ODi_Frame_ListenerState::endElement(), OpenWriter_ContentStream_Listener::endElement(), IE_Imp_RTF::HandleAbiEmbed(), IE_Imp_RTF::HandleAbiMathml(), IE_Imp_RTF::HandleBookmark(), IE_Imp_RTF::HandleField(), IE_Imp_RTF::HandleRDFAnchor(), IE_Exp_DocRangeListener::populate(), IE_Imp_RTF::StartAnnotation(), ODi_TextContent_ListenerState::startElement(), and OpenWriter_ContentStream_Listener::startElement().
| bool PD_Document::appendSpan | ( | const UT_UCSChar * | p, | |
| UT_uint32 | length | |||
| ) |
References pt_PieceTable::appendFmt(), pt_PieceTable::appendSpan(), UT_String::c_str(), checkForSuspect(), gchar, m_iLastDirMarker, m_pPieceTable, s, UCS_LRE, UCS_LRO, UCS_PDF, UCS_RLE, UCS_RLO, UT_DEBUGMSG, and UT_return_val_if_fail.
Referenced by IE_Imp_RTF::_appendSpan(), IE_Imp_MsWord_97::_appendSpan(), IE_Imp_MsWord_97::_appendSpanHdrFtr(), ODi_TextContent_ListenerState::_flush(), OpenWriter_ContentStream_Listener::_flush(), ODi_TextContent_ListenerState::_flushPendingParagraphBreak(), ODi_TextContent_ListenerState::_startParagraphElement(), OXML_Section::addToPT(), OXML_Element_Text::addToPT(), OXML_Element_Paragraph::addToPT(), OXML_Element::addToPT(), IE_Imp_XHTML::appendSpan(), IE_Imp::appendSpan(), IE_Imp_RTF::ApplyParagraphAttributes(), IE_Exp_DocRangeListener::populate(), ODi_TextContent_ListenerState::startElement(), and OpenWriter_ContentStream_Listener::startElement().
| bool PD_Document::appendStrux | ( | PTStruxType | pts, | |
| const gchar ** | attributes, | |||
| pf_Frag_Strux ** | ppfs_ret = 0 | |||
| ) |
References pt_PieceTable::appendStrux(), checkForSuspect(), m_pPieceTable, PTX_EndCell, PTX_Section, updateStatus(), and UT_return_val_if_fail.
Referenced by IE_Imp_RTF::_appendField(), IE_Imp_RTF::_appendHdrFtr(), IE_Imp_MsWord_97::_appendObjectHdrFtr(), IE_Imp_MsWord_97::_appendSpanHdrFtr(), IE_Imp_MsWord_97::_appendStrux(), IE_Imp_MsWord_97::_appendStruxHdrFtr(), OpenWriter_ContentStream_Listener::_closeCell(), OpenWriter_ContentStream_Listener::_closeTable(), ODi_Frame_ListenerState::_drawTextBox(), ODi_TextContent_ListenerState::_flushPendingParagraphBreak(), ODi_TextContent_ListenerState::_insertAnnotation(), IE_Imp_MsWord_97::_insertBookmark(), IE_Imp_MsWord_97::_insertHeaderSection(), ODi_TextContent_ListenerState::_insureInBlock(), OpenWriter_ContentStream_Listener::_insureInBlock(), OpenWriter_ContentStream_Listener::_insureInSection(), ODi_TextContent_ListenerState::_openAbiSection(), OpenWriter_ContentStream_Listener::_openCell(), OpenWriter_ContentStream_Listener::_openTable(), ODi_Table_ListenerState::_parseCellStart(), IE_Imp_RTF::_parseFldinstBlock(), ODi_Table_ListenerState::_parseTableStart(), ODi_TextContent_ListenerState::_startParagraphElement(), IE_Imp_RTF::addFrame(), OXML_Section::addToPT(), OXML_Element_TextBox::addToPT(), OXML_Element_Table::addToPT(), OXML_Element_Paragraph::addToPT(), OXML_Element_Cell::addToPT(), OXML_Section::addToPTAsEndnote(), OXML_Section::addToPTAsFootnote(), OXML_Section::addToPTAsHdrFtr(), IE_Imp_XHTML::appendStrux(), IE_Imp::appendStrux(), IE_Imp_RTF::ApplyParagraphAttributes(), IE_Imp_RTF::ApplySectionAttributes(), IE_Imp_RTF::CloseTable(), ie_imp_table::deleteRow(), ODi_TextContent_ListenerState::endElement(), ODi_TableOfContent_ListenerState::endElement(), ODi_Table_ListenerState::endElement(), ODi_Frame_ListenerState::endElement(), IE_Imp_RTF::FlushStoredChars(), IE_Imp_RTF::HandleAbiEmbed(), IE_Imp_RTF::HandleAbiMathml(), IE_Imp_RTF::HandleBookmark(), IE_Imp_RTF::HandleCell(), IE_Imp_RTF::HandleField(), IE_Imp_RTF::HandleNote(), IE_Imp_RTF::HandleShape(), IE_Imp_RTF::InsertImage(), newDocument(), IE_Imp_RTF::OpenTable(), IE_Exp_DocRangeListener::populate(), IE_Exp_DocRangeListener::populateStrux(), repairDoc(), ODi_TextContent_ListenerState::startElement(), ODi_Style_MasterPage::startElement(), OpenWriter_ContentStream_Listener::startElement(), IE_Imp_TableHelper::tableStart(), and IE_Imp_ShpGroupParser::~IE_Imp_ShpGroupParser().
| bool PD_Document::appendStruxFmt | ( | pf_Frag_Strux * | pfs, | |
| const gchar ** | attributes | |||
| ) |
References pt_PieceTable::appendStruxFmt(), m_pPieceTable, updateStatus(), and UT_return_val_if_fail.
Referenced by IE_Imp::appendStruxFmt().
| bool PD_Document::appendStyle | ( | const gchar ** | attributes | ) |
References pt_PieceTable::appendStyle(), m_pPieceTable, and UT_return_val_if_fail.
Referenced by IE_Imp_MsWord_97::_handleStyleSheet(), AP_Dialog_Styles::_populateAbiPreview(), OXML_Style::addToPT(), FV_View::appendStyle(), IE_Imp_Psion::applyStyles(), AP_Dialog_Styles::createNewStyle(), ODi_Style_Style::defineAbiStyle(), OpenWriter_StylesStream_Listener::endElement(), IE_Imp_RTF::HandleStyleDefinition(), IE_Exp_DocRangeListener::IE_Exp_DocRangeListener(), and AP_Dialog_Styles::updateCurrentStyle().
| bool PD_Document::areDocumentContentsEqual | ( | const AD_Document & | D, | |
| UT_uint32 & | pos | |||
| ) | const [virtual] |
Returns true if the contents of the two documents are identical if the function returns false, pos contains the document position at which first difference was encountered
Implements AD_Document.
References d, PD_DocIterator::getChar(), PD_DocIterator::getFrag(), pt_PieceTable::getFragments(), pf_Fragments::getLast(), pf_Frag::getLength(), pf_Frag::getPos(), PD_DocIterator::getPosition(), PD_DocIterator::getStatus(), pf_Frag::getType(), AD_Document::getType(), pf_Frag::isContentEqual(), m_pPieceTable, UT_MIN, UT_return_val_if_fail, and UTIter_OK.
| bool PD_Document::areDocumentFormatsEqual | ( | const AD_Document & | D, | |
| UT_uint32 & | pos | |||
| ) | const [virtual] |
Compare the format of the this document to another document; returns true if document formats are identical
If the function returns false, pos contains the document position at which first difference was encountered
NB: If the document contents are known not to be equal, it makes no sense to call this function.
Implements AD_Document.
References UT_GenericStringMap< T >::contains(), d, pt_PieceTable::getAttrProp(), PD_DocIterator::getFrag(), pf_Frag::getIndexAP(), pf_Frag::getLength(), PD_DocIterator::getPosition(), PD_DocIterator::getStatus(), AD_Document::getType(), UT_GenericStringMap< T >::insert(), PP_AttrProp::isEquivalent(), m_pPieceTable, s, UT_MIN, UT_return_val_if_fail, UT_String_sprintf(), and UTIter_OK.
| bool PD_Document::areDocumentStylesheetsEqual | ( | const AD_Document & | D | ) | const [virtual] |
Returns true if the stylesheets of both documents are identical
Implements AD_Document.
References UT_GenericStringMap< T >::contains(), d, pt_PieceTable::getAllStyles(), pt_PieceTable::getAttrProp(), PD_Style::getIndexAP(), AD_Document::getType(), UT_GenericStringMap< T >::insert(), PP_AttrProp::isEquivalent(), m_pPieceTable, UT_GenericStringMap< T >::pick(), s, UT_GenericStringMap< T >::size(), UT_return_val_if_fail, and UT_String_sprintf().
| bool PD_Document::areListUpdatesAllowed | ( | void | ) |
| bool PD_Document::areStylesLocked | ( | ) | const [inline] |
Referenced by _toggleSpanOrBlock(), Defun1(), and Defun_EV_GetMenuItemState_Fn().
| void PD_Document::beginUserAtomicGlob | ( | void | ) |
References pt_PieceTable::beginUserAtomicGlob(), and m_pPieceTable.
Referenced by FV_Base::_beginGlob(), FV_View::_changeCellParams(), FV_View::_charInsert(), FV_View::_deleteHyperlink(), FV_View::_deleteSelection(), FV_View::_deleteXMLID(), ABI_Collab_Import::_disableUpdates(), FV_View::_findReplace(), FV_View::_findReplaceReverse(), FV_View::_insertField(), FV_View::_MergeCells(), FV_VisualDragText::_mouseDrag(), acceptAllRevisions(), acceptRejectRevision(), AP_Dialog_Lists::Apply(), FV_View::changeListStyle(), FV_View::cmdAutoFitTable(), FV_View::cmdAutoSizeCols(), FV_View::cmdAutoSizeRows(), FV_View::cmdCharInsert(), FV_View::cmdDeleteCell(), FV_View::cmdDeleteCol(), FV_View::cmdDeleteEmbed(), FV_View::cmdDeleteRow(), FV_View::cmdDeleteTable(), FV_View::cmdInsertCol(), FV_View::cmdInsertEmbed(), FV_View::cmdInsertGraphic(), FV_View::cmdInsertLatexMath(), FV_View::cmdInsertMathML(), FV_View::cmdInsertPositionedGraphic(), FV_View::cmdInsertRow(), FV_View::cmdInsertTable(), FV_View::cmdInsertTOC(), FV_View::cmdPaste(), FV_View::cmdPasteSelectionAt(), FV_View::cmdRemoveHdrFtr(), FV_View::cmdSplitCells(), FV_View::cmdStartList(), FV_View::cmdStopList(), FV_View::cmdTableToText(), FV_View::cmdTextToTable(), FV_View::cmdUpdateEmbed(), FV_View::convertInLineToPositioned(), FV_View::convertPositionedToInLine(), FV_View::createThisHdrFtr(), fl_BlockLayout::doclistener_insertSpan(), FV_View::endDragSelection(), FV_View::findReplaceAll(), FV_View::insertAnnotation(), FV_View::insertFootnote(), FV_View::insertFootnoteSection(), FV_View::insertHeaderFooter(), FV_View::insertPageNum(), FV_View::insertParagraphBreak(), FV_View::insertParagraphBreaknoListUpdate(), FV_View::insertSectionBreak(), FV_View::insertSymbol(), FV_View::pasteFromLocalTo(), FV_Selection::pasteRowOrCol(), FV_View::populateThisHdrFtr(), FV_View::processPageNumber(), FV_View::processSelectedBlocks(), rejectAllHigherRevisions(), FV_View::removeThisHdrFtr(), FV_View::resetCharFormat(), FV_View::setAnnotationText(), FV_View::setBlockIndents(), FV_View::setCharFormat(), FV_View::setStyleAtPos(), FV_View::SetupSavePieceTableState(), and FV_View::toggleCase().
| bool PD_Document::canDo | ( | bool | bUndo | ) | const [virtual] |
Implements AD_Document.
References pt_PieceTable::canDo(), and m_pPieceTable.
Referenced by FV_View::canDo().
| void PD_Document::changeConnectedDocument | ( | PD_Document * | pDoc | ) |
Change all AbiCollab connections to point to the new document.
References UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), PL_Listener::getType(), m_vecListeners, and removeListener().
| bool PD_Document::changeDocPropeties | ( | const gchar ** | pAtts, | |
| const gchar ** | pProps | |||
| ) |
method used to import document property changes
References addAuthor(), AD_Document::addRevision(), gchar, PP_AttrProp::getAttribute(), pp_Author::getAttrProp(), getAuthorByInt(), PP_AttrProp::getNthProperty(), PP_AttrProp::getProperty(), PT_DOCPROP_ATTRIBUTE_NAME, PT_REVISION_ATTRIBUTE_NAME, PT_REVISION_DESC_ATTRIBUTE_NAME, PT_REVISION_TIME_ATTRIBUTE_NAME, PT_REVISION_VERSION_ATTRIBUTE_NAME, sendAddAuthorCR(), sendChangeAuthorCR(), PP_AttrProp::setAttributes(), setMetaDataProp(), setPageSizeFromFile(), PP_AttrProp::setProperties(), PP_AttrProp::setProperty(), UT_UCS4String::size(), szName, UT_UCS4String::ucs4_str(), UT_UTF8String::ucs4_str(), UT_DEBUGMSG, and UT_UCS4_strncpy().
Referenced by ABI_Collab_Import::_import().
| bool PD_Document::changeLastStruxFmtNoUndo | ( | PT_DocPosition | dpos, | |
| PTStruxType | pts, | |||
| const gchar ** | attrs, | |||
| const gchar ** | props, | |||
| bool | bSkipEmbededSections | |||
| ) |
References pt_PieceTable::changeLastStruxFmtNoUndo(), m_pPieceTable, and UT_return_val_if_fail.
| bool PD_Document::changeLastStruxFmtNoUndo | ( | PT_DocPosition | dpos, | |
| PTStruxType | pts, | |||
| const gchar ** | attrs, | |||
| const gchar * | props, | |||
| bool | bSkipEmbededSections | |||
| ) |
References pt_PieceTable::changeLastStruxFmtNoUndo(), m_pPieceTable, and UT_return_val_if_fail.
| bool PD_Document::changeObjectFormatNoUpdate | ( | PTChangeFmt | ptc, | |
| PL_ObjectHandle | odh, | |||
| const gchar ** | attributes, | |||
| const gchar ** | properties | |||
| ) |
Change the attributes of an object without generating a Change Record. Use with extreme care.
References pt_PieceTable::changeObjectFormatNoUpdate(), and m_pPieceTable.
Referenced by fp_ImageRun::_lookupProperties(), fp_MathRun::_updatePropValuesIfNeeded(), and fp_EmbedRun::_updatePropValuesIfNeeded().
| bool PD_Document::changeSpanFmt | ( | PTChangeFmt | ptc, | |
| PT_DocPosition | dpos1, | |||
| PT_DocPosition | dpos2, | |||
| const gchar ** | attributes, | |||
| const gchar ** | properties | |||
| ) |
References addAuthorAttributeIfBlank(), pt_PieceTable::changeSpanFmt(), deferNotifications(), gchar, isDoingTheDo(), m_pPieceTable, and processDeferredNotifications().
Referenced by _acceptRejectRevision(), fl_BlockLayout::_createListLabel(), FV_View::_deleteSelection(), FV_View::_fixInsertionPointAfterRevision(), ABI_Collab_Import::_import(), IE_Imp_RTF::_insertSpan(), AP_Dialog_Styles::_populateAbiPreview(), IE_Imp::appendFmt(), IE_Imp_RTF::ApplyCharacterAttributes(), FV_View::cmdUpdateEmbed(), FV_View::insertFootnote(), IE_Imp_PasteListener::populate(), FV_View::processSelectedBlocks(), FV_View::setCharFormat(), fp_TextRun::setDirOverride(), FV_View::setStyleAtPos(), fl_BlockLayout::StopListInBlock(), and FV_View::toggleCase().
| bool PD_Document::changeStruxAttsNoUpdate | ( | PL_StruxDocHandle | sdh, | |
| const char * | attr, | |||
| const char * | attvalue | |||
| ) |
This medthod modifies the attributes of a section strux without generating a change record. Use with extreme care!!
References pt_PieceTable::changeSectionAttsNoUpdate(), m_pPieceTable, and UT_return_val_if_fail.
Referenced by IE_Imp_RTF::_appendHdrFtr(), ODi_TextContent_ListenerState::_defineAbiTOCHeadingStyles(), IE_Imp_MsWord_97::_table_close(), IE_Imp_RTF::HandleDeltaMoveID(), fp_FrameContainer::setPreferedPageNo(), IE_Imp_AbiWord_1::startElement(), ie_imp_cell::writeCellPropsInDoc(), and ie_imp_table::writeTablePropsInDoc().
| bool PD_Document::changeStruxFmt | ( | PTChangeFmt | ptc, | |
| PT_DocPosition | dpos1, | |||
| PT_DocPosition | dpos2, | |||
| const gchar ** | attributes, | |||
| const gchar ** | properties | |||
| ) |
This method changes *all* the strux fragments in the specified region.
References pt_PieceTable::changeStruxFmt(), isDoingTheDo(), and m_pPieceTable.
| bool PD_Document::changeStruxFmt | ( | PTChangeFmt | ptc, | |
| PT_DocPosition | dpos1, | |||
| PT_DocPosition | dpos2, | |||
| const gchar ** | attributes, | |||
| const gchar ** | properties, | |||
| PTStruxType | pts | |||
| ) |
References pt_PieceTable::changeStruxFmt(), isDoingTheDo(), and m_pPieceTable.
Referenced by _acceptRejectRevision(), FV_View::_changeCellParams(), FV_View::_changeCellTo(), FV_View::_deleteSelection(), ABI_Collab_Import::_import(), FV_View::_restoreCellParams(), IE_Imp::appendStruxFmt(), IE_Imp_RTF::ApplyParagraphAttributes(), IE_Imp_RTF::ApplySectionAttributes(), FV_View::changeListStyle(), IE_Imp_RTF::closePastedTableIfNeeded(), FV_View::cmdAutoFitTable(), FV_View::cmdAutoSizeCols(), FV_View::cmdAutoSizeRows(), FV_View::cmdDeleteCol(), FV_View::cmdDeleteRow(), FV_View::cmdInsertCol(), FV_View::cmdInsertRow(), FV_View::cmdSplitCells(), IE_Imp_RTF::HandleAbiEndTable(), IE_Imp_RTF::HandleAbiTable(), FG_GraphicVector::insertAtStrux(), FG_GraphicRaster::insertAtStrux(), FV_View::insertFootnote(), FV_View::insertHeaderFooter(), fl_BlockLayout::prependList(), FV_View::processPageNumber(), FV_View::processSelectedBlocks(), fl_BlockLayout::remItemFromList(), FV_View::removeStruxAttrProps(), fl_BlockLayout::resumeList(), FV_View::setAnnotationAuthor(), FV_View::setAnnotationText(), FV_View::setAnnotationTitle(), FV_View::setBlockFormat(), FV_View::setBlockIndents(), FV_View::setCellFormat(), FV_View::setCharFormat(), FV_View::setCollapsedRange(), fl_BlockLayout::setDominantDirection(), FV_View::setSectionFormat(), FV_View::setStyleAtPos(), FV_View::setTableFormat(), FV_View::setTOCProps(), fl_BlockLayout::StartList(), and fl_BlockLayout::StopListInBlock().
| bool PD_Document::changeStruxFmtNoUndo | ( | PTChangeFmt | ptc, | |
| PL_StruxDocHandle | sdh, | |||
| const gchar ** | attributes, | |||
| const gchar ** | properties | |||
| ) |
References pt_PieceTable::changeStruxFmtNoUndo(), pf_Frag::getType(), m_pPieceTable, and UT_return_val_if_fail.
Referenced by fl_DocSectionLayout::_HdrFtrChangeCallback().
| bool PD_Document::changeStruxForLists | ( | PL_StruxDocHandle | sdh, | |
| const char * | pszParentID | |||
| ) |
This Method is used to change just the parentID of each strux in a list without updating the fl_Layouts.
References pt_PieceTable::changeStruxForLists(), and m_pPieceTable.
Referenced by fl_AutoNum::_setParent().
| bool PD_Document::changeStruxFormatNoUpdate | ( | PTChangeFmt | ptc, | |
| PL_StruxDocHandle | sdh, | |||
| const gchar ** | attributes | |||
| ) |
References pt_PieceTable::changeStruxFormatNoUpdate(), and m_pPieceTable.
Referenced by IE_Imp_TableHelper::BlockFormat().
| bool PD_Document::checkForSuspect | ( | void | ) |
This method is called after appendspan, appendObject, appendfmtMark and checks to see if there is an invalid strux just before. If it see one, it marks the strux as suspect for verification after the load is over. Really useful for importers.
References UT_GenericVector< T >::addItem(), getLastFrag(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), and m_vecSuspectFrags.
Referenced by appendFmt(), appendFmtMark(), appendObject(), appendSpan(), appendStrux(), and repairDoc().
| void PD_Document::clearAllPendingObjects | ( | void | ) |
References UT_GenericVector< T >::clear(), m_pPendingImagePage, m_pPendingTextboxPage, and UT_VECTOR_PURGEALL.
Referenced by FL_DocLayout::loadPendingObjects().
| void PD_Document::clearDoingPaste | ( | void | ) |
References m_bDoingPaste.
Referenced by FV_View::cmdPaste(), FV_View::cmdTextToTable(), and FV_View::pasteFromLocalTo().
| void PD_Document::clearIfAtFmtMark | ( | PT_DocPosition | dpos | ) |
References pt_PieceTable::clearIfAtFmtMark(), and m_pPieceTable.
Referenced by FV_View::_clearIfAtFmtMark().
| void PD_Document::clearMailMergeMap | ( | ) |
References UT_GenericStringMap< T >::clear(), and m_mailMergeMap.
Referenced by AP_CocoaPlugin_Document::setDocumentMailMergeFields:, and AP_CocoaPlugin_Document::unsetDocumentMailMergeFields.
| bool PD_Document::convertPercentToInches | ( | const char * | szPercent, | |
| UT_UTF8String & | sInches | |||
| ) |
References DIM_IN, getLastSectionSDH(), getPropertyFromSDH(), m_docPageSize, PD_MAX_REVISION, UT_convertInchesToDimensionString(), UT_convertToInches(), and fp_PageSize::Width().
Referenced by IE_Imp_XHTML::startElement().
| bool PD_Document::createAndSendCR | ( | PT_DocPosition | dpos, | |
| UT_sint32 | iType, | |||
| bool | bSave, | |||
| UT_Byte | iGlob | |||
| ) |
Create a changerecord object and broadcast it to all the listeners. If bsave is true save the CR in th eunod stack.
References pt_PieceTable::createAndSendCR(), and m_pPieceTable.
Referenced by ABI_Collab_Import::_import().
| bool PD_Document::createAndSendDocPropCR | ( | const gchar ** | pAtts, | |
| const gchar ** | pProps | |||
| ) | [virtual] |
This method creates DocProp Change Record and broadcasts it to the listeners
Implements AD_Document.
References pt_PieceTable::createAndSendDocPropCR(), and m_pPieceTable.
Referenced by sendAddAuthorCR(), sendChangeAuthorCR(), setMetaDataProp(), and setPageSizeFromFile().
| bool PD_Document::createDataItem | ( | const char * | szName, | |
| bool | bBase64, | |||
| const UT_ByteBuf * | pByteBuf, | |||
| const std::string & | mime_type, | |||
| void ** | ppHandle | |||
| ) | [virtual] |
Implements AD_Document.
References gchar, getDataItemDataByName(), UT_ByteBuf::getLength(), UT_ByteBuf::getPointer(), pt_PieceTable::getVarSet(), getXID(), UT_ByteBuf::ins(), UT_GenericStringMap< T >::insert(), m_hashDataItems, m_pPieceTable, notifyListeners(), _dataItemPair::pBuf, UT_GenericStringMap< T >::pick(), _dataItemPair::pToken, PX_ChangeRecord::PXT_CreateDataItem, pt_VarSet::storeAP(), UT_Base64Decode(), UT_DEBUGMSG, and UT_return_val_if_fail.
Referenced by ABI_Collab_Import::_import(), AbiMathView_FileInsert(), ODi_Abi_Data::addImageDataItem(), ODi_Abi_Data::addObjectDataItem(), OXML_Image::addToPT(), FV_View::cmdInsertEmbed(), FV_View::cmdInsertLatexMath(), FV_View::cmdUpdateEmbed(), FG_GraphicVector::createDataItem(), FG_GraphicRaster::createDataItem(), IE_Imp_RTF::CreateDataItemfromStream(), ODi_Frame_ListenerState::endElement(), IE_Exp_DocRangeListener::IE_Exp_DocRangeListener(), FG_GraphicVector::insertAtStrux(), FG_GraphicRaster::insertAtStrux(), IE_Imp_RTF::InsertImage(), FG_GraphicVector::insertIntoDocument(), FG_GraphicRaster::insertIntoDocument(), FV_VisualInlineImage::mouseCopy(), IE_Imp_PasteListener::populateStrux(), IE_Imp_MSWrite::read_pic(), and ODe_RDFWriter::writeRDF().
| UT_Error PD_Document::createRawDocument | ( | void | ) |
References buildTemplateList(), importStyles(), AD_Document::isOrigUUID(), m_hDocumentRDF, m_indexAP, m_pPieceTable, PTS_Loading, setAttrProp(), pt_PieceTable::setPieceTableState(), UT_ASSERT, UT_DEBUGMSG, and UT_OK.
Referenced by IE_Exp_OpenDocument::copyToBuffer(), FV_UnixVisualDrag::mouseDrag(), IE_Imp_XHTML::pasteFromBuffer(), IE_Imp_OpenDocument::pasteFromBuffer(), IE_Imp_EPUB::pasteFromBuffer(), and IE_Imp_EPUB::readStructure().
| void PD_Document::deferNotifications | ( | void | ) |
References PL_Listener::deferNotifications(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), and m_vecListeners.
Referenced by changeSpanFmt().
| bool PD_Document::deleteFmtMark | ( | PT_DocPosition | dpos | ) |
References pt_PieceTable::deleteFmtMark(), and m_pPieceTable.
Referenced by ABI_Collab_Import::_import().
| bool PD_Document::deleteFragNoUpdate | ( | pf_Frag * | pf | ) |
This method deletes a frag without throwing a change record. pf is the frag that gets deleted.. Use with extreme care. Should only be used for document import.
References pt_PieceTable::deleteFragNoUpdate(), and m_pPieceTable.
Referenced by ODi_TextContent_ListenerState::endElement(), and IE_Imp_RTF::HandleShape().
| void PD_Document::deleteHdrFtrStrux | ( | PL_StruxDocHandle | sdh | ) |
This method deletes the HdrFtr strux pointed to by sdh
References pt_PieceTable::deleteHdrFtrStrux(), pf_Frag::getType(), m_pPieceTable, and UT_return_if_fail.
Referenced by FV_View::_removeThisHdrFtr().
| bool PD_Document::deleteSpan | ( | PT_DocPosition | dpos1, | |
| PT_DocPosition | dpos2, | |||
| PP_AttrProp * | p_AttrProp_Before, | |||
| UT_uint32 & | iRealDeleteCount, | |||
| bool | bDeleteTableStruxes = false | |||
| ) |
References pt_PieceTable::deleteSpanWithTable(), isDoingTheDo(), and m_pPieceTable.
Referenced by _acceptRejectRevision(), FV_View::_deleteBookmark(), FV_View::_deleteCellAt(), FV_View::_deleteHyperlink(), fl_BlockLayout::_deleteListLabel(), FV_View::_deleteSelection(), FV_View::_deleteXMLID(), ABI_Collab_Import::_import(), FV_View::cmdCharDelete(), FV_View::cmdDeleteTable(), FV_View::cmdTextToTable(), FV_FrameEdit::deleteFrame(), FV_FrameEdit::mouseRelease(), FV_View::setAnnotationText(), and FV_View::toggleCase().
| bool PD_Document::deleteStrux | ( | PT_DocPosition | dpos, | |
| PTStruxType | pts, | |||
| bool | bRecordChange | |||
| ) |
This method deletes a strux of the type specified at the position requested. if bRecordChange is fale no change record is recorded. This method was created soled for the use of AbiCollab. Use with extreme care. Should only be needed by AbiCollab
References pt_PieceTable::deleteStruxNoUpdate(), pt_PieceTable::deleteStruxWithNotify(), pt_PieceTable::getFragFromPosition(), pf_Frag::getLength(), pf_Frag::getPrev(), getStruxPosition(), pf_Frag::getType(), and m_pPieceTable.
Referenced by ABI_Collab_Import::_import().
| bool PD_Document::deleteStruxNoUpdate | ( | PL_StruxDocHandle | sdh | ) |
This method deletes a strux without throwing a change record. sdh is the StruxDocHandle that gets deleted.. Use with extreme care. Should only be used for document import.
References pt_PieceTable::deleteStruxNoUpdate(), and m_pPieceTable.
Referenced by ie_imp_table::_removeAllStruxes(), IE_Imp_RTF::CloseTable(), ie_imp_table::deleteRow(), ie_imp_table::removeExtraneousCells(), and ie_imp_table::writeAllCellPropsInDoc().
| void PD_Document::disableListUpdates | ( | void | ) |
References m_ballowListUpdates.
Referenced by FV_View::_changeCellParams(), FV_View::_charInsert(), ABI_Collab_Import::_disableUpdates(), AP_Dialog_Lists::Apply(), FV_View::changeListStyle(), FV_View::cmdAutoFitTable(), FV_View::cmdAutoSizeCols(), FV_View::cmdAutoSizeRows(), FV_View::cmdCharDelete(), FV_View::cmdCharInsert(), FV_View::cmdCut(), FV_View::cmdDeleteCell(), FV_View::cmdDeleteCol(), FV_View::cmdDeleteRow(), FV_View::cmdDeleteTable(), FV_View::cmdInsertCol(), FV_View::cmdInsertRow(), FV_View::cmdInsertTable(), FV_View::cmdPaste(), FV_View::cmdRedo(), FV_View::cmdSplitCells(), FV_View::cmdTableToText(), FV_View::cmdTextToTable(), FV_View::cmdUndo(), FV_View::createThisHdrFtr(), FV_FrameEdit::deleteFrame(), FV_View::endDragSelection(), FL_DocLayout::FL_DocLayout(), FV_View::insertAnnotation(), FV_View::insertFootnoteSection(), FV_View::insertHeaderFooter(), FV_View::insertPageNum(), FV_View::insertParagraphBreak(), FV_FrameEdit::mouseRelease(), FV_View::pasteFromLocalTo(), FV_Selection::pasteRowOrCol(), FV_View::populateThisHdrFtr(), FV_View::processSelectedBlocks(), FV_View::setAnnotationText(), FV_View::setCellFormat(), FV_View::setStyleAtPos(), and FV_View::SetupSavePieceTableState().
| void PD_Document::dontIgnoreSignals | ( | void | ) | [inline] |
| bool PD_Document::dumpDoc | ( | const char * | msg, | |
| PT_DocPosition | currentpos, | |||
| PT_DocPosition | endpos | |||
| ) |
References pt_PieceTable::dumpDoc(), and m_pPieceTable.
| void PD_Document::enableListUpdates | ( | void | ) |
References m_ballowListUpdates.
Referenced by FV_View::_charInsert(), ABI_Collab_Import::_enableUpdates(), FV_View::_restoreCellParams(), AP_Dialog_Lists::Apply(), FV_View::changeListStyle(), FV_View::cmdAutoFitTable(), FV_View::cmdAutoSizeCols(), FV_View::cmdAutoSizeRows(), FV_View::cmdCharDelete(), FV_View::cmdCharInsert(), FV_View::cmdCut(), FV_View::cmdDeleteCell(), FV_View::cmdDeleteCol(), FV_View::cmdDeleteRow(), FV_View::cmdDeleteTable(), FV_View::cmdInsertCol(), FV_View::cmdInsertRow(), FV_View::cmdInsertTable(), FV_View::cmdPaste(), FV_View::cmdRedo(), FV_View::cmdSplitCells(), FV_View::cmdTableToText(), FV_View::cmdTextToTable(), FV_View::cmdUndo(), FV_View::createThisHdrFtr(), FV_FrameEdit::deleteFrame(), FV_View::endDragSelection(), FL_DocLayout::fillLayouts(), FL_DocLayout::formatAll(), FV_View::insertAnnotation(), FV_View::insertFootnoteSection(), FV_View::insertHeaderFooter(), FV_View::insertPageNum(), FV_View::insertParagraphBreak(), FV_FrameEdit::mouseRelease(), FV_View::pasteFromLocalTo(), FV_Selection::pasteRowOrCol(), FV_View::populateThisHdrFtr(), FV_View::processSelectedBlocks(), FV_View::RestoreSavedPieceTableState(), FV_View::setCellFormat(), and FV_View::setStyleAtPos().
| void PD_Document::endUserAtomicGlob | ( | void | ) |
References pt_PieceTable::endUserAtomicGlob(), and m_pPieceTable.
Referenced by FV_View::_charInsert(), FV_View::_deleteHyperlink(), FV_View::_deleteSelection(), FV_View::_deleteXMLID(), ABI_Collab_Import::_enableUpdates(), FV_Base::_endGlob(), FV_View::_findReplace(), FV_View::_findReplaceReverse(), FV_View::_insertField(), FV_View::_MergeCells(), FV_View::_restoreCellParams(), acceptAllRevisions(), acceptRejectRevision(), AP_Dialog_Lists::Apply(), FV_View::changeListStyle(), FV_View::cmdAutoFitTable(), FV_View::cmdAutoSizeCols(), FV_View::cmdAutoSizeRows(), FV_View::cmdCharInsert(), FV_View::cmdDeleteCell(), FV_View::cmdDeleteCol(), FV_View::cmdDeleteEmbed(), FV_View::cmdDeleteRow(), FV_View::cmdDeleteTable(), FV_View::cmdInsertCol(), FV_View::cmdInsertEmbed(), FV_View::cmdInsertGraphic(), FV_View::cmdInsertGraphicAtStrux(), FV_View::cmdInsertLatexMath(), FV_View::cmdInsertMathML(), FV_View::cmdInsertPositionedGraphic(), FV_View::cmdInsertRow(), FV_View::cmdInsertTable(), FV_View::cmdInsertTOC(), FV_View::cmdPaste(), FV_View::cmdPasteSelectionAt(), FV_View::cmdRemoveHdrFtr(), FV_View::cmdSplitCells(), FV_View::cmdStartList(), FV_View::cmdStopList(), FV_View::cmdTableToText(), FV_View::cmdTextToTable(), FV_View::cmdUpdateEmbed(), FV_View::convertInLineToPositioned(), FV_View::convertPositionedToInLine(), FV_View::createThisHdrFtr(), fl_BlockLayout::doclistener_insertSpan(), FV_View::endDragSelection(), FV_View::findReplaceAll(), FV_View::insertAnnotation(), FV_View::insertFootnote(), FV_View::insertFootnoteSection(), FV_View::insertHeaderFooter(), FV_View::insertPageNum(), FV_View::insertParagraphBreak(), FV_View::insertParagraphBreaknoListUpdate(), FV_View::insertSectionBreak(), FV_View::insertSymbol(), FV_VisualDragText::mouseRelease(), FV_View::pasteFromLocalTo(), FV_Selection::pasteRowOrCol(), FV_View::populateThisHdrFtr(), FV_View::processPageNumber(), FV_View::processSelectedBlocks(), rejectAllHigherRevisions(), FV_View::removeThisHdrFtr(), FV_View::resetCharFormat(), FV_View::RestoreSavedPieceTableState(), FV_View::setAnnotationText(), FV_View::setBlockIndents(), FV_View::setCharFormat(), FV_View::setStyleAtPos(), and FV_View::toggleCase().
| bool PD_Document::enumDataItems | ( | UT_uint32 | k, | |
| void ** | ppHandle, | |||
| const char ** | pszName, | |||
| const UT_ByteBuf ** | ppByteBuf, | |||
| std::string * | pMimeType | |||
| ) | const |
References m_hashDataItems, _dataItemPair::pBuf, _dataItemPair::pToken, UT_GenericStringMap< T >::size(), and UT_return_val_if_fail.
Referenced by s_XSL_FO_Listener::_handleDataItems(), s_WML_Listener::_handleDataItems(), s_KWord_1_Listener::_handleDataItems(), s_DocBook_Listener::_handleDataItems(), s_AbiWord_1_Listener::_handleDataItems(), IE_Exp_OpenXML_Listener::addImages(), IE_Exp_DocRangeListener::IE_Exp_DocRangeListener(), IE_Imp_PasteListener::populateStrux(), ODe_ManifestWriter::writeManifest(), OO_ManifestWriter::writeManifest(), ODe_PicturesWriter::writePictures(), and OO_PicturesWriter::writePictures().
| bool PD_Document::enumLists | ( | UT_uint32 | k, | |
| fl_AutoNum ** | pAutoNum | |||
| ) |
References UT_GenericVector< T >::getItemCount(), and m_vecLists.
Referenced by s_XSL_FO_Listener::_handleLists(), s_AbiWord_1_Listener::_handleLists(), and IE_Exp_OpenXML_Listener::addLists().
| bool PD_Document::enumStyles | ( | UT_uint32 | k, | |
| const char ** | pszName, | |||
| const PD_Style ** | ppStyle | |||
| ) | const |
References pt_PieceTable::enumStyles(), and m_pPieceTable.
Referenced by IE_Exp_HTML::_buildStyleTree(), s_AbiWord_1_Listener::_handleStyles(), AP_Win32Dialog_Styles::_onCommand(), AP_Win32Dialog_Styles::_onInitDialog(), AP_Win32Dialog_Styles::_populateCList(), AP_UnixDialog_Styles::_populateCList(), AP_UnixDialog_Styles::_populateModify(), IE_Exp_RTF::_selectStyles(), IE_Exp_OpenXML_Listener::addDocumentStyles(), Stylist_tree::buildStyles(), AP_Win32Dialog_Styles::eventBasedOn(), AP_Win32Dialog_Styles::eventFollowedBy(), ODe_Styles::fetchRegularStyleStyles(), AP_UnixToolbar_StyleCombo::populate(), AP_CocoaToolbar_StyleCombo::populate(), removeStyle(), AP_Win32Toolbar_StyleCombo::repopulate(), AP_UnixToolbar_StyleCombo::repopulate(), and AP_CocoaToolbar_StyleCombo::repopulate().
| bool PD_Document::enumStyles | ( | UT_GenericVector< PD_Style * > *& | pStyles | ) | const |
References pt_PieceTable::enumStyles(), and m_pPieceTable.
| const PP_AttrProp * PD_Document::explodeRevisions | ( | PP_RevisionAttr *& | pRevisions, | |
| const PP_AttrProp * | pAP, | |||
| bool | bShow, | |||
| UT_uint32 | iId, | |||
| bool & | bHiddenRevision | |||
| ) | const |
If the input pAP contains revision attribute, this function returns AP in which the revision attribute has been inflated into actual properties and attributes (the return AP lives in the PT varset, so it is not to be modified, deleted, etc., but the caller)
bShow indicates whether revisions are shown or hidden (view - dependent) iId is the id of revision to be shown (view - dependent)
on return bHiddenRevision indicates if the element associated with pAP is to be hidden or visible
References PP_AttrProp::explodeStyle(), gchar, PP_AttrProp::getAttribute(), PP_AttrProp::getAttributes(), getAttrProp(), PP_Revision::getId(), PP_RevisionAttr::getLastRevision(), getPieceTable(), PP_AttrProp::getProperties(), PP_RevisionAttr::getRevisionWithId(), PP_Revision::getType(), AD_Document::isMarkRevisions(), PP_RevisionAttr::isVisible(), PP_AttrProp::markReadOnly(), PD_MAX_REVISION, PP_REVISION_FMT_CHANGE, PP_AttrProp::prune(), PP_AttrProp::setAttributes(), PP_AttrProp::setProperties(), PP_AttrProp::setRevisedIndex(), UT_ASSERT_HARMLESS, UT_DEBUGMSG, UT_MIN, UT_return_val_if_fail, and UT_SHOULD_NOT_HAPPEN.
Referenced by getAttrProp(), getSpanAttrProp(), and fl_ShadowListener::populateStrux().
| bool PD_Document::exportGetVisDirectionAtPos | ( | PT_DocPosition | pos, | |
| UT_BidiCharType & | type | |||
| ) |
Some exporters (RTF) need to know the visual direction at each position in the document as it is being exported. The problem is that visual direction is a property of the layout not of the document itself (I shall not make any comments about badly designed file formats here!). Since our document is not directly aware of any of its layouts, we have to find a listener for FL_DocLayout that is registered with this document (it does not matter if there are more FL_DocLayout listeners registered, the visual direction will be same for all, so we grab the first one), and from the listener we can get access to the layout, down to the runs which carry the information that we need. Tomas, May 3, 2003
References _exportFindVisDirectionRunAtPos(), _exportInitVisDirection(), fp_Run::getVisDirection(), m_bLoading, m_iVDLastPos, m_pVDRun, and UT_return_val_if_fail.
Referenced by s_RTF_ListenerWriteDoc::_outputData().
| pf_Frag * PD_Document::findBookmark | ( | const char * | pName, | |
| bool | bEnd = false, |
|||
| pf_Frag * | pfStart = NULL | |||
| ) |
References pf_Frag_Object::getBookmark(), po_Bookmark::getBookmarkType(), pf_Fragments::getFirst(), pt_PieceTable::getFragments(), po_Bookmark::getName(), pf_Frag::getNext(), pf_Frag_Object::getObjectType(), getPieceTable(), pf_Frag::getType(), UT_ASSERT_HARMLESS, UT_return_val_if_fail, and UT_SHOULD_NOT_HAPPEN.
| bool PD_Document::findFirstDifferenceInContent | ( | PT_DocPosition & | pos, | |
| UT_sint32 & | iOffset2, | |||
| const PD_Document & | d | |||
| ) | const |
finds the position of the first difference in content between this document and document d, starting search at given position
| pos | when called this variable should contian document offset at which to start searching; on success this variable will contain offset of the difference in present document | |
| iOffset2 | when called contains offset to be added to pos to locate identical position in document d | |
| d | the document to compare with |
References PD_DocIterator::getChar(), PD_DocIterator::getFrag(), pf_Frag::getLength(), pf_Frag::getPos(), PD_DocIterator::getPosition(), PD_DocIterator::getStatus(), pf_Frag::getType(), pf_Frag::isContentEqual(), m_pPieceTable, UT_ASSERT_HARMLESS, UT_MIN, UT_return_val_if_fail, UT_SHOULD_NOT_HAPPEN, and UTIter_OK.
| UT_sint32 PD_Document::findFirstFreeAuthorInt | ( | void | ) | const |
References getAuthorByInt().
Referenced by AccountHandler::_handlePacket(), addAuthorAttributeIfBlank(), and AbiCollabSessionManager::startSession().
| PL_StruxDocHandle PD_Document::findForwardStyleStrux | ( | const gchar * | szStyle, | |
| PT_DocPosition | pos | |||
| ) |
This method scans the document forwards for a strux with the style name szStyle in it.
| pStyle | a pointer to style to be scanned for. | |
| pos | the document position to start from. |
References gchar, pt_PieceTable::getAttrProp(), pt_PieceTable::getFragments(), pf_Frag::getIndexAP(), pf_Fragments::getLast(), pf_Frag::getNext(), getStruxOfTypeFromPosition(), pf_Frag::getType(), m_pPieceTable, PT_STYLE_ATTRIBUTE_NAME, PTX_Block, and UT_return_val_if_fail.
Referenced by FV_View::setStyleAtPos().
| pf_Frag * PD_Document::findFragOfType | ( | pf_Frag::PFType | iType, | |
| UT_sint32 | iSubtype = -1, |
|||
| const pf_Frag * | pfStart = NULL | |||
| ) |
References pf_Fragments::getFirst(), pt_PieceTable::getFragments(), pf_Frag::getNext(), pf_Frag_Object::getObjectType(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), m_pPieceTable, pf_Frag::PFT_EndOfDoc, pf_Frag::PFT_FmtMark, pf_Frag::PFT_Object, pf_Frag::PFT_Strux, pf_Frag::PFT_Text, UT_ASSERT_HARMLESS, UT_NOT_REACHED, and UT_return_val_if_fail.
Referenced by IE_Imp_MsWord_97::_findNextENoteSection(), IE_Imp_MsWord_97::_findNextFNoteSection(), and s_updateMailMergeFields().
| PL_StruxDocHandle PD_Document::findHdrFtrStrux | ( | const gchar * | pszHdrFtr, | |
| const gchar * | pszHdrFtrID | |||
| ) |
This method scans the document to look for a HdrFtr strux.
| const | char * pszHdrFtr The particular attribute that identifies the strux as "header" "footer" "header-even" etc. | |
| const | char * pszHdrFtrID the unique string to match with Docsection. |
References gchar, pt_PieceTable::getAttrProp(), pf_Fragments::getFirst(), pt_PieceTable::getFragments(), pf_Frag::getIndexAP(), pf_Fragments::getLast(), pf_Frag::getNext(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), m_pPieceTable, PT_ID_ATTRIBUTE_NAME, PT_TYPE_ATTRIBUTE_NAME, and UT_return_val_if_fail.
Referenced by IE_Exp_RTF::exportHdrFtr().
| PL_StruxDocHandle PD_Document::findPreviousStyleStrux | ( | const gchar * | szStyle, | |
| PT_DocPosition | pos | |||
| ) |
This method scans the document backwards for a struc with the style name szStyle in it.
| pStyle | a pointer to style to be scanned for. | |
| pos | the document position to start from. |
References gchar, pt_PieceTable::getAttrProp(), pf_Fragments::getFirst(), pt_PieceTable::getFragments(), pf_Frag::getIndexAP(), pf_Frag::getPrev(), getStruxOfTypeFromPosition(), pf_Frag::getType(), m_pPieceTable, PT_STYLE_ATTRIBUTE_NAME, PTX_Block, and UT_return_val_if_fail.
Referenced by FV_View::setStyleAtPos().
| bool PD_Document::findWhereSimilarityResumes | ( | PT_DocPosition & | pos, | |
| UT_sint32 & | iOffset2, | |||
| UT_uint32 & | iKnownLength, | |||
| const PD_Document & | d | |||
| ) | const |
Starting to search this document at position pos where the two documents are known to become different, attepts to find location at which similarities resume
| pos,: | when called, should contain offset in present document at which the difference starts; on successfult return it will contain offset in present document where similarities resume | |
| iOffset2,: | when called contains offset to be added to position pos in order to correctly position start of the search in document d; on return it contains offset to be add to pos in order to obtain correct location of the resumption of similarites in document d | |
| iKnownLength,: | on return contains the minium guaranteed length of the similarity | |
| d | the document to which this document is to be compared |
References PD_DocIterator::find(), PD_DocIterator::getPosition(), PD_DocIterator::getStatus(), m_pPieceTable, PD_DocIterator::setPosition(), and UT_return_val_if_fail.
| void PD_Document::finishRawCreation | ( | void | ) |
References _setClean(), m_pPieceTable, PTS_Editing, repairDoc(), pt_PieceTable::setPieceTableState(), and updateFields().
Referenced by IE_Exp_OpenDocument::copyToBuffer(), FV_UnixVisualDrag::mouseDrag(), IE_Imp_XHTML::pasteFromBuffer(), IE_Imp_OpenDocument::pasteFromBuffer(), IE_Imp_EPUB::pasteFromBuffer(), and IE_Imp_EPUB::readStructure().
| bool PD_Document::fixListHierarchy | ( | void | ) |
References fl_AutoNum::fixHierarchy(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), and m_vecLists.
Referenced by ODi_Office_Styles::_defineAbiStyles().
| void PD_Document::fixMissingXIDs | ( | ) |
References pt_PieceTable::fixMissingXIDs(), and m_pPieceTable.
Referenced by IE_Exp_AbiWord_1::IE_Exp_AbiWord_1().
| void PD_Document::forceDirty | ( | ) | [virtual] |
force the document into being dirty and signal this to our listeners
Reimplemented from AD_Document.
References AD_Document::_setForceDirty(), isDirty(), PD_SIGNAL_DOCDIRTY_CHANGED, and signalListeners().
Referenced by AccountHandler::_handlePacket(), AbiCollabSaveInterceptor::_saveFailed(), Defun1(), and PD_DocumentRDF::maybeSetDocumentDirty().
| UT_sint32 PD_Document::getAdjustmentForCR | ( | const PX_ChangeRecord * | pcr | ) | const |
References PX_ChangeRecord_SpanChange::getLength(), PX_ChangeRecord::getType(), PX_ChangeRecord::PXT_AddStyle, PX_ChangeRecord::PXT_ChangeDocProp, PX_ChangeRecord::PXT_ChangeFmtMark, PX_ChangeRecord::PXT_ChangeObject, PX_ChangeRecord::PXT_ChangePoint, PX_ChangeRecord::PXT_ChangeSpan, PX_ChangeRecord::PXT_ChangeStrux, PX_ChangeRecord::PXT_CreateDataItem, PX_ChangeRecord::PXT_DeleteFmtMark, PX_ChangeRecord::PXT_DeleteObject, PX_ChangeRecord::PXT_DeleteSpan, PX_ChangeRecord::PXT_DeleteStrux, PX_ChangeRecord::PXT_GlobMarker, PX_ChangeRecord::PXT_InsertFmtMark, PX_ChangeRecord::PXT_InsertObject, PX_ChangeRecord::PXT_InsertSpan, PX_ChangeRecord::PXT_InsertStrux, PX_ChangeRecord::PXT_ListUpdate, PX_ChangeRecord::PXT_RemoveList, PX_ChangeRecord::PXT_RemoveStyle, PX_ChangeRecord::PXT_StopList, PX_ChangeRecord::PXT_UpdateField, and PX_ChangeRecord::PXT_UpdateLayout.
Referenced by px_ChangeHistory::getRedo(), and px_ChangeHistory::getUndo().
| bool PD_Document::getAllowChangeInsPoint | ( | void | ) | const |
| void PD_Document::getAllUsedStyles | ( | UT_GenericVector< PD_Style * > * | pVecStyles | ) |
This method scans the document for all styles used in the document, including styles in the basedon heiracy and the followedby list
References UT_GenericVector< T >::addItem(), UT_GenericVector< T >::findItem(), gchar, pt_PieceTable::getAttrProp(), PD_Style::getBasedOn(), pf_Fragments::getFirst(), PD_Style::getFollowedBy(), pt_PieceTable::getFragments(), pf_Fragments::getLast(), pf_Frag::getNext(), pt_PieceTable::getStyle(), pf_Frag::getType(), m_pPieceTable, pp_BASEDON_DEPTH_LIMIT, PT_STYLE_ATTRIBUTE_NAME, and UT_return_if_fail.
Referenced by s_AbiWord_1_Listener::_handleStyles(), PL_Psion_Listener::_processStyles(), IE_Exp_RTF::_selectStyles(), ODe_Styles::fetchRegularStyleStyles(), IE_Exp_DocRangeListener::IE_Exp_DocRangeListener(), importStyles(), and OO_StylesWriter::writeStyles().
| void PD_Document::getAllViews | ( | UT_GenericVector< AV_View * > * | vecViews | ) | const |
return a vector of all the views attached to this document.
References UT_GenericVector< T >::addItem(), UT_GenericVector< T >::getItemCount(), fl_DocListener::getLayout(), UT_GenericVector< T >::getNthItem(), PL_Listener::getType(), FL_DocLayout::getView(), and m_vecListeners.
Referenced by ABI_Collab_Import::_disableUpdates(), removeCaret(), setShowAuthors(), and AbiCollabService_Export::signal().
| bool PD_Document::getAnnotationProp | ( | const UT_String & | key, | |
| UT_UTF8String & | outProp | |||
| ) | const [virtual] |
Implements AD_Document.
| PT_AttrPropIndex PD_Document::getAPIFromSDH | ( | PL_StruxDocHandle | sdh | ) |
Get API fromthe supplied StruxDocHandle
NB: this method does not take into account revisions settings; you either have to further process the AP at the index using the explodeRevisions() methods or you can retrieve specific props and attrs using getPropertyFromSDH() and getAttributeFromSDH().
References pf_Frag::getIndexAP().
Referenced by s_RTF_ListenerWriteDoc::_open_table(), IE_Exp_RTF::_write_rtf_header(), PD_DocumentRDF::dumpObjectMarkersFromDocument(), AP_Dialog_FormatTOC::fillTOCPropsFromDoc(), PD_DocumentRDF::priv_addRelevantIDsForPosition(), ie_Table::setCellRowCol(), and AP_Dialog_FormatFrame::setCurFrameProps().
| PT_AttrPropIndex PD_Document::getAPIFromSOH | ( | PL_ObjectHandle | odh | ) |
Return Attribute Property Index associated with the pf_Frag_Object pointed to by odh
References pf_Frag::getIndexAP().
Referenced by fp_MathRun::_getLayoutPropFromObject(), fp_EmbedRun::_getLayoutPropFromObject(), fp_ImageRun::_lookupProperties(), fp_MathRun::_updatePropValuesIfNeeded(), fp_EmbedRun::_updatePropValuesIfNeeded(), and fp_EmbedRun::update().
| bool PD_Document::getAttributeFromSDH | ( | PL_StruxDocHandle | sdh, | |
| bool | bShowRevisions, | |||
| UT_uint32 | iRevisionLevel, | |||
| const char * | szAttribute, | |||
| const char ** | pszRetValue | |||
| ) |
This method returns the value associated with attribute szAttribute at picetable strux given by sdh. NB: attributes and props are view-specific because of revision attributes
| PL_StruxDocHandle | sdh (pf_Frag_Strux) where we want to find the value | |
| bool | bShowRevisions -- revisions setting for the view (FV_View::isShowRevisions()) | |
| UT_uint32 | iRevisionLevel -- the revision level of the view (FV_View::getRevisionLevel()) | |
| const | char * szAttribute the attribute we're looking for. | |
| const | char ** pszValue the value of the attribute. |
Don't FREEP *pszRetValue!!!
References gchar, getAttrProp(), pf_Frag::getIndexAP(), and UT_return_val_if_fail.
Referenced by _matchSection(), _pruneSectionAPI(), _removeRepeatedHdrFtr(), FV_View::_removeThisHdrFtr(), fl_AutoNum::fixHierarchy(), and FV_View::isImageAtStrux().
| bool PD_Document::getAttrProp | ( | PT_AttrPropIndex | indexAP, | |
| const PP_AttrProp ** | ppAP | |||
| ) | const |
References pt_PieceTable::getAttrProp(), and m_pPieceTable.
Referenced by PL_Psion_Listener::_addInLine(), ABI_Collab_Export::_buildPacket(), IE_Exp_HTML::_buildStyleTree(), ODe_AbiDocListener::_closeBookmark(), ODe_AbiDocListener::_closeRDFAnchor(), fl_BlockLayout::_doInsertFieldRun(), s_WML_Listener::_emitTOC(), s_RTF_ListenerWriteDoc::_fillCellProps(), s_RTF_ListenerWriteDoc::_fillTableProps(), s_RTF_ListenerWriteDoc::_getColumnWidthInches(), fp_MathRun::_getLayoutPropFromObject(), fp_EmbedRun::_getLayoutPropFromObject(), ODe_AbiDocListener::_getObjectKey(), IE_Exp_HTML_Listener::_getObjectKey(), IE_Exp_HTML_Listener::_handleAnnotationData(), s_XSL_FO_Listener::_handleBookmark(), s_WML_Listener::_handleBookmark(), s_DocBook_Listener::_handleBookmark(), Text_Listener::_handleDirMarker(), s_DocBook_Listener::_handleDocument(), s_XSL_FO_Listener::_handleEmbedded(), s_WML_Listener::_handleEmbedded(), s_DocBook_Listener::_handleEmbedded(), s_XSL_FO_Listener::_handleField(), s_WML_Listener::_handleField(), s_DocBook_Listener::_handleField(), s_DocBook_Listener::_handleFootnote(), s_XSL_FO_Listener::_handleFrame(), s_DocBook_Listener::_handleHdrFtr(), s_XSL_FO_Listener::_handleHyperlink(), s_WML_Listener::_handleHyperlink(), s_DocBook_Listener::_handleHyperlink(), s_XSL_FO_Listener::_handleImage(), s_WML_Listener::_handleImage(), IE_Exp_HTML_Listener::_handleImage(), s_DocBook_Listener::_handleImage(), s_XSL_FO_Listener::_handleMath(), s_WML_Listener::_handleMath(), s_DocBook_Listener::_handleMath(), s_XSL_FO_Listener::_handlePageSize(), s_XSL_FO_Listener::_handlePositionedImage(), s_DocBook_Listener::_handlePositionedImage(), s_DocBook_Listener::_handleTOC(), ODe_AbiDocListener::_insertEmbeddedImage(), IE_Exp_HTML_Listener::_insertEmbeddedImage(), PL_Psion_Listener::_insertImage(), IE_Exp_HTML_Listener::_insertImage(), ODe_AbiDocListener::_insertInlinedImage(), ODe_AbiDocListener::_insertMath(), IE_Exp_HTML_Listener::_insertMath(), IE_Exp_HTML_Listener::_insertPosImage(), IE_Exp_HTML_Listener::_insertTOC(), fp_ImageRun::_lookupProperties(), FL_DocLayout::_lookupProperties(), IE_Exp_HTML_Listener::_makeStylesheet(), ABI_Collab_Export::_mapPropsAtts(), ODe_AbiDocListener::_openAnnotation(), IE_Exp_HTML_Listener::_openAnnotation(), ODe_AbiDocListener::_openBlock(), s_XSL_FO_Listener::_openBlock(), WordPerfect_Listener::_openBlock(), Passepartout_Listener::_openBlock(), OO_Listener::_openBlock(), s_KWord_1_Listener::_openBlock(), IE_Exp_HTML_Listener::_openBlock(), ODe_AbiDocListener::_openBookmark(), IE_Exp_HTML_Listener::_openBookmark(), ODe_AbiDocListener::_openCell(), IE_Exp_HTML_Listener::_openCell(), ODe_AbiDocListener::_openEndnote(), IE_Exp_HTML_Listener::_openEndnote(), ODe_AbiDocListener::_openField(), IE_Exp_HTML_Listener::_openField(), Passepartout_Listener::_openFont(), ODe_AbiDocListener::_openFootnote(), IE_Exp_HTML_Listener::_openFootnote(), ODe_AbiDocListener::_openFrame(), s_RTF_ListenerWriteDoc::_openFrame(), IE_Exp_HTML_Listener::_openFrame(), IE_Exp_HTML_Listener::_openHeading(), ODe_AbiDocListener::_openHyperlink(), IE_Exp_HTML_Listener::_openHyperlink(), IE_Exp_HTML_Listener::_openList(), s_WML_Listener::_openParagraph(), PL_Psion_Listener::_openParagraph(), s_LaTeX_Listener::_openParagraph(), s_DocBook_Listener::_openParagraph(), ODe_AbiDocListener::_openRDFAnchor(), IE_Exp_HTML_Listener::_openRow(), ODe_AbiDocListener::_openSection(), s_WML_Listener::_openSection(), s_LaTeX_Listener::_openSection(), IE_Exp_HTML_Listener::_openSection(), s_DocBook_Listener::_openSection(), ODe_AbiDocListener::_openSpan(), s_XSL_FO_Listener::_openSpan(), WordPerfect_Listener::_openSpan(), s_WML_Listener::_openSpan(), s_RTF_ListenerWriteDoc::_openSpan(), s_RTF_ListenerGetProps::_openSpan(), OO_Listener::_openSpan(), s_LaTeX_Listener::_openSpan(), s_KWord_1_Listener::_openSpan(), IE_Exp_HTML_Listener::_openSpan(), s_HRText_Listener::_openSpan(), s_DocBook_Listener::_openSpan(), ODe_AbiDocListener::_openTable(), IE_Exp_HTML_Listener::_openTable(), s_RTF_ListenerWriteDoc::_openTag(), s_HRText_Listener::_openTag(), s_AbiWord_1_Listener::_openTag(), IE_Exp_HTML_Listener::_openTextbox(), ODe_AbiDocListener::_openTOC(), s_LaTeX_Listener::_outputBabelPackage(), s_RTF_ListenerWriteDoc::_rtf_open_block(), s_RTF_ListenerWriteDoc::_rtf_open_section(), s_RTF_ListenerGetProps::_searchCellAPI(), s_RTF_ListenerGetProps::_searchTableAPI(), PL_Psion_Listener::_setStyleLayout(), fp_MathRun::_updatePropValuesIfNeeded(), fp_EmbedRun::_updatePropValuesIfNeeded(), IE_Exp_RTF::_write_parafmt(), IE_Exp_RTF::_write_rtf_header(), s_RTF_ListenerWriteDoc::_writeAnnotation(), s_RTF_ListenerWriteDoc::_writeBookmark(), s_RTF_ListenerWriteDoc::_writeFieldPreamble(), s_RTF_ListenerWriteDoc::_writeHyperlink(), s_RTF_ListenerWriteDoc::_writeImageInRTF(), s_KWord_1_Listener::_writeMarginSize(), s_RTF_ListenerWriteDoc::_writeRDFAnchor(), s_RTF_ListenerWriteDoc::_writeTOC(), IE_Exp_OpenXML_Listener::addDocumentStyles(), IE_Exp_OpenXML_Listener::addLists(), ODe_Styles::addStyle(), fl_SectionLayout::bl_doclistener_insertSection(), fl_DocListener::change(), Defun1(), Defun_EV_GetMenuItemState_Fn(), fl_DocSectionLayout::doclistener_changeStrux(), fl_BlockLayout::doclistener_insertSection(), PD_DocumentRDF::dumpObjectMarkersFromDocument(), ODe_Styles::fetchRegularStyleStyles(), AP_Dialog_FormatTOC::fillTOCPropsFromDoc(), FV_View::FV_View(), FV_View::getAllAttrProp(), fl_Layout::getAttrProp(), s_AbiWord_1_Listener::getObjectKey(), IE_Exp_DocRangeListener::IE_Exp_DocRangeListener(), GR_MathManager::loadEmbedData(), GR_GOChartManager::loadEmbedData(), GR_MathManager::makeSnapShot(), PP_AttrProp::miniDump(), Passepartout_Listener::Passepartout_Listener(), PD_Bookmark::PD_Bookmark(), ODe_AbiDocListener::populate(), IE_Imp_PasteListener::populate(), s_RTF_ListenerWriteDoc::populate(), IE_Exp_OpenXML_Listener::populate(), OO_Listener::populate(), s_LaTeX_Listener::populate(), IE_Exp_HTML_BookmarkListener::populate(), IE_Exp_HTML_Listener::populate(), IE_Exp_DocRangeListener::populate(), s_AbiWord_1_Listener::populate(), TOC_Listener::populateStrux(), IE_Imp_PasteListener::populateStrux(), s_XSL_FO_Listener::populateStrux(), Text_Listener::populateStrux(), s_RTF_ListenerWriteDoc::populateStrux(), s_RTF_ListenerGetProps::populateStrux(), PL_Psion_Listener::populateStrux(), Passepartout_Listener::populateStrux(), IE_Exp_OpenXML_Listener::populateStrux(), s_LaTeX_Listener::populateStrux(), s_KWord_1_Listener::populateStrux(), IE_Exp_HTML_HeaderFooterListener::populateStrux(), s_HRText_Listener::populateStrux(), IE_Exp_DocRangeListener::populateStrux(), fl_ShadowListener::populateStrux(), fl_DocListener::populateStrux(), PP_evalProperty(), PD_DocumentRDF::priv_addRelevantIDsForPosition(), RDFAnchor::RDFAnchor(), PD_XMLIDCreator::rebuildCache(), s_doLangDlg(), ie_PartTable::setCellApi(), AP_Dialog_FormatFrame::setCurFrameProps(), ie_PartTable::setTableApi(), IE_Exp_HTML_StyleListener::styleCheck(), Text_Listener::Text_Listener(), PD_RDFModelFromStartEndPos::updateAPList(), and OO_StylesWriter::writeStyles().
| bool PD_Document::getAttrProp | ( | PT_AttrPropIndex | apIndx, | |
| const PP_AttrProp ** | ppAP, | |||
| PP_RevisionAttr ** | pRevisions, | |||
| bool | bShowRevisions, | |||
| UT_uint32 | iRevisionId, | |||
| bool & | bHiddenRevision | |||
| ) | const |
| const PP_AttrProp * PD_Document::getAttrProp | ( | ) | const |
References m_indexAP, and VARSET.
Referenced by _importFile(), explodeRevisions(), getAttributeFromSDH(), getAttrProp(), getPropertyFromSDH(), getSpanAttrProp(), and purgeRevisionTable().
| PT_AttrPropIndex PD_Document::getAttrPropIndex | ( | void | ) | const [inline] |
| UT_GenericVector<pp_Author*>& PD_Document::getAuthors | ( | ) | [inline] |
Referenced by AccountHandler::_handlePacket(), and AbiCollabSessionManager::startSession().
| bool PD_Document::getBlockBuf | ( | PL_StruxDocHandle | sdh, | |
| UT_GrowBuf * | pgb | |||
| ) | const |
References pt_PieceTable::getBlockBuf(), and m_pPieceTable.
Referenced by fl_BlockLayout::getBlockBuf().
| PL_StruxDocHandle PD_Document::getBlockFromPosition | ( | PT_DocPosition | pos | ) | const |
References pt_PieceTable::getBlockFromPosition(), and m_pPieceTable.
| po_Bookmark * PD_Document::getBookmark | ( | PL_StruxDocHandle | sdh, | |
| UT_uint32 | offset | |||
| ) |
References pf_Frag_Object::getBookmark(), pf_Frag::getType(), pf_Frag::PFT_Object, and UT_return_val_if_fail.
Referenced by fl_Layout::getBookmark().
| UT_sint32 PD_Document::getBookmarkCount | ( | ) | const [inline] |
| bool PD_Document::getBounds | ( | bool | bEnd, | |
| PT_DocPosition & | docPos | |||
| ) | const |
References pt_PieceTable::getBounds(), and m_pPieceTable.
Referenced by IE_Imp_MsWord_97::_table_close(), IE_Exp_HTML::_writeDocument(), fl_HdrFtrSectionLayout::addPage(), fl_TableLayout::bl_doclistener_insertTable(), fl_SectionLayout::bl_doclistener_insertTable(), fl_Squiggles::clear(), FV_View::countWords(), fl_BlockLayout::doclistener_deleteFmtMark(), fl_BlockLayout::doclistener_insertFrame(), fl_BlockLayout::doclistener_insertSection(), fl_BlockLayout::doclistener_insertTable(), pt_PieceTable::dumpDoc(), ODi_TextContent_ListenerState::endElement(), IE_Exp_RTF::exportHdrFtr(), FL_DocLayout::fillLayouts(), fl_HdrFtrShadow::findBlockAtPosition(), FL_DocLayout::findBlockAtPosition(), FL_DocLayout::findBlockAtPositionReverse(), FV_View::findSetStartAt(), FV_View::getEditableBounds(), ABI_Collab_Import::getEndOfDoc(), fl_CellLayout::getLength(), fl_TableLayout::getLength(), fl_BlockLayout::getLength(), fl_HdrFtrSectionLayout::isPointInHere(), IE_Imp_RTF::OpenTable(), IE_Imp_XHTML::pasteFromBuffer(), IE_Imp_RTF::pasteFromBuffer(), IE_Exp_HTML_HeaderFooterListener::populateStrux(), and IE_Imp_EPUB::readStructure().
| PL_StruxDocHandle PD_Document::getCellSDHFromRowCol | ( | PL_StruxDocHandle | tableSDH, | |
| bool | bShowRevisions, | |||
| UT_uint32 | iRevisionLevel, | |||
| UT_sint32 | row, | |||
| UT_sint32 | col | |||
| ) |
The method returns the SDH of the cell at the location given by (rows,columns) in table pointed to by tableSDH. Returns NULL if the requested location is not contained in the cell.
| PL_StruxDocHandle | tableSDH SDH of the table in question | |
| UT_sint32 | row row location. | |
| UT_sint32 | col column location |
References getEndTableStruxFromTableSDH(), pt_PieceTable::getFragments(), pf_Fragments::getLast(), pf_Frag::getNext(), getPropertyFromSDH(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), m_pPieceTable, and UT_return_val_if_fail.
Referenced by s_RTF_ListenerWriteDoc::_newRow(), fp_FieldTableSumCols::calculateValue(), fp_FieldTableSumRows::calculateValue(), FV_View::cmdTextToTable(), Defun1(), FV_View::findCellPosAt(), s_RTF_ListenerWriteDoc::getRightOfCell(), FV_View::setCellFormat(), and ie_Table::setCellRowCol().
| UT_sint32 PD_Document::getCRNumber | ( | ) | const [inline] |
Referenced by AccountHandler::_handlePacket(), AbiCollab::_restartAsMaster(), and AbiCollab::startRecording().
| bool PD_Document::getDataItemData | ( | void * | pHandle, | |
| const char ** | pszName, | |||
| const UT_ByteBuf ** | ppByteBuf, | |||
| const void ** | ppToken | |||
| ) | const |
References _dataItemPair::pBuf, _dataItemPair::pToken, UT_ASSERT_HARMLESS, UT_return_val_if_fail, and UT_TODO.
| bool PD_Document::getDataItemDataByName | ( | const char * | szName, | |
| const UT_ByteBuf ** | ppByteBuf, | |||
| std::string * | pMimeType, | |||
| void ** | ppHandle | |||
| ) | const [virtual] |
Implements AD_Document.
References m_hashDataItems, _dataItemPair::pBuf, UT_GenericStringMap< T >::pick(), _dataItemPair::pToken, UT_DEBUGMSG, and UT_return_val_if_fail.
Referenced by ABI_Collab_Export::_buildPacket(), s_LaTeX_Listener::_handleImage(), IE_Exp_HTML_Listener::_handleImage(), s_DocBook_Listener::_handleImage(), s_DocBook_Listener::_handlePositionedImage(), PL_Psion_Listener::_insertImage(), ODe_AbiDocListener::_insertMath(), IE_Exp_HTML_Listener::_insertMath(), s_RTF_ListenerWriteDoc::_openFrame(), s_RTF_ListenerWriteDoc::_openTag(), s_AbiWord_1_Listener::_openTag(), s_RTF_ListenerWriteDoc::_writeImageInRTF(), createDataItem(), IE_Imp_RTF::CreateDataItemfromStream(), FG_GraphicVector::createFromChangeRecord(), FG_GraphicRaster::createFromChangeRecord(), FG_Graphic::createFromChangeRecord(), FG_GraphicVector::createFromStrux(), FG_GraphicRaster::createFromStrux(), FG_Graphic::createFromStrux(), Defun1(), dlgEditLatexEquation(), IE_Exp_HTML_DataExporter::encodeDataBase64(), getDataItemFileExtension(), FV_VisualInlineImage::getPNGImage(), FV_FrameEdit::getPNGImage(), GR_MathManager::loadEmbedData(), GR_GOChartManager::loadEmbedData(), FV_VisualInlineImage::mouseCopy(), s_LaTeX_Listener::populate(), s_AbiWord_1_Listener::populate(), IE_Exp_HTML_MultipartExporter::saveData(), IE_Exp_HTML_FileExporter::saveData(), and FV_View::saveSelectedImage().
| bool PD_Document::getDataItemFileExtension | ( | const char * | szDataID, | |
| std::string & | sExt, | |||
| bool | bDot = true | |||
| ) | const |
This function accepts a data ID and assigns the file extension of the corresponding data item.
| szDataID | The incoming data ID to look up | |
| sExt | The extension string that is populated on success | |
| bDot | A boolean to determine whether the extension string will be prefixed with a dot ('.'). Defaults to true. |
References getDataItemDataByName(), UT_DEBUGMSG, and UT_return_val_if_fail.
Referenced by s_XSL_FO_Listener::_handleImage(), s_WML_Listener::_handleImage(), IE_Exp_HTML_Listener::_handleImage(), s_XSL_FO_Listener::_handlePositionedImage(), and OXML_Element_Image::serialize().
| const char * PD_Document::getDefaultStyle | ( | ) | const |
| PD_DocumentRDFHandle PD_Document::getDocumentRDF | ( | void | ) | const |
References m_hDocumentRDF.
Referenced by FV_View::_deleteXMLID(), s_AbiWord_1_Listener::_handleRDF(), IE_Imp_OpenDocument::_handleRDFStreams(), ABI_Collab_Import::_import(), IE_Exp_RTF::_write_rtf_header(), PD_DocumentRDF::begin(), FV_View::cmdInsertXMLID(), IE_Exp_OpenDocument::copyToBuffer(), PD_DocumentRDF::createRestrictedModelForXMLIDs(), PD_XMLIDCreator::createUniqueXMLID(), Defun(), Defun1(), AP_Dialog_RDFEditor::getModel(), AP_Dialog_RDFQuery::getRDF(), AP_Dialog_RDFEditor::getRDF(), AP_Dialog_Goto::getRDF(), AbiCommand::getRDF(), FV_View::gotoTarget(), IE_Imp_OpenDocument::pasteFromBuffer(), IE_Imp_RDF_Calendar::pasteFromBufferSS(), IE_Imp_RDF_VCard::pasteFromBufferSS(), IE_Imp_RTF::ReadRDFTriples(), PD_DocumentRDF::relinkRDFToNewXMLID(), IE_Imp_AbiWord_1::startElement(), and ODe_RDFWriter::writeRDF().
| UT_sint32 PD_Document::getEmbeddedOffset | ( | PL_StruxDocHandle | sdh, | |
| PT_DocPosition | posoff, | |||
| PL_StruxDocHandle & | sdhEmbedded | |||
| ) |
This method returns the offset to a an embedded strux And a pointer to the embedded strux found. If no emebedded strux is found in the block we return -1 ans NULL
References pt_PieceTable::getFragPosition(), pt_PieceTable::getStruxPosition(), pf_Frag_Strux::getStruxType(), pt_PieceTable::isFootnote(), m_pPieceTable, and UT_return_val_if_fail.
Referenced by fl_BlockLayout::getEmbeddedOffset().
| PL_StruxDocHandle PD_Document::getEndCellStruxFromCellSDH | ( | PL_StruxDocHandle | cellSDH | ) |
This method returns the end cell strux associated with the cell strux cellSDH Returns NULL on failure to find it.
References getEndTableStruxFromTableSDH(), pt_PieceTable::getFragments(), pf_Fragments::getLast(), pf_Frag::getNext(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), m_pPieceTable, and UT_return_val_if_fail.
Referenced by FV_View::_deleteCellAt(), FV_View::_insertCellAfter(), FV_View::_MergeCells(), FV_View::cmdDeleteCol(), FV_View::cmdDeleteRow(), FV_View::cmdInsertCol(), FV_View::cmdInsertRow(), ie_imp_table::deleteRow(), and fl_CellLayout::getLength().
| PL_StruxDocHandle PD_Document::getEndTableStruxFromTablePos | ( | PT_DocPosition | tablePos | ) |
This method returns the end table strux associated with the table strux tableSDH Returns NULL on failure to find it.
References getEndTableStruxFromTableSDH(), getStruxOfTypeFromPosition(), and PTX_SectionTable.
Referenced by FV_View::setCellFormat().
| PL_StruxDocHandle PD_Document::getEndTableStruxFromTableSDH | ( | PL_StruxDocHandle | tableSDH | ) |
This method returns the end table strux associated with the table strux tableSDH Returns NULL on failure to find it.
References pt_PieceTable::getFragments(), pf_Fragments::getLast(), pf_Frag::getNext(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), m_pPieceTable, and UT_return_val_if_fail.
Referenced by IE_Imp_RTF::closePastedTableIfNeeded(), FV_View::cmdAdvanceNextPrevCell(), FV_View::cmdDeleteRow(), FV_View::cmdDeleteTable(), FV_View::cmdInsertRow(), FV_View::cmdMergeCells(), FV_View::cmdSplitCells(), getCellSDHFromRowCol(), getEndCellStruxFromCellSDH(), getEndTableStruxFromTablePos(), getRowsColsFromTableSDH(), IE_Imp_RTF::HandleAbiEndTable(), IE_Imp_RTF::HandleAbiTable(), and FV_View::isInTable().
| bool PD_Document::getField | ( | PL_StruxDocHandle | sdh, | |
| UT_uint32 | offset, | |||
| fd_Field *& | pField | |||
| ) |
References pf_Frag::getField(), pf_Frag::getType(), pf_Frag::PFT_Object, pf_Frag::PFT_Text, and UT_return_val_if_fail.
Referenced by fl_Layout::getField().
| pf_Frag * PD_Document::getFragFromPosition | ( | PT_DocPosition | docPos | ) | const |
References pt_PieceTable::getFragFromPosition(), and m_pPieceTable.
Referenced by PD_DocumentRDF::getAllIDs(), PD_DocumentRDF::getIDRange(), fl_BlockLayout::getLength(), FV_View::isParaBreakNeededAtPos(), IE_Imp_RTF::pasteFromBuffer(), s_RTF_ListenerWriteDoc::populate(), and PD_RDFModelFromStartEndPos::updateAPList().
This function evaluates the xid value for the given frament and version level.
The XID is a document-unique identifier of the frag; when we compare documents, we are interested not in document uniqueness but global uniqueness. We convert the document-unique xid to a globaly unique id by combining the xid with the UUID of document version: identical xid's in two documents represent identical elements if, and only if, the version UUIDs for the version of the document in which the element was created are identical. Therefore, as a part of the version record, we store the highest xid used in the document. This way we can determine in which version of the document the frag was created, based on its xid.
Frags that have xid aboved the version threshold need to be treated as frags without xid.
References AD_Document::findHistoryRecord(), AD_Document::getDocVersion(), getTopXID(), pf_Frag::getXID(), UT_return_val_if_fail, and v.
| UT_sint32 PD_Document::getLastAuthorInt | ( | void | ) | const |
Returns the most recently received author int
References m_iLastAuthorInt.
Referenced by FV_View::updateCarets().
| pf_Frag * PD_Document::getLastFrag | ( | ) | const |
References pt_PieceTable::getFragments(), pf_Fragments::getLast(), m_pPieceTable, and UT_return_val_if_fail.
Referenced by IE_Imp_MsWord_97::_appendStrux(), IE_Imp_MsWord_97::_ensureInBlock(), IE_Imp_MsWord_97::_flush(), IE_Imp_MsWord_97::_insertBookmark(), IE_Imp_MsWord_97::_insertHeaderSection(), checkForSuspect(), ODi_TextContent_ListenerState::endElement(), IE_Imp_RTF::HandleAnnotation(), IE_Imp_RTF::HandleShape(), s_updateMailMergeFields(), IE_Imp_RTF::StartAnnotation(), and IE_Imp_TableHelper::tableStart().
| UT_uint32 PD_Document::getLastOpenedType | ( | ) | const [inline] |
Referenced by AbiCommand::parseTokens().
| virtual UT_uint32 PD_Document::getLastSavedAsType | ( | ) | const [inline, virtual] |
Implements AD_Document.
| PL_StruxDocHandle PD_Document::getLastSectionSDH | ( | void | ) |
This method returns the last pf_Frag_Strux as a PL_StruxDocHandle before the end of the piecetable.
References pf_Fragments::getFirst(), pt_PieceTable::getFragments(), pf_Fragments::getLast(), pf_Frag::getNext(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), m_pPieceTable, and UT_return_val_if_fail.
Referenced by IE_Imp_RTF::_appendHdrFtr(), convertPercentToInches(), and IE_Imp_AbiWord_1::startElement().
| PL_StruxDocHandle PD_Document::getLastStruxOfType | ( | PTStruxType | pts | ) |
This method returns the last pf_Frag_Strux as a PL_StruxDocHandle before the end of the piecetable.
References pf_Fragments::getFirst(), pt_PieceTable::getFragments(), pf_Fragments::getLast(), pf_Frag::getPrev(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), m_pPieceTable, PTX_EndTable, PTX_SectionTable, and UT_return_val_if_fail.
Referenced by IE_Imp_MsWord_97::_table_close(), ie_imp_table::deleteRow(), IE_Imp_RTF::HandleCell(), ie_imp_table_control::NewRow(), and IE_Imp_RTF::OpenTable().
| fl_AutoNum * PD_Document::getListByID | ( | UT_uint32 | id | ) | const |
References UT_GenericVector< T >::getFirstItem(), fl_AutoNum::getID(), UT_GenericVector< T >::getItemCount(), m_vecLists, and UT_return_val_if_fail.
Referenced by fl_BlockLayout::_lookupProperties(), IE_Imp_WordPerfect::_updateDocumentOrderedListDefinition(), IE_Imp_WordPerfect::_updateDocumentUnorderedListDefinition(), IE_Exp_RTF::_write_parafmt(), IE_Imp_RTF::ApplyParagraphAttributes(), fl_AutoNum::findAndSetParentItem(), fl_AutoNum::fixHierarchy(), fl_AutoNum::fl_AutoNum(), fl_ContainerLayout::getLevelInList(), FL_DocLayout::getListByID(), IE_Imp_RTF::mapID(), and fl_BlockLayout::StartList().
| UT_uint32 PD_Document::getListsCount | ( | void | ) | const |
References UT_GenericVector< T >::getItemCount(), and m_vecLists.
Referenced by fl_AutoNum::_updateItems(), IE_Exp_RTF::_write_listtable(), IE_Exp_OpenXML_Listener::addLists(), IE_Imp_RTF::ApplyParagraphAttributes(), FL_DocLayout::fillLayouts(), fl_AutoNum::findAndSetParentItem(), fl_AutoNum::getAutoNumFromSdh(), fl_AutoNum::getLastItemInHeiracy(), FL_DocLayout::getListsCount(), fl_AutoNum::insertItem(), IE_Imp_RTF::mapID(), fl_AutoNum::prependItem(), fl_AutoNum::removeItem(), FV_View::setStyleAtPos(), and fl_BlockLayout::StartList().
| UT_UTF8String PD_Document::getMailMergeField | ( | const UT_String & | key | ) | const |
References m_mailMergeMap, and UT_GenericStringMap< T >::pick().
Referenced by fp_FieldMailMergeRun::calculateValue().
| const UT_UTF8String& PD_Document::getMailMergeLink | ( | ) | const [inline] |
Referenced by AP_CocoaPlugin_Document::documentMailMergeSource, and AP_Dialog_MailMerge::init().
| const UT_GenericStringMap<UT_UTF8String *>& PD_Document::getMailMergeMap | ( | ) | const [inline] |
| UT_GenericStringMap<UT_UTF8String*>& PD_Document::getMetaData | ( | ) | [inline] |
Referenced by s_AbiWord_1_Listener::_handleMetaData().