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

pf_Frag Class Reference

#include <pf_Frag.h>

Inheritance diagram for pf_Frag:
pf_Frag_FmtMark pf_Frag_Object pf_Frag_Strux pf_Frag_Text pf_Frag_Strux_Block pf_Frag_Strux_Section pf_Frag_Strux_SectionAnnotation pf_Frag_Strux_SectionCell pf_Frag_Strux_SectionEndAnnotation pf_Frag_Strux_SectionEndCell pf_Frag_Strux_SectionEndEndnote pf_Frag_Strux_SectionEndFootnote pf_Frag_Strux_SectionEndFrame pf_Frag_Strux_SectionEndMarginnote pf_Frag_Strux_SectionEndnote pf_Frag_Strux_SectionEndTable pf_Frag_Strux_SectionEndTOC pf_Frag_Strux_SectionFootnote pf_Frag_Strux_SectionFrame pf_Frag_Strux_SectionHdrFtr pf_Frag_Strux_SectionMarginnote pf_Frag_Strux_SectionTable pf_Frag_Strux_SectionTOC

List of all members.

Public Types

enum  PFType {
  PFT_Text = 0, PFT_Object, PFT_Strux, PFT_EndOfDoc,
  PFT_FmtMark
}

Public Member Functions

 pf_Frag (pt_PieceTable *pPT, PFType type, UT_uint32 length)
virtual ~pf_Frag ()
PFType getType (void) const
pf_FraggetNext (void) const
pf_FraggetPrev (void) const
pf_Frag_StruxgetNextStrux (PTStruxType t) const
 Get the next strux of the given type from the document.
pf_Frag_StruxtryDownCastStrux (PTStruxType t) const
UT_uint32 getLength (void) const
void zero (void)
pt_PieceTablegetPieceTable (void) const
fd_FieldgetField (void) const
PT_DocPosition getPos (void) const
void lengthChanged (UT_sint32 delta)
PT_DocPosition getLeftTreeLength (void) const
void setLeftTreeLength (PT_DocPosition length) const
void accLeftTreeLength (PT_DocPosition length)
PT_AttrPropIndex getIndexAP (void) const
virtual void setIndexAP (PT_AttrPropIndex indexNewAP)
virtual bool createSpecialChangeRecord (PX_ChangeRecord **ppcr, PT_DocPosition dpos) const
bool isContentEqual (const pf_Frag &f2) const
UT_uint32 getXID () const
void setXID (UT_uint32 xid)
virtual bool usesXID () const
bool operator== (const pf_Frag &f2) const
std::string getXMLID () const

Protected Member Functions

virtual bool _isContentEqual (const pf_Frag &) const

Protected Attributes

PFType m_type
fd_Fieldm_pField
pt_PieceTablem_pPieceTable
PT_AttrPropIndex m_indexAP
UT_uint32 m_length

Private Member Functions

void _setNode (pf_Fragments::Node *pNode)
pf_Fragments::Node_getNode (void) const

Private Attributes

UT_uint32 m_leftTreeLength
UT_uint32 m_iXID
pf_Fragments::Nodem_pMyNode

Friends

class pf_Fragments

Detailed Description

pf_Frag represents a fragment of the document. This may be text (pf_Frag_Text), an inline object such as an image (pf_Frag_Object), or structure information such as a paragraph or section (pf_Frag_Strux_Block, pf_Frag_Strux_Section).

pf_Frag is an abstract base class. We use an enum to remember type, rather than use any of the run-time stuff.


Member Enumeration Documentation

Enumerator:
PFT_Text 
PFT_Object 
PFT_Strux 
PFT_EndOfDoc 
PFT_FmtMark 

Constructor & Destructor Documentation

pf_Frag::pf_Frag ( pt_PieceTable pPT,
PFType  type,
UT_uint32  length 
)
pf_Frag::~pf_Frag (  )  [virtual]

References getType(), and xxx_UT_DEBUGMSG.


Member Function Documentation

virtual bool pf_Frag::_isContentEqual ( const pf_Frag  )  const [inline, protected, virtual]

