#include <pf_Frag.h>
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.
enum pf_Frag::PFType |
pf_Frag::pf_Frag | ( | pt_PieceTable * | pPT, | |
PFType | type, | |||
UT_uint32 | length | |||
) |
pf_Frag::~pf_Frag | ( | ) | [virtual] |
References getType(), and xxx_UT_DEBUGMSG.
pf_Fragments::Node * pf_Frag::_getNode | ( | void | ) | const [private] |
References m_pMyNode.
Referenced by pf_Fragments::_calculateLeftSize(), pf_Fragments::insertFrag(), pf_Fragments::insertFragBefore(), and pf_Fragments::unlinkFrag().
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] |
References m_pMyNode.
Referenced by pf_Fragments::erase(), pf_Fragments::insertLeft(), and pf_Fragments::insertRight().
void pf_Frag::accLeftTreeLength | ( | PT_DocPosition | length | ) |
References m_leftTreeLength.
Referenced by pf_Fragments::_leftRotate(), and pf_Fragments::_rightRotate().
bool pf_Frag::createSpecialChangeRecord | ( | PX_ChangeRecord ** | ppcr, | |
PT_DocPosition | dpos | |||
) | const [virtual] |
Reimplemented in pf_Frag_Strux.
References UT_ASSERT_HARMLESS.
fd_Field * pf_Frag::getField | ( | void | ) | const |
References m_pField.
Referenced by pt_PieceTable::_deleteObjectWithNotify(), pt_PieceTable::_deleteSpan(), fd_Field::_deleteSpan(), pt_PieceTable::_deleteSpanWithNotify(), pt_PieceTable::_doTheDo(), pt_PieceTable::_fmtChangeSpan(), pt_PieceTable::_insertSpan(), pt_PieceTable::_insertStrux(), pf_Frag_Object::_isContentEqual(), pt_PieceTable::_realInsertObject(), pt_PieceTable::_realInsertSpan(), pt_PieceTable::_tweakFieldSpan(), PD_Document::getField(), PD_Document::insertObject(), s_updateMailMergeFields(), and PD_Document::updateFields().
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().
PT_DocPosition pf_Frag::getLeftTreeLength | ( | void | ) | const [inline] |
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_PieceTable* pf_Frag::getPieceTable | ( | void | ) | const [inline] |
Referenced by pt_PieceTable::_deleteComplexSpanHAR(), pt_PieceTable::_findNextHyperlink(), pt_PieceTable::_findPrevHyperlink(), pf_Frag_Text::_isContentEqual(), PD_DocumentRDF::addXMLIDsForObjects(), PD_DocumentRDF::dumpObjectMarkersFromDocument(), PD_DocumentRDF::getObjectsInScopeOfTypesForRange(), and PD_DocumentRDF::priv_addRelevantIDsForPosition().
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().
UT_uint32 pf_Frag::getXID | ( | ) | const [inline] |
Referenced by pt_PieceTable::_deleteObjectWithNotify(), pt_PieceTable::_deleteStruxWithNotify(), pt_PieceTable::_realInsertObject(), pt_PieceTable::_realInsertStrux(), fd_Field::_throwChangeRec(), pf_Frag_Strux::createSpecialChangeRecord(), pf_Frag_Object::createSpecialChangeRecord(), pt_PieceTable::fixMissingXIDs(), PD_Document::getFragXIDforVersion(), PD_Document::listUpdate(), PD_Document::removeStyle(), PD_Document::StopList(), and PD_Document::updateAllLayoutsInDoc().
std::string pf_Frag::getXMLID | ( | ) | const |
References PP_AttrProp::getAttribute(), pt_PieceTable::getAttrProp(), RDFAnchor::getID(), getIndexAP(), pf_Frag_Object::getObjectType(), pf_Frag_Strux::getStruxType(), getType(), m_pPieceTable, PFT_Object, PFT_Strux, PT_XMLID, PTX_Block, PTX_SectionCell, and v.
Referenced by PD_DocumentRDF::getAllIDs(), and PD_DocumentRDF::getIDRange().
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.
virtual void pf_Frag::setIndexAP | ( | PT_AttrPropIndex | indexNewAP | ) | [inline, virtual] |
void pf_Frag::setLeftTreeLength | ( | PT_DocPosition | length | ) | const [inline] |
Referenced by pf_Fragments::erase(), pf_Fragments::insertLeft(), pf_Fragments::insertRight(), and pf_Fragments::verifyDoc().
void pf_Frag::setXID | ( | UT_uint32 | xid | ) | [inline] |
pf_Frag_Strux * pf_Frag::tryDownCastStrux | ( | PTStruxType | t | ) | const |
References pt_PieceTable::getFragments(), pf_Frag_Strux::getStruxType(), getType(), m_pMyNode, m_pPieceTable, PFT_Strux, and pf_Fragments::Iterator::value().
Referenced by tryDownCastStrux().
virtual bool pf_Frag::usesXID | ( | ) | const [inline, virtual] |
Reimplemented in pf_Frag_FmtMark, pf_Frag_Object, pf_Frag_Strux, and pf_Frag_Text.
Referenced by pt_PieceTable::fixMissingXIDs().
void pf_Frag::zero | ( | void | ) | [inline] |
Referenced by pf_Fragments::erase().
friend class pf_Fragments [friend] |
PT_AttrPropIndex pf_Frag::m_indexAP [protected] |
Referenced by pf_Frag_Text::createSpecialChangeRecord(), pf_Frag_Strux::createSpecialChangeRecord(), pf_Frag_Object::createSpecialChangeRecord(), pf_Frag_FmtMark::createSpecialChangeRecord(), operator==(), pf_Frag_FmtMark::pf_Frag_FmtMark(), pf_Frag_Object::pf_Frag_Object(), pf_Frag_Strux::pf_Frag_Strux(), and pf_Frag_Text::pf_Frag_Text().
UT_uint32 pf_Frag::m_iXID [private] |
UT_uint32 pf_Frag::m_leftTreeLength [mutable, private] |
Referenced by accLeftTreeLength().
UT_uint32 pf_Frag::m_length [protected] |
fd_Field* pf_Frag::m_pField [protected] |
pf_Fragments::Node* pf_Frag::m_pMyNode [private] |
Referenced by _getNode(), _setNode(), getNext(), getNextStrux(), getPos(), getPrev(), lengthChanged(), and tryDownCastStrux().
pt_PieceTable* pf_Frag::m_pPieceTable [protected] |
PFType pf_Frag::m_type [protected] |