LibreOffice Module sw (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SwTOXBaseSection Class Reference

#include <doctxm.hxx>

Inheritance diagram for SwTOXBaseSection:
[legend]
Collaboration diagram for SwTOXBaseSection:
[legend]

Public Member Functions

 SwTOXBaseSection (SwTOXBase const &rBase, SwSectionFormat &rFormat)
 
virtual ~SwTOXBaseSection () override
 
void Update (const SfxItemSet *pAttr=nullptr, SwRootFrame const *pLayout=nullptr, const bool _bNewTOX=false)
 Collect table of contents content. More...
 
void UpdatePageNum ()
 Calculate PageNumber and insert after formatting. More...
 
bool SetPosAtStartEnd (SwPosition &rPos) const
 
- Public Member Functions inherited from SwTOXBase
 SwTOXBase (const SwTOXType *pTyp, const SwForm &rForm, SwTOXElement nCreaType, const OUString &rTitle)
 
 SwTOXBase (const SwTOXBase &rCopy, SwDoc *pDoc=nullptr)
 
virtual ~SwTOXBase () override
 
virtual bool GetInfo (SfxPoolItem &rInfo) const override
 
void CopyTOXBase (SwDoc *, const SwTOXBase &)
 
const SwTOXTypeGetTOXType () const
 
SwTOXElement GetCreateType () const
 
const OUString & GetTOXName () const
 
void SetTOXName (const OUString &rSet)
 
const OUString & GetMSTOCExpression () const
 
void SetMSTOCExpression (const OUString &rExp)
 
void EnableKeepExpression ()
 
void DisableKeepExpression ()
 
const OUString & GetTitle () const
 
const OUString & GetBookmarkName () const
 
OUString const & GetTypeName () const
 
const SwFormGetTOXForm () const
 
void SetCreate (SwTOXElement)
 
void SetTitle (const OUString &rTitle)
 
void SetTOXForm (const SwForm &rForm)
 
void SetBookmarkName (const OUString &bName)
 
TOXTypes GetType () const
 
const OUString & GetMainEntryCharStyle () const
 
void SetMainEntryCharStyle (const OUString &rSet)
 
const OUString & GetEntryTypeName () const
 
void SetEntryTypeName (const OUString &sName)
 
void SetLevel (sal_uInt16)
 
sal_uInt16 GetLevel () const
 
SwTOIOptions GetOptions () const
 
void SetOptions (SwTOIOptions nOpt)
 
SwTOOElements GetOLEOptions () const
 
void SetOLEOptions (SwTOOElements nOpt)
 
OUString const & GetStyleNames (sal_uInt16 nLevel) const
 
void SetStyleNames (const OUString &rSet, sal_uInt16 nLevel)
 
bool IsFromChapter () const
 
void SetFromChapter (bool bSet)
 
bool IsFromObjectNames () const
 
void SetFromObjectNames (bool bSet)
 
bool IsLevelFromChapter () const
 
void SetLevelFromChapter (bool bSet)
 
bool IsProtected () const
 
void SetProtected (bool bSet)
 
const OUString & GetSequenceName () const
 
void SetSequenceName (const OUString &rSet)
 
SwCaptionDisplay GetCaptionDisplay () const
 
void SetCaptionDisplay (SwCaptionDisplay eSet)
 
bool IsTOXBaseInReadonly () const
 
const SfxItemSetGetAttrSet () const
 
void SetAttrSet (const SfxItemSet &)
 
LanguageType GetLanguage () const
 
void SetLanguage (LanguageType nLang)
 
const OUString & GetSortAlgorithm () const
 
void SetSortAlgorithm (const OUString &rSet)
 
void AdjustTabStops (SwDoc const &rDoc)
 
SwTOXBaseoperator= (const SwTOXBase &rSource)
 
void RegisterToTOXType (SwTOXType &rMark)
 
- Public Member Functions inherited from SwClient
 SwClient ()
 
 SwClient (SwClient &&) noexcept
 
virtual ~SwClient () override
 
virtual void SwClientNotify (const SwModify &, const SfxHint &rHint) override
 
std::unique_ptr< sw::ModifyChangedHintCheckRegistration (const SfxPoolItem *pOldValue)
 
virtual void ModifyNotification (const SfxPoolItem *pOldValue, const SfxPoolItem *pNewValue)
 
void SwClientNotifyCall (const SwModify &rModify, const SfxHint &rHint)
 
const SwModifyGetRegisteredIn () const
 
SwModifyGetRegisteredIn ()
 
void EndListeningAll ()
 
void StartListeningToSameModifyAs (const SwClient &)
 
- Public Member Functions inherited from sw::WriterListener
bool IsLast () const
 
- Public Member Functions inherited from SwSection
 SwSection (SectionType const eType, OUString const &rName, SwSectionFormat &rFormat)
 
virtual ~SwSection () override
 
bool DataEquals (SwSectionData const &rCmp) const
 
void SetSectionData (SwSectionData const &rData)
 
const OUString & GetSectionName () const
 
void SetSectionName (OUString const &rName)
 
SectionType GetType () const
 
void SetType (SectionType const eType)
 
SwSectionFormatGetFormat ()
 
SwSectionFormat const * GetFormat () const
 
bool IsHidden () const
 
void SetHidden (bool const bFlag=true)
 
bool IsProtect () const
 
void SetProtect (bool const bFlag=true)
 
bool IsEditInReadonly () const
 
void SetEditInReadonly (bool const bFlag=true)
 
bool IsHiddenFlag () const
 
bool IsProtectFlag () const
 
bool IsEditInReadonlyFlag () const
 
void SetCondHidden (bool const bFlag)
 
bool IsCondHidden () const
 
bool CalcHiddenFlag () const
 
SwSectionGetParent () const
 
OUString const & GetCondition () const
 
void SetCondition (OUString const &rNew)
 
OUString const & GetLinkFileName () const
 
void SetLinkFileName (OUString const &rNew)
 
OUString const & GetLinkFilePassword () const
 
void SetLinkFilePassword (OUString const &rS)
 
css::uno::Sequence< sal_Int8 > const & GetPassword () const
 
void SetRefObject (SwServerObject *pObj)
 
const SwServerObjectGetObject () const
 
SwServerObjectGetObject ()
 
bool IsServer () const
 
SfxLinkUpdateMode GetUpdateType () const
 
void SetUpdateType (SfxLinkUpdateMode nType)
 
bool IsConnected () const
 
void UpdateNow ()
 
void Disconnect ()
 
const ::sfx2::SvBaseLinkGetBaseLink () const
 
::sfx2::SvBaseLinkGetBaseLink ()
 
void CreateLink (LinkCreateType eType)
 
bool IsLinkType () const
 
bool IsConnectFlag () const
 
void SetConnectFlag (bool const bFlag=true)
 
const SwTOXBaseGetTOXBase () const
 
void BreakLink ()
 

Private Member Functions

void UpdateMarks (const SwTOXInternational &rIntl, const SwTextNode *pOwnChapterNode, SwRootFrame const *pLayout)
 Create from Marks. More...
 
void UpdateOutline (const SwTextNode *pOwnChapterNode, SwRootFrame const *pLayout)
 Generate table of contents from outline. More...
 
void UpdateTemplate (const SwTextNode *pOwnChapterNode, SwRootFrame const *pLayout)
 Generate table of contents from template areas. More...
 
void UpdateContent (SwTOXElement eType, const SwTextNode *pOwnChapterNode, SwRootFrame const *pLayout)
 
void UpdateTable (const SwTextNode *pOwnChapterNode, SwRootFrame const *pLayout)
 Collect table entries. More...
 
void UpdateSequence (const SwTextNode *pOwnChapterNode, SwRootFrame const *pLayout)
 Generate content from sequence fields. More...
 
void UpdateAuthorities (const SwTOXInternational &rIntl, SwRootFrame const *pLayout)
 
void InsertSorted (std::unique_ptr< SwTOXSortTabBase > pBase)
 
void InsertAlphaDelimiter (const SwTOXInternational &rIntl)
 
void UpdatePageNum_ (SwTextNode *pNd, const std::vector< sal_uInt16 > &rNums, const std::vector< SwPageDesc * > &rDescs, const std::vector< sal_uInt16 > *pMainEntryNums, const SwTOXInternational &rIntl)
 
Range GetKeyRange (const OUString &rStr, const OUString &rStrReading, const SwTOXSortTabBase &rNew, sal_uInt16 nLevel, const Range &rRange)
 Find Key Range and insert if possible. More...
 
SwTextFormatCollGetTextFormatColl (sal_uInt16 nLevel)
 Evaluate Template. More...
 

Private Attributes

std::vector< std::unique_ptr< SwTOXSortTabBase > > m_aSortArr
 

Additional Inherited Members

- Static Public Member Functions inherited from SwSection
static void MakeChildLinksVisible (const SwSectionNode &rSectNd)
 
- Protected Member Functions inherited from SwClient
 SwClient (SwModify *pToRegisterIn)
 
SwModifyGetRegisteredInNonConst () const
 
- Protected Member Functions inherited from sw::WriterListener
 WriterListener ()
 
virtual ~WriterListener () COVERITY_NOEXCEPT_FALSE
 
- Protected Member Functions inherited from SwSection
virtual void Modify (const SfxPoolItem *pOld, const SfxPoolItem *pNew) override
 
- Protected Attributes inherited from SwTOXBase
OUString maMSTOCExpression
 
bool mbKeepExpression
 

Detailed Description

Definition at line 34 of file doctxm.hxx.

Constructor & Destructor Documentation

SwTOXBaseSection::SwTOXBaseSection ( SwTOXBase const &  rBase,
SwSectionFormat rFormat 
)
SwTOXBaseSection::~SwTOXBaseSection ( )
overridevirtual

Definition at line 753 of file doctxm.cxx.

Member Function Documentation

Range SwTOXBaseSection::GetKeyRange ( const OUString &  rStr,
const OUString &  rStrReading,
const SwTOXSortTabBase rNew,
sal_uInt16  nLevel,
const Range rRange 
)
private
SwTextFormatColl * SwTOXBaseSection::GetTextFormatColl ( sal_uInt16  nLevel)
private
void SwTOXBaseSection::InsertAlphaDelimiter ( const SwTOXInternational rIntl)
private
void SwTOXBaseSection::InsertSorted ( std::unique_ptr< SwTOXSortTabBase pBase)
private
bool SwTOXBaseSection::SetPosAtStartEnd ( SwPosition rPos) const
void SwTOXBaseSection::Update ( const SfxItemSet pAttr = nullptr,
SwRootFrame const *  pLayout = nullptr,
const bool  _bNewTOX = false 
)

Collect table of contents content.

Definition at line 772 of file doctxm.cxx.

References aBreakSetRange, AlphaDelimiter, Any, IDocumentUndoRedo::AppendUndo(), SwIndex::Assign(), SwFrame::CheckPageDescs(), SwDoc::ChgFormat(), SwDoc::CorrAbs(), SwNodes::Delete(), IDocumentRedlineAccess::DeleteRedline(), DelFlyInRange(), IDocumentUndoRedo::DoesUndo(), SwNode::EndOfSectionIndex(), SwNode::EndOfSectionNode(), SwNode::FindPageDesc(), fnMoveBackward, fnMoveForward, FORM_TITLE, Frame, sw::DocumentSettingManager::get(), SwDoc::GetAllLayouts(), SwDoc::GetAttrPool(), SvxFormatBreakItem::GetBreak(), SwAttrSet::GetBreak(), SwNode::GetContentNode(), SwTOXBase::GetCreateType(), SwNode::GetDoc(), SwDoc::GetDocShell(), SwDoc::GetDocumentSettingManager(), SwNodes::GetEndOfContent(), SwSection::GetFormat(), SwDoc::getIDocumentRedlineAccess(), SwDoc::getIDocumentState(), SwDoc::getIDocumentStylePoolAccess(), SwDoc::GetIDocumentUndoRedo(), SwNodeIndex::GetIndex(), SwNode::GetIndex(), SwTOXBase::GetLanguage(), SwNodeIndex::GetNode(), SwNode::GetNodes(), SwDoc::GetNodes(), SwTOXBase::GetOptions(), SwFormatPageDesc::GetPageDesc(), SwFormat::GetPageDesc(), SwDoc::GetPageDesc(), SwPaM::GetPoint(), SwTOXMark::GetPrimaryKey(), SwContentNode::GetpSwAttrSet(), SwNode::GetRedlineMergeFlag(), SwClient::GetRegisteredIn(), SwTOXMark::GetSecondaryKey(), SwSectionNode::GetSection(), SwTOXBase::GetSequenceName(), SwTOXBase::GetSortAlgorithm(), SwContentNode::GetSwAttrSet(), IDocumentStylePoolAccess::GetTextCollFromPool(), GetTextFormatColl(), SwTOXBase::GetTitle(), SwTOXBase::GetTOXForm(), SwTOXBase::GetTOXName(), SwTOXBase::GetTOXType(), SwSection::GetType(), SwTOXBase::GetType(), SwNodes::GoNext(), SwNodes::GoPrevious(), Graphic, SwContentNode::HasSwAttrSet(), SwNode::Hidden, InsertAlphaDelimiter(), SwTextNode::InsertText(), SwNodes::InsertTextSection(), SwNodes::IsDocNodes(), SwTOXBase::IsFromChapter(), SwTOXBase::IsFromObjectNames(), SwSection::IsHiddenFlag(), SwRootFrame::IsHideRedlines(), SwTOXBase::IsProtected(), SwForm::IsRelTabPos(), lcl_FindChapterNode(), m_aSortArr, SwDoc::MakeSectionFormat(), SwNodes::MakeTextNode(), SwTOXBase::maMSTOCExpression, Mark, SwTOXBase::mbKeepExpression, SwPaM::Move(), SwPosition::nContent, NONE, Ole, OutlineLevel, RES_POOLCOLL_TEXT, SwNode2LayoutSaveUpperFrames::RestoreUpperFrames(), SwContentNode::SetAttr(), IDocumentState::SetModified(), SetProgressState(), SwSection::SetProtect(), SwNode::StartOfSectionIndex(), Table, TABS_RELATIVE_TO_INDENT, sw::DefaultToxTabStopTokenHandler::TABSTOPS_RELATIVE_TO_INDENT, sw::DefaultToxTabStopTokenHandler::TABSTOPS_RELATIVE_TO_PAGE, Template, SwUndoUpdateIndex::TitleSectionInserted(), TOX_AUTHORITIES, TOX_HEADER_SECTION, TOX_ILLUSTRATIONS, TOX_INDEX, TOX_OBJECTS, TOX_SORT_INDEX, TOX_TABLES, UpdateAuthorities(), UpdateContent(), UpdateMarks(), SwDoc::UpdateNumRule(), UpdateOutline(), UpdateSequence(), UpdateTable(), and UpdateTemplate().

Referenced by SwXDocumentIndex::refresh(), and SwEditShell::UpdateTableOf().

void SwTOXBaseSection::UpdateAuthorities ( const SwTOXInternational rIntl,
SwRootFrame const *  pLayout 
)
private
void SwTOXBaseSection::UpdateContent ( SwTOXElement  eType,
const SwTextNode pOwnChapterNode,
SwRootFrame const *  pLayout 
)
private
void SwTOXBaseSection::UpdateMarks ( const SwTOXInternational rIntl,
const SwTextNode pOwnChapterNode,
SwRootFrame const *  pLayout 
)
private
void SwTOXBaseSection::UpdateOutline ( const SwTextNode pOwnChapterNode,
SwRootFrame const *  pLayout 
)
private
void SwTOXBaseSection::UpdatePageNum ( )
void SwTOXBaseSection::UpdatePageNum_ ( SwTextNode pNd,
const std::vector< sal_uInt16 > &  rNums,
const std::vector< SwPageDesc * > &  rDescs,
const std::vector< sal_uInt16 > *  pMainEntryNums,
const SwTOXInternational rIntl 
)
private
void SwTOXBaseSection::UpdateSequence ( const SwTextNode pOwnChapterNode,
SwRootFrame const *  pLayout 
)
private
void SwTOXBaseSection::UpdateTable ( const SwTextNode pOwnChapterNode,
SwRootFrame const *  pLayout 
)
private
void SwTOXBaseSection::UpdateTemplate ( const SwTextNode pOwnChapterNode,
SwRootFrame const *  pLayout 
)
private

Member Data Documentation

std::vector<std::unique_ptr<SwTOXSortTabBase> > SwTOXBaseSection::m_aSortArr
private

Definition at line 36 of file doctxm.hxx.

Referenced by GetKeyRange(), InsertAlphaDelimiter(), InsertSorted(), Update(), and UpdatePageNum().


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