#include <pf_Frag_Strux.h>
Public Member Functions | |
pf_Frag_Strux (pt_PieceTable *pPT, PTStruxType struxType, UT_uint32 length, PT_AttrPropIndex indexAP) | |
virtual | ~pf_Frag_Strux () |
PTStruxType | getStruxType (void) const |
fl_ContainerLayout * | getFmtHandle (PL_ListenerId lid) const |
bool | setFmtHandle (PL_ListenerId lid, fl_ContainerLayout *sfh) |
void | clearAllFmtHandles () |
virtual bool | createSpecialChangeRecord (PX_ChangeRecord **ppcr, PT_DocPosition dpos) const |
virtual bool | usesXID () const |
bool | isMatchingType (PTStruxType e) const |
bool | isMatchingType (const pf_Frag *p) const |
Protected Member Functions | |
virtual bool | _isContentEqual (const pf_Frag &f2) const |
Protected Attributes | |
PTStruxType | m_struxType |
UT_GenericVector < fl_ContainerLayout * > | m_vecFmtHandle |
pf_Frag_Strux represents structure information (such as a paragraph or section) in the document.
pf_Frag_Strux is descended from pf_Frag, but is a base class for pf_Frag_Strux_Block and pf_Frag_Strux_Section.
We use an enum to remember type, rather than use any of the run-time stuff.
pf_Frag_Strux::pf_Frag_Strux | ( | pt_PieceTable * | pPT, | |
PTStruxType | struxType, | |||
UT_uint32 | length, | |||
PT_AttrPropIndex | indexAP | |||
) |
References pf_Frag::m_indexAP, and m_struxType.
pf_Frag_Strux::~pf_Frag_Strux | ( | ) | [virtual] |
bool pf_Frag_Strux::_isContentEqual | ( | const pf_Frag & | f2 | ) | const [protected, virtual] |
Reimplemented from pf_Frag.
References pf_Frag::_isContentEqual(), getStruxType(), and m_struxType.
void pf_Frag_Strux::clearAllFmtHandles | ( | ) | [inline] |
Referenced by pt_PieceTable::deleteSpan().
bool pf_Frag_Strux::createSpecialChangeRecord | ( | PX_ChangeRecord ** | ppcr, | |
PT_DocPosition | dpos | |||
) | const [virtual] |
Reimplemented from pf_Frag.
References pf_Frag::getXID(), pf_Frag::m_indexAP, m_struxType, PX_ChangeRecord::PXT_InsertStrux, and UT_return_val_if_fail.
Referenced by pt_PieceTable::_tellAndMaybeAddListener(), _tellListenerSubsetWalkRange(), and pt_PieceTable::tellListenerSubset().
fl_ContainerLayout * pf_Frag_Strux::getFmtHandle | ( | PL_ListenerId | lid | ) | const |
PTStruxType pf_Frag_Strux::getStruxType | ( | void | ) | const |
References m_struxType.
Referenced by PD_Document::_acceptRejectRevision(), IE_Imp_MsWord_97::_appendStrux(), PD_Document::_checkAndFixTable(), pt_PieceTable::_deleteComplexSpan(), pt_PieceTable::_deleteFormatting(), pt_PieceTable::_deleteHdrFtrsFromSectionStruxIfPresent(), pt_PieceTable::_deleteHdrFtrStruxWithNotify(), pt_PieceTable::_deleteStruxWithNotify(), IE_Imp_MsWord_97::_ensureInBlock(), pt_PieceTable::_findLastStruxOfType(), IE_Imp_MsWord_97::_flush(), pt_PieceTable::_fmtChangeStruxWithNotify(), pt_PieceTable::_getStruxOfTypeFromPosition(), IE_Imp_MsWord_97::_insertBookmark(), pt_PieceTable::_insertFmtMarkFragWithNotify(), pt_PieceTable::_insertNoteInEmbeddedStruxList(), pt_PieceTable::_insertStrux(), _isContentEqual(), pt_PieceTable::_realChangeStruxFmt(), pt_PieceTable::_realChangeStruxForLists(), pt_PieceTable::_realDeleteSpan(), pt_PieceTable::_realInsertStrux(), PD_Document::_removeHdrFtr(), pt_PieceTable::_StruxIsNotTable(), pt_PieceTable::_tweakDeleteSpan(), pt_PieceTable::_tweakDeleteSpanOnce(), pt_PieceTable::_unlinkStrux(), pt_PieceTable::_unlinkStrux_Block(), pt_PieceTable::_unlinkStrux_Section(), pt_PieceTable::appendStrux(), pt_PieceTable::changeStruxFmt(), pt_PieceTable::changeStruxFmtNoUndo(), PD_Document::checkForSuspect(), pt_PieceTable::deleteHdrFtrStrux(), pt_PieceTable::deleteSpan(), PD_Document::findFragOfType(), PD_Document::findHdrFtrStrux(), pt_PieceTable::getBlockBuf(), PD_Document::getCellSDHFromRowCol(), PD_Document::getEmbeddedOffset(), PD_Document::getEndCellStruxFromCellSDH(), PD_Document::getEndTableStruxFromTableSDH(), PD_DocumentRDF::getIDRange(), PD_Document::getLastSectionMutableSDH(), PD_Document::getLastSectionSDH(), PD_Document::getLastStruxOfType(), fl_BlockLayout::getLength(), PD_Document::getNextStruxOfType(), PD_Document::getPrevStruxOfType(), PD_Document::getRowsColsFromTableSDH(), PD_Document::getStruxType(), pf_Frag::getXMLID(), IE_Imp_RTF::HandleShape(), PD_Document::insertFmtMarkBeforeFrag(), PD_Document::insertObjectBeforeFrag(), PD_Document::insertSpanBeforeFrag(), pt_PieceTable::insertStrux(), PD_Document::insertStruxBeforeFrag(), PD_Document::insertStruxNoUpdateBefore(), PD_Document::isBlockAtPos(), PD_Document::isCellAtPos(), pt_PieceTable::isEndFootnote(), PD_Document::isEndFootnoteAtPos(), PD_Document::isEndFrameAtPos(), PD_Document::isEndTableAtPos(), pt_PieceTable::isFootnote(), PD_Document::isFootnoteAtPos(), PD_Document::isFrameAtPos(), PD_Document::isHdrFtrAtPos(), PD_Document::isInsertHyperLinkValid(), isMatchingType(), FV_View::isParaBreakNeededAtPos(), PD_Document::isSectionAtPos(), PD_Document::isStruxBeforeThis(), isStuxType(), PD_Document::isTableAtPos(), PD_Document::isTOCAtPos(), PD_Document::miniDump(), IE_Imp_RTF::pasteFromBuffer(), PD_Document::repairDoc(), pf_Frag::tryDownCastStrux(), PD_Document::updateDocForStyleChange(), and PD_Document::verifySectionID().
bool pf_Frag_Strux::isMatchingType | ( | const pf_Frag * | p | ) | const |
References getStruxType(), pf_Frag::getType(), isMatchingType(), and UT_return_val_if_fail.
bool pf_Frag_Strux::isMatchingType | ( | PTStruxType | e | ) | const |
References getStruxType(), PTX_Block, PTX_EndCell, PTX_EndEndnote, PTX_EndFootnote, PTX_EndFrame, PTX_EndMarginnote, PTX_EndTable, PTX_EndTOC, PTX_Section, PTX_SectionCell, PTX_SectionEndnote, PTX_SectionFootnote, PTX_SectionFrame, PTX_SectionHdrFtr, PTX_SectionMarginnote, PTX_SectionTable, PTX_SectionTOC, PTX_StruxDummy, UT_ASSERT_HARMLESS, and UT_SHOULD_NOT_HAPPEN.
Referenced by isMatchingType().
bool pf_Frag_Strux::setFmtHandle | ( | PL_ListenerId | lid, | |
fl_ContainerLayout * | sfh | |||
) |
References m_vecFmtHandle, and UT_GenericVector< T >::setNthItem().
Referenced by pt_PieceTable::_tellAndMaybeAddListener(), PD_Document::removeListener(), and s_BindHandles().
bool pf_Frag_Strux::usesXID | ( | ) | const [virtual] |
Reimplemented from pf_Frag.
References m_struxType, PTX_Block, PTX_Section, PTX_SectionCell, PTX_SectionEndnote, PTX_SectionFootnote, PTX_SectionFrame, PTX_SectionHdrFtr, PTX_SectionMarginnote, PTX_SectionTable, and PTX_SectionTOC.
PTStruxType pf_Frag_Strux::m_struxType [protected] |
Referenced by _isContentEqual(), createSpecialChangeRecord(), getStruxType(), pf_Frag_Strux(), pf_Frag_Strux_Section::pf_Frag_Strux_Section(), pf_Frag_Strux_SectionAnnotation::pf_Frag_Strux_SectionAnnotation(), pf_Frag_Strux_SectionCell::pf_Frag_Strux_SectionCell(), pf_Frag_Strux_SectionEndAnnotation::pf_Frag_Strux_SectionEndAnnotation(), pf_Frag_Strux_SectionEndCell::pf_Frag_Strux_SectionEndCell(), pf_Frag_Strux_SectionEndEndnote::pf_Frag_Strux_SectionEndEndnote(), pf_Frag_Strux_SectionEndFootnote::pf_Frag_Strux_SectionEndFootnote(), pf_Frag_Strux_SectionEndFrame::pf_Frag_Strux_SectionEndFrame(), pf_Frag_Strux_SectionEndMarginnote::pf_Frag_Strux_SectionEndMarginnote(), pf_Frag_Strux_SectionEndnote::pf_Frag_Strux_SectionEndnote(), pf_Frag_Strux_SectionEndTable::pf_Frag_Strux_SectionEndTable(), pf_Frag_Strux_SectionEndTOC::pf_Frag_Strux_SectionEndTOC(), pf_Frag_Strux_SectionFootnote::pf_Frag_Strux_SectionFootnote(), pf_Frag_Strux_SectionFrame::pf_Frag_Strux_SectionFrame(), pf_Frag_Strux_SectionHdrFtr::pf_Frag_Strux_SectionHdrFtr(), pf_Frag_Strux_SectionMarginnote::pf_Frag_Strux_SectionMarginnote(), pf_Frag_Strux_SectionTable::pf_Frag_Strux_SectionTable(), pf_Frag_Strux_SectionTOC::pf_Frag_Strux_SectionTOC(), and usesXID().
UT_GenericVector<fl_ContainerLayout*> pf_Frag_Strux::m_vecFmtHandle [protected] |
Referenced by getFmtHandle(), and setFmtHandle().