_isContentEqual() is a helper function for operator==() and isContentEqual().

This function compares the contents of the two fragments, but not their formatting properties.

This function and its descendants in the derived classes assume that the two fragments are of the same type; it is the responsibility of the caller to ensure that !!!

Implementations in derived classes should first call _isContentEqual() of their immediate base and if it returns false, also return false. If the base function returns true, the function in derived class should carry out any further processing specific to that class; in doing so it must ignore general formating properties. For example, pf_Frag_Text::_isContentEqual() should only examine the characters contained in the fragment, but not font face, font size, etc.

Reimplemented in pf_Frag_Object, pf_Frag_Strux, and pf_Frag_Text.

Referenced by pf_Frag_Text::_isContentEqual(), pf_Frag_Strux::_isContentEqual(), pf_Frag_Object::_isContentEqual(), isContentEqual(), and operator==().

void pf_Frag::_setNode ( pf_Fragments::Node pNode  )  [private]
void pf_Frag::accLeftTreeLength ( PT_DocPosition  length  ) 
bool pf_Frag::createSpecialChangeRecord ( PX_ChangeRecord **  ppcr,
PT_DocPosition  dpos 
) const [virtual]

Reimplemented in pf_Frag_Strux.

References UT_ASSERT_HARMLESS.

PT_AttrPropIndex pf_Frag::getIndexAP ( void   )  const [inline]

Referenced by pt_PieceTable::_chooseIndexAP(), pt_PieceTable::_computeFmtMarkForNewBlock(), pt_PieceTable::_deleteComplexSpanHAR(), pt_PieceTable::_deleteFmtMarkWithNotify(), pt_PieceTable::_deleteHdrFtrsFromSectionStruxIfPresent(), pt_PieceTable::_deleteObjectWithNotify(), pt_PieceTable::_deleteSpan(), pt_PieceTable::_deleteSpanWithNotify(), pt_PieceTable::_deleteStruxWithNotify(), pt_PieceTable::_doTheDo(), pt_PieceTable::_findNextHyperlink(), pt_PieceTable::_findPrevHyperlink(), pt_PieceTable::_fixHdrFtrReferences(), pt_PieceTable::_fmtChangeFmtMarkWithNotify(), pt_PieceTable::_fmtChangeObjectWithNotify(), pt_PieceTable::_fmtChangeSpan(), pt_PieceTable::_fmtChangeSpanWithNotify(), pt_PieceTable::_fmtChangeStruxWithNotify(), pt_PieceTable::_getSpanAttrPropHelper(), pt_PieceTable::_insertSpan(), pt_PieceTable::_insertStrux(), pt_PieceTable::_realChangeSectionAttsNoUpdate(), pt_PieceTable::_realChangeStruxFmt(), pt_PieceTable::_realChangeStruxForLists(), pt_PieceTable::_realInsertSpan(), pt_PieceTable::_realInsertStrux(), fd_Field::_throwChangeRec(), pt_PieceTable::_unlinkFrag(), PD_Document::acceptAllRevisions(), PD_Document::acceptRejectRevision(), PD_DocumentRDF::addXMLIDsForObjects(), pt_PieceTable::appendLastStruxFmt(), pt_PieceTable::appendSpan(), pt_PieceTable::appendStruxFmt(), PD_Document::areDocumentFormatsEqual(), pt_PieceTable::changeObjectFormatNoUpdate(), pt_PieceTable::changeStruxFmt(), pt_PieceTable::changeStruxFmtNoUndo(), pt_PieceTable::changeStruxFormatNoUpdate(), pt_PieceTable::deleteSpan(), PD_DocumentRDF::dumpObjectMarkersFromDocument(), PD_Document::findForwardStyleStrux(), PD_Document::findHdrFtrStrux(), PD_Document::findPreviousStyleStrux(), PD_Document::getAPIFromSDH(), PD_Document::getAPIFromSOH(), PD_Document::getAttributeFromSDH(), PD_DocumentRDF::getObjectsInScopeOfTypesForRange(), PD_Document::getPropertyFromSDH(), PD_Document::getStyleFromSDH(), getXMLID(), pt_PieceTable::insertObject(), pt_PieceTable::insertSpan(), pt_PieceTable::insertSpanBeforeFrag(), pt_PieceTable::insertStrux(), pt_PieceTable::insertStruxNoUpdateBefore(), PD_Document::listUpdate(), PD_DocumentRDF::priv_addRelevantIDsForPosition(), PD_Document::purgeRevisionTable(), RDFAnchor::RDFAnchor(), PD_XMLIDCreator::rebuildCache(), PD_Document::rejectAllHigherRevisions(), PD_Document::removeList(), PD_Document::StopList(), PD_Document::updateAllLayoutsInDoc(), PD_RDFModelFromStartEndPos::updateAPList(), PD_Document::updateDocForStyleChange(), and PD_Document::verifySectionID().

