19#ifndef INCLUDED_SW_INC_TOX_HXX
20#define INCLUDED_SW_INC_TOX_HXX
33#include <com/sun/star/text/XDocumentIndexMark.hpp>
66 std::vector<std::reference_wrapper<SwTextTOXMark>>&
m_rMarks;
72 -> std::optional<std::pair<SwTOXMark, sal_Int32>>;
82 ,
public sw::BroadcastingModify
124 void InvalidateTOXMark();
126 OUString GetText(
SwRootFrame const* pLayout)
const;
128 inline bool IsAlternativeText()
const;
129 inline const OUString& GetAlternativeText()
const;
131 inline void SetAlternativeText(
const OUString& rAlt );
134 inline void SetLevel(sal_uInt16 nLevel);
135 inline sal_uInt16 GetLevel()
const;
136 inline void SetBookmarkName(
const OUString& bName);
137 inline const OUString& GetBookmarkName()
const;
140 inline void SetPrimaryKey(
const OUString& rStr );
141 inline void SetSecondaryKey(
const OUString& rStr);
142 inline void SetTextReading(
const OUString& rStr);
143 inline void SetPrimaryKeyReading(
const OUString& rStr );
144 inline void SetSecondaryKeyReading(
const OUString& rStr);
146 inline OUString
const & GetPrimaryKey()
const;
147 inline OUString
const & GetSecondaryKey()
const;
148 inline OUString
const & GetTextReading()
const;
149 inline OUString
const & GetPrimaryKeyReading()
const;
150 inline OUString
const & GetSecondaryKeyReading()
const;
158 inline const SwTOXType* GetTOXType()
const;
164 {
return m_wXDocumentIndexMark; }
167 void RegisterToTOXType(
SwTOXType& rMark );
169 static constexpr OUStringLiteral S_PAGE_DELI =
u", ";
190 return pContentFrame;
207#define FORM_ALPHA_DELIMITER 1
208#define FORM_PRIMARY_KEY 2
209#define FORM_SECONDARY_KEY 3
330 inline void SetTemplate(sal_uInt16 nLevel,
const OUString& rName);
331 inline OUString
const & GetTemplate(sal_uInt16 nLevel)
const;
334 void SetPattern(sal_uInt16 nLevel,
SwFormTokens&& rName);
335 void SetPattern(sal_uInt16 nLevel, std::u16string_view aStr);
336 const SwFormTokens& GetPattern(sal_uInt16 nLevel)
const;
339 void AdjustTabStops(
SwDoc const & rDoc );
342 inline sal_uInt16 GetFormMax()
const;
350 static sal_uInt16 GetFormMaxLevel(
TOXTypes eType );
352 static OUString GetFormEntry();
353 static OUString GetFormTab();
354 static OUString GetFormPageNums();
355 static OUString GetFormLinkStt();
356 static OUString GetFormLinkEnd();
357 static OUString GetFormEntryNum();
358 static OUString GetFormEntryText();
359 static OUString GetFormChapterMark();
360 static OUString GetFormText();
361 static OUString GetFormAuth();
422#define TOX_STYLE_DELIMITER u'\x0001'
469 GetRegisteredIn()->Remove(
this);
491 const OUString& GetBookmarkName()
const;
492 OUString
const & GetTypeName()
const;
493 const SwForm& GetTOXForm()
const;
496 void SetTitle(
const OUString& rTitle);
497 void SetTOXForm(
const SwForm& rForm);
498 void SetBookmarkName(
const OUString& bName);
506 inline void SetLevel(sal_uInt16);
507 inline sal_uInt16 GetLevel()
const;
522 return m_aStyleNames[nLevel];
527 m_aStyleNames[nLevel] =
rSet;
547 bool IsTOXBaseInReadonly()
const;
564 void RegisterToTOXType(
SwTOXType& rMark );
virtual bool operator==(const SfxPoolItem &) const=0
SfxPoolItem & operator=(const SfxPoolItem &)=delete
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const=0
const SwModify * GetRegisteredIn() const
virtual void SwClientNotify(const SwModify &, const SfxHint &rHint) override
SwContentFrame is the layout for content nodes: a common base class for text (paragraph) and non-text...
The root element of a Writer document layout.
void SetTOXName(const OUString &rSet)
void SetMainEntryCharStyle(const OUString &rSet)
const OUString & GetSequenceName() const
const OUString & GetSortAlgorithm() const
void SetOptions(SwTOIOptions nOpt)
bool IsLevelFromChapter() const
void SetStyleNames(const OUString &rSet, sal_uInt16 nLevel)
union SwTOXBase::@27 m_aData
void SetTOXForm(const SwForm &rForm)
virtual void SwClientNotify(const SwModify &rMod, const SfxHint &rHint) override
OUString m_sSortAlgorithm
SwCaptionDisplay m_eCaptionDisplay
void SetProtected(bool bSet)
LanguageType GetLanguage() const
void EnableKeepExpression()
SwTOXElement GetCreateType() const
SwTOXElement m_nCreateType
bool IsFromChapter() const
SwTOOElements GetOLEOptions() const
const SwForm & GetTOXForm() const
void SetOLEOptions(SwTOOElements nOpt)
void SetLevelFromChapter(bool bSet)
const OUString & GetTOXName() const
void SetSortAlgorithm(const OUString &rSet)
const OUString & GetMainEntryCharStyle() const
void SetMSTOCExpression(const OUString &rExp)
const SwTOXType * GetTOXType() const
OUString m_sMainEntryCharStyle
virtual bool IsVisible() const
void DisableKeepExpression()
void SetLanguage(LanguageType nLang)
void SetCreate(SwTOXElement)
sal_uInt16 GetLevel() const
void SetCaptionDisplay(SwCaptionDisplay eSet)
bool IsFromObjectNames() const
OUString const & GetTypeName() const
OUString const & GetStyleNames(sal_uInt16 nLevel) const
void SetSequenceName(const OUString &rSet)
SwTOIOptions GetOptions() const
void AdjustTabStops(SwDoc const &rDoc)
void SetFromObjectNames(bool bSet)
void SetFromChapter(bool bSet)
SwTOOElements m_nOLEOptions
const OUString & GetBookmarkName() const
const OUString & GetMSTOCExpression() const
void SetLevel(sal_uInt16)
const OUString & GetTitle() const
OUString maMSTOCExpression
SwCaptionDisplay GetCaptionDisplay() const
void SetAlternativeText(const OUString &rAlt)
const SwTextTOXMark * GetTextTOXMark() const
const SwTOXType * GetTOXType() const
void SetTextReading(const OUString &rStr)
sal_uInt16 GetLevel() const
OUString const & GetSecondaryKeyReading() const
const SwTOXType * m_pType
void SetSecondaryKey(const OUString &rStr)
const OUString & GetAlternativeText() const
bool IsAlternativeText() const
OUString const & GetSecondaryKey() const
const OUString & GetBookmarkName() const
void SetBookmarkName(const OUString &bName)
void SetAutoGenerated(bool bSet)
void SetPrimaryKeyReading(const OUString &rStr)
void SetSecondaryKeyReading(const OUString &rStr)
bool IsAutoGenerated() const
OUString const & GetPrimaryKey() const
SwTextTOXMark * GetTextTOXMark()
SwTextTOXMark * m_pTextAttr
void SetMainEntry(bool bSet)
OUString const & GetTextReading() const
OUString m_aSecondaryKeyReading
void SetPrimaryKey(const OUString &rStr)
OUString const & GetPrimaryKeyReading() const
SAL_DLLPRIVATE unotools::WeakReference< SwXDocumentIndexMark > const & GetXTOXMark() const
SwTOXMark & operator=(const SwTOXMark &rCopy)
void SetLevel(sal_uInt16 nLevel)
OUString m_aPrimaryKeyReading
unotools::WeakReference< SwXDocumentIndexMark > m_wXDocumentIndexMark
const OUString & GetTypeName() const
SwContentFrame * FindContentFrame(const SwDoc &rDoc, const SwRootFrame &rLayout) const
void CollectTextMarks(SwTOXMarks &rMarks) const
SwTOXType(SwDoc &rDoc, TOXTypes eTyp, OUString aName)
void CollectTextTOXMarksForLayout(std::vector< std::reference_wrapper< SwTextTOXMark > > &rMarks, const SwRootFrame *pLayout) const
SwTOXType & operator=(const SwTOXType &)=delete
virtual void SetTitle(const OUString &rNewTitle) override
@ SwCollectTextTOXMarksForLayout
#define SAL_WARN_IF(condition, area, stream)
OUString GetString(int nId)
Dialog to specify the properties of date form field.
auto PrepareJumpToTOXMark(SwDoc const &rDoc, std::u16string_view aName) -> std::optional< std::pair< SwTOXMark, sal_Int32 > >
UNOTOOLS_DLLPUBLIC bool GetTitle(OUString const &url, OUString *title)
static LanguageType nLang
CollectTextMarksHint(SwTOXMarks &rMarks)
CollectTextTOXMarksForLayoutHint(std::vector< std::reference_wrapper< SwTextTOXMark > > &rMarks, const SwRootFrame *pLayout)
const SwRootFrame * m_pLayout
std::vector< std::reference_wrapper< SwTextTOXMark > > & m_rMarks
FindContentFrameHint(SwContentFrame *&rpContentFrame, const SwDoc &rDoc, const SwRootFrame &rLayout)
const SwRootFrame & m_rLayout
SwContentFrame *& m_rpContentFrame
constexpr sal_uInt8 MAXLEVEL
const sal_Unicode C_NUM_REPL
std::vector< SwTOXMark * > SwTOXMarks
const sal_Unicode C_END_PAGE_NUM
std::vector< SwFormToken > SwFormTokens
Vector of tokens.