#include <pt_PieceTable.h>
Public Member Functions | |
| pt_PieceTable (PD_Document *pDocument) | |
| ~pt_PieceTable () | |
| void | setPieceTableState (PTState pts) |
| PTState | getPieceTableState () const |
| void | beginMultiStepGlob (void) |
| void | endMultiStepGlob (void) |
| void | beginUserAtomicGlob (void) |
| void | endUserAtomicGlob (void) |
| void | setClean (void) |
| bool | isDirty (void) const |
| bool | canDo (bool bUndo) const |
| UT_uint32 | undoCount (bool bUndo) const |
| bool | undoCmd (void) |
| bool | redoCmd (void) |
| bool | getNthUndo (PX_ChangeRecord **ppcr, UT_uint32 undoNdx) const |
| bool | getUndo (PX_ChangeRecord **ppcr, bool bStatic=false) const |
| bool | getRedo (PX_ChangeRecord **ppcr) const |
| void | clearUndo () |
| 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, pf_Frag_Object **ppfo) |
| bool | insertSpan (PT_DocPosition dpos, const UT_UCSChar *p, UT_uint32 length, fd_Field *pField=NULL, bool bAddChangeRec=true) |
| bool | deleteSpan (PT_DocPosition dpos1, PT_DocPosition dpos2, PP_AttrProp *p_AttrProp_Before, UT_uint32 &iRealDeleteCount, bool bDontGlob=false) |
| bool | deleteSpan (PT_DocPosition dpos1, PT_DocPosition dpos2, PP_AttrProp *p_AttrProp_Before, UT_uint32 &iRealDeleteCount, bool bDeleteTableStruxes, bool bDontGlob) |
| bool | createAndSendCR (PT_DocPosition dpos, UT_sint32 iType, bool bSave, UT_Byte iGlob) |
| bool | createAndSendDocPropCR (const gchar **pAtts, const gchar **pProps) |
| bool | deleteSpanWithTable (PT_DocPosition dpos1, PT_DocPosition dpos2, PP_AttrProp *p_AttrProp_Before, UT_uint32 &iRealDeleteCount, bool bDeleteTableStrux) |
| bool | deleteFieldFrag (pf_Frag *pf) |
| void | deleteHdrFtrStrux (pf_Frag_Strux *pfs) |
| 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 | insertStrux (PT_DocPosition dpos, PTStruxType pts, const gchar **attributes, const gchar **properties, pf_Frag_Strux **ppfs_ret=0) |
| bool | changeStruxFmt (PTChangeFmt ptc, PT_DocPosition dpos1, PT_DocPosition dpos2, const gchar **attributes, const gchar **properties, PTStruxType pts=PTX_StruxDummy) |
| bool | changeStruxFmtNoUndo (PTChangeFmt ptc, pf_Frag_Strux *pfs, const gchar **attributes, const gchar **properties) |
| bool | changeStruxFormatNoUpdate (PTChangeFmt ptc, pf_Frag_Strux *pfs, const gchar **attributes) |
| bool | changeObjectFormatNoUpdate (PTChangeFmt ptc, pf_Frag_Object *pfo, const gchar **attributes, const gchar **properties) |
| bool | changeStruxForLists (PL_StruxDocHandle sdh, const char *pszParentID) |
| bool | changeSectionAttsNoUpdate (pf_Frag_Strux *pfStrux, const char *attr, const char *attvalue) |
| bool | deleteStruxNoUpdate (PL_StruxDocHandle sdh) |
| bool | deleteFragNoUpdate (pf_Frag *pf) |
| bool | deleteStruxWithNotify (PL_StruxDocHandle sdh) |
| bool | insertStruxNoUpdateBefore (PL_StruxDocHandle sdh, PTStruxType pts, const gchar **attributes) |
| 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 | insertFmtMark (PTChangeFmt ptc, PT_DocPosition dpos, PP_AttrProp *p_AttrProp) |
| bool | deleteFmtMark (PT_DocPosition dpos) |
| PD_Document * | getDocument (void) |
| 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 | 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) |
| bool | removeStyle (const gchar *name) |
| size_t | getStyleCount (void) const |
| bool | tellListener (PL_Listener *pListener) |
| bool | tellListenerSubset (PL_Listener *pListener, PD_DocumentRange *pDocRange) |
| bool | addListener (PL_Listener *pListener, PL_ListenerId listenerId) |
| 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 |
| 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 |
| PT_DocPosition | getStruxPosition (PL_StruxDocHandle sdh) const |
| PT_DocPosition | getFragPosition (const pf_Frag *pfToFind) const |
| bool | getFragFromPosition (PT_DocPosition docPos, pf_Frag **ppf, PT_BlockOffset *pOffset) const |
| bool | getStruxOfTypeFromPosition (PL_ListenerId listenerId, PT_DocPosition docPos, PTStruxType pts, PL_StruxFmtHandle *psfh) const |
| bool | getStruxOfTypeFromPosition (PT_DocPosition docPos, 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. | |
| bool | getStruxFromPosition (PL_ListenerId listenerId, PT_DocPosition docPos, PL_StruxFmtHandle *psfh) const |
| bool | getFragsFromPositions (PT_DocPosition dPos1, PT_DocPosition dPos2, pf_Frag **ppf1, PT_BlockOffset *pOffset1, pf_Frag **ppf2, PT_BlockOffset *pOffset2) const |
| bool | getStyle (const char *szName, PD_Style **ppStyle) const |
| bool | enumStyles (UT_uint32 k, const char **pszName, const PD_Style **ppStyle) const |
| bool | enumStyles (UT_GenericVector< PD_Style * > *&pStyles) const |
| const UT_GenericStringMap < PD_Style * > & | getAllStyles () const |
| bool | isEndFootnote (pf_Frag *pf) const |
| bool | isFootnote (pf_Frag *pf) const |
| void | clearIfAtFmtMark (PT_DocPosition dpos) |
| UT_uint32 | getFragNumber (pf_Frag *pFrag) const |
| pt_VarSet & | getVarSet (void) |
| pf_Fragments & | getFragments (void) |
| bool | purgeFmtMarks () |
| bool | isDoingTheDo (void) const |
| void | setDoNotTweakPosition (bool b) |
| UT_uint32 | getXID () |
| UT_uint32 | getTopXID () const |
| void | setXIDThreshold (UT_uint32 i) |
| void | fixMissingXIDs () |
| void | setCRNumber (UT_sint32 iCRNumber) |
Static Public Member Functions | |
| static void | s_getLocalisedStyleName (const char *szStyle, UT_UTF8String &utf8) |
Protected Member Functions | |
| bool | _realInsertObject (PT_DocPosition dpos, PTObjectType pto, const gchar **attributes, const gchar **properties) |
| bool | _realInsertObject (PT_DocPosition dpos, PTObjectType pto, const gchar **attributes, const gchar **properties, pf_Frag_Object **ppfo) |
| bool | _realInsertSpan (PT_DocPosition dpos, const UT_UCSChar *p, UT_uint32 length, const gchar **attributes, const gchar **properties, fd_Field *pField=NULL, bool bAddChangeRec=true) |
| bool | _realDeleteSpan (PT_DocPosition dpos1, PT_DocPosition dpos2, PP_AttrProp *p_AttrProp_Before, bool bDeleteTableStruxes, bool bDontGlob=false) |
| void | _realDeleteHdrFtrStrux (pf_Frag_Strux *pfs) |
| bool | _realChangeSpanFmt (PTChangeFmt ptc, PT_DocPosition dpos1, PT_DocPosition dpos2, const gchar **attributes, const gchar **properties, bool bRevisionDelete) |
| bool | _realInsertStrux (PT_DocPosition dpos, PTStruxType pts, const gchar **attributes, const gchar **properties, pf_Frag_Strux **ppfs_ret) |
| bool | _realChangeStruxFmt (PTChangeFmt ptc, PT_DocPosition dpos1, PT_DocPosition dpos2, const gchar **attributes, const gchar **properties, PTStruxType pts, bool bRevisionDelete) |
| bool | _realChangeStruxForLists (PL_StruxDocHandle sdh, const char *pszParentID, bool bRevisionDelete) |
| bool | _realChangeSectionAttsNoUpdate (pf_Frag_Strux *pfStrux, const char *attr, const char *attvalue) |
| pf_Frag * | _findLastStruxOfType (pf_Frag *pfStart, PTStruxType pst, bool bSkipEmbeded) |
| pf_Frag * | _findPrevHyperlink (pf_Frag *pfStart) |
| pf_Frag * | _findNextHyperlink (pf_Frag *pfStart) |
| bool | _tellAndMaybeAddListener (PL_Listener *pListener, PL_ListenerId listenerId, bool bAdd) |
| void | _captureActiveSpan (pf_Frag_Strux_Block *pfsBlock) |
| PT_AttrPropIndex | _chooseIndexAP (pf_Frag *pf, PT_BlockOffset fragOffset) |
| bool | _canCoalesceInsertSpan (PX_ChangeRecord_Span *pcrSpan) const |
| bool | _createStrux (PTStruxType pts, PT_AttrPropIndex indexAP, pf_Frag_Strux **ppfs) |
| void | _insertStrux (pf_Frag *pf, PT_BlockOffset fragOffset, pf_Frag_Strux *pfsNew) |
| bool | _insertObject (pf_Frag *pf, PT_BlockOffset fragOffset, PTObjectType pto, PT_AttrPropIndex indexAP, pf_Frag_Object *&pfo) |
| bool | _createObject (PTObjectType pto, PT_AttrPropIndex indexAP, pf_Frag_Object **ppfo) |
| bool | _insertSpan (pf_Frag *pf, PT_BufIndex bi, PT_BlockOffset fragOffset, UT_uint32 length, PT_AttrPropIndex indexAP, fd_Field *pField=NULL) |
| bool | _StruxIsNotTable (pf_Frag_Strux *pfs) |
| bool | _deleteSpan (pf_Frag_Text *pft, UT_uint32 fragOffset, PT_BufIndex bi, UT_uint32 length, pf_Frag **ppfEnd, UT_uint32 *pfragOffsetEnd) |
| void | _unlinkFrag (pf_Frag *pf, pf_Frag **ppfEnd, UT_uint32 *pfragOffsetEnd) |
| bool | _getStruxFromPosition (PT_DocPosition docPos, pf_Frag_Strux **ppfs, bool bSkipFootnotes=false) const |
| bool | _getStruxOfTypeFromPosition (PT_DocPosition dpos, PTStruxType pts, pf_Frag_Strux **ppfs) const |
| bool | _doTheDo (const PX_ChangeRecord *pcr, bool bUndo) |
| bool | _struxHasContent (pf_Frag_Strux *pfs) const |
| bool | _struxIsEmpty (pf_Frag_Strux *pfs) const |
| bool | _unlinkStrux (pf_Frag_Strux *pfs, pf_Frag **ppfEnd, UT_uint32 *pfragOffsetEnd) |
| bool | _unlinkStrux_Block (pf_Frag_Strux *pfs, pf_Frag **ppfEnd, UT_uint32 *pfragOffsetEnd) |
| bool | _unlinkStrux_Section (pf_Frag_Strux *pfs, pf_Frag **ppfEnd, UT_uint32 *pfragOffsetEnd) |
| bool | _canCoalesceDeleteSpan (PX_ChangeRecord_Span *pcrSpan) const |
| bool | _deleteSpanWithNotify (PT_DocPosition dpos, pf_Frag_Text *pft, UT_uint32 fragOffset, UT_uint32 length, pf_Frag_Strux *pfs, pf_Frag **ppfEnd, UT_uint32 *pfragOffsetEnd, bool bAddChangeRec=true) |
| bool | _isSimpleDeleteSpan (PT_DocPosition dpos1, PT_DocPosition dpos2) const |
| void | _tweakFieldSpan (PT_DocPosition &dpos1, PT_DocPosition &dpos2) const |
| bool | _tweakDeleteSpanOnce (PT_DocPosition &dpos1, PT_DocPosition &dpos2, UT_Stack *pstDelayStruxDelete) const |
| bool | _tweakDeleteSpan (PT_DocPosition &dpos1, PT_DocPosition &dpos2, UT_Stack *pstDelayStruxDelete) const |
| bool | _deleteFormatting (PT_DocPosition dpos1, PT_DocPosition dpos2) |
| bool | _deleteComplexSpan (PT_DocPosition &dpos1, PT_DocPosition &dpos2, UT_Stack *stDelayStruxDelete) |
| bool | _deleteComplexSpan_norec (PT_DocPosition dpos1, PT_DocPosition dpos2) |
| bool | _deleteObject (pf_Frag_Object *pfo, pf_Frag **ppfEnd, UT_uint32 *pfragOffsetEnd) |
| bool | _deleteObjectWithNotify (PT_DocPosition dpos, pf_Frag_Object *pfo, UT_uint32 fragOffset, UT_uint32 length, pf_Frag_Strux *pfs, pf_Frag **ppfEnd, UT_uint32 *pfragOffsetEnd, bool bAddChangeRec=true) |
| bool | _deleteObject_norec (PT_DocPosition dpos, pf_Frag_Object *pfo, UT_uint32 fragOffset, UT_uint32 length, pf_Frag_Strux *pfs, pf_Frag **ppfEnd, UT_uint32 *pfragOffsetEnd) |
| bool | _deleteStruxWithNotify (PT_DocPosition dpos, pf_Frag_Strux *pfs, pf_Frag **ppfEnd, UT_uint32 *pfragOffsetEnd, bool bWithRec=true) |
| bool | _deleteHdrFtrsFromSectionStruxIfPresent (pf_Frag_Strux_Section *pfStruxSec) |
| void | _deleteHdrFtrStruxWithNotify (pf_Frag_Strux *pfFragStruxHdrFtr) |
| bool | _fixHdrFtrReferences (const gchar *pType, const gchar *pId, bool bNotional=false) |
| bool | _fmtChangeStrux (pf_Frag_Strux *pfs, PT_AttrPropIndex indexNewAP) |
| bool | _fmtChangeStruxWithNotify (PTChangeFmt ptc, pf_Frag_Strux *pfs, const gchar **attributes, const gchar **properties, bool bRevisionDelete) |
| bool | _fmtChangeStruxWithNotify (PTChangeFmt ptc, pf_Frag_Strux *pfs, const gchar **attributes, const gchar **properties, bool bDoAll, bool bRevisionDelete) |
| bool | _fmtChangeSpan (pf_Frag_Text *pft, UT_uint32 fragOffset, UT_uint32 length, PT_AttrPropIndex indexNewAP, pf_Frag **ppfNewEnd, UT_uint32 *pfragOffsetNewEnd) |
| bool | _fmtChangeSpanWithNotify (PTChangeFmt ptc, pf_Frag_Text *pft, UT_uint32 fragOffset, PT_DocPosition dpos, UT_uint32 length, const gchar **attributes, const gchar **properties, pf_Frag_Strux *pfs, pf_Frag **ppfNewEnd, UT_uint32 *pfragOffsetNewEnd, bool bRevisionDelete) |
| bool | _fmtChangeObject (pf_Frag_Object *pfo, PT_AttrPropIndex indexNewAP, pf_Frag **ppfNewEnd, UT_uint32 *pfragOffsetNewEnd) |
| bool | _fmtChangeObjectWithNotify (PTChangeFmt ptc, pf_Frag_Object *pfo, UT_uint32 fragOffset, PT_DocPosition dpos, UT_uint32 length, const gchar **attributes, const gchar **properties, pf_Frag_Strux *pfs, pf_Frag **ppfNewEnd, UT_uint32 *pfragOffsetNewEnd, bool bRevisionDelete) |
| bool | _getStruxFromFrag (pf_Frag *pfStart, pf_Frag_Strux **ppfs) const |
| bool | _getStruxFromFragSkip (pf_Frag *pfStart, pf_Frag_Strux **ppfs) const |
| bool | _getNextStruxAfterFragSkip (pf_Frag *pfStart, pf_Frag_Strux **ppfs) |
| bool | _getStruxFromPositionSkip (PT_DocPosition docPos, pf_Frag_Strux **ppfs) const |
| UT_uint32 | _computeBlockOffset (pf_Frag_Strux *pfs, pf_Frag *pfTarget) const |
| bool | _loadBuiltinStyles (void) |
| bool | _createBuiltinStyle (const char *szName, bool bDisplayed, const gchar **attributes) |
| bool | _insertFmtMarkFragWithNotify (PTChangeFmt ptc, PT_DocPosition dpos, const gchar **attributes, const gchar **properties) |
| bool | _insertFmtMarkFragWithNotify (PTChangeFmt ptc, PT_DocPosition dpos, PP_AttrProp *p_AttrProp) |
| bool | _insertFmtMark (pf_Frag *pf, UT_uint32 fragOffset, PT_AttrPropIndex api) |
| bool | _insertFmtMarkAfterBlockWithNotify (pf_Frag_Strux *pfsBlock, PT_DocPosition dpos, PT_AttrPropIndex api) |
| bool | _deleteFmtMarkWithNotify (PT_DocPosition dpos, pf_Frag_FmtMark *pffm, pf_Frag_Strux *pfs, pf_Frag **ppfEnd, UT_uint32 *pfragOffsetEnd) |
| bool | _deleteFmtMark (pf_Frag_FmtMark *pffm, pf_Frag **ppfEnd, UT_uint32 *pfragOffsetEnd) |
| bool | _fmtChangeFmtMarkWithNotify (PTChangeFmt ptc, pf_Frag_FmtMark *pffm, PT_DocPosition dpos, const gchar **attributes, const gchar **properties, pf_Frag_Strux *pfs, pf_Frag **ppfEnd, UT_uint32 *pfragOffsetEnd) |
| bool | _fmtChangeFmtMark (pf_Frag_FmtMark *pffm, PT_AttrPropIndex indexNewAP, pf_Frag **ppfNewEnd, UT_uint32 *pfragOffsetNewEnd) |
| bool | _computeFmtMarkForNewBlock (pf_Frag_Strux *pfsBlock, pf_Frag *pfCurrent, PT_BlockOffset fragOffset, PT_AttrPropIndex *pFmtMarkAP) |
| bool | _getSpanAttrPropHelper (pf_Frag *pf, const PP_AttrProp **ppAP) const |
| bool | _lastUndoIsThisFmtMark (PT_DocPosition dpos) |
| bool | _changePointWithNotify (PT_DocPosition dpos) |
| bool | _makeStrux (PTStruxType pts, const gchar **attributes, pf_Frag_Strux *&pfs) |
| bool | _makeObject (PTObjectType pto, const gchar **attributes, pf_Frag_Object *&pfo) |
| bool | _makeFmtMark (pf_Frag_FmtMark *&pff) |
| bool | _makeFmtMark (pf_Frag_FmtMark *&pff, const gchar **attributes) |
| UT_sint32 | _getNextChangeRecordNumber (void) |
| bool | _translateRevisionAttribute (PP_RevisionAttr &Revisions, PT_AttrPropIndex indexAP, PP_RevisionType eType, const gchar **&ppRevAttrib, const gchar **&ppRevProps, const gchar **ppAttrib, const gchar **ppProps) |
Protected Attributes | |
| PTState | m_pts |
| pt_VarSet | m_varset |
| px_ChangeHistory | m_history |
| pf_Fragments | m_fragments |
| UT_GenericStringMap< PD_Style * > | m_hashStyles |
| struct { | |
| PT_AttrPropIndex m_indexCurrentInlineAP | |
| } | loading |
| PD_Document * | m_pDocument |
| UT_uint32 | m_atomicGlobCount |
| bool | m_bDoingTheDo |
| bool | m_bDoNotTweakPosition |
| UT_uint32 | m_iXID |
| UT_sint32 | m_iCurCRNumber |
Friends | |
| class | PX_ChangeRecord |
| pt_PieceTable::pt_PieceTable | ( | PD_Document * | pDocument | ) |
References loading, PTS_Create, and setPieceTableState().
| pt_PieceTable::~pt_PieceTable | ( | ) |
References m_hashStyles, and UT_GenericStringMap< T >::purgeData().
| void pt_PieceTable::setPieceTableState | ( | PTState | pts | ) |
References _loadBuiltinStyles(), pf_Fragments::appendFrag(), m_fragments, m_pts, m_varset, pf_Frag::PFT_EndOfDoc, PTS_Create, PTS_Editing, PTS_Loading, pt_VarSet::setPieceTableState(), and UT_return_if_fail.
Referenced by PD_Document::_importFile(), PD_Document::createRawDocument(), PD_Document::finishRawCreation(), PD_Document::newDocument(), and pt_PieceTable().
| PTState pt_PieceTable::getPieceTableState | ( | ) | const [inline] |
Referenced by PD_Document::setAttrProp().
| void pt_PieceTable::beginMultiStepGlob | ( | void | ) |
References px_ChangeHistory::addChangeRecord(), getDocument(), m_history, m_pDocument, PD_Document::notifyListeners(), PX_ChangeRecord_Glob::PXF_MultiStepStart, PX_ChangeRecord::PXT_GlobMarker, PX_ChangeRecord::setCRNumber(), PX_ChangeRecord::setDocument(), and UT_return_if_fail.
Referenced by _realChangeSpanFmt(), _realChangeStruxFmt(), _realDeleteSpan(), _realInsertSpan(), _realInsertStrux(), and changeStruxFmt().
| void pt_PieceTable::endMultiStepGlob | ( | void | ) |
References px_ChangeHistory::addChangeRecord(), m_history, m_pDocument, PD_Document::notifyListeners(), PX_ChangeRecord_Glob::PXF_MultiStepEnd, PX_ChangeRecord::PXT_GlobMarker, and UT_return_if_fail.
Referenced by _realChangeSpanFmt(), _realChangeStruxFmt(), _realDeleteSpan(), _realInsertSpan(), _realInsertStrux(), and changeStruxFmt().
| void pt_PieceTable::beginUserAtomicGlob | ( | void | ) |
| void pt_PieceTable::endUserAtomicGlob | ( | void | ) |
| void pt_PieceTable::setClean | ( | void | ) |
| bool pt_PieceTable::isDirty | ( | void | ) | const |
| bool pt_PieceTable::canDo | ( | bool | bUndo | ) | const |
| UT_uint32 pt_PieceTable::undoCount | ( | bool | bUndo | ) | const |
References px_ChangeHistory::getSavePosition(), px_ChangeHistory::getUndoPos(), and m_history.
Referenced by PD_Document::undoCount().
| bool pt_PieceTable::undoCmd | ( | void | ) |
References _doTheDo(), pf_Fragments::areFragsDirty(), pf_Fragments::cleanFrags(), PX_ChangeRecord::getAdjustment(), getDocument(), GETGLOBFLAGS, px_ChangeHistory::getUndo(), m_fragments, m_history, m_pDocument, PX_ChangeRecord::reverse(), PX_ChangeRecord::setAdjustment(), PX_ChangeRecord::setCRNumber(), PX_ChangeRecord::setDocument(), px_ChangeHistory::setScanningUndoGLOB(), PD_Document::updateFields(), and UT_return_val_if_fail.
Referenced by _realInsertSpan(), clearIfAtFmtMark(), and PD_Document::undoCmd().
| bool pt_PieceTable::redoCmd | ( | void | ) |
References _doTheDo(), pf_Fragments::areFragsDirty(), pf_Fragments::cleanFrags(), GETGLOBFLAGS, px_ChangeHistory::getRedo(), GETREVGLOBFLAGS, m_fragments, m_history, PX_ChangeRecord::setCRNumber(), px_ChangeHistory::setScanningUndoGLOB(), and UT_return_val_if_fail.
Referenced by PD_Document::redoCmd().
| bool pt_PieceTable::getNthUndo | ( | PX_ChangeRecord ** | ppcr, | |
| UT_uint32 | undoNdx | |||
| ) | const [inline] |
| bool pt_PieceTable::getUndo | ( | PX_ChangeRecord ** | ppcr, | |
| bool | bStatic = false | |||
| ) | const [inline] |
Referenced by Stateful_ViewListener::notify().
| bool pt_PieceTable::getRedo | ( | PX_ChangeRecord ** | ppcr | ) | const [inline] |
| void pt_PieceTable::clearUndo | ( | ) | [inline] |
Referenced by PD_Document::_clearUndo().
| void pt_PieceTable::s_getLocalisedStyleName | ( | const char * | szStyle, | |
| UT_UTF8String & | utf8 | |||
| ) | [static] |
References XAP_App::getApp(), XAP_App::getStringSet(), XAP_StringSet::getValueUTF8(), and ST_LOCALISED_STYLES::pStyle.
Referenced by AP_Win32Dialog_FormatTOC_Layout::_fillGUI(), AP_Win32Dialog_FormatTOC_General::_fillGUI(), AP_Win32Dialog_Stylist::_fillTree(), AP_Win32Dialog_Styles::_onInitDialog(), AP_Win32Dialog_Styles::_populateCList(), EV_Win32Toolbar::_refreshItem(), AP_Win32Dialog_FormatTOC_Layout::loadCtrlsValuesForDetailsLevel(), EV_Win32Toolbar::repopulateStyles(), AP_Win32Dialog_FormatTOC::setMainLevel(), and AP_Win32Dialog_FormatTOC::setStyle().
| bool pt_PieceTable::_realInsertObject | ( | PT_DocPosition | dpos, | |
| PTObjectType | pto, | |||
| const gchar ** | attributes, | |||
| const gchar ** | properties | |||
| ) | [protected] |
References _computeBlockOffset(), _getStruxFromFrag(), _getStruxFromFragSkip(), _insertObject(), px_ChangeHistory::addChangeRecord(), UT_GenericVector< T >::addItem(), UT_GenericVector< T >::clear(), UT_UTF8String::clear(), pf_Frag::getField(), getFragFromPosition(), pf_Frag::getXID(), isEndFootnote(), m_history, m_pDocument, m_pts, m_varset, PD_Document::notifyListeners(), PTS_Editing, PX_ChangeRecord::PXT_InsertObject, UT_UTF8String::size(), pt_VarSet::storeAP(), UT_ASSERT_HARMLESS, UT_DEBUGMSG, UT_return_val_if_fail, and UT_UTF8String::utf8_str().
Referenced by insertObject().
| bool pt_PieceTable::_realInsertObject | ( | PT_DocPosition | dpos, | |
| PTObjectType | pto, | |||
| const gchar ** | attributes, | |||
| const gchar ** | properties, | |||
| pf_Frag_Object ** | ppfo | |||
| ) | [protected] |
References _chooseIndexAP(), _computeBlockOffset(), _getStruxFromFrag(), _getStruxFromFragSkip(), _insertObject(), px_ChangeHistory::addChangeRecord(), pf_Frag::getField(), getFragFromPosition(), pf_Frag::getXID(), isEndFootnote(), m_history, m_pDocument, m_pts, m_varset, pt_VarSet::mergeAP(), PD_Document::notifyListeners(), PTC_AddFmt, PTO_Embed, PTO_Math, PTS_Editing, PX_ChangeRecord::PXT_InsertObject, UT_ASSERT_HARMLESS, and UT_return_val_if_fail.
| bool pt_PieceTable::_realInsertSpan | ( | PT_DocPosition | dpos, | |
| const UT_UCSChar * | p, | |||
| UT_uint32 | length, | |||
| const gchar ** | attributes, | |||
| const gchar ** | properties, | |||
| fd_Field * | pField = NULL, |
|||
| bool | bAddChangeRec = true | |||
| ) | [protected] |
References _canCoalesceInsertSpan(), _chooseIndexAP(), _computeBlockOffset(), _deleteFmtMarkWithNotify(), _getStruxFromFrag(), _getStruxFromFragSkip(), _insertSpan(), _lastUndoIsThisFmtMark(), px_ChangeHistory::addChangeRecord(), pt_VarSet::addIfUniqueAP(), pt_VarSet::appendBuf(), PP_AttrProp::areAnyOfTheseNamesPresent(), beginMultiStepGlob(), PP_AttrProp::cloneWithElimination(), px_ChangeHistory::coalesceHistory(), endMultiStepGlob(), gchar, getAttrProp(), getDocument(), pf_Frag::getField(), getFragFromPosition(), pf_Frag::getIndexAP(), pf_Frag::getLength(), pf_Frag::getPos(), pf_Frag::getPrev(), pf_Frag::getType(), PD_Document::isCoalescingMasked(), isEndFootnote(), m_history, m_pDocument, m_pts, m_varset, PP_AttrProp::markReadOnly(), pt_VarSet::mergeAP(), PD_Document::notifyListeners(), pf_Frag::PFT_FmtMark, pf_Frag::PFT_Text, PTC_AddFmt, PTS_Editing, PTX_EndFrame, PX_ChangeRecord::PXT_InsertSpan, PX_ChangeRecord::setDocument(), undoCmd(), UT_ASSERT_HARMLESS, UT_return_val_if_fail, and xxx_UT_DEBUGMSG.
Referenced by insertSpan().
| bool pt_PieceTable::_realDeleteSpan | ( | PT_DocPosition | dpos1, | |
| PT_DocPosition | dpos2, | |||
| PP_AttrProp * | p_AttrProp_Before, | |||
| bool | bDeleteTableStruxes, | |||
| bool | bDontGlob = false | |||
| ) | [protected] |
References _changePointWithNotify(), _deleteComplexSpan(), _deleteFormatting(), _deleteStruxWithNotify(), _insertFmtMarkFragWithNotify(), _isSimpleDeleteSpan(), _tweakDeleteSpan(), pf_Fragments::areFragsDirty(), beginMultiStepGlob(), pf_Fragments::cleanFrags(), endMultiStepGlob(), getAttrProp(), UT_Stack::getDepth(), getFragFromPosition(), pf_Frag::getLength(), pf_Frag::getNext(), pf_Frag::getPos(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), isEndFootnote(), m_fragments, m_pts, pf_Frag::PFT_EndOfDoc, pf_Frag::PFT_Strux, pf_Frag::PFT_Text, UT_Stack::pop(), PTC_AddFmt, PTS_Editing, PTX_Block, PP_AttrProp::setAttribute(), UT_return_val_if_fail, and xxx_UT_DEBUGMSG.
Referenced by deleteSpan().
| void pt_PieceTable::_realDeleteHdrFtrStrux | ( | pf_Frag_Strux * | pfs | ) | [protected] |
| bool pt_PieceTable::_realChangeSpanFmt | ( | PTChangeFmt | ptc, | |
| PT_DocPosition | dpos1, | |||
| PT_DocPosition | dpos2, | |||
| const gchar ** | attributes, | |||
| const gchar ** | properties, | |||
| bool | bRevisionDelete | |||
| ) | [protected] |
References _fmtChangeFmtMarkWithNotify(), _fmtChangeObjectWithNotify(), _fmtChangeSpanWithNotify(), _getStruxFromFragSkip(), _getStruxFromPosition(), _insertFmtMarkFragWithNotify(), _tweakFieldSpan(), beginMultiStepGlob(), endMultiStepGlob(), pf_Fragments::findFirstFragBeforePos(), FREEP, gchar, PD_Style::getAllProperties(), getDocument(), getFragFromPosition(), getFragsFromPositions(), UT_GenericVector< T >::getItemCount(), pf_Frag::getLength(), pf_Frag::getNext(), UT_GenericVector< T >::getNthItem(), px_ChangeHistory::getSavePosition(), PD_Document::getStyle(), pf_Frag::getType(), px_ChangeHistory::getUndo(), px_ChangeHistory::getUndoPos(), isEndFootnote(), m_fragments, m_history, m_pts, pf_Frag::PFT_EndOfDoc, pf_Frag::PFT_FmtMark, pf_Frag::PFT_Object, pf_Frag::PFT_Strux, pf_Frag::PFT_Text, PT_STYLE_ATTRIBUTE_NAME, PTC_AddStyle, PTS_Editing, PX_ChangeRecord::setPersistance(), px_ChangeHistory::setSavePosition(), UT_ASSERT_HARMLESS, UT_calloc(), UT_DEBUGMSG, UT_getAttribute(), UT_MIN, and UT_return_val_if_fail.
Referenced by changeSpanFmt(), and deleteSpan().
| bool pt_PieceTable::_realInsertStrux | ( | PT_DocPosition | dpos, | |
| PTStruxType | pts, | |||
| const gchar ** | attributes, | |||
| const gchar ** | properties, | |||
| pf_Frag_Strux ** | ppfs_ret | |||
| ) | [protected] |
References _computeFmtMarkForNewBlock(), _createStrux(), _deleteObjectWithNotify(), _findNextHyperlink(), _findPrevHyperlink(), _getStruxFromFragSkip(), _getStruxFromPosition(), _insertFmtMarkAfterBlockWithNotify(), _insertStrux(), px_ChangeHistory::addChangeRecord(), beginMultiStepGlob(), pf_Fragments::cleanFrags(), endMultiStepGlob(), getDocument(), getFragFromPosition(), pf_Frag::getIndexAP(), pf_Frag::getLength(), pf_Frag::getNext(), pf_Frag::getPos(), pf_Frag::getPrev(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), pf_Frag::getXID(), getXID(), insertObject(), isEndFootnote(), m_fragments, m_history, m_pDocument, m_pts, m_varset, pt_VarSet::mergeAP(), PD_Document::notifyListeners(), pf_Frag::PFT_FmtMark, pf_Frag::PFT_Strux, pf_Frag::PFT_Text, PTC_AddFmt, PTO_Hyperlink, PTS_Editing, PTX_Block, PTX_EndAnnotation, PTX_EndCell, PTX_EndTOC, PTX_SectionAnnotation, PTX_SectionFrame, PTX_SectionTOC, PX_ChangeRecord::PXT_InsertStrux, pf_Frag::setXID(), UT_ASSERT_HARMLESS, UT_return_val_if_fail, and UT_UNUSED.
Referenced by insertStrux().
| bool pt_PieceTable::_realChangeStruxFmt | ( | PTChangeFmt | ptc, | |
| PT_DocPosition | dpos1, | |||
| PT_DocPosition | dpos2, | |||
| const gchar ** | attributes, | |||
| const gchar ** | properties, | |||
| PTStruxType | pts, | |||
| bool | bRevisionDelete | |||
| ) | [protected] |
References _fmtChangeFmtMarkWithNotify(), _fmtChangeObjectWithNotify(), _fmtChangeSpanWithNotify(), _fmtChangeStruxWithNotify(), _getStruxFromFragSkip(), _getStruxOfTypeFromPosition(), beginMultiStepGlob(), endMultiStepGlob(), FREEP, gchar, PD_Style::getAllProperties(), getDocument(), getFragPosition(), UT_GenericVector< T >::getItemCount(), pf_Frag::getLength(), pf_Frag::getNext(), UT_GenericVector< T >::getNthItem(), pf_Frag::getPos(), pf_Frag_Strux::getStruxType(), PD_Document::getStyle(), pf_Frag::getType(), isEndFootnote(), m_pts, pf_Frag::PFT_EndOfDoc, pf_Frag::PFT_FmtMark, pf_Frag::PFT_Object, pf_Frag::PFT_Strux, pf_Frag::PFT_Text, PT_STYLE_ATTRIBUTE_NAME, PTC_AddStyle, PTC_RemoveFmt, PTS_Editing, PTX_Block, PTX_StruxDummy, UT_ASSERT_HARMLESS, UT_calloc(), UT_DEBUGMSG, UT_getAttribute(), and UT_return_val_if_fail.
Referenced by changeStruxFmt(), and deleteSpan().
| bool pt_PieceTable::_realChangeStruxForLists | ( | PL_StruxDocHandle | sdh, | |
| const char * | pszParentID, | |||
| bool | bRevisionDelete | |||
| ) | [protected] |
This Method implements the change strux we need to reparent lists.
References _fmtChangeStrux(), px_ChangeHistory::addChangeRecord(), getDocument(), getFragPosition(), pf_Frag::getIndexAP(), pf_Frag::getLength(), pf_Frag_Strux::getStruxType(), m_history, m_varset, pt_VarSet::mergeAP(), PT_PARENTID_ATTRIBUTE_NAME, PTC_AddFmt, PX_ChangeRecord::PXT_ChangeStrux, UT_ASSERT_HARMLESS, UT_return_val_if_fail, and xxx_UT_DEBUGMSG.
Referenced by changeStruxForLists().
| bool pt_PieceTable::_realChangeSectionAttsNoUpdate | ( | pf_Frag_Strux * | pfs, | |
| const char * | atts, | |||
| const char * | attsValue | |||
| ) | [protected] |
This Method implements the change strux we need to reparent lists.
References _fmtChangeStrux(), getDocument(), pf_Frag::getIndexAP(), m_varset, pt_VarSet::mergeAP(), PTC_AddFmt, UT_ASSERT_HARMLESS, UT_return_val_if_fail, and xxx_UT_DEBUGMSG.
Referenced by changeSectionAttsNoUpdate().
| bool pt_PieceTable::insertObject | ( | PT_DocPosition | dpos, | |
| PTObjectType | pto, | |||
| const gchar ** | attributes, | |||
| const gchar ** | properties | |||
| ) |
References _realInsertObject(), _translateRevisionAttribute(), gchar, getFragFromPosition(), pf_Frag::getIndexAP(), pf_Frag::getPrev(), pf_Frag::getType(), AD_Document::isMarkRevisions(), m_pDocument, pf_Frag::PFT_EndOfDoc, PP_REVISION_ADDITION, and UT_return_val_if_fail.
Referenced by _realInsertStrux(), and PD_Document::insertObject().
| bool pt_PieceTable::insertObject | ( | PT_DocPosition | dpos, | |
| PTObjectType | pto, | |||
| const gchar ** | attributes, | |||
| const gchar ** | properties, | |||
| pf_Frag_Object ** | ppfo | |||
| ) |
| bool pt_PieceTable::insertSpan | ( | PT_DocPosition | dpos, | |
| const UT_UCSChar * | p, | |||
| UT_uint32 | length, | |||
| fd_Field * | pField = NULL, |
|||
| bool | bAddChangeRec = true | |||
| ) |
References _getSpanAttrPropHelper(), _realInsertSpan(), _translateRevisionAttribute(), gchar, PP_AttrProp::getAttribute(), getFragFromPosition(), pf_Frag::getIndexAP(), pf_Frag::getPrev(), pf_Frag::getType(), AD_Document::isMarkRevisions(), m_pDocument, name, pf_Frag::PFT_EndOfDoc, PP_REVISION_ADDITION, PT_STYLE_ATTRIBUTE_NAME, UT_DEBUGMSG, and UT_return_val_if_fail.
Referenced by PD_Document::insertSpan(), and fd_Field::update().
| bool pt_PieceTable::deleteSpan | ( | PT_DocPosition | dpos1, | |
| PT_DocPosition | dpos2, | |||
| PP_AttrProp * | p_AttrProp_Before, | |||
| UT_uint32 & | iRealDeleteCount, | |||
| bool | bDontGlob = false | |||
| ) |
Referenced by _deleteHdrFtrStruxWithNotify(), deleteHdrFtrStrux(), and deleteSpanWithTable().
| bool pt_PieceTable::deleteSpan | ( | PT_DocPosition | dpos1, | |
| PT_DocPosition | dpos2, | |||
| PP_AttrProp * | p_AttrProp_Before, | |||
| UT_uint32 & | iRealDeleteCount, | |||
| bool | bDeleteTableStruxes, | |||
| bool | bDontGlob | |||
| ) |
References _fixHdrFtrReferences(), _realChangeSpanFmt(), _realChangeStruxFmt(), _realDeleteHdrFtrStrux(), _realDeleteSpan(), PP_RevisionAttr::addRevision(), pf_Frag_Strux::clearAllFmtHandles(), gchar, PP_AttrProp::getAttribute(), getAttrProp(), getFragments(), getFragsFromPositions(), PP_RevisionAttr::getGreatestLesserOrEqualRevision(), PP_Revision::getId(), pf_Frag::getIndexAP(), pf_Fragments::getLast(), pf_Frag::getLength(), pf_Frag::getNext(), pf_Frag::getPos(), AD_Document::getRevisionId(), pf_Frag_Strux::getStruxType(), PP_Revision::getType(), pf_Frag::getType(), PP_RevisionAttr::getXMLstring(), AD_Document::isMarkRevisions(), PD_Document::isVDNDinProgress(), m_pDocument, name, pf_FRAG_STRUX_BLOCK_LENGTH, pf_FRAG_STRUX_SECTION_LENGTH, pf_Frag::PFT_EndOfDoc, pf_Frag::PFT_FmtMark, pf_Frag::PFT_Object, pf_Frag::PFT_Strux, pf_Frag::PFT_Text, PP_REVISION_ADDITION, PP_REVISION_ADDITION_AND_FMT, PP_REVISION_DELETION, PTC_AddFmt, PTX_Block, PTX_EndAnnotation, PTX_EndCell, PTX_EndEndnote, PTX_EndFootnote, PTX_EndFrame, PTX_EndTable, PTX_EndTOC, PTX_Section, PTX_SectionAnnotation, PTX_SectionCell, PTX_SectionEndnote, PTX_SectionFootnote, PTX_SectionFrame, PTX_SectionHdrFtr, PTX_SectionTable, PTX_SectionTOC, PTX_StruxDummy, UT_ASSERT, UT_ASSERT_HARMLESS, UT_MIN, and UT_NOT_IMPLEMENTED.
| bool pt_PieceTable::createAndSendCR | ( | PT_DocPosition | dpos, | |
| UT_sint32 | iType, | |||
| bool | bSave, | |||
| UT_Byte | iGlob | |||
| ) |
References px_ChangeHistory::addChangeRecord(), m_history, m_pDocument, PD_Document::notifyListeners(), PX_ChangeRecord, PX_ChangeRecord::PXT_ChangeFmtMark, PX_ChangeRecord::PXT_ChangeObject, PX_ChangeRecord::PXT_ChangePoint, PX_ChangeRecord::PXT_ChangeSpan, PX_ChangeRecord::PXT_ChangeStrux, PX_ChangeRecord::PXT_DeleteFmtMark, 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_StopList, PX_ChangeRecord::PXT_UpdateField, PX_ChangeRecord::PXT_UpdateLayout, UT_ASSERT, UT_DEBUGMSG, and UT_SHOULD_NOT_HAPPEN.
Referenced by PD_Document::createAndSendCR().
| bool pt_PieceTable::createAndSendDocPropCR | ( | const gchar ** | pAtts, | |
| const gchar ** | pProps | |||
| ) |
References pt_VarSet::addIfUniqueAP(), pf_Fragments::getFirst(), getFragments(), m_pDocument, m_varset, PD_Document::notifyListeners(), PX_ChangeRecord, PX_ChangeRecord::PXT_ChangeDocProp, PP_AttrProp::setAttributes(), and PP_AttrProp::setProperties().
Referenced by PD_Document::createAndSendDocPropCR().
| bool pt_PieceTable::deleteSpanWithTable | ( | PT_DocPosition | dpos1, | |
| PT_DocPosition | dpos2, | |||
| PP_AttrProp * | p_AttrProp_Before, | |||
| UT_uint32 & | iRealDeleteCount, | |||
| bool | bDeleteTableStrux | |||
| ) |
| bool pt_PieceTable::deleteFieldFrag | ( | pf_Frag * | pf | ) |
References _deleteComplexSpan_norec(), getFragPosition(), pf_Frag::getLength(), m_pts, PTS_Editing, and UT_return_val_if_fail.
Referenced by fd_Field::_deleteSpan().
| void pt_PieceTable::deleteHdrFtrStrux | ( | pf_Frag_Strux * | pfs | ) |
References _fixHdrFtrReferences(), _realDeleteHdrFtrStrux(), deleteSpan(), gchar, PP_AttrProp::getAttribute(), getAttrProp(), getFragPosition(), pf_Frag::getNext(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), AD_Document::isMarkRevisions(), m_pDocument, pf_Frag::PFT_EndOfDoc, pf_Frag::PFT_Strux, PTX_SectionHdrFtr, and UT_return_if_fail.
Referenced by PD_Document::deleteHdrFtrStrux().
| bool pt_PieceTable::changeSpanFmt | ( | PTChangeFmt | ptc, | |
| PT_DocPosition | dpos1, | |||
| PT_DocPosition | dpos2, | |||
| const gchar ** | attributes, | |||
| const gchar ** | properties | |||
| ) |
References _getSpanAttrPropHelper(), _realChangeSpanFmt(), PP_RevisionAttr::addRevision(), gchar, PP_AttrProp::getAttribute(), getFragsFromPositions(), pf_Frag::getLength(), AD_Document::getRevisionId(), pf_Frag::getType(), PP_RevisionAttr::getXMLstring(), AD_Document::isMarkRevisions(), m_pDocument, name, pf_Frag::PFT_EndOfDoc, PP_REVISION_FMT_CHANGE, PTC_AddFmt, PTC_RemoveFmt, UT_MIN, and UT_setPropsToNothing().
Referenced by PD_Document::changeSpanFmt().
| bool pt_PieceTable::insertStrux | ( | PT_DocPosition | dpos, | |
| PTStruxType | pts, | |||
| pf_Frag_Strux ** | ppfs_ret = 0 | |||
| ) |
References _getStruxFromFragSkip(), _getStruxFromPosition(), _realInsertStrux(), _translateRevisionAttribute(), gchar, pf_Frag::getIndexAP(), pf_Frag_Strux::getStruxType(), isEndFootnote(), AD_Document::isMarkRevisions(), m_pDocument, PP_REVISION_ADDITION, and UT_return_val_if_fail.
Referenced by PD_Document::insertStrux().
| bool pt_PieceTable::insertStrux | ( | PT_DocPosition | dpos, | |
| PTStruxType | pts, | |||
| const gchar ** | attributes, | |||
| const gchar ** | properties, | |||
| pf_Frag_Strux ** | ppfs_ret = 0 | |||
| ) |
| bool pt_PieceTable::changeStruxFmt | ( | PTChangeFmt | ptc, | |
| PT_DocPosition | dpos1, | |||
| PT_DocPosition | dpos2, | |||
| const gchar ** | attributes, | |||
| const gchar ** | properties, | |||
| PTStruxType | pts = PTX_StruxDummy | |||
| ) |
References _fmtChangeStruxWithNotify(), _getStruxOfTypeFromPosition(), _realChangeStruxFmt(), PP_RevisionAttr::addRevision(), beginMultiStepGlob(), endMultiStepGlob(), gchar, PP_AttrProp::getAttribute(), getAttrProp(), pf_Frag::getIndexAP(), pf_Frag::getNext(), AD_Document::getRevisionId(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), PP_RevisionAttr::getXMLstring(), AD_Document::isMarkRevisions(), m_pDocument, name, pf_Frag::PFT_EndOfDoc, pf_Frag::PFT_FmtMark, pf_Frag::PFT_Object, pf_Frag::PFT_Strux, pf_Frag::PFT_Text, PP_REVISION_FMT_CHANGE, PTC_AddFmt, PTC_RemoveFmt, PTX_Block, PTX_StruxDummy, UT_ASSERT_HARMLESS, UT_return_val_if_fail, and UT_setPropsToValue().
Referenced by PD_Document::changeStruxFmt().
| bool pt_PieceTable::changeStruxFmtNoUndo | ( | PTChangeFmt | ptc, | |
| pf_Frag_Strux * | pfs, | |||
| const gchar ** | attributes, | |||
| const gchar ** | properties | |||
| ) |
This method sends out change records to the layouts but it does put revision marks on them nor are they saved in the undo stack. It's used by the strux resizer for the hdrftr and maybe later for the frame.
References _fmtChangeStrux(), getDocument(), getFragPosition(), pf_Frag::getIndexAP(), pf_Frag::getLength(), pf_Frag_Strux::getStruxType(), m_pDocument, m_varset, pt_VarSet::mergeAP(), PD_Document::notifyListeners(), PX_ChangeRecord::PXT_ChangeStrux, UT_ASSERT_HARMLESS, UT_return_val_if_fail, and xxx_UT_DEBUGMSG.
Referenced by PD_Document::changeStruxFmtNoUndo().
| bool pt_PieceTable::changeStruxFormatNoUpdate | ( | PTChangeFmt | ptc, | |
| pf_Frag_Strux * | pfs, | |||
| const gchar ** | attributes | |||
| ) |
References _fmtChangeStrux(), getDocument(), pf_Frag::getIndexAP(), m_varset, pt_VarSet::mergeAP(), UT_ASSERT_HARMLESS, UT_return_val_if_fail, and xxx_UT_DEBUGMSG.
Referenced by PD_Document::_pruneSectionAPI(), and PD_Document::changeStruxFormatNoUpdate().
| bool pt_PieceTable::changeObjectFormatNoUpdate | ( | PTChangeFmt | ptc, | |
| pf_Frag_Object * | pfo, | |||
| const gchar ** | attributes, | |||
| const gchar ** | properties | |||
| ) |
References getDocument(), pf_Frag::getIndexAP(), m_varset, pt_VarSet::mergeAP(), pf_Frag::setIndexAP(), UT_ASSERT_HARMLESS, and UT_UNUSED.
Referenced by PD_Document::changeObjectFormatNoUpdate().
| bool pt_PieceTable::changeStruxForLists | ( | PL_StruxDocHandle | sdh, | |
| const char * | pszParentID | |||
| ) |
| bool pt_PieceTable::changeSectionAttsNoUpdate | ( | pf_Frag_Strux * | pfStrux, | |
| const char * | attr, | |||
| const char * | attvalue | |||
| ) |
| bool pt_PieceTable::deleteStruxNoUpdate | ( | PL_StruxDocHandle | sdh | ) |
Use this for deleting unneeded strux during doc import. Particularly useful for importing RTF.
References getFragments(), pf_Frag::getNext(), pf_Frag::getType(), pf_Frag::PFT_FmtMark, pf_Fragments::unlinkFrag(), and UT_DEBUGMSG.
Referenced by PD_Document::deleteStrux(), and PD_Document::deleteStruxNoUpdate().
| bool pt_PieceTable::deleteFragNoUpdate | ( | pf_Frag * | pf | ) |
Use this for deleting unused sections of the document during import. In Particular use this to remove unused headers/footers.
References getFragments(), pf_Fragments::unlinkFrag(), and UT_DEBUGMSG.
Referenced by PD_Document::_checkAndFixTable(), PD_Document::_removeHdrFtr(), and PD_Document::deleteFragNoUpdate().
| bool pt_PieceTable::deleteStruxWithNotify | ( | PL_StruxDocHandle | sdh | ) |
Delete the single strux given in sdh and create and record a change record.
References _deleteStruxWithNotify(), and pf_Frag::getPos().
Referenced by PD_Document::deleteStrux().
| bool pt_PieceTable::insertStruxNoUpdateBefore | ( | PL_StruxDocHandle | sdh, | |
| PTStruxType | pts, | |||
| const gchar ** | attributes | |||
| ) |
This method inserts a strux of type pts immediately before the sdh given. Attributes of the strux can be optionally passed. This method does not throw a change record and should only be used under exceptional circumstances to repair the piecetable during loading. It was necessary to import RTF tables.
References _createStrux(), getDocument(), pf_Frag::getIndexAP(), pf_Frag::getPrev(), pf_Fragments::insertFrag(), m_fragments, m_pDocument, m_varset, pt_VarSet::mergeAP(), PD_Document::miniDump(), PTC_AddFmt, UT_ASSERT_HARMLESS, UT_DEBUGMSG, UT_return_val_if_fail, and UT_UNUSED.
Referenced by PD_Document::insertStruxNoUpdateBefore().
| bool pt_PieceTable::changeLastStruxFmtNoUndo | ( | PT_DocPosition | dpos, | |
| PTStruxType | pts, | |||
| const gchar ** | attrs, | |||
| const gchar ** | props, | |||
| bool | bSkipEmbededSections | |||
| ) |
References _findLastStruxOfType(), pt_VarSet::addIfUniqueAP(), PP_AttrProp::cloneWithReplacements(), pf_Fragments::findFirstFragBeforePos(), getAttrProp(), pf_Fragments::getFirst(), m_fragments, m_varset, PP_AttrProp::markReadOnly(), and UT_return_val_if_fail.
Referenced by changeLastStruxFmtNoUndo(), and PD_Document::changeLastStruxFmtNoUndo().
| bool pt_PieceTable::changeLastStruxFmtNoUndo | ( | PT_DocPosition | dpos, | |
| PTStruxType | pts, | |||
| const gchar ** | attrs, | |||
| const gchar * | props, | |||
| bool | bSkipEmbededSections | |||
| ) |
References changeLastStruxFmtNoUndo(), FREEP, gchar, UT_return_val_if_fail, and UT_splitPropsToArray().
| bool pt_PieceTable::insertFmtMark | ( | PTChangeFmt | ptc, | |
| PT_DocPosition | dpos, | |||
| PP_AttrProp * | p_AttrProp | |||
| ) | [inline] |
Referenced by PD_Document::insertFmtMark(), and PD_Document::insertSpan().
| bool pt_PieceTable::deleteFmtMark | ( | PT_DocPosition | dpos | ) |
Delete The first FmtMark found at the position given.
References _deleteFmtMarkWithNotify(), _getStruxFromFragSkip(), getFragFromPosition(), pf_Frag::getNext(), pf_Frag::getPrev(), pf_Frag::getType(), and pf_Frag::PFT_FmtMark.
Referenced by PD_Document::deleteFmtMark().
| PD_Document * pt_PieceTable::getDocument | ( | void | ) |
References m_pDocument.
Referenced by _fmtChangeFmtMarkWithNotify(), _fmtChangeObjectWithNotify(), _fmtChangeSpanWithNotify(), _fmtChangeStruxWithNotify(), _insertFmtMarkFragWithNotify(), pf_Frag_Text::_isContentEqual(), _realChangeSectionAttsNoUpdate(), _realChangeSpanFmt(), _realChangeStruxFmt(), _realChangeStruxForLists(), _realInsertSpan(), _realInsertStrux(), fd_Field::_throwChangeRec(), beginMultiStepGlob(), changeObjectFormatNoUpdate(), changeStruxFmtNoUndo(), changeStruxFormatNoUpdate(), px_ChangeHistory::getDoc(), insertStruxNoUpdateBefore(), TFTEST_MAIN(), and undoCmd().
| bool pt_PieceTable::appendStrux | ( | PTStruxType | pts, | |
| const gchar ** | attributes, | |||
| pf_Frag_Strux ** | ppfs_ret = 0 | |||
| ) |
References _makeStrux(), pf_Fragments::appendFrag(), gchar, pf_Fragments::getLast(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), insertFmtMarkBeforeFrag(), m_fragments, pf_Frag::PFT_Strux, PT_XID_ATTRIBUTE_NAME, PTX_Block, pf_Frag::setXID(), and UT_getAttribute().
Referenced by PD_Document::appendStrux().
| bool pt_PieceTable::appendStruxFmt | ( | pf_Frag_Strux * | pfs, | |
| const gchar ** | attributes | |||
| ) |
changes formatting of a strux while loading document
References pt_VarSet::addIfUniqueAP(), PP_AttrProp::cloneWithReplacements(), getAttrProp(), pf_Fragments::getFirst(), pf_Frag::getIndexAP(), m_fragments, m_pts, m_varset, PP_AttrProp::markReadOnly(), PTS_Loading, pf_Frag::setIndexAP(), and UT_return_val_if_fail.
Referenced by PD_Document::appendStruxFmt().
| bool pt_PieceTable::appendLastStruxFmt | ( | PTStruxType | pst, | |
| const gchar ** | attributes, | |||
| const gchar ** | props, | |||
| bool | bSkipEmbededSections | |||
| ) |
Changes formating of the last strux of type pts bSkipEmbededSections indicates whether when an end of an embeded section is encountered, the entire section is to be skipped over, for example if the end of the document looks like
<footnote>
</footnote>
when searching for
if bSkipEmbededSections == true the paragraph before <footnote> will be modified
References _findLastStruxOfType(), pt_VarSet::addIfUniqueAP(), PP_AttrProp::cloneWithReplacements(), getAttrProp(), pf_Fragments::getFirst(), pf_Frag::getIndexAP(), pf_Fragments::getLast(), m_fragments, m_pts, m_varset, PP_AttrProp::markReadOnly(), PTS_Loading, pf_Frag::setIndexAP(), and UT_return_val_if_fail.
Referenced by appendLastStruxFmt(), and PD_Document::appendLastStruxFmt().
| bool pt_PieceTable::appendLastStruxFmt | ( | PTStruxType | pst, | |
| const gchar ** | attributes, | |||
| const gchar * | props, | |||
| bool | bSkipEmbededSections | |||
| ) |
As above, but props represented by a single XML string
References appendLastStruxFmt(), FREEP, gchar, UT_return_val_if_fail, and UT_splitPropsToArray().
| bool pt_PieceTable::appendFmt | ( | const gchar ** | attributes | ) |
References pf_Fragments::getFirst(), loading, m_fragments, m_pts, m_varset, PTS_Loading, pt_VarSet::storeAP(), and UT_return_val_if_fail.
Referenced by PD_Document::appendFmt(), PD_Document::appendSpan(), and PD_Document::insertSpanBeforeFrag().
| bool pt_PieceTable::appendFmt | ( | const UT_GenericVector< const gchar * > * | pVecAttributes | ) |
References pf_Fragments::getFirst(), loading, m_fragments, m_pts, m_varset, PTS_Loading, pt_VarSet::storeAP(), and UT_return_val_if_fail.
| bool pt_PieceTable::appendSpan | ( | const UT_UCSChar * | p, | |
| UT_uint32 | length | |||
| ) |
References pt_VarSet::appendBuf(), pf_Fragments::appendFrag(), pf_Frag_Text::changeLength(), pf_Frag_Text::getBufIndex(), pf_Fragments::getFirst(), pf_Frag::getIndexAP(), pf_Fragments::getLast(), pf_Frag::getLength(), pf_Frag::getType(), pt_VarSet::isContiguous(), loading, m_fragments, m_pts, m_varset, pf_Frag::PFT_Text, PTS_Loading, and UT_return_val_if_fail.
Referenced by PD_Document::appendSpan().
| bool pt_PieceTable::appendObject | ( | PTObjectType | pto, | |
| const gchar ** | attributes | |||
| ) |
References _makeObject(), pf_Fragments::appendFrag(), gchar, m_fragments, PT_XID_ATTRIBUTE_NAME, pf_Frag::setXID(), and UT_getAttribute().
Referenced by PD_Document::appendObject().
| bool pt_PieceTable::appendFmtMark | ( | void | ) |
References _makeFmtMark(), pf_Fragments::appendFrag(), and m_fragments.
Referenced by PD_Document::appendFmtMark().
| bool pt_PieceTable::appendStyle | ( | const gchar ** | attributes | ) |
References gchar, getStyle(), UT_GenericStringMap< T >::insert(), PD_Style::isUserDefined(), m_hashStyles, m_varset, PT_NAME_ATTRIBUTE_NAME, PD_Style::setIndexAP(), pt_VarSet::storeAP(), szName, UT_ASSERT_HARMLESS, UT_DEBUGMSG, UT_getAttribute(), UT_return_val_if_fail, and UT_SHOULD_NOT_HAPPEN.
Referenced by PD_Document::appendStyle().
| bool pt_PieceTable::insertStruxBeforeFrag | ( | pf_Frag * | pF, | |
| PTStruxType | pts, | |||
| const gchar ** | attributes, | |||
| pf_Frag_Strux ** | ppfs_ret = 0 | |||
| ) |
References _makeStrux(), gchar, pf_Fragments::insertFragBefore(), m_fragments, PT_XID_ATTRIBUTE_NAME, pf_Frag::setXID(), UT_getAttribute(), and UT_return_val_if_fail.
Referenced by PD_Document::insertStruxBeforeFrag().
| bool pt_PieceTable::insertSpanBeforeFrag | ( | pf_Frag * | pF, | |
| const UT_UCSChar * | p, | |||
| UT_uint32 | length | |||
| ) |
References pt_VarSet::appendBuf(), pf_Frag_Text::changeLength(), pf_Frag_Text::getBufIndex(), pf_Fragments::getFirst(), pf_Frag::getIndexAP(), pf_Frag::getLength(), pf_Frag::getPrev(), pf_Frag::getType(), pf_Fragments::insertFragBefore(), pt_VarSet::isContiguous(), loading, m_fragments, m_pts, m_varset, pf_Frag::PFT_Text, PTS_Loading, and UT_return_val_if_fail.
Referenced by PD_Document::insertSpanBeforeFrag().
| bool pt_PieceTable::insertObjectBeforeFrag | ( | pf_Frag * | pF, | |
| PTObjectType | pto, | |||
| const gchar ** | attributes | |||
| ) |
| bool pt_PieceTable::insertFmtMarkBeforeFrag | ( | pf_Frag * | pF | ) |
References _makeFmtMark(), pf_Fragments::getFirst(), pf_Frag::getPrev(), pf_Fragments::insertFragBefore(), m_fragments, and UT_return_val_if_fail.
Referenced by appendStrux(), and PD_Document::insertFmtMarkBeforeFrag().
| bool pt_PieceTable::insertFmtMarkBeforeFrag | ( | pf_Frag * | pF, | |
| const gchar ** | attributes | |||
| ) |
| bool pt_PieceTable::removeStyle | ( | const gchar * | name | ) |
References gchar, getStyle(), PD_Style::isUserDefined(), m_hashStyles, UT_GenericStringMap< T >::remove(), UT_ASSERT_HARMLESS, UT_DEBUGMSG, and UT_return_val_if_fail.
Referenced by PD_Document::removeStyle().
| size_t pt_PieceTable::getStyleCount | ( | void | ) | const |
References m_hashStyles, and UT_GenericStringMap< T >::size().
Referenced by PD_Document::getStyleCount().
| bool pt_PieceTable::tellListener | ( | PL_Listener * | pListener | ) |
| bool pt_PieceTable::tellListenerSubset | ( | PL_Listener * | pListener, | |
| PD_DocumentRange * | pDocRange | |||
| ) |
References pf_Frag_FmtMark::createSpecialChangeRecord(), pf_Frag_Object::createSpecialChangeRecord(), pf_Frag_Strux::createSpecialChangeRecord(), pf_Frag_Text::createSpecialChangeRecord(), DELETEP, getFragFromPosition(), pf_Frag::getNext(), PD_DocumentRange::m_pos1, PD_DocumentRange::m_pos2, pf_Frag::PFT_EndOfDoc, pf_Frag::PFT_FmtMark, pf_Frag::PFT_Object, pf_Frag::PFT_Strux, pf_Frag::PFT_Text, PL_Listener::populate(), PL_Listener::populateStrux(), UT_ASSERT_HARMLESS, UT_return_val_if_fail, and UT_SHOULD_NOT_HAPPEN.
Referenced by PD_Document::tellListenerSubset().
| bool pt_PieceTable::addListener | ( | PL_Listener * | pListener, | |
| PL_ListenerId | listenerId | |||
| ) |
| bool pt_PieceTable::getAttrProp | ( | PT_AttrPropIndex | indexAP, | |
| const PP_AttrProp ** | ppAP | |||
| ) | const |
References pt_VarSet::getAP(), m_varset, and UT_return_val_if_fail.
Referenced by _deleteComplexSpan(), _deleteHdrFtrsFromSectionStruxIfPresent(), _findNextHyperlink(), _findPrevHyperlink(), _fixHdrFtrReferences(), PD_Style::_getAttributeExpand(), PD_Style::_getPropertyExpand(), _realDeleteSpan(), _realInsertSpan(), _translateRevisionAttribute(), PD_Document::acceptAllRevisions(), PD_Document::acceptRejectRevision(), PD_Style::addAttributes(), PD_Style::addProperties(), PD_Style::addProperty(), appendLastStruxFmt(), appendStruxFmt(), PD_Document::areDocumentFormatsEqual(), PD_Document::areDocumentStylesheetsEqual(), changeLastStruxFmtNoUndo(), changeStruxFmt(), deleteHdrFtrStrux(), deleteSpan(), PD_Document::findForwardStyleStrux(), PD_Document::findHdrFtrStrux(), PD_Document::findPreviousStyleStrux(), PD_Document::getAllUsedStyles(), PD_Style::getAttribute(), PD_Style::getAttributeCount(), PD_Style::getAttributeExpand(), PD_Document::getAttrProp(), PD_Style::getNthAttribute(), PD_Style::getNthProperty(), PD_Style::getProperty(), PD_Style::getPropertyCount(), PD_Style::getPropertyExpand(), PD_Style::getPropertyType(), PD_Document::getStyleFromSDH(), PD_Document::isInsertHyperLinkValid(), pf_Frag::operator==(), pf_Frag_Object::pf_Frag_Object(), PD_Document::rejectAllHigherRevisions(), PD_Document::removeStyle(), PD_Document::updateDocForStyleChange(), and PD_Document::verifySectionID().
| bool pt_PieceTable::getSpanAttrProp | ( | PL_StruxDocHandle | sdh, | |
| UT_uint32 | offset, | |||
| bool | bLeftSide, | |||
| const PP_AttrProp ** | ppAP | |||
| ) | const |
References _getSpanAttrPropHelper(), pf_Frag::getNext(), pf_Frag::getType(), pf_Frag::PFT_FmtMark, pf_Frag::PFT_Strux, PTX_Block, PTX_SectionTOC, and UT_return_val_if_fail.
Referenced by PD_Document::getSpanAttrProp().
| const UT_UCSChar* pt_PieceTable::getPointer | ( | PT_BufIndex | bi | ) | const [inline] |
Referenced by getBlockBuf(), PD_StruxIterator::getChar(), PD_DocIterator::getChar(), FV_View::getChar(), and PD_Document::getPointer().
| bool pt_PieceTable::getBlockBuf | ( | PL_StruxDocHandle | sdh, | |
| UT_GrowBuf * | pgb | |||
| ) | const |
Copy paragraph (block) into buffer
| sdh | Paragraph to copy |
| pgb | Buffer where text should be copied to |
References pf_Frag_Text::getBufIndex(), pf_Frag::getLength(), UT_GrowBuf::getLength(), pf_Frag::getNext(), getPointer(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), UT_GrowBuf::ins(), isEndFootnote(), isFootnote(), pf_Frag::PFT_EndOfDoc, pf_Frag::PFT_FmtMark, pf_Frag::PFT_Object, pf_Frag::PFT_Strux, pf_Frag::PFT_Text, PTX_Block, PTX_SectionTOC, UCS_ABI_OBJECT, UT_ASSERT_HARMLESS, UT_return_val_if_fail, and UT_SHOULD_NOT_HAPPEN.
Referenced by PD_Document::getBlockBuf().
| bool pt_PieceTable::getBounds | ( | bool | bEnd, | |
| PT_DocPosition & | docPos | |||
| ) | const |
References pf_Fragments::areFragsDirty(), pf_Fragments::cleanFrags(), pf_Fragments::getLast(), pf_Frag::getLength(), pf_Frag::getPos(), m_fragments, and pt_BOD_POSITION.
Referenced by PD_Document::getBounds().
| PT_DocPosition pt_PieceTable::getStruxPosition | ( | PL_StruxDocHandle | sdh | ) | const |
References getFragPosition().
Referenced by PD_Document::getEmbeddedOffset(), and PD_Document::getStruxPosition().
| PT_DocPosition pt_PieceTable::getFragPosition | ( | const pf_Frag * | pfToFind | ) | const |
References pf_Fragments::areFragsDirty(), pf_Fragments::cleanFrags(), pf_Frag::getPos(), and m_fragments.
Referenced by _deleteComplexSpan(), _deleteHdrFtrStruxWithNotify(), _fmtChangeStruxWithNotify(), _insertFmtMarkAfterBlockWithNotify(), _realChangeStruxFmt(), _realChangeStruxForLists(), _tweakFieldSpan(), changeStruxFmtNoUndo(), deleteFieldFrag(), deleteHdrFtrStrux(), PD_Document::getEmbeddedOffset(), getStruxPosition(), and fd_Field::update().
| bool pt_PieceTable::getFragFromPosition | ( | PT_DocPosition | docPos, | |
| pf_Frag ** | ppf, | |||
| PT_BlockOffset * | pOffset | |||
| ) | const |
References pf_Fragments::findFirstFragBeforePos(), getFragNumber(), pf_Frag::getLength(), pf_Frag::getNext(), pf_Frag::getPos(), pf_Frag::getType(), m_fragments, pf_Frag::PFT_EndOfDoc, UT_return_val_if_fail, and xxx_UT_DEBUGMSG.
Referenced by _doTheDo(), _insertFmtMarkFragWithNotify(), _realChangeSpanFmt(), _realDeleteSpan(), _realInsertObject(), _realInsertSpan(), _realInsertStrux(), deleteFmtMark(), PD_Document::deleteStrux(), FV_View::getChar(), PD_Document::getFragFromPosition(), getFragsFromPositions(), insertObject(), insertSpan(), PD_Document::isBlockAtPos(), PD_Document::isCellAtPos(), PD_Document::isEndFootnoteAtPos(), PD_Document::isEndFrameAtPos(), PD_Document::isEndTableAtPos(), PD_Document::isFootnoteAtPos(), PD_Document::isFrameAtPos(), PD_Document::isHdrFtrAtPos(), PD_Document::isInsertHyperLinkValid(), PD_Document::isSectionAtPos(), PD_Document::isTableAtPos(), PD_Document::isTOCAtPos(), and tellListenerSubset().
| bool pt_PieceTable::getStruxOfTypeFromPosition | ( | PL_ListenerId | listenerId, | |
| PT_DocPosition | docPos, | |||
| PTStruxType | pts, | |||
| PL_StruxFmtHandle * | psfh | |||
| ) | const |
References _getStruxOfTypeFromPosition(), and pf_Frag_Strux::getFmtHandle().
Referenced by _tellAndMaybeAddListener(), fd_Field::_throwChangeRec(), and PD_Document::getStruxOfTypeFromPosition().
| bool pt_PieceTable::getStruxOfTypeFromPosition | ( | PT_DocPosition | docPos, | |
| 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.
References _getStruxOfTypeFromPosition().
| bool pt_PieceTable::getStruxFromPosition | ( | PL_ListenerId | listenerId, | |
| PT_DocPosition | docPos, | |||
| PL_StruxFmtHandle * | psfh | |||
| ) | const |
References _getStruxFromPosition(), and pf_Frag_Strux::getFmtHandle().
Referenced by PD_Document::getStruxFromPosition().
| bool pt_PieceTable::getFragsFromPositions | ( | PT_DocPosition | dPos1, | |
| PT_DocPosition | dPos2, | |||
| pf_Frag ** | ppf1, | |||
| PT_BlockOffset * | pOffset1, | |||
| pf_Frag ** | ppf2, | |||
| PT_BlockOffset * | pOffset2 | |||
| ) | const |
References getFragFromPosition(), pf_Frag::getLength(), pf_Frag::getNext(), pf_Frag::getType(), pf_Frag::PFT_EndOfDoc, pf_Frag::PFT_FmtMark, and UT_return_val_if_fail.
Referenced by _deleteComplexSpan(), _deleteComplexSpan_norec(), _deleteFormatting(), _isSimpleDeleteSpan(), _realChangeSpanFmt(), _tweakDeleteSpan(), _tweakDeleteSpanOnce(), _tweakFieldSpan(), changeSpanFmt(), and deleteSpan().
| bool pt_PieceTable::getStyle | ( | const char * | szName, | |
| PD_Style ** | ppStyle | |||
| ) | const |
References m_hashStyles, and UT_GenericStringMap< T >::pick().
Referenced by _createBuiltinStyle(), PD_Document::addStyleAttributes(), PD_Document::addStyleProperties(), appendStyle(), PD_Document::getAllUsedStyles(), PD_Style::getBasedOn(), PD_Style::getFollowedBy(), PD_Document::getStyle(), PD_Document::getStyleFromSDH(), removeStyle(), PD_Document::removeStyle(), PD_Document::setAllStyleAttributes(), and PD_Document::updateDocForStyleChange().
| bool pt_PieceTable::enumStyles | ( | UT_uint32 | k, | |
| const char ** | pszName, | |||
| const PD_Style ** | ppStyle | |||
| ) | const |
Do not use this function inside loops, used the other enumStyles() instead !!!
References UT_GenericStringMap< T >::enumerate(), PD_Style::getName(), UT_GenericVector< T >::getNthItem(), m_hashStyles, UT_GenericStringMap< T >::size(), UT_ASSERT_HARMLESS, and UT_return_val_if_fail.
Referenced by PD_Document::enumStyles().
| bool pt_PieceTable::enumStyles | ( | UT_GenericVector< PD_Style * > *& | pStyles | ) | const |
generate vector of styles the caller has to delete pStyle when done ...
References UT_GenericStringMap< T >::enumerate(), and m_hashStyles.
| const UT_GenericStringMap<PD_Style *>& pt_PieceTable::getAllStyles | ( | ) | const [inline] |
Referenced by PD_Document::areDocumentStylesheetsEqual().
| bool pt_PieceTable::isEndFootnote | ( | pf_Frag * | pf | ) | const |
References pf_Frag_Strux::getStruxType(), pf_Frag::getType(), pf_Frag::PFT_Strux, PTX_EndAnnotation, PTX_EndEndnote, PTX_EndFootnote, and PTX_EndTOC.
Referenced by _deleteComplexSpan(), _deleteFormatting(), _doTheDo(), _findNextHyperlink(), _findPrevHyperlink(), _getNextStruxAfterFragSkip(), _getStruxFromFragSkip(), _getStruxFromPosition(), _getStruxOfTypeFromPosition(), _insertFmtMarkFragWithNotify(), _insertStrux(), _realChangeSpanFmt(), _realChangeStruxFmt(), _realDeleteSpan(), _realInsertObject(), _realInsertSpan(), _realInsertStrux(), _tellAndMaybeAddListener(), _unlinkStrux_Section(), getBlockBuf(), PD_Document::getNextStrux(), insertStrux(), PD_Document::isEndFootnoteAtPos(), and PD_Document::repairDoc().
| bool pt_PieceTable::isFootnote | ( | pf_Frag * | pf | ) | const |
References pf_Frag_Strux::getStruxType(), pf_Frag::getType(), pf_Frag::PFT_Strux, PTX_SectionAnnotation, PTX_SectionEndnote, PTX_SectionFootnote, and PTX_SectionTOC.
Referenced by _deleteComplexSpan(), _findNextHyperlink(), _findPrevHyperlink(), _getNextStruxAfterFragSkip(), _getStruxFromFragSkip(), _getStruxFromPosition(), _struxIsEmpty(), _unlinkStrux_Section(), getBlockBuf(), PD_Document::getEmbeddedOffset(), PD_Document::getNextStrux(), and PD_Document::isFootnoteAtPos().
| void pt_PieceTable::clearIfAtFmtMark | ( | PT_DocPosition | dpos | ) |
References _lastUndoIsThisFmtMark(), undoCmd(), and UT_DEBUGMSG.
Referenced by PD_Document::clearIfAtFmtMark().
Referenced by getFragFromPosition().
| pt_VarSet& pt_PieceTable::getVarSet | ( | void | ) | [inline] |
| pf_Fragments& pt_PieceTable::getFragments | ( | void | ) | [inline] |
Referenced by _deleteHdrFtrsFromSectionStruxIfPresent(), _deleteHdrFtrStruxWithNotify(), PD_StruxIterator::_findFrag(), PD_DocIterator::_findFrag(), IE_Imp_Text::_insertBlock(), PD_Document::_setClean(), _unlinkStrux_Block(), IE_Imp_Text::_writeHeader(), pf_Frag_Text::adjustOffsetLength(), PD_Document::areDocumentContentsEqual(), PD_Document::areDocumentFormatsEqual(), pf_Frag_Text::changeLength(), createAndSendDocPropCR(), deleteFragNoUpdate(), deleteSpan(), deleteStruxNoUpdate(), PD_Document::findBookmark(), PD_Document::findFirstDifferenceInContent(), PD_Document::findForwardStyleStrux(), PD_Document::findFragOfType(), PD_Document::findHdrFtrStrux(), PD_Document::findPreviousStyleStrux(), PD_Document::findWhereSimilarityResumes(), PD_Document::getAllUsedStyles(), PD_Document::getCellSDHFromRowCol(), PD_Document::getEndCellStruxFromCellSDH(), PD_Document::getEndTableStruxFromTableSDH(), PD_Document::getLastFrag(), PD_Document::getLastSectionSDH(), PD_Document::getLastStruxOfType(), PD_Document::getRowsColsFromTableSDH(), PD_Document::hasMath(), PD_Document::miniDump(), PD_Document::removeListener(), PD_Document::removeStyle(), PD_Document::repairDoc(), PD_Document::updateDocForStyleChange(), PD_Document::updateFields(), and PD_Document::verifySectionID().
| bool pt_PieceTable::purgeFmtMarks | ( | ) |
References _deleteFmtMark(), pf_Fragments::getFirst(), pf_Frag::getNext(), pf_Frag::getType(), m_fragments, pf_Frag::PFT_EndOfDoc, pf_Frag::PFT_FmtMark, UT_DEBUGMSG, and UT_return_val_if_fail.
Referenced by PD_Document::purgeFmtMarks().
| bool pt_PieceTable::isDoingTheDo | ( | void | ) | const [inline] |
Referenced by px_ChangeHistory::addChangeRecord(), and PD_Document::isDoingTheDo().
| void pt_PieceTable::setDoNotTweakPosition | ( | bool | b | ) | [inline] |
Referenced by PD_Document::tellPTDoNotTweakPosition().
| UT_uint32 pt_PieceTable::getXID | ( | ) |
References m_iXID.
Referenced by _insertObject(), _realInsertStrux(), fixMissingXIDs(), and PD_Document::getXID().
| UT_uint32 pt_PieceTable::getTopXID | ( | ) | const [inline] |
| void pt_PieceTable::setXIDThreshold | ( | UT_uint32 | i | ) | [inline] |
References PX_ChangeRecord::m_iXID.
Referenced by PD_Document::_importFile(), and PD_Document::setAttrProp().
| void pt_PieceTable::fixMissingXIDs | ( | ) |
This function crawls the entire PT and assignes new xid to any fragment that should have one and does not. It is primarily to be used by exporters (accessed throught PD_Document wrapper)
References pf_Fragments::getFirst(), pf_Frag::getNext(), getXID(), pf_Frag::getXID(), m_fragments, pf_Frag::setXID(), and pf_Frag::usesXID().
Referenced by PD_Document::fixMissingXIDs().
| void pt_PieceTable::setCRNumber | ( | UT_sint32 | iCRNumber | ) | [inline] |
| pf_Frag * pt_PieceTable::_findLastStruxOfType | ( | pf_Frag * | pfStart, | |
| PTStruxType | pst, | |||
| bool | bSkipEmbeded | |||
| ) | [protected] |
References pf_Frag::getPrev(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), pf_Frag::PFT_Strux, PTX_EndEndnote, PTX_EndFootnote, PTX_EndFrame, PTX_EndMarginnote, PTX_EndTOC, PTX_SectionEndnote, PTX_SectionFootnote, PTX_SectionFrame, PTX_SectionMarginnote, PTX_SectionTOC, and UT_return_val_if_fail.
Referenced by appendLastStruxFmt(), and changeLastStruxFmtNoUndo().
Scan backwards from the given frag until a start hyperlink is found. This method is used to determine if a frag is inside a hyperlink span. Returns NULL if: (a) It encounters a strux first. (b) It encounters an end hyperlink first (c) It encounters the begin of document
FIXME!! Should this code work for annotations too?
References gchar, getAttrProp(), pf_Frag::getIndexAP(), pf_Frag_Object::getObjectType(), pf_Frag::getPieceTable(), pf_Frag::getPrev(), pf_Frag::getType(), isEndFootnote(), isFootnote(), pf_Frag::PFT_Object, pf_Frag::PFT_Strux, PTO_Hyperlink, and UT_return_val_if_fail.
Referenced by _realInsertStrux().
Scan backwards fromthe given frag until an end hyperlink is found. This method is used to determine if a frag is inside a hyperlink span. Returns NULL if: (a) It encounters a strux first. (b) It encounters a start hyperlink first (c) It encounters the end of document
References gchar, getAttrProp(), pf_Frag::getIndexAP(), pf_Fragments::getLast(), pf_Frag::getNext(), pf_Frag_Object::getObjectType(), pf_Frag::getPieceTable(), pf_Frag::getType(), isEndFootnote(), isFootnote(), m_fragments, pf_Frag::PFT_Object, pf_Frag::PFT_Strux, PTO_Hyperlink, and UT_return_val_if_fail.
Referenced by _realInsertStrux().
| bool pt_PieceTable::_tellAndMaybeAddListener | ( | PL_Listener * | pListener, | |
| PL_ListenerId | listenerId, | |||
| bool | bAdd | |||
| ) | [protected] |
References pf_Frag_FmtMark::createSpecialChangeRecord(), pf_Frag_Object::createSpecialChangeRecord(), pf_Frag_Strux::createSpecialChangeRecord(), pf_Frag_Text::createSpecialChangeRecord(), DELETEP, pf_Fragments::getFirst(), pf_Frag::getNext(), pf_Frag::getPos(), getStruxOfTypeFromPosition(), PL_Listener::getType(), isEndFootnote(), m_fragments, pf_Frag::PFT_EndOfDoc, pf_Frag::PFT_FmtMark, pf_Frag::PFT_Object, pf_Frag::PFT_Strux, pf_Frag::PFT_Text, PL_Listener::populate(), PL_Listener::populateStrux(), PTL_CollabExport, PTX_Block, pf_Frag_Strux::setFmtHandle(), UT_ASSERT_HARMLESS, and UT_return_val_if_fail.
Referenced by addListener(), and tellListener().
| void pt_PieceTable::_captureActiveSpan | ( | pf_Frag_Strux_Block * | pfsBlock | ) | [protected] |
| PT_AttrPropIndex pt_PieceTable::_chooseIndexAP | ( | pf_Frag * | pf, | |
| PT_BlockOffset | fragOffset | |||
| ) | [protected] |
References pf_Frag::getIndexAP(), pf_Frag::getLength(), pf_Frag_Object::getObjectType(), pf_Frag::getPrev(), pf_Frag::getType(), pf_Frag::PFT_FmtMark, pf_Frag::PFT_Object, pf_Frag::PFT_Strux, pf_Frag::PFT_Text, PTO_Bookmark, PTO_Embed, PTO_Field, PTO_Hyperlink, PTO_Image, PTO_Math, and UT_ASSERT_HARMLESS.
Referenced by _insertFmtMarkFragWithNotify(), _realInsertObject(), and _realInsertSpan().
| bool pt_PieceTable::_canCoalesceInsertSpan | ( | PX_ChangeRecord_Span * | pcrSpan | ) | const [protected] |
References pt_VarSet::getBufIndex(), PX_ChangeRecord_Span::getBufIndex(), PX_ChangeRecord::getIndexAP(), PX_ChangeRecord_Span::getLength(), PX_ChangeRecord::getPosition(), PX_ChangeRecord::getType(), px_ChangeHistory::getUndo(), px_ChangeHistory::isDirty(), PX_ChangeRecord::isFromThisDoc(), m_history, m_varset, PX_ChangeRecord::PXT_InsertSpan, and UT_return_val_if_fail.
Referenced by _realInsertSpan().
| bool pt_PieceTable::_createStrux | ( | PTStruxType | pts, | |
| PT_AttrPropIndex | indexAP, | |||
| pf_Frag_Strux ** | ppfs | |||
| ) | [protected] |
References PTX_Block, PTX_EndAnnotation, PTX_EndCell, PTX_EndEndnote, PTX_EndFootnote, PTX_EndFrame, PTX_EndTable, PTX_EndTOC, PTX_Section, PTX_SectionAnnotation, PTX_SectionCell, PTX_SectionEndnote, PTX_SectionFootnote, PTX_SectionFrame, PTX_SectionHdrFtr, PTX_SectionTable, PTX_SectionTOC, UT_ASSERT_HARMLESS, UT_DEBUGMSG, and UT_NOT_IMPLEMENTED.
Referenced by _doTheDo(), _makeStrux(), _realInsertStrux(), and insertStruxNoUpdateBefore().
| void pt_PieceTable::_insertStrux | ( | pf_Frag * | pf, | |
| PT_BlockOffset | fragOffset, | |||
| pf_Frag_Strux * | pfsNew | |||
| ) | [protected] |
If we do an insert strux on a pf_Frag_Strux we actually insert the new strux BEFORE pf. In this case the container is actually in strux before this one. In this case pfsActual returns the rela containing strux.
References _getNextStruxAfterFragSkip(), pf_Frag_Text::changeLength(), pf_Frag_Text::getBufIndex(), pt_VarSet::getBufIndex(), pf_Frag::getField(), pf_Frag::getIndexAP(), pf_Frag::getLength(), pf_Frag::getNext(), pf_Frag::getPrev(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), pf_Fragments::insertFrag(), isEndFootnote(), m_fragments, m_varset, pf_Frag::PFT_EndOfDoc, pf_Frag::PFT_FmtMark, pf_Frag::PFT_Object, pf_Frag::PFT_Strux, pf_Frag::PFT_Text, PTX_SectionFrame, UT_ASSERT_HARMLESS, and UT_return_if_fail.
Referenced by _doTheDo(), and _realInsertStrux().
| bool pt_PieceTable::_insertObject | ( | pf_Frag * | pf, | |
| PT_BlockOffset | fragOffset, | |||
| PTObjectType | pto, | |||
| PT_AttrPropIndex | indexAP, | |||
| pf_Frag_Object *& | pfo | |||
| ) | [protected] |
References _createObject(), pt_VarSet::getBufIndex(), pf_Frag::getLength(), pf_Frag::getPrev(), pf_Frag::getType(), getXID(), pf_Fragments::insertFrag(), m_fragments, m_varset, pf_Frag::PFT_Text, pf_Frag::setXID(), and UT_return_val_if_fail.
Referenced by _doTheDo(), and _realInsertObject().
| bool pt_PieceTable::_createObject | ( | PTObjectType | pto, | |
| PT_AttrPropIndex | indexAP, | |||
| pf_Frag_Object ** | ppfo | |||
| ) | [protected] |
References PD_Document::addBookmark(), pf_Frag_Object::getBookmark(), po_Bookmark::getBookmarkType(), po_Bookmark::getName(), m_pDocument, po_Bookmark::POBOOKMARK_START, PTO_Annotation, PTO_Bookmark, PTO_Embed, PTO_Field, PTO_Hyperlink, PTO_Image, PTO_Math, UT_ASSERT_HARMLESS, UT_DEBUGMSG, UT_return_val_if_fail, and UT_SHOULD_NOT_HAPPEN.
Referenced by _insertObject(), and _makeObject().
| bool pt_PieceTable::_insertSpan | ( | pf_Frag * | pf, | |
| PT_BufIndex | bi, | |||
| PT_BlockOffset | fragOffset, | |||
| UT_uint32 | length, | |||
| PT_AttrPropIndex | indexAP, | |||
| fd_Field * | pField = NULL | |||
| ) | [protected] |
References pf_Frag_Text::adjustOffsetLength(), pf_Frag_Text::changeLength(), pt_VarSet::getBufIndex(), pf_Frag_Text::getBufIndex(), pf_Frag::getField(), pf_Frag::getIndexAP(), pf_Frag::getLength(), pf_Frag::getNext(), pf_Frag::getPrev(), pf_Frag::getType(), pf_Fragments::insertFrag(), pt_VarSet::isContiguous(), m_fragments, m_varset, pf_Frag::PFT_EndOfDoc, pf_Frag::PFT_FmtMark, pf_Frag::PFT_Object, pf_Frag::PFT_Strux, pf_Frag::PFT_Text, pf_Fragments::unlinkFrag(), UT_ASSERT_HARMLESS, UT_return_val_if_fail, and UT_SHOULD_NOT_HAPPEN.
Referenced by _doTheDo(), and _realInsertSpan().
| bool pt_PieceTable::_StruxIsNotTable | ( | pf_Frag_Strux * | pfs | ) | [protected] |
Returns true if pfs is not a strux connected with a table or frame
References pf_Frag_Strux::getStruxType(), PTX_EndCell, PTX_EndFrame, PTX_EndTable, PTX_SectionCell, PTX_SectionFrame, and PTX_SectionTable.
Referenced by _deleteComplexSpan().
| bool pt_PieceTable::_deleteSpan | ( | pf_Frag_Text * | pft, | |
| UT_uint32 | fragOffset, | |||
| PT_BufIndex | bi, | |||
| UT_uint32 | length, | |||
| pf_Frag ** | ppfEnd, | |||
| UT_uint32 * | pfragOffsetEnd | |||
| ) | [protected] |
References _unlinkFrag(), pf_Frag_Text::adjustOffsetLength(), pf_Frag_Text::changeLength(), pf_Frag_Text::getBufIndex(), pt_VarSet::getBufIndex(), pf_Frag::getField(), pf_Frag::getIndexAP(), pf_Frag::getLength(), pf_Frag::getNext(), pf_Fragments::insertFrag(), m_fragments, m_varset, SETP, and UT_return_val_if_fail.
Referenced by _deleteSpanWithNotify(), and _doTheDo().
| void pt_PieceTable::_unlinkFrag | ( | pf_Frag * | pf, | |
| pf_Frag ** | ppfEnd, | |||
| UT_uint32 * | pfragOffsetEnd | |||
| ) | [protected] |
References pf_Frag_Text::changeLength(), pf_Frag_Text::getBufIndex(), pf_Frag::getIndexAP(), pf_Frag::getLength(), pf_Frag::getNext(), pf_Frag::getPrev(), pf_Frag::getType(), pt_VarSet::isContiguous(), m_fragments, m_varset, pf_Frag::PFT_Text, pf_Fragments::unlinkFrag(), UT_ASSERT, and xxx_UT_DEBUGMSG.
Referenced by _deleteFmtMark(), _deleteObject(), _deleteSpan(), _fmtChangeSpan(), _unlinkStrux_Block(), and _unlinkStrux_Section().
| bool pt_PieceTable::_getStruxFromPosition | ( | PT_DocPosition | docPos, | |
| pf_Frag_Strux ** | ppfs, | |||
| bool | bSkipFootnotes = false | |||
| ) | const [protected] |
References pf_Fragments::findFirstFragBeforePos(), pf_Frag::getPos(), pf_Frag::getPrev(), pf_Frag::getType(), isEndFootnote(), isFootnote(), m_fragments, pf_Frag::PFT_Strux, and xxx_UT_DEBUGMSG.
Referenced by _deleteComplexSpan(), _deleteComplexSpan_norec(), _deleteFormatting(), _doTheDo(), _getStruxOfTypeFromPosition(), _realChangeSpanFmt(), _realInsertStrux(), _tweakDeleteSpanOnce(), _tweakFieldSpan(), _unlinkStrux_Block(), getStruxFromPosition(), and insertStrux().
| bool pt_PieceTable::_getStruxOfTypeFromPosition | ( | PT_DocPosition | dpos, | |
| PTStruxType | pts, | |||
| pf_Frag_Strux ** | ppfs | |||
| ) | const [protected] |
References _getStruxFromFragSkip(), _getStruxFromPosition(), pf_Frag::getPrev(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), isEndFootnote(), pf_Frag::PFT_Strux, PTX_EndAnnotation, PTX_EndCell, PTX_EndEndnote, PTX_EndFootnote, PTX_EndTable, PTX_EndTOC, PTX_Section, PTX_SectionAnnotation, PTX_SectionCell, PTX_SectionEndnote, PTX_SectionFootnote, PTX_SectionHdrFtr, PTX_SectionTable, PTX_SectionTOC, UT_return_val_if_fail, and xxx_UT_DEBUGMSG.
Referenced by _insertFmtMarkFragWithNotify(), _realChangeStruxFmt(), _tweakDeleteSpanOnce(), changeStruxFmt(), and getStruxOfTypeFromPosition().
| bool pt_PieceTable::_doTheDo | ( | const PX_ChangeRecord * | pcr, | |
| bool | bUndo | |||
| ) | [protected] |
References _createStrux(), _deleteFmtMark(), _deleteObject(), _deleteSpan(), _fmtChangeFmtMark(), _fmtChangeObject(), _fmtChangeSpan(), _fmtChangeStrux(), _getStruxFromFrag(), _getStruxFromFragSkip(), _getStruxFromPosition(), _insertFmtMark(), _insertObject(), _insertSpan(), _insertStrux(), _unlinkStrux(), PX_ChangeRecord_FmtMarkChange::AdjustBlockOffset(), PX_ChangeRecord_FmtMark::AdjustBlockOffset(), PX_ChangeRecord_ObjectChange::AdjustBlockOffset(), PX_ChangeRecord_Object::AdjustBlockOffset(), PX_ChangeRecord_SpanChange::AdjustBlockOffset(), PX_ChangeRecord_Span::AdjustBlockOffset(), DONE, PX_ChangeRecord_Span::getBlockOffset(), PX_ChangeRecord_Span::getBufIndex(), pf_Frag::getField(), PX_ChangeRecord_Span::getField(), getFragFromPosition(), pf_Frag::getIndexAP(), PX_ChangeRecord::getIndexAP(), PX_ChangeRecord_SpanChange::getLength(), pf_Frag::getLength(), PX_ChangeRecord_Span::getLength(), pf_Frag::getNext(), pf_Frag_Object::getObjectType(), PX_ChangeRecord_Object::getObjectType(), pf_Frag::getPos(), PX_ChangeRecord::getPosition(), pf_Frag::getPrev(), PX_ChangeRecord_Strux::getStruxType(), pf_Frag::getType(), PX_ChangeRecord::getType(), isEndFootnote(), m_bDoingTheDo, m_pDocument, PD_Document::notifyListeners(), pf_Frag::PFT_FmtMark, pf_Frag::PFT_Object, pf_Frag::PFT_Strux, pf_Frag::PFT_Text, PTO_Embed, PTO_Math, PX_ChangeRecord::PXT_ChangeFmtMark, PX_ChangeRecord::PXT_ChangeObject, PX_ChangeRecord::PXT_ChangePoint, PX_ChangeRecord::PXT_ChangeSpan, PX_ChangeRecord::PXT_ChangeStrux, 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, pf_Frag_Text::setField(), PX_ChangeRecord_Object::setObjectHandle(), UNDO_return_val_if_fail, UT_ASSERT_HARMLESS, UT_DEBUGMSG, UT_MIN, and xxx_UT_DEBUGMSG.
| bool pt_PieceTable::_struxHasContent | ( | pf_Frag_Strux * | pfs | ) | const [protected] |
References pf_Frag::getNext(), pf_Frag::getType(), and pf_Frag::PFT_Text.
| bool pt_PieceTable::_struxIsEmpty | ( | pf_Frag_Strux * | pfs | ) | const [protected] |
References pf_Frag::getNext(), pf_Frag::getType(), isFootnote(), pf_Frag::PFT_EndOfDoc, and pf_Frag::PFT_Strux.
Referenced by _unlinkStrux_Block().
| bool pt_PieceTable::_unlinkStrux | ( | pf_Frag_Strux * | pfs, | |
| pf_Frag ** | ppfEnd, | |||
| UT_uint32 * | pfragOffsetEnd | |||
| ) | [protected] |
References _unlinkStrux_Block(), _unlinkStrux_Section(), pf_Frag_Strux::getStruxType(), PTX_Block, PTX_EndAnnotation, PTX_EndCell, PTX_EndEndnote, PTX_EndFootnote, PTX_EndFrame, PTX_EndTable, PTX_EndTOC, PTX_Section, PTX_SectionAnnotation, PTX_SectionCell, PTX_SectionEndnote, PTX_SectionFootnote, PTX_SectionFrame, PTX_SectionHdrFtr, PTX_SectionTable, PTX_SectionTOC, UT_ASSERT_HARMLESS, UT_DEBUGMSG, and UT_SHOULD_NOT_HAPPEN.
Referenced by _deleteStruxWithNotify(), and _doTheDo().
| bool pt_PieceTable::_unlinkStrux_Block | ( | pf_Frag_Strux * | pfs, | |
| pf_Frag ** | ppfEnd, | |||
| UT_uint32 * | pfragOffsetEnd | |||
| ) | [protected] |
References _getStruxFromPosition(), _struxIsEmpty(), _unlinkFrag(), pf_Fragments::areFragsDirty(), pf_Fragments::cleanFrags(), getFragments(), pf_Frag::getNext(), pf_Frag::getPos(), pf_Frag::getPrev(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), m_fragments, pf_Frag::PFT_Strux, PTX_Block, PTX_EndCell, PTX_EndFrame, PTX_EndTable, PTX_Section, PTX_SectionCell, PTX_SectionFrame, PTX_SectionHdrFtr, PTX_SectionTable, UT_ASSERT_HARMLESS, UT_DEBUGMSG, and UT_return_val_if_fail.
Referenced by _unlinkStrux().
| bool pt_PieceTable::_unlinkStrux_Section | ( | pf_Frag_Strux * | pfs, | |
| pf_Frag ** | ppfEnd, | |||
| UT_uint32 * | pfragOffsetEnd | |||
| ) | [protected] |
References _unlinkFrag(), pf_Frag::getNext(), pf_Frag::getPrev(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), isEndFootnote(), isFootnote(), pf_Frag::PFT_Strux, PTX_Block, PTX_EndAnnotation, PTX_EndCell, PTX_EndEndnote, PTX_EndFootnote, PTX_EndFrame, PTX_EndTable, PTX_EndTOC, PTX_Section, PTX_SectionAnnotation, PTX_SectionCell, PTX_SectionEndnote, PTX_SectionFootnote, PTX_SectionFrame, PTX_SectionHdrFtr, PTX_SectionTable, PTX_SectionTOC, UT_ASSERT_HARMLESS, UT_DEBUGMSG, and UT_return_val_if_fail.
Referenced by _unlinkStrux().
| bool pt_PieceTable::_canCoalesceDeleteSpan | ( | PX_ChangeRecord_Span * | pcrSpan | ) | const [protected] |
References pt_VarSet::getBufIndex(), PX_ChangeRecord_Span::getBufIndex(), PX_ChangeRecord::getIndexAP(), PX_ChangeRecord_Span::getLength(), PX_ChangeRecord::getPosition(), PX_ChangeRecord::getType(), px_ChangeHistory::getUndo(), PX_ChangeRecord::isFromThisDoc(), m_history, m_varset, PX_ChangeRecord::PXT_DeleteSpan, and UT_return_val_if_fail.
Referenced by _deleteSpanWithNotify().
| bool pt_PieceTable::_deleteSpanWithNotify | ( | PT_DocPosition | dpos, | |
| pf_Frag_Text * | pft, | |||
| UT_uint32 | fragOffset, | |||
| UT_uint32 | length, | |||
| pf_Frag_Strux * | pfs, | |||
| pf_Frag ** | ppfEnd, | |||
| UT_uint32 * | pfragOffsetEnd, | |||
| bool | bAddChangeRec = true | |||
| ) | [protected] |
References _canCoalesceDeleteSpan(), _computeBlockOffset(), _deleteSpan(), px_ChangeHistory::addChangeRecord(), px_ChangeHistory::coalesceHistory(), pf_Frag_Text::getBufIndex(), pt_VarSet::getBufIndex(), pf_Frag::getField(), pf_Frag::getIndexAP(), pf_Frag::getNext(), PD_Document::isCoalescingMasked(), m_history, m_pDocument, m_varset, PD_Document::notifyListeners(), PX_ChangeRecord::PXT_DeleteSpan, PX_ChangeRecord::setDocument(), SETP, UT_return_val_if_fail, and xxx_UT_DEBUGMSG.
Referenced by _deleteComplexSpan(), and _deleteComplexSpan_norec().
| bool pt_PieceTable::_isSimpleDeleteSpan | ( | PT_DocPosition | dpos1, | |
| PT_DocPosition | dpos2 | |||
| ) | const [protected] |
References getFragsFromPositions(), pf_Frag::getLength(), pf_Frag::getPrev(), pf_Frag::getType(), pf_Frag::PFT_Text, and UT_return_val_if_fail.
Referenced by _realDeleteSpan().
| void pt_PieceTable::_tweakFieldSpan | ( | PT_DocPosition & | dpos1, | |
| PT_DocPosition & | dpos2 | |||
| ) | const [protected] |
References _getStruxFromPosition(), pf_Frag::getField(), getFragPosition(), getFragsFromPositions(), pf_Frag::getNext(), pf_Frag::getPrev(), pf_Frag::getType(), m_bDoNotTweakPosition, pf_Frag::PFT_Object, pf_Frag::PFT_Text, PTO_Field, UT_ASSERT_HARMLESS, and UT_return_if_fail.
Referenced by _realChangeSpanFmt(), and _tweakDeleteSpanOnce().
| bool pt_PieceTable::_tweakDeleteSpanOnce | ( | PT_DocPosition & | dpos1, | |
| PT_DocPosition & | dpos2, | |||
| UT_Stack * | pstDelayStruxDelete | |||
| ) | const [protected] |
References _getStruxFromFragSkip(), _getStruxFromPosition(), _getStruxOfTypeFromPosition(), _tweakFieldSpan(), getFragsFromPositions(), pf_Frag::getLength(), pf_Frag::getNext(), pf_Frag::getPrev(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), m_bDoNotTweakPosition, pf_Frag::PFT_FmtMark, pf_Frag::PFT_Strux, PTX_Block, PTX_EndAnnotation, PTX_EndCell, PTX_EndEndnote, PTX_EndFootnote, PTX_EndFrame, PTX_EndTable, PTX_EndTOC, PTX_Section, PTX_SectionAnnotation, PTX_SectionCell, PTX_SectionEndnote, PTX_SectionFootnote, PTX_SectionFrame, PTX_SectionHdrFtr, PTX_SectionTable, PTX_SectionTOC, UT_Stack::push(), UT_ASSERT_HARMLESS, UT_return_val_if_fail, and xxx_UT_DEBUGMSG.
Referenced by _tweakDeleteSpan().
| bool pt_PieceTable::_tweakDeleteSpan | ( | PT_DocPosition & | dpos1, | |
| PT_DocPosition & | dpos2, | |||
| UT_Stack * | pstDelayStruxDelete | |||
| ) | const [protected] |
References _tweakDeleteSpanOnce(), UT_Stack::getDepth(), getFragsFromPositions(), pf_Frag::getLength(), pf_Frag::getNext(), pf_Frag_Object::getObjectType(), pf_Frag::getPos(), pf_Frag::getPrev(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), m_bDoNotTweakPosition, pf_Frag::PFT_Object, pf_Frag::PFT_Strux, pf_Frag::PFT_Text, PTO_Annotation, PTO_Bookmark, PTO_Hyperlink, PTX_Block, PTX_EndTOC, and UT_return_val_if_fail.
Referenced by _realDeleteSpan().
| bool pt_PieceTable::_deleteFormatting | ( | PT_DocPosition | dpos1, | |
| PT_DocPosition | dpos2 | |||
| ) | [protected] |
References _deleteFmtMarkWithNotify(), _deleteHdrFtrsFromSectionStruxIfPresent(), _getStruxFromFragSkip(), _getStruxFromPosition(), getFragsFromPositions(), pf_Frag::getLength(), pf_Frag::getNext(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), isEndFootnote(), pf_Frag::PFT_EndOfDoc, pf_Frag::PFT_FmtMark, pf_Frag::PFT_Strux, PTX_Section, UT_return_val_if_fail, and xxx_UT_DEBUGMSG.
Referenced by _deleteComplexSpan(), and _realDeleteSpan().
| bool pt_PieceTable::_deleteComplexSpan | ( | PT_DocPosition & | dpos1, | |
| PT_DocPosition & | dpos2, | |||
| UT_Stack * | stDelayStruxDelete | |||
| ) | [protected] |
References _deleteFormatting(), _deleteObjectWithNotify(), _deleteSpanWithNotify(), _deleteStruxWithNotify(), _getStruxFromFragSkip(), _getStruxFromPosition(), _StruxIsNotTable(), pf_Fragments::areFragsDirty(), pf_Fragments::cleanFrags(), gchar, getAttrProp(), pf_Frag_Object::getBookmark(), po_Bookmark::getBookmarkType(), getFragPosition(), getFragsFromPositions(), pf_Frag::getIndexAP(), pf_Frag::getLength(), po_Bookmark::getName(), pf_Frag::getNext(), pf_Frag_Object::getObjectType(), pf_Frag::getPieceTable(), pf_Frag::getPos(), pf_Frag::getPrev(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), isEndFootnote(), isFootnote(), m_fragments, m_pDocument, pf_Frag::PFT_EndOfDoc, pf_Frag::PFT_FmtMark, pf_Frag::PFT_Object, pf_Frag::PFT_Strux, pf_Frag::PFT_Text, po_Bookmark::POBOOKMARK_END, UT_Stack::pop(), PTO_Annotation, PTO_Bookmark, PTO_Field, PTO_Hyperlink, PTX_Block, PTX_EndFrame, PTX_EndTable, PTX_SectionCell, PTX_SectionFrame, PTX_SectionTable, UT_Stack::push(), PD_Document::removeBookmark(), UT_ASSERT, UT_ASSERT_HARMLESS, UT_DEBUGMSG, UT_MIN, UT_return_val_if_fail, UT_SHOULD_NOT_HAPPEN, and xxx_UT_DEBUGMSG.
Referenced by _realDeleteSpan().
| bool pt_PieceTable::_deleteComplexSpan_norec | ( | PT_DocPosition | dpos1, | |
| PT_DocPosition | dpos2 | |||
| ) | [protected] |
References _deleteObjectWithNotify(), _deleteSpanWithNotify(), _deleteStruxWithNotify(), _getStruxFromPosition(), getFragsFromPositions(), pf_Frag::getLength(), pf_Frag::getType(), pf_Frag::PFT_EndOfDoc, pf_Frag::PFT_FmtMark, pf_Frag::PFT_Object, pf_Frag::PFT_Strux, pf_Frag::PFT_Text, UT_ASSERT_HARMLESS, UT_MIN, UT_return_val_if_fail, and UT_SHOULD_NOT_HAPPEN.
Referenced by deleteFieldFrag().
| bool pt_PieceTable::_deleteObject | ( | pf_Frag_Object * | pfo, | |
| pf_Frag ** | ppfEnd, | |||
| UT_uint32 * | pfragOffsetEnd | |||
| ) | [protected] |
References _unlinkFrag(), and xxx_UT_DEBUGMSG.
Referenced by _deleteObjectWithNotify(), and _doTheDo().
| bool pt_PieceTable::_deleteObjectWithNotify | ( | PT_DocPosition | dpos, | |
| pf_Frag_Object * | pfo, | |||
| UT_uint32 | fragOffset, | |||
| UT_uint32 | length, | |||
| pf_Frag_Strux * | pfs, | |||
| pf_Frag ** | ppfEnd, | |||
| UT_uint32 * | pfragOffsetEnd, | |||
| bool | bAddChangeRec = true | |||
| ) | [protected] |
References _computeBlockOffset(), _deleteObject(), px_ChangeHistory::addChangeRecord(), pf_Frag::getField(), pf_Frag::getIndexAP(), pf_Frag::getLength(), pf_Frag_Object::getObjectType(), pf_Frag::getXID(), m_history, m_pDocument, PD_Document::notifyListeners(), PX_ChangeRecord::PXT_DeleteObject, and UT_return_val_if_fail.
Referenced by _deleteComplexSpan(), _deleteComplexSpan_norec(), and _realInsertStrux().
| bool pt_PieceTable::_deleteObject_norec | ( | PT_DocPosition | dpos, | |
| pf_Frag_Object * | pfo, | |||
| UT_uint32 | fragOffset, | |||
| UT_uint32 | length, | |||
| pf_Frag_Strux * | pfs, | |||
| pf_Frag ** | ppfEnd, | |||
| UT_uint32 * | pfragOffsetEnd | |||
| ) | [protected] |
| bool pt_PieceTable::_deleteStruxWithNotify | ( | PT_DocPosition | dpos, | |
| pf_Frag_Strux * | pfs, | |||
| pf_Frag ** | ppfEnd, | |||
| UT_uint32 * | pfragOffsetEnd, | |||
| bool | bWithRec = true | |||
| ) | [protected] |
References _unlinkStrux(), px_ChangeHistory::addChangeRecord(), pf_Frag::getIndexAP(), pf_Frag_Strux::getStruxType(), pf_Frag::getXID(), m_history, m_pDocument, PD_Document::notifyListeners(), PX_ChangeRecord::PXT_DeleteStrux, and UT_return_val_if_fail.
Referenced by _deleteComplexSpan(), _deleteComplexSpan_norec(), _deleteHdrFtrStruxWithNotify(), _realDeleteSpan(), and deleteStruxWithNotify().
| bool pt_PieceTable::_deleteHdrFtrsFromSectionStruxIfPresent | ( | pf_Frag_Strux_Section * | pfStruxSec | ) | [protected] |
This method scans the piecetAble from the section Frag_strux given looking for any Header/Footers that belong to the strux. If it finds them, they are deleted with notifications.
| pf_Frag_Strux_Section | pfStruxSec the Section strux that might have headers or footers belonging to it. These must be deleted with notification otherwise they won't be recreated on an undo |
References _deleteHdrFtrStruxWithNotify(), UT_GenericVector< T >::addItem(), UT_String::c_str(), pf_Fragments::cleanFrags(), UT_GenericVector< T >::clear(), gchar, PP_AttrProp::getAttribute(), getAttrProp(), getFragments(), pf_Frag::getIndexAP(), UT_GenericVector< T >::getItemCount(), pf_Fragments::getLast(), pf_Frag::getNext(), UT_GenericVector< T >::getNthItem(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), pf_Frag::PFT_Strux, PTX_SectionHdrFtr, and UT_DEBUGMSG.
Referenced by _deleteFormatting().
| void pt_PieceTable::_deleteHdrFtrStruxWithNotify | ( | pf_Frag_Strux * | pfFragStruxHdrFtr | ) | [protected] |
This method deletes the Header/Footer from the pieceTable in the order that will allow an undo to recreate it.
References _deleteStruxWithNotify(), UT_GenericVector< T >::addItem(), pf_Fragments::cleanFrags(), deleteSpan(), getFragments(), getFragPosition(), UT_GenericVector< T >::getItemCount(), pf_Fragments::getLast(), pf_Frag::getLength(), pf_Frag::getNext(), UT_GenericVector< T >::getNthItem(), pf_Frag::getPos(), pf_Frag::getPrev(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), m_fragments, pf_Frag::PFT_Strux, PTX_Block, PTX_EndCell, PTX_EndTable, PTX_SectionCell, PTX_SectionHdrFtr, PTX_SectionTable, UT_ASSERT_HARMLESS, UT_DEBUGMSG, and UT_return_if_fail.
Referenced by _deleteHdrFtrsFromSectionStruxIfPresent(), and _realDeleteHdrFtrStrux().
| bool pt_PieceTable::_fixHdrFtrReferences | ( | const gchar * | pszHdrType, | |
| const gchar * | pszHdrId, | |||
| bool | bNotional = false | |||
| ) | [protected] |
scan piecetable and remove any references to the hdr/ftr located at pos dpos bNotional indicates that the header has been marked deleted in revison mode, but not physically removed from the document
References _fmtChangeStruxWithNotify(), PP_RevisionAttr::addRevision(), PP_RevisionAttr::forceDirty(), gchar, PP_AttrProp::getAttribute(), getAttrProp(), pf_Fragments::getFirst(), pf_Frag::getIndexAP(), pf_Frag::getNext(), PP_RevisionAttr::getNthRevision(), AD_Document::getRevisionId(), PP_RevisionAttr::getRevisionsCount(), PP_RevisionAttr::getRevisionWithId(), pf_Frag::getType(), PP_RevisionAttr::getXMLstring(), m_fragments, m_pDocument, pf_Frag::PFT_Strux, PP_REVISION_FMT_CHANGE, PTC_RemoveFmt, PTC_SetFmt, PTX_Section, and UT_return_val_if_fail.
Referenced by deleteHdrFtrStrux(), and deleteSpan().
| bool pt_PieceTable::_fmtChangeStrux | ( | pf_Frag_Strux * | pfs, | |
| PT_AttrPropIndex | indexNewAP | |||
| ) | [protected] |
References pf_Frag::setIndexAP().
Referenced by _doTheDo(), _fmtChangeStruxWithNotify(), _realChangeSectionAttsNoUpdate(), _realChangeStruxForLists(), changeStruxFmtNoUndo(), and changeStruxFormatNoUpdate().
| bool pt_PieceTable::_fmtChangeStruxWithNotify | ( | PTChangeFmt | ptc, | |
| pf_Frag_Strux * | pfs, | |||
| const gchar ** | attributes, | |||
| const gchar ** | properties, | |||
| bool | bRevisionDelete | |||
| ) | [protected] |
References _fmtChangeStrux(), px_ChangeHistory::addChangeRecord(), getDocument(), getFragPosition(), pf_Frag::getIndexAP(), pf_Frag::getLength(), pf_Frag_Strux::getStruxType(), m_history, m_pDocument, m_varset, pt_VarSet::mergeAP(), PD_Document::notifyListeners(), PX_ChangeRecord::PXT_ChangeStrux, UT_ASSERT_HARMLESS, UT_return_val_if_fail, and xxx_UT_DEBUGMSG.
Referenced by _fixHdrFtrReferences(), _realChangeStruxFmt(), and changeStruxFmt().
| bool pt_PieceTable::_fmtChangeStruxWithNotify | ( | PTChangeFmt | ptc, | |
| pf_Frag_Strux * | pfs, | |||
| const gchar ** | attributes, | |||
| const gchar ** | properties, | |||
| bool | bDoAll, | |||
| bool | bRevisionDelete | |||
| ) | [protected] |
Don't broadcast changes to the endstruxs because will cause them to destroy the properties of the layout since they linked to the layout.
References _fmtChangeStrux(), px_ChangeHistory::addChangeRecord(), getDocument(), getFragPosition(), pf_Frag::getIndexAP(), pf_Frag::getLength(), pf_Frag_Strux::getStruxType(), m_history, m_pDocument, m_varset, pt_VarSet::mergeAP(), PD_Document::notifyListeners(), PTX_EndCell, PTX_EndEndnote, PTX_EndFootnote, PTX_EndFrame, PTX_EndTable, PTX_EndTOC, PX_ChangeRecord::PXT_ChangeStrux, UT_ASSERT_HARMLESS, UT_return_val_if_fail, and xxx_UT_DEBUGMSG.
| bool pt_PieceTable::_fmtChangeSpan | ( | pf_Frag_Text * | pft, | |
| UT_uint32 | fragOffset, | |||
| UT_uint32 | length, | |||
| PT_AttrPropIndex | indexNewAP, | |||
| pf_Frag ** | ppfNewEnd, | |||
| UT_uint32 * | pfragOffsetNewEnd | |||
| ) | [protected] |
References _unlinkFrag(), pf_Frag_Text::adjustOffsetLength(), pf_Frag_Text::changeLength(), pt_VarSet::getBufIndex(), pf_Frag_Text::getBufIndex(), pf_Frag::getField(), pf_Frag::getIndexAP(), pf_Frag::getLength(), pf_Frag::getNext(), pf_Frag::getPrev(), pf_Frag::getType(), pf_Fragments::insertFrag(), pt_VarSet::isContiguous(), m_fragments, m_varset, pf_Frag::PFT_Text, pf_Frag::setIndexAP(), SETP, and UT_return_val_if_fail.
Referenced by _doTheDo(), and _fmtChangeSpanWithNotify().
| bool pt_PieceTable::_fmtChangeSpanWithNotify | ( | PTChangeFmt | ptc, | |
| pf_Frag_Text * | pft, | |||
| UT_uint32 | fragOffset, | |||
| PT_DocPosition | dpos, | |||
| UT_uint32 | length, | |||
| const gchar ** | attributes, | |||
| const gchar ** | properties, | |||
| pf_Frag_Strux * | pfs, | |||
| pf_Frag ** | ppfNewEnd, | |||
| UT_uint32 * | pfragOffsetNewEnd, | |||
| bool | bRevisionDelete | |||
| ) | [protected] |
References _computeBlockOffset(), _fmtChangeSpan(), px_ChangeHistory::addChangeRecord(), pf_Frag_Text::getBufIndex(), pt_VarSet::getBufIndex(), getDocument(), pf_Frag::getIndexAP(), pf_Frag::getLength(), pf_Frag::getNext(), m_history, m_pDocument, m_varset, pt_VarSet::mergeAP(), PD_Document::notifyListeners(), PX_ChangeRecord::PXT_ChangeSpan, SETP, UT_ASSERT_HARMLESS, UT_DEBUGMSG, and UT_return_val_if_fail.
Referenced by _realChangeSpanFmt(), and _realChangeStruxFmt().
| bool pt_PieceTable::_fmtChangeObject | ( | pf_Frag_Object * | pfo, | |
| PT_AttrPropIndex | indexNewAP, | |||
| pf_Frag ** | ppfNewEnd, | |||
| UT_uint32 * | pfragOffsetNewEnd | |||
| ) | [protected] |
References pf_Frag::getNext(), pf_Frag::setIndexAP(), and SETP.
Referenced by _doTheDo(), and _fmtChangeObjectWithNotify().
| bool pt_PieceTable::_fmtChangeObjectWithNotify | ( | PTChangeFmt | ptc, | |
| pf_Frag_Object * | pfo, | |||
| UT_uint32 | fragOffset, | |||
| PT_DocPosition | dpos, | |||
| UT_uint32 | length, | |||
| const gchar ** | attributes, | |||
| const gchar ** | properties, | |||
| pf_Frag_Strux * | pfs, | |||
| pf_Frag ** | ppfNewEnd, | |||
| UT_uint32 * | pfragOffsetNewEnd, | |||
| bool | bRevisionDelete | |||
| ) | [protected] |
References _computeBlockOffset(), _fmtChangeObject(), px_ChangeHistory::addChangeRecord(), getDocument(), pf_Frag::getIndexAP(), pf_Frag::getLength(), pf_Frag::getNext(), pf_Frag_Object::getObjectType(), m_history, m_pDocument, m_varset, pt_VarSet::mergeAP(), PD_Document::notifyListeners(), PX_ChangeRecord::PXT_ChangeObject, SETP, UT_ASSERT_HARMLESS, UT_return_val_if_fail, and UT_UNUSED.
Referenced by _realChangeSpanFmt(), and _realChangeStruxFmt().
| bool pt_PieceTable::_getStruxFromFrag | ( | pf_Frag * | pfStart, | |
| pf_Frag_Strux ** | ppfs | |||
| ) | const [protected] |
References pf_Frag::getPrev(), pf_Frag::getType(), and pf_Frag::PFT_Strux.
Referenced by _doTheDo(), _realInsertObject(), and _realInsertSpan().
| bool pt_PieceTable::_getStruxFromFragSkip | ( | pf_Frag * | pfStart, | |
| pf_Frag_Strux ** | ppfs | |||
| ) | const [protected] |
References pf_Frag::getPrev(), pf_Frag::getType(), isEndFootnote(), isFootnote(), pf_Frag::PFT_Strux, and xxx_UT_DEBUGMSG.
Referenced by _deleteComplexSpan(), _deleteFormatting(), _doTheDo(), _getStruxOfTypeFromPosition(), _insertFmtMarkFragWithNotify(), _realChangeSpanFmt(), _realChangeStruxFmt(), _realInsertObject(), _realInsertSpan(), _realInsertStrux(), _tweakDeleteSpanOnce(), deleteFmtMark(), and insertStrux().
| bool pt_PieceTable::_getNextStruxAfterFragSkip | ( | pf_Frag * | pfStart, | |
| pf_Frag_Strux ** | ppfs | |||
| ) | [protected] |
References pf_Frag::getNext(), pf_Frag::getType(), isEndFootnote(), isFootnote(), pf_Frag::PFT_EndOfDoc, pf_Frag::PFT_Strux, and xxx_UT_DEBUGMSG.
Referenced by _insertStrux().
| bool pt_PieceTable::_getStruxFromPositionSkip | ( | PT_DocPosition | docPos, | |
| pf_Frag_Strux ** | ppfs | |||
| ) | const [protected] |
| UT_uint32 pt_PieceTable::_computeBlockOffset | ( | pf_Frag_Strux * | pfs, | |
| pf_Frag * | pfTarget | |||
| ) | const [protected] |
References pf_Frag::getLength(), and pf_Frag::getNext().
Referenced by _deleteFmtMarkWithNotify(), _deleteObjectWithNotify(), _deleteSpanWithNotify(), _fmtChangeFmtMarkWithNotify(), _fmtChangeObjectWithNotify(), _fmtChangeSpanWithNotify(), _insertFmtMarkFragWithNotify(), _realInsertObject(), and _realInsertSpan().
| bool pt_PieceTable::_loadBuiltinStyles | ( | void | ) | [protected] |
References _s, XAP_App::findNearestFont(), XAP_EncodingManager::get_instance(), XAP_EncodingManager::getLanguageISOName(), XAP_EncodingManager::getLanguageISOTerritory(), LIST_DEFAULT_INDENT, LIST_DEFAULT_INDENT_LABEL, s, UT_String_sprintf(), and UT_UTF8String::utf8_str().
Referenced by setPieceTableState().
| bool pt_PieceTable::_createBuiltinStyle | ( | const char * | szName, | |
| bool | bDisplayed, | |||
| const gchar ** | attributes | |||
| ) | [protected] |
References getStyle(), UT_GenericStringMap< T >::insert(), m_hashStyles, m_pts, m_varset, PTS_Create, pt_VarSet::storeAP(), and UT_return_val_if_fail.
| bool pt_PieceTable::_insertFmtMarkFragWithNotify | ( | PTChangeFmt | ptc, | |
| PT_DocPosition | dpos, | |||
| const gchar ** | attributes, | |||
| const gchar ** | properties | |||
| ) | [protected] |
References _chooseIndexAP(), _computeBlockOffset(), _fmtChangeFmtMarkWithNotify(), _getStruxFromFragSkip(), _getStruxOfTypeFromPosition(), _insertFmtMark(), px_ChangeHistory::addChangeRecord(), getDocument(), getFragFromPosition(), pf_Frag::getLength(), pf_Frag::getPrev(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), isEndFootnote(), m_history, m_pDocument, m_pts, m_varset, pt_VarSet::mergeAP(), PD_Document::notifyListeners(), pf_Frag::PFT_FmtMark, pf_Frag::PFT_Strux, pf_Frag::PFT_Text, PTS_Editing, PTX_Block, PX_ChangeRecord::PXT_InsertFmtMark, UT_ASSERT_HARMLESS, and UT_return_val_if_fail.
Referenced by _insertFmtMarkFragWithNotify(), _realChangeSpanFmt(), and _realDeleteSpan().
| bool pt_PieceTable::_insertFmtMarkFragWithNotify | ( | PTChangeFmt | ptc, | |
| PT_DocPosition | dpos, | |||
| PP_AttrProp * | p_AttrProp | |||
| ) | [protected] |
| bool pt_PieceTable::_insertFmtMark | ( | pf_Frag * | pf, | |
| UT_uint32 | fragOffset, | |||
| PT_AttrPropIndex | api | |||
| ) | [protected] |
References DELETEP, pt_VarSet::getBufIndex(), pf_Frag::getLength(), pf_Frag::getPrev(), pf_Frag::getType(), pf_Fragments::insertFrag(), m_fragments, m_varset, pf_Frag::PFT_Text, and UT_return_val_if_fail.
Referenced by _doTheDo(), _insertFmtMarkAfterBlockWithNotify(), and _insertFmtMarkFragWithNotify().
| bool pt_PieceTable::_insertFmtMarkAfterBlockWithNotify | ( | pf_Frag_Strux * | pfsBlock, | |
| PT_DocPosition | dpos, | |||
| PT_AttrPropIndex | api | |||
| ) | [protected] |
| bool pt_PieceTable::_deleteFmtMarkWithNotify | ( | PT_DocPosition | dpos, | |
| pf_Frag_FmtMark * | pffm, | |||
| pf_Frag_Strux * | pfs, | |||
| pf_Frag ** | ppfEnd, | |||
| UT_uint32 * | pfragOffsetEnd | |||
| ) | [protected] |
References _computeBlockOffset(), _deleteFmtMark(), px_ChangeHistory::addChangeRecord(), pf_Frag::getIndexAP(), m_history, m_pDocument, m_pts, PD_Document::notifyListeners(), PTS_Editing, PX_ChangeRecord::PXT_DeleteFmtMark, and UT_return_val_if_fail.
Referenced by _deleteFormatting(), _realInsertSpan(), and deleteFmtMark().
| bool pt_PieceTable::_deleteFmtMark | ( | pf_Frag_FmtMark * | pffm, | |
| pf_Frag ** | ppfEnd, | |||
| UT_uint32 * | pfragOffsetEnd | |||
| ) | [protected] |
References _unlinkFrag().
Referenced by _deleteFmtMarkWithNotify(), _doTheDo(), and purgeFmtMarks().
| bool pt_PieceTable::_fmtChangeFmtMarkWithNotify | ( | PTChangeFmt | ptc, | |
| pf_Frag_FmtMark * | pffm, | |||
| PT_DocPosition | dpos, | |||
| const gchar ** | attributes, | |||
| const gchar ** | properties, | |||
| pf_Frag_Strux * | pfs, | |||
| pf_Frag ** | ppfEnd, | |||
| UT_uint32 * | pfragOffsetEnd | |||
| ) | [protected] |
References _computeBlockOffset(), _fmtChangeFmtMark(), px_ChangeHistory::addChangeRecord(), getDocument(), pf_Frag::getIndexAP(), pf_Frag::getNext(), m_history, m_pDocument, m_pts, m_varset, pt_VarSet::mergeAP(), PD_Document::notifyListeners(), PTS_Editing, PX_ChangeRecord::PXT_ChangeFmtMark, SETP, UT_ASSERT_HARMLESS, and UT_return_val_if_fail.
Referenced by _insertFmtMarkFragWithNotify(), _realChangeSpanFmt(), and _realChangeStruxFmt().
| bool pt_PieceTable::_fmtChangeFmtMark | ( | pf_Frag_FmtMark * | pffm, | |
| PT_AttrPropIndex | indexNewAP, | |||
| pf_Frag ** | ppfNewEnd, | |||
| UT_uint32 * | pfragOffsetNewEnd | |||
| ) | [protected] |
References pf_Frag::getNext(), pf_Frag::setIndexAP(), and SETP.
Referenced by _doTheDo(), and _fmtChangeFmtMarkWithNotify().
| bool pt_PieceTable::_computeFmtMarkForNewBlock | ( | pf_Frag_Strux * | pfsBlock, | |
| pf_Frag * | pfCurrent, | |||
| PT_BlockOffset | fragOffset, | |||
| PT_AttrPropIndex * | pFmtMarkAP | |||
| ) | [protected] |
References pf_Frag::getIndexAP(), pf_Frag::getLength(), pf_Frag_Object::getObjectType(), pf_Frag::getPrev(), pf_Frag::getType(), pf_Frag::PFT_EndOfDoc, pf_Frag::PFT_FmtMark, pf_Frag::PFT_Object, pf_Frag::PFT_Strux, pf_Frag::PFT_Text, PTO_Field, UT_ASSERT_HARMLESS, and UT_SHOULD_NOT_HAPPEN.
Referenced by _realInsertStrux().
| bool pt_PieceTable::_getSpanAttrPropHelper | ( | pf_Frag * | pf, | |
| const PP_AttrProp ** | ppAP | |||
| ) | const [protected] |
References pt_VarSet::getAP(), pf_Frag::getIndexAP(), pf_Frag::getType(), m_varset, pf_Frag::PFT_EndOfDoc, pf_Frag::PFT_FmtMark, pf_Frag::PFT_Object, pf_Frag::PFT_Strux, and pf_Frag::PFT_Text.
Referenced by changeSpanFmt(), getSpanAttrProp(), and insertSpan().
| bool pt_PieceTable::_lastUndoIsThisFmtMark | ( | PT_DocPosition | dpos | ) | [protected] |
| bool pt_PieceTable::_changePointWithNotify | ( | PT_DocPosition | dpos | ) | [protected] |
References px_ChangeHistory::addChangeRecord(), m_history, m_pDocument, PD_Document::notifyListeners(), PX_ChangeRecord, PX_ChangeRecord::PXT_ChangePoint, and UT_return_val_if_fail.
Referenced by _realDeleteSpan().
| bool pt_PieceTable::_makeStrux | ( | PTStruxType | pts, | |
| const gchar ** | attributes, | |||
| pf_Frag_Strux *& | pfs | |||
| ) | [protected] |
References _createStrux(), m_pts, m_varset, PTS_Loading, PTX_Section, PTX_SectionHdrFtr, pt_VarSet::storeAP(), UT_getAttribute(), and UT_return_val_if_fail.
Referenced by appendStrux(), and insertStruxBeforeFrag().
| bool pt_PieceTable::_makeObject | ( | PTObjectType | pto, | |
| const gchar ** | attributes, | |||
| pf_Frag_Object *& | pfo | |||
| ) | [protected] |
References _createObject(), pf_Fragments::getFirst(), m_fragments, m_pts, m_varset, PTS_Loading, pt_VarSet::storeAP(), and UT_return_val_if_fail.
Referenced by appendObject(), and insertObjectBeforeFrag().
| bool pt_PieceTable::_makeFmtMark | ( | pf_Frag_FmtMark *& | pff | ) | [protected] |
References pf_Fragments::getFirst(), loading, m_fragments, m_pts, PTS_Loading, and UT_return_val_if_fail.
Referenced by _makeFmtMark(), appendFmtMark(), and insertFmtMarkBeforeFrag().
| bool pt_PieceTable::_makeFmtMark | ( | pf_Frag_FmtMark *& | pff, | |
| const gchar ** | attributes | |||
| ) | [protected] |
References _makeFmtMark(), pf_Fragments::getFirst(), m_fragments, m_pts, m_varset, PTS_Loading, pt_VarSet::storeAP(), and UT_return_val_if_fail.
| UT_sint32 pt_PieceTable::_getNextChangeRecordNumber | ( | void | ) | [inline, protected] |
| bool pt_PieceTable::_translateRevisionAttribute | ( | PP_RevisionAttr & | Revisions, | |
| PT_AttrPropIndex | indexAP, | |||
| PP_RevisionType | eType, | |||
| const gchar **& | ppRevAttrib, | |||
| const gchar **& | ppRevProps, | |||
| const gchar ** | ppAttrib, | |||
| const gchar ** | ppProps | |||
| ) | [protected] |
A helper function which translates a revision attribute associated with fragment of type pts at pos dpos into arrays of attributes and properties suitable for passing into formating and other funcitons.
Revisions -- an instance of an empty PP_RevisionsAttr (i.e., PP_RevisionsAttr(NULL);)
ppRevAttrib -- pointers to arrays of attributes and properties; the actual props and attribs are ppRevProps found inside the Revisions variable, so the returned pointers are only valid within the Revisions scope !!!.
ppAttrib -- pointers to any attributes/properties that are to be added to this revision, can be NULL ppProps
References PP_RevisionAttr::addRevision(), gchar, PP_AttrProp::getAttribute(), getAttrProp(), PP_RevisionAttr::getLastRevision(), AD_Document::getRevisionId(), PP_RevisionAttr::getXMLstring(), AD_Document::isMarkRevisions(), m_pDocument, name, PP_RevisionAttr::pruneForCumulativeResult(), PP_RevisionAttr::setRevision(), and UT_return_val_if_fail.
Referenced by insertObject(), insertSpan(), and insertStrux().
friend class PX_ChangeRecord [friend] |
Referenced by _changePointWithNotify(), createAndSendCR(), and createAndSendDocPropCR().
PTState pt_PieceTable::m_pts [protected] |
Referenced by _createBuiltinStyle(), _deleteFmtMarkWithNotify(), _fmtChangeFmtMarkWithNotify(), _insertFmtMarkAfterBlockWithNotify(), _insertFmtMarkFragWithNotify(), _makeFmtMark(), _makeObject(), _makeStrux(), _realChangeSpanFmt(), _realChangeStruxFmt(), _realDeleteSpan(), _realInsertObject(), _realInsertSpan(), _realInsertStrux(), appendFmt(), appendLastStruxFmt(), appendSpan(), appendStruxFmt(), deleteFieldFrag(), insertSpanBeforeFrag(), and setPieceTableState().