UT_uint32 pf_Frag::getLength ( void   )  const [inline]

Referenced by PD_Document::_acceptRejectRevision(), pf_Fragments::_calculateSize(), pt_PieceTable::_chooseIndexAP(), pt_PieceTable::_computeBlockOffset(), pt_PieceTable::_computeFmtMarkForNewBlock(), pt_PieceTable::_deleteComplexSpan(), pt_PieceTable::_deleteComplexSpan_norec(), pt_PieceTable::_deleteFormatting(), pt_PieceTable::_deleteHdrFtrStruxWithNotify(), pt_PieceTable::_deleteObjectWithNotify(), pt_PieceTable::_deleteSpan(), pt_PieceTable::_doTheDo(), PD_StruxIterator::_findFrag(), PD_DocIterator::_findFrag(), pt_PieceTable::_fmtChangeObjectWithNotify(), pt_PieceTable::_fmtChangeSpan(), pt_PieceTable::_fmtChangeSpanWithNotify(), pt_PieceTable::_fmtChangeStruxWithNotify(), pt_PieceTable::_insertFmtMark(), pt_PieceTable::_insertFmtMarkAfterBlockWithNotify(), pt_PieceTable::_insertFmtMarkFragWithNotify(), pt_PieceTable::_insertObject(), pt_PieceTable::_insertSpan(), pt_PieceTable::_insertStrux(), pf_Frag_Text::_isContentEqual(), pt_PieceTable::_isSimpleDeleteSpan(), pf_Fragments::_leftRotate(), pt_PieceTable::_realChangeSpanFmt(), pt_PieceTable::_realChangeStruxFmt(), pt_PieceTable::_realChangeStruxForLists(), pt_PieceTable::_realDeleteSpan(), pt_PieceTable::_realInsertSpan(), pt_PieceTable::_realInsertStrux(), pf_Fragments::_rightRotate(), _tellListenerSubsetWalkRange(), pt_PieceTable::_tweakDeleteSpan(), pt_PieceTable::_tweakDeleteSpanOnce(), pt_PieceTable::_unlinkFrag(), PD_Document::acceptAllRevisions(), PD_Document::acceptRejectRevision(), pt_PieceTable::appendSpan(), PD_Document::areDocumentContentsEqual(), PD_Document::areDocumentFormatsEqual(), pt_PieceTable::calcDocsize(), pt_PieceTable::changeSpanFmt(), pt_PieceTable::changeStruxFmtNoUndo(), pt_PieceTable::deleteFieldFrag(), pt_PieceTable::deleteSpan(), PD_Document::deleteStrux(), pt_PieceTable::dumpDoc(), PD_DocumentRDF::dumpObjectMarkersFromDocument(), pf_Fragments::erase(), pf_Fragments::find(), PD_Document::findFirstDifferenceInContent(), pt_PieceTable::getBlockBuf(), pt_PieceTable::getBounds(), PD_DocIterator::getChar(), pt_PieceTable::getEndOfBlock(), pt_PieceTable::getFragFromPosition(), pt_PieceTable::getFragsFromPositions(), PD_DocumentRDF::getIDRange(), PD_DocumentRDF::getObjectsInScopeOfTypesForRange(), pf_Fragments::insertLeft(), pf_Fragments::insertRight(), pt_PieceTable::insertSpanBeforeFrag(), 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::isSectionAtPos(), PD_Document::isTableAtPos(), PD_Document::isTOCAtPos(), PD_StruxIterator::PD_StruxIterator(), PD_DocumentRDF::priv_addRelevantIDsForPosition(), PD_Document::purgeRevisionTable(), PD_Document::rejectAllHigherRevisions(), PD_Document::removeStyle(), pt_PieceTable::tellListenerSubset(), pf_Frag_Text::toString(), fd_Field::update(), PD_Document::updateDocForStyleChange(), and pf_Fragments::verifyDoc().

