19 #ifndef INCLUDED_SW_INC_TOX_HXX
20 #define INCLUDED_SW_INC_TOX_HXX
32 #include <com/sun/star/text/XDocumentIndexMark.hpp>
59 : m_rpContentFrame(rpContentFrame)
65 std::vector<std::reference_wrapper<SwTextTOXMark>>&
m_rMarks;
70 -> std::optional<std::pair<SwTOXMark, sal_Int32>>;
122 void InvalidateTOXMark();
124 OUString GetText(
SwRootFrame const* pLayout)
const;
126 inline bool IsAlternativeText()
const;
127 inline const OUString& GetAlternativeText()
const;
129 inline void SetAlternativeText(
const OUString& rAlt );
132 inline void SetLevel(sal_uInt16 nLevel);
133 inline sal_uInt16 GetLevel()
const;
134 inline void SetBookmarkName(
const OUString& bName);
135 inline const OUString& GetBookmarkName()
const;
138 inline void SetPrimaryKey(
const OUString& rStr );
139 inline void SetSecondaryKey(
const OUString& rStr);
140 inline void SetTextReading(
const OUString& rStr);
141 inline void SetPrimaryKeyReading(
const OUString& rStr );
142 inline void SetSecondaryKeyReading(
const OUString& rStr);
144 inline OUString
const & GetPrimaryKey()
const;
145 inline OUString
const & GetSecondaryKey()
const;
146 inline OUString
const & GetTextReading()
const;
147 inline OUString
const & GetPrimaryKeyReading()
const;
148 inline OUString
const & GetSecondaryKeyReading()
const;
156 inline const SwTOXType* GetTOXType()
const;
161 SAL_DLLPRIVATE css::uno::WeakReference<css::text::XDocumentIndexMark>
const&
GetXTOXMark()
const
162 {
return m_wXDocumentIndexMark; }
163 SAL_DLLPRIVATE
void SetXTOXMark(css::uno::Reference<css::text::XDocumentIndexMark>
const& xMark)
164 { m_wXDocumentIndexMark = xMark; }
165 void RegisterToTOXType(
SwTOXType& rMark );
167 static constexpr OUStringLiteral S_PAGE_DELI =
u", ";
188 return pContentFrame;
205 #define FORM_ALPHA_DELIMITER 1
206 #define FORM_PRIMARY_KEY 2
207 #define FORM_SECONDARY_KEY 3
319 bool m_bIsRelTabPos : 1;
320 bool m_bCommaSeparated : 1;
328 inline void SetTemplate(sal_uInt16 nLevel,
const OUString& rName);
329 inline OUString
const & GetTemplate(sal_uInt16 nLevel)
const;
332 void SetPattern(sal_uInt16 nLevel,
SwFormTokens&& rName);
333 void SetPattern(sal_uInt16 nLevel,
const OUString& rStr);
334 const SwFormTokens& GetPattern(sal_uInt16 nLevel)
const;
337 void AdjustTabStops(
SwDoc const & rDoc );
340 inline sal_uInt16 GetFormMax()
const;
348 static sal_uInt16 GetFormMaxLevel(
TOXTypes eType );
350 static OUString GetFormEntry();
351 static OUString GetFormTab();
352 static OUString GetFormPageNums();
353 static OUString GetFormLinkStt();
354 static OUString GetFormLinkEnd();
355 static OUString GetFormEntryNum();
356 static OUString GetFormEntryText();
357 static OUString GetFormChapterMark();
358 static OUString GetFormText();
359 static OUString GetFormAuth();
420 #define TOX_STYLE_DELIMITER u'\x0001'
446 bool m_bProtected : 1;
447 bool m_bFromChapter : 1;
448 bool m_bFromObjectNames : 1;
450 bool m_bLevelFromChapter : 1;
466 if(dynamic_cast<const sw::DocumentDyingHint*>(&rHint))
489 const OUString& GetBookmarkName()
const;
490 OUString
const & GetTypeName()
const;
491 const SwForm& GetTOXForm()
const;
494 void SetTitle(
const OUString& rTitle);
495 void SetTOXForm(
const SwForm& rForm);
496 void SetBookmarkName(
const OUString& bName);
504 inline void SetLevel(sal_uInt16);
505 inline sal_uInt16 GetLevel()
const;
520 return m_aStyleNames[nLevel];
525 m_aStyleNames[nLevel] = rSet;
545 bool IsTOXBaseInReadonly()
const;
562 void RegisterToTOXType(
SwTOXType& rMark );
747 #endif // INCLUDED_SW_INC_TOX_HXX
std::vector< SwFormToken > SwFormTokens
Vector of tokens.
SwCaptionDisplay m_eCaptionDisplay
virtual void SwClientNotify(const SwModify &rMod, const SfxHint &rHint) override
void SetLevelFromChapter(bool bSet)
void SetLanguage(LanguageType nLang)
SAL_DLLPRIVATE css::uno::WeakReference< css::text::XDocumentIndexMark > const & GetXTOXMark() const
SwTOXType & operator=(const SwTOXType &)=delete
bool IsAlternativeText() const
OUString const & GetSecondaryKeyReading() const
SwTOXElement GetCreateType() const
SwTOIOptions GetOptions() const
SwTextTOXMark * m_pTextAttr
void DisableKeepExpression()
CollectTextMarksHint(SwTOXMarks &rMarks)
SwTOXType(SwDoc &rDoc, TOXTypes eTyp, const OUString &rName)
virtual bool operator==(const SfxPoolItem &) const =0
OUString const & GetPrimaryKey() const
const OUString & GetBookmarkName() const
void SetLevel(sal_uInt16 nLevel)
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const =0
SAL_DLLPRIVATE void SetXTOXMark(css::uno::Reference< css::text::XDocumentIndexMark > const &xMark)
std::vector< SwTOXMark * > SwTOXMarks
void CollectTextMarks(SwTOXMarks &rMarks) const
const SwRootFrame * m_pLayout
constexpr sal_uInt8 MAXLEVEL
OUString const & GetTypeName() const
SfxPoolItem & operator=(const SfxPoolItem &)=delete
union SwTOXBase::@30 m_aData
css::uno::WeakReference< css::text::XDocumentIndexMark > m_wXDocumentIndexMark
Dialog to specify the properties of date form field.
virtual void SwClientNotify(const SwModify &, const SfxHint &rHint) override
const SwTOXType * GetTOXType() const
SwClient * Remove(SwClient *pDepend)
The root element of a Writer document layout.
void SetOptions(SwTOIOptions nOpt)
SwTextTOXMark * GetTextTOXMark()
void SetOLEOptions(SwTOOElements nOpt)
static LanguageType nLang
OUString GetString(int nId)
void SetCreate(SwTOXElement)
OUString const & GetPrimaryKeyReading() const
const SwTOXType * GetTOXType() const
SwTOXElement m_nCreateType
void AdjustTabStops(SwDoc const &rDoc)
UNOTOOLS_DLLPUBLIC bool GetTitle(OUString const &url, OUString *title)
FindContentFrameHint(SwContentFrame *&rpContentFrame, const SwDoc &rDoc, const SwRootFrame &rLayout)
bool IsAutoGenerated() const
void SetSortAlgorithm(const OUString &rSet)
virtual void SetTitle(const OUString &rNewTitle) override
const OUString & GetSequenceName() const
void SetAlternativeText(const OUString &rAlt)
SwTOOElements GetOLEOptions() const
auto PrepareJumpToTOXMark(SwDoc const &rDoc, OUString const &rName) -> std::optional< std::pair< SwTOXMark, sal_Int32 >>
OUString maMSTOCExpression
const sal_Unicode C_END_PAGE_NUM
const OUString & GetAlternativeText() const
SwContentFrame *& m_rpContentFrame
void Broadcast(const SfxHint &rHint)
void SetPrimaryKey(const OUString &rStr)
void SetTextReading(const OUString &rStr)
virtual bool IsVisible() const
bool IsFromObjectNames() const
void SetSequenceName(const OUString &rSet)
void SetMainEntryCharStyle(const OUString &rSet)
sal_uInt16 GetLevel() const
void SetCaptionDisplay(SwCaptionDisplay eSet)
void SetPrimaryKeyReading(const OUString &rStr)
void SetFromChapter(bool bSet)
const OUString & GetTypeName() const
SwTOOElements m_nOLEOptions
bool IsFromChapter() const
sal_uInt16 GetLevel() const
const OUString & GetTitle() const
OUString const & GetTextReading() const
const SwRootFrame & m_rLayout
SwCaptionDisplay GetCaptionDisplay() const
OUString m_sSortAlgorithm
void SetAutoGenerated(bool bSet)
const OUString & GetSortAlgorithm() const
void SetTOXForm(const SwForm &rForm)
const sal_Unicode C_NUM_REPL
SvtBroadcaster & GetNotifier()
const OUString & GetBookmarkName() const
void SetTOXName(const OUString &rSet)
OUString m_aSecondaryKeyReading
OUString const & GetSecondaryKey() const
#define SAL_WARN_IF(condition, area, stream)
OUString const & GetStyleNames(sal_uInt16 nLevel) const
void SetStyleNames(const OUString &rSet, sal_uInt16 nLevel)
LanguageType GetLanguage() const
void CollectTextTOXMarksForLayout(std::vector< std::reference_wrapper< SwTextTOXMark >> &rMarks, const SwRootFrame *pLayout) const
CollectTextTOXMarksForLayoutHint(std::vector< std::reference_wrapper< SwTextTOXMark >> &rMarks, const SwRootFrame *pLayout)
const SwTOXType * m_pType
const SwModify * GetRegisteredIn() const
void SetBookmarkName(const OUString &bName)
OUString m_sMainEntryCharStyle
void EnableKeepExpression()
WriterListener & operator=(WriterListener const &)=delete
void SetSecondaryKey(const OUString &rStr)
const OUString & GetMainEntryCharStyle() const
void SetProtected(bool bSet)
SwContentFrame * FindContentFrame(const SwDoc &rDoc, const SwRootFrame &rLayout) const
const SwTextTOXMark * GetTextTOXMark() const
void SetLevel(sal_uInt16)
const SwForm & GetTOXForm() const
void SetSecondaryKeyReading(const OUString &rStr)
std::vector< std::reference_wrapper< SwTextTOXMark > > & m_rMarks
void SetMainEntry(bool bSet)
void SetMSTOCExpression(const OUString &rExp)
void SetFromObjectNames(bool bSet)
const OUString & GetMSTOCExpression() const
bool IsLevelFromChapter() const
const OUString & GetTOXName() const
OUString m_aPrimaryKeyReading