19#ifndef INCLUDED_SW_SOURCE_CORE_INC_TXMSRT_HXX
20#define INCLUDED_SW_SOURCE_CORE_INC_TXMSRT_HXX
27#include <com/sun/star/lang/Locale.hpp>
86 OUString aSortAlgorithm );
91 const css::lang::Locale& rLocale1,
93 const css::lang::Locale& rLocale2 )
const;
96 const css::lang::Locale& rLocale1,
98 const css::lang::Locale& rLocale2 )
const
100 return 0 ==
Compare( rTaR1, rLocale1, rTaR2, rLocale2 );
104 const css::lang::Locale& rLocale1,
106 const css::lang::Locale& rLocale2 )
const
108 return -1 ==
Compare( rTaR1, rLocale1, rTaR2, rLocale2 );
112 const css::lang::Locale& rLcl )
const;
116 OUString
ToUpper(
const OUString& rStr, sal_Int32 nPos )
const;
117 bool IsNumeric(
const OUString& rStr )
const;
142 const css::lang::Locale* pLocale =
nullptr );
149 sal_uInt16 nAuthField,
SwRootFrame const* pLayout)
const;
161 inline const css::lang::Locale&
GetLocale()
const;
197 const css::lang::Locale& rLocale );
200 sal_uInt16 nAuthField,
SwRootFrame const* pLayout)
const override;
201 virtual sal_uInt16
GetLevel()
const override;
215 const css::lang::Locale& rLocale );
217 virtual sal_uInt16
GetLevel()
const override;
237 sal_uInt16 nAuthField,
SwRootFrame const* pLayout)
const override;
238 virtual sal_uInt16
GetLevel()
const override;
248 OUString sSeqName = OUString());
254 sal_uInt16 nAuthField,
SwRootFrame const* pLayout)
const override;
255 virtual sal_uInt16
GetLevel()
const override;
257 virtual std::pair<OUString, bool>
GetURL(
SwRootFrame const*
const pLayout)
const override;
275 virtual sal_uInt16
GetLevel()
const override;
277 virtual std::pair<OUString, bool>
GetURL(
SwRootFrame const*
const pLayout)
const override;
291 sal_uInt16 nAuthField,
SwRootFrame const* pLayout)
const override;
301 virtual sal_uInt16
GetLevel()
const override;
Marks a character position inside a document model content node (SwContentNode)
The root element of a Writer document layout.
OUString ToUpper(const OUString &rStr, sal_Int32 nPos) const
bool IsNumeric(const OUString &rStr) const
OUString GetIndexKey(const TextAndReading &rTaR, const css::lang::Locale &rLcl) const
std::optional< CharClass > m_oCharClass
std::unique_ptr< IndexEntrySupplierWrapper > m_pIndexWrapper
bool IsLess(const TextAndReading &rTaR1, const css::lang::Locale &rLocale1, const TextAndReading &rTaR2, const css::lang::Locale &rLocale2) const
sal_Int32 Compare(const TextAndReading &rTaR1, const css::lang::Locale &rLocale1, const TextAndReading &rTaR2, const css::lang::Locale &rLocale2) const
OUString GetFollowingText(bool bMorePages) const
SwTOXInternational(LanguageType nLang, SwTOIOptions nOptions, OUString aSortAlgorithm)
bool IsEqual(const TextAndReading &rTaR1, const css::lang::Locale &rLocale1, const TextAndReading &rTaR2, const css::lang::Locale &rLocale2) const
OUString m_sSortAlgorithm
SwTextNode is a paragraph in the document model.
static LanguageType nLang
Represents one row in the bibliography table.
virtual bool equivalent(const SwTOXSortTabBase &) override
SwFormatField & GetFieldFormat()
virtual void FillText(SwTextNode &rNd, const SwContentIndex &rInsPos, sal_uInt16 nAuthField, SwRootFrame const *pLayout) const override
virtual TextAndReading GetText_Impl(SwRootFrame const *pLayout) const override
virtual bool sort_lt(const SwTOXSortTabBase &) override
SwTOXAuthority(const SwContentNode &rNd, SwFormatField &rField, const SwTOXInternational &rIntl)
virtual sal_uInt16 GetLevel() const override
static OUString GetSourceURL(const OUString &rText)
Gets the URL of the underlying SwAuthEntry, ignoring its page number.
virtual void FillText(SwTextNode &rNd, const SwContentIndex &rInsPos, sal_uInt16 nAuthField, SwRootFrame const *pLayout) const override
SwTOXContent(const SwTextNode &, const SwTextTOXMark *, const SwTOXInternational &rIntl)
virtual sal_uInt16 GetLevel() const override
virtual TextAndReading GetText_Impl(SwRootFrame const *pLayout) const override
virtual TextAndReading GetText_Impl(SwRootFrame const *pLayout) const override
SwTOXCustom(TextAndReading aKey, sal_uInt16 nLevel, const SwTOXInternational &rIntl, const css::lang::Locale &rLocale)
virtual bool equivalent(const SwTOXSortTabBase &) override
virtual sal_uInt16 GetLevel() const override
virtual bool sort_lt(const SwTOXSortTabBase &) override
virtual bool equivalent(const SwTOXSortTabBase &) override
SwTOXIndex(const SwTextNode &, const SwTextTOXMark *, SwTOIOptions nOptions, sal_uInt8 nKeyLevel, const SwTOXInternational &rIntl, const css::lang::Locale &rLocale)
virtual TextAndReading GetText_Impl(SwRootFrame const *pLayout) const override
virtual sal_uInt16 GetLevel() const override
virtual bool sort_lt(const SwTOXSortTabBase &) override
virtual void FillText(SwTextNode &rNd, const SwContentIndex &rInsPos, sal_uInt16 nAuthField, SwRootFrame const *pLayout) const override
void SetEndIndex(sal_Int32 nSet)
SwTOXPara(SwContentNode &, SwTOXElement, sal_uInt16 nLevel=FORM_ALPHA_DELIMITER, OUString sSeqName=OUString())
virtual std::pair< OUString, bool > GetURL(SwRootFrame const *const pLayout) const override
void SetStartIndex(sal_Int32 nSet)
virtual TextAndReading GetText_Impl(SwRootFrame const *pLayout) const override
virtual void FillText(SwTextNode &rNd, const SwContentIndex &rInsPos, sal_uInt16 nAuthField, SwRootFrame const *pLayout) const override
virtual bool IsFullPara() const override
virtual sal_uInt16 GetLevel() const override
Class for sorting directories.
virtual sal_uInt16 GetLevel() const =0
SwTOXSortTabBase(TOXSortType nType, const SwContentNode *pTOXSrc, const SwTextTOXMark *pTextMark, const SwTOXInternational *pIntl, const css::lang::Locale *pLocale=nullptr)
std::vector< SwTOXSource > aTOXSources
static SwTOIOptions GetOptions()
const css::lang::Locale & GetLocale() const
virtual std::pair< OUString, bool > GetURL(SwRootFrame const *const pLayout) const
virtual void FillText(SwTextNode &rNd, const SwContentIndex &rInsPos, sal_uInt16 nAuthField, SwRootFrame const *pLayout) const
virtual bool sort_lt(const SwTOXSortTabBase &)
virtual ~SwTOXSortTabBase()
virtual TextAndReading GetText_Impl(SwRootFrame const *pLayout) const =0
css::lang::Locale aLocale
TextAndReading const & GetText() const
virtual bool IsFullPara() const
sal_uInt16 GetType() const
const SwTextTOXMark * pTextMark
virtual bool equivalent(const SwTOXSortTabBase &)
const SwTextNode * pTOXNd
void InitText(SwRootFrame const *const pLayout)
const SwTOXInternational * pTOXIntl
bool operator==(const SwTOXSortTabBase &) const =delete
bool operator<(const SwTOXSortTabBase &) const =delete
SwTOXSource(const SwContentNode *pNode, sal_Int32 n, bool bMain)
const SwContentNode * pNd
virtual TextAndReading GetText_Impl(SwRootFrame const *pLayout) const override
virtual std::pair< OUString, bool > GetURL(SwRootFrame const *const pLayout) const override
void SetLevel(sal_uInt16 nSet)
virtual sal_uInt16 GetLevel() const override
SwTOXTable(const SwContentNode &rNd)
TextAndReading(OUString aText, OUString aReading)
#define FORM_ALPHA_DELIMITER