LibreOffice Module sw (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SwTOXIndex Struct Referencefinal

For sorting by text. More...

#include <txmsrt.hxx>

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

Public Member Functions

 SwTOXIndex (const SwTextNode &, const SwTextTOXMark *, SwTOIOptions nOptions, sal_uInt8 nKeyLevel, const SwTOXInternational &rIntl, const css::lang::Locale &rLocale)
 
virtual void FillText (SwTextNode &rNd, const SwContentIndex &rInsPos, sal_uInt16 nAuthField, SwRootFrame const *pLayout) const override
 
virtual sal_uInt16 GetLevel () const override
 
virtual bool equivalent (const SwTOXSortTabBase &) override
 
virtual bool sort_lt (const SwTOXSortTabBase &) override
 
- Public Member Functions inherited from SwTOXSortTabBase
bool operator== (const SwTOXSortTabBase &) const =delete
 
bool operator< (const SwTOXSortTabBase &) const =delete
 
 SwTOXSortTabBase (TOXSortType nType, const SwContentNode *pTOXSrc, const SwTextTOXMark *pTextMark, const SwTOXInternational *pIntl, const css::lang::Locale *pLocale=nullptr)
 
virtual ~SwTOXSortTabBase ()
 
sal_uInt16 GetType () const
 
virtual void FillText (SwTextNode &rNd, const SwContentIndex &rInsPos, sal_uInt16 nAuthField, SwRootFrame const *pLayout) const
 
virtual sal_uInt16 GetLevel () const =0
 
virtual bool equivalent (const SwTOXSortTabBase &)
 
virtual bool sort_lt (const SwTOXSortTabBase &)
 
virtual std::pair< OUString, bool > GetURL (SwRootFrame const *const pLayout) const
 
virtual bool IsFullPara () const
 
void InitText (SwRootFrame const *const pLayout)
 
TextAndReading const & GetText () const
 
const css::lang::Locale & GetLocale () const
 

Private Member Functions

virtual TextAndReading GetText_Impl (SwRootFrame const *pLayout) const override
 

Private Attributes

sal_uInt8 nKeyLevel
 

Additional Inherited Members

- Static Public Member Functions inherited from SwTOXSortTabBase
static SwTOIOptions GetOptions ()
 
- Public Attributes inherited from SwTOXSortTabBase
std::vector< SwTOXSourceaTOXSources
 
css::lang::Locale aLocale
 
const SwTextNodepTOXNd
 
const SwTextTOXMarkpTextMark
 
const SwTOXInternationalpTOXIntl
 
SwNodeOffset nPos
 
sal_Int32 nCntPos
 
sal_uInt16 nType
 
- Static Public Attributes inherited from SwTOXSortTabBase
static SwTOIOptions nOpt = SwTOIOptions::NONE
 

Detailed Description

For sorting by text.

Definition at line 193 of file txmsrt.hxx.

Constructor & Destructor Documentation

◆ SwTOXIndex()

SwTOXIndex::SwTOXIndex ( const SwTextNode ,
const SwTextTOXMark ,
SwTOIOptions  nOptions,
sal_uInt8  nKeyLevel,
const SwTOXInternational rIntl,
const css::lang::Locale &  rLocale 
)

Definition at line 302 of file txmsrt.cxx.

References SwNode::GetIndex(), SwTOXSortTabBase::nOpt, and SwTOXSortTabBase::nPos.

Member Function Documentation

◆ equivalent()

bool SwTOXIndex::equivalent ( const SwTOXSortTabBase rCmpBase)
overridevirtual

◆ FillText()

void SwTOXIndex::FillText ( SwTextNode rNd,
const SwContentIndex rInsPos,
sal_uInt16  nAuthField,
SwRootFrame const *  pLayout 
) const
overridevirtual

◆ GetLevel()

sal_uInt16 SwTOXIndex::GetLevel ( ) const
overridevirtual

◆ GetText_Impl()

TextAndReading SwTOXIndex::GetText_Impl ( SwRootFrame const *  pLayout) const
overrideprivatevirtual

◆ sort_lt()

bool SwTOXIndex::sort_lt ( const SwTOXSortTabBase rCmpBase)
overridevirtual

Member Data Documentation

◆ nKeyLevel

sal_uInt8 SwTOXIndex::nKeyLevel
private

Definition at line 208 of file txmsrt.hxx.

Referenced by equivalent(), and GetText_Impl().


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