19#ifndef INCLUDED_SW_SOURCE_CORE_INC_TXMSRT_HXX
20#define INCLUDED_SW_SOURCE_CORE_INC_TXMSRT_HXX
26#include <com/sun/star/lang/Locale.hpp>
85 OUString aSortAlgorithm );
90 const css::lang::Locale& rLocale1,
92 const css::lang::Locale& rLocale2 )
const;
95 const css::lang::Locale& rLocale1,
97 const css::lang::Locale& rLocale2 )
const
99 return 0 ==
Compare( rTaR1, rLocale1, rTaR2, rLocale2 );
103 const css::lang::Locale& rLocale1,
105 const css::lang::Locale& rLocale2 )
const
107 return -1 ==
Compare( rTaR1, rLocale1, rTaR2, rLocale2 );
111 const css::lang::Locale& rLcl )
const;
115 OUString
ToUpper(
const OUString& rStr, sal_Int32 nPos )
const;
116 bool IsNumeric(
const OUString& rStr )
const;
141 const css::lang::Locale* pLocale =
nullptr );
148 sal_uInt16 nAuthField,
SwRootFrame const* pLayout)
const;
160 inline const css::lang::Locale&
GetLocale()
const;
196 const css::lang::Locale& rLocale );
199 sal_uInt16 nAuthField,
SwRootFrame const* pLayout)
const override;
200 virtual sal_uInt16
GetLevel()
const override;
214 const css::lang::Locale& rLocale );
216 virtual sal_uInt16
GetLevel()
const override;
236 sal_uInt16 nAuthField,
SwRootFrame const* pLayout)
const override;
237 virtual sal_uInt16
GetLevel()
const override;
247 OUString sSeqName = OUString());
253 sal_uInt16 nAuthField,
SwRootFrame const* pLayout)
const override;
254 virtual sal_uInt16
GetLevel()
const override;
256 virtual std::pair<OUString, bool>
GetURL(
SwRootFrame const*
const pLayout)
const override;
274 virtual sal_uInt16
GetLevel()
const override;
276 virtual std::pair<OUString, bool>
GetURL(
SwRootFrame const*
const pLayout)
const override;
290 sal_uInt16 nAuthField,
SwRootFrame const* pLayout)
const override;
300 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.
std::unique_ptr< CharClass > m_pCharClass
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::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