pf_Frag * pf_Frag::getNext ( void   )  const

References pt_PieceTable::getFragments(), m_pMyNode, m_pPieceTable, UT_return_val_if_fail, and pf_Fragments::Iterator::value().

Referenced by PD_Document::_acceptRejectRevision(), PD_Document::_checkAndFixTable(), pt_PieceTable::_computeBlockOffset(), pt_PieceTable::_deleteComplexSpan(), pt_PieceTable::_deleteComplexSpanHAR(), pt_PieceTable::_deleteFormatting(), pt_PieceTable::_deleteHdrFtrsFromSectionStruxIfPresent(), pt_PieceTable::_deleteHdrFtrStruxWithNotify(), pt_PieceTable::_deleteSpan(), fd_Field::_deleteSpan(), pt_PieceTable::_deleteSpanWithNotify(), pt_PieceTable::_doTheDo(), PD_StruxIterator::_findFrag(), PD_DocIterator::_findFrag(), IE_Imp_MsWord_97::_findNextENoteSection(), IE_Imp_MsWord_97::_findNextFNoteSection(), pt_PieceTable::_findNextHyperlink(), pt_PieceTable::_fixHdrFtrReferences(), pt_PieceTable::_fmtChangeFmtMark(), pt_PieceTable::_fmtChangeFmtMarkWithNotify(), pt_PieceTable::_fmtChangeObject(), pt_PieceTable::_fmtChangeObjectWithNotify(), pt_PieceTable::_fmtChangeSpan(), pt_PieceTable::_fmtChangeSpanWithNotify(), pt_PieceTable::_getNextStruxAfterFragSkip(), pt_PieceTable::_insertSpan(), pt_PieceTable::_insertStrux(), pt_PieceTable::_realChangeSpanFmt(), pt_PieceTable::_realChangeStruxFmt(), pt_PieceTable::_realDeleteSpan(), pt_PieceTable::_realInsertStrux(), PD_Document::_removeHdrFtr(), pt_PieceTable::_struxHasContent(), pt_PieceTable::_struxIsEmpty(), pt_PieceTable::_tellAndMaybeAddListener(), _tellListenerSubsetWalkRange(), pt_PieceTable::_tweakDeleteSpan(), pt_PieceTable::_tweakDeleteSpanOnce(), pt_PieceTable::_tweakFieldSpan(), pt_PieceTable::_unlinkFrag(), pt_PieceTable::_unlinkStrux_Block(), pt_PieceTable::_unlinkStrux_Section(), pf_Fragments::appendFrag(), pt_PieceTable::calcDocsize(), pt_PieceTable::changeStruxFmt(), pt_PieceTable::deleteFmtMark(), pt_PieceTable::deleteHdrFtrStrux(), pt_PieceTable::deleteSpan(), pt_PieceTable::deleteStruxNoUpdate(), ODi_TextContent_ListenerState::endElement(), PD_Document::findBookmark(), PD_Document::findForwardStyleStrux(), PD_Document::findFragOfType(), PD_Document::findHdrFtrStrux(), pt_PieceTable::fixMissingXIDs(), PD_DocumentRDF::getAllIDs(), PD_Document::getAllUsedStyles(), pt_PieceTable::getBlockBuf(), PD_Document::getCellSDHFromRowCol(), PD_Document::getEmbeddedOffset(), PD_Document::getEndCellStruxFromCellSDH(), PD_Document::getEndTableStruxFromTableSDH(), pt_PieceTable::getFragFromPosition(), pt_PieceTable::getFragsFromPositions(), PD_DocumentRDF::getIDRange(), PD_Document::getLastSectionMutableSDH(), PD_Document::getLastSectionSDH(), PD_Document::getNextStrux(), PD_Document::getNextStruxOfType(), PD_Document::getRowsColsFromTableSDH(), pt_PieceTable::getSpanAttrProp(), IE_Imp_RTF::HandleAnnotation(), PD_Document::hasMath(), PD_Document::miniDump(), IE_Imp_PasteListener::populateStrux(), pt_PieceTable::purgeFmtMarks(), PD_XMLIDCreator::rebuildCache(), PD_Document::removeListener(), PD_Document::removeStyle(), PD_Document::repairDoc(), s_updateMailMergeFields(), pt_PieceTable::tellListenerSubset(), PD_RDFModelFromStartEndPos::updateAPList(), PD_Document::updateDocForStyleChange(), PD_Document::updateFields(), pf_Fragments::verifyDoc(), and PD_Document::verifySectionID().

pf_Frag_Strux * pf_Frag::getNextStrux ( PTStruxType  t  )  const

Get the next strux of the given type from the document.

Note that the return value can never be this fragment even if this fragment is also a strux of the sought type.

This way, you can skip from on PTX_Block to the next in a loop using pf_Frag* pf = getFragOfType( PTX_Block ); for( ; pf; pf = pf->getNextStrux(PTX_Block) ) { ... }

References pf_Fragments::end(), pt_PieceTable::getFragments(), isStuxType(), m_pMyNode, m_pPieceTable, UT_return_val_if_fail, and pf_Fragments::Iterator::value().

PT_DocPosition pf_Frag::getPos ( void   )  const

References pf_Fragments::documentPosition(), pt_PieceTable::getFragments(), m_pMyNode, m_pPieceTable, and UT_return_val_if_fail.

Referenced by pt_PieceTable::_deleteComplexSpan(), pt_PieceTable::_deleteHdrFtrStruxWithNotify(), pt_PieceTable::_doTheDo(), PD_DocIterator::_findFrag(), pt_PieceTable::_getStruxFromPosition(), pt_PieceTable::_insertNoteInEmbeddedStruxList(), pf_Frag_Text::_isContentEqual(), pt_PieceTable::_realChangeStruxFmt(), pt_PieceTable::_realDeleteSpan(), pt_PieceTable::_realInsertSpan(), pt_PieceTable::_realInsertStrux(), pt_PieceTable::_tellAndMaybeAddListener(), pt_PieceTable::_tweakDeleteSpan(), pt_PieceTable::_unlinkStrux_Block(), PD_Document::acceptRejectRevision(), PD_DocumentRDF::addXMLIDsForBlockAndTableCellForPosition(), PD_Document::areDocumentContentsEqual(), FV_View::cmdAdvanceNextPrevCell(), FV_View::cmdInsertPositionedGraphic(), FV_View::convertInLineToPositioned(), pt_PieceTable::deleteSpan(), pt_PieceTable::deleteStruxWithNotify(), ODi_TextContent_ListenerState::endElement(), PD_Document::findFirstDifferenceInContent(), pt_PieceTable::getBounds(), PD_DocIterator::getChar(), pt_PieceTable::getEndOfBlock(), pt_PieceTable::getFragFromPosition(), pt_PieceTable::getFragPosition(), PD_DocumentRDF::getIDRange(), PD_DocumentRDF::getObjectsInScopeOfTypesForRange(), pf_Fragments::insertFrag(), IE_Imp_RTF::insertStrux(), PD_Document::isEndFootnoteAtPos(), FV_View::isInTable(), FV_View::isParaBreakNeededAtPos(), FL_DocLayout::loadPendingObjects(), FV_FrameEdit::mouseRelease(), PD_DocumentRDF::priv_addRelevantIDsForPosition(), FL_DocLayout::relocateFrame(), s_updateMailMergeFields(), and pf_Fragments::verifyDoc().

pf_Frag * pf_Frag::getPrev ( void   )  const

References pt_PieceTable::getFragments(), m_pMyNode, m_pPieceTable, UT_return_val_if_fail, and pf_Fragments::Iterator::value().

Referenced by IE_Imp_MsWord_97::_appendStrux(), PD_Document::_checkAndFixTable(), pt_PieceTable::_chooseIndexAP(), pt_PieceTable::_computeFmtMarkForNewBlock(), pt_PieceTable::_deleteComplexSpan(), pt_PieceTable::_deleteComplexSpanHAR(), pt_PieceTable::_deleteHdrFtrStruxWithNotify(), pt_PieceTable::_doTheDo(), IE_Imp_MsWord_97::_ensureInBlock(), PD_StruxIterator::_findFrag(), PD_DocIterator::_findFrag(), pt_PieceTable::_findLastStruxOfType(), pt_PieceTable::_findPrevHyperlink(), pt_PieceTable::_fmtChangeSpan(), pt_PieceTable::_getStruxFromFrag(), pt_PieceTable::_getStruxFromFragSkip(), pt_PieceTable::_getStruxFromPosition(), pt_PieceTable::_getStruxOfTypeFromPosition(), IE_Imp_MsWord_97::_insertBookmark(), pt_PieceTable::_insertFmtMark(), pt_PieceTable::_insertFmtMarkFragWithNotify(), pt_PieceTable::_insertNoteInEmbeddedStruxList(), pt_PieceTable::_insertObject(), pt_PieceTable::_insertSpan(), pt_PieceTable::_insertStrux(), pt_PieceTable::_isSimpleDeleteSpan(), pt_PieceTable::_realInsertSpan(), pt_PieceTable::_realInsertStrux(), _tellListenerSubsetWalkRange(), pt_PieceTable::_tweakDeleteSpan(), pt_PieceTable::_tweakDeleteSpanOnce(), pt_PieceTable::_tweakFieldSpan(), pt_PieceTable::_unlinkFrag(), pt_PieceTable::_unlinkStrux_Block(), pt_PieceTable::_unlinkStrux_Section(), pt_PieceTable::deleteFmtMark(), pt_PieceTable::deleteSpan(), PD_Document::deleteStrux(), ODi_TextContent_ListenerState::endElement(), PD_Document::findPreviousStyleStrux(), PD_Document::getLastStruxOfType(), PD_Document::getPrevNumberedHeadingStyle(), PD_Document::getPrevStruxOfType(), pt_PieceTable::insertFmtMarkBeforeFrag(), pt_PieceTable::insertObject(), pt_PieceTable::insertObjectBeforeFrag(), pt_PieceTable::insertSpan(), pt_PieceTable::insertSpanBeforeFrag(), PD_Document::insertStruxBeforeFrag(), pt_PieceTable::insertStruxNoUpdateBefore(), 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(), FV_View::isParaBreakNeededAtPos(), PD_Document::isSectionAtPos(), PD_Document::isStruxBeforeThis(), PD_Document::isTableAtPos(), PD_Document::isTOCAtPos(), PD_Document::miniDump(), IE_Imp_RTF::pasteFromBuffer(), and s_RTF_ListenerWriteDoc::populate().

PFType pf_Frag::getType ( void   )  const [inline]

Referenced by PD_Document::_acceptRejectRevision(), IE_Imp_MsWord_97::_appendStrux(), PD_Document::_checkAndFixTable(), pt_PieceTable::_checkSkipFootnote(), pt_PieceTable::_chooseIndexAP(), pt_PieceTable::_computeFmtMarkForNewBlock(), pt_PieceTable::_deleteComplexSpan(), pt_PieceTable::_deleteComplexSpan_norec(), pt_PieceTable::_deleteComplexSpanHAR(), pt_PieceTable::_deleteFormatting(), pt_PieceTable::_deleteHdrFtrsFromSectionStruxIfPresent(), pt_PieceTable::_deleteHdrFtrStruxWithNotify(), fd_Field::_deleteSpan(), pt_PieceTable::_doTheDo(), IE_Imp_MsWord_97::_ensureInBlock(), pt_PieceTable::_findLastStruxOfType(), pt_PieceTable::_findNextHyperlink(), pt_PieceTable::_findPrevHyperlink(), pt_PieceTable::_fixHdrFtrReferences(), IE_Imp_MsWord_97::_flush(), pt_PieceTable::_fmtChangeSpan(), pt_PieceTable::_getNextStruxAfterFragSkip(), pt_PieceTable::_getSpanAttrPropHelper(), pt_PieceTable::_getStruxFromFrag(), pt_PieceTable::_getStruxFromFragSkip(), pt_PieceTable::_getStruxFromPosition(), pt_PieceTable::_getStruxOfTypeFromPosition(), IE_Imp_Text::_insertBlock(), IE_Imp_MsWord_97::_insertBookmark(), pt_PieceTable::_insertFmtMark(), pt_PieceTable::_insertFmtMarkFragWithNotify(), IE_Imp_MsWord_97::_insertHeaderSection(), pt_PieceTable::_insertNoteInEmbeddedStruxList(), pt_PieceTable::_insertObject(), pt_PieceTable::_insertSpan(), pt_PieceTable::_insertStrux(), pt_PieceTable::_isSimpleDeleteSpan(), pt_PieceTable::_realChangeSpanFmt(), pt_PieceTable::_realChangeStruxFmt(), pt_PieceTable::_realDeleteSpan(), pt_PieceTable::_realInsertSpan(), pt_PieceTable::_realInsertStrux(), PD_Document::_removeHdrFtr(), pt_PieceTable::_struxHasContent(), pt_PieceTable::_struxIsEmpty(), _tellListenerSubsetWalkRange(), pt_PieceTable::_tweakDeleteSpan(), pt_PieceTable::_tweakDeleteSpanOnce(), pt_PieceTable::_tweakFieldSpan(), pt_PieceTable::_unlinkFrag(), pt_PieceTable::_unlinkStrux_Block(), pt_PieceTable::_unlinkStrux_Section(), IE_Imp_Text::_writeHeader(), pf_Fragments::appendFrag(), pt_PieceTable::appendSpan(), pt_PieceTable::appendStrux(), PD_Document::areDocumentContentsEqual(), pt_PieceTable::calcDocsize(), pt_PieceTable::changeSpanFmt(), pt_PieceTable::changeStruxFmt(), PD_Document::changeStruxFmtNoUndo(), PD_Document::checkForSuspect(), pt_PieceTable::deleteFmtMark(), pt_PieceTable::deleteHdrFtrStrux(), PD_Document::deleteHdrFtrStrux(), pt_PieceTable::deleteSpan(), PD_Document::deleteStrux(), pt_PieceTable::deleteStruxNoUpdate(), pt_PieceTable::dumpDoc(), PD_DocumentRDF::dumpObjectMarkersFromDocument(), PD_Document::findBookmark(), PD_Document::findFirstDifferenceInContent(), PD_Document::findForwardStyleStrux(), PD_Document::findFragOfType(), PD_Document::findHdrFtrStrux(), PD_Document::findPreviousStyleStrux(), fl_Layout::fl_Layout(), PD_Document::getAllUsedStyles(), pt_PieceTable::getBlockBuf(), PD_Document::getBookmark(), PD_Document::getCellSDHFromRowCol(), PD_StruxIterator::getChar(), PD_DocIterator::getChar(), FV_View::getChar(), PD_Document::getEndCellStruxFromCellSDH(), pt_PieceTable::getEndOfBlock(), PD_Document::getEndTableStruxFromTableSDH(), PD_Document::getField(), pt_PieceTable::getFragFromPosition(), pt_PieceTable::getFragsFromPositions(), PD_DocumentRDF::getIDRange(), PD_Document::getLastSectionMutableSDH(), PD_Document::getLastSectionSDH(), PD_Document::getLastStruxOfType(), fl_BlockLayout::getLength(), PD_DocumentRDF::getObjectsInScopeOfTypesForRange(), PD_Document::getPrevNumberedHeadingStyle(), PD_Document::getRowsColsFromTableSDH(), pt_PieceTable::getSpanAttrProp(), PD_Document::getStruxType(), getXMLID(), IE_Imp_RTF::HandleShape(), PD_Document::hasMath(), PD_Document::insertFmtMarkBeforeFrag(), pf_Fragments::insertFrag(), pf_Fragments::insertFragBefore(), pt_PieceTable::insertObject(), PD_Document::insertObjectBeforeFrag(), pt_PieceTable::insertSpan(), pt_PieceTable::insertSpanBeforeFrag(), PD_Document::insertSpanBeforeFrag(), PD_Document::insertStruxBeforeFrag(), PD_Document::isBlockAtPos(), PD_Document::isCellAtPos(), isContentEqual(), pt_PieceTable::isEndFootnote(), PD_Document::isEndFrameAtPos(), PD_Document::isEndTableAtPos(), pt_PieceTable::isFootnote(), PD_Document::isFrameAtPos(), PD_Document::isHdrFtrAtPos(), PD_Document::isInsertHyperLinkValid(), pf_Frag_Strux::isMatchingType(), FV_View::isParaBreakNeededAtPos(), PD_Document::isSectionAtPos(), PD_Document::isStruxBeforeThis(), isStuxType(), PD_Document::isTableAtPos(), PD_Document::isTOCAtPos(), PD_Document::miniDump(), operator==(), IE_Imp_RTF::pasteFromBuffer(), s_RTF_ListenerWriteDoc::populate(), IE_Imp_PasteListener::populateStrux(), PD_DocumentRDF::priv_addRelevantIDsForPosition(), pt_PieceTable::purgeFmtMarks(), PD_Document::removeListener(), PD_Document::removeStyle(), PD_Document::repairDoc(), pt_PieceTable::tellListenerSubset(), TFTEST_MAIN(), tryDownCastStrux(), pf_Fragments::unlinkFrag(), PD_Document::updateDocForStyleChange(), PD_Document::updateFields(), pf_Fragments::verifyDoc(), PD_Document::verifySectionID(), and ~pf_Frag().

bool pf_Frag::isContentEqual ( const pf_Frag f2  )  const

Returns true if the content of the two fragments is identical, but ignores formatting properies.

References _isContentEqual(), getType(), and m_pPieceTable.

Referenced by PD_Document::areDocumentContentsEqual(), and PD_Document::findFirstDifferenceInContent().

void pf_Frag::lengthChanged ( UT_sint32  delta  ) 

Tell the fragments tree that the length of this item changed by delta. delta = new_length - old_length

References pf_Fragments::changeSize(), pf_Fragments::fixSize(), pt_PieceTable::getFragments(), m_pMyNode, m_pPieceTable, and UT_return_if_fail.

Referenced by pf_Frag_Text::adjustOffsetLength(), and pf_Frag_Text::changeLength().

bool pf_Frag::operator== ( const pf_Frag f2  )  const

returns true if both content and fmt of the two frags is identical

References _isContentEqual(), pt_PieceTable::getAttrProp(), getType(), PP_AttrProp::isEquivalent(), m_indexAP, m_pPieceTable, and UT_return_val_if_fail.

void pf_Frag::setLeftTreeLength ( PT_DocPosition  length  )  const [inline]
virtual bool pf_Frag::usesXID (  )  const [inline, virtual]
void pf_Frag::zero ( void   )  [inline]

Referenced by pf_Fragments::erase().


Friends And Related Function Documentation

friend class pf_Fragments [friend]

Member Data Documentation

Referenced by accLeftTreeLength().

PFType pf_Frag::m_type [protected]

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