LibreOffice Module sw (master) 1
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
SwTOXSortTabBase Struct Referenceabstract

Class for sorting directories. More...

#include <txmsrt.hxx>

Inheritance diagram for SwTOXSortTabBase:
Collaboration diagram for SwTOXSortTabBase:

Public Member Functions

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

Static Public Member Functions

static SwTOIOptions GetOptions ()

Public Attributes

std::vector< SwTOXSourceaTOXSources
css::lang::Locale aLocale
const SwTextNodepTOXNd
const SwTextTOXMarkpTextMark
const SwTOXInternationalpTOXIntl
SwNodeOffset nPos
sal_Int32 nCntPos
sal_uInt16 nType

Static Public Attributes

static SwTOIOptions nOpt = SwTOIOptions::NONE

Private Member Functions

virtual TextAndReading GetText_Impl (SwRootFrame const *pLayout) const =0

Private Attributes

bool m_bValidText
TextAndReading m_aSort

Detailed Description

Class for sorting directories.

Definition at line 123 of file txmsrt.hxx.

Constructor & Destructor Documentation

◆ SwTOXSortTabBase()

SwTOXSortTabBase::SwTOXSortTabBase ( TOXSortType  nType,
const SwContentNode pTOXSrc,
const SwTextTOXMark pTextMark,
const SwTOXInternational pIntl,
const css::lang::Locale *  pLocale = nullptr 

◆ ~SwTOXSortTabBase()

virtual SwTOXSortTabBase::~SwTOXSortTabBase ( )

Definition at line 143 of file txmsrt.hxx.

Member Function Documentation

◆ equivalent()

bool SwTOXSortTabBase::equivalent ( const SwTOXSortTabBase rCmp)

◆ FillText()

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

Reimplemented in SwTOXIndex, SwTOXContent, SwTOXPara, and SwTOXAuthority.

Definition at line 221 of file txmsrt.cxx.

References GetText(), and SwTextNode::InsertText().

Referenced by sw::ToxTextGenerator::GenerateText().

◆ GetLevel()

virtual sal_uInt16 SwTOXSortTabBase::GetLevel ( ) const
pure virtual

◆ GetLocale()

const css::lang::Locale & SwTOXSortTabBase::GetLocale ( ) const

◆ GetOptions()

static SwTOIOptions SwTOXSortTabBase::GetOptions ( )

◆ GetText()

TextAndReading const & SwTOXSortTabBase::GetText ( ) const

◆ GetText_Impl()

virtual TextAndReading SwTOXSortTabBase::GetText_Impl ( SwRootFrame const *  pLayout) const
privatepure virtual

◆ GetType()

sal_uInt16 SwTOXSortTabBase::GetType ( ) const

Definition at line 145 of file txmsrt.hxx.

References nType.

Referenced by SwTOXBaseSection::InsertSorted(), and SwTOXBaseSection::UpdatePageNum().

◆ GetURL()

std::pair< OUString, bool > SwTOXSortTabBase::GetURL ( SwRootFrame const *const  pLayout) const

◆ InitText()

void SwTOXSortTabBase::InitText ( SwRootFrame const *const  pLayout)

Definition at line 170 of file txmsrt.hxx.

References GetText_Impl(), m_aSort, and m_bValidText.

◆ IsFullPara()

bool SwTOXSortTabBase::IsFullPara ( ) const

Reimplemented in SwTOXPara.

Definition at line 216 of file txmsrt.cxx.

Referenced by sw::ToxTextGenerator::HandleTextToken().

◆ operator<()

bool SwTOXSortTabBase::operator< ( const SwTOXSortTabBase ) const

◆ operator==()

bool SwTOXSortTabBase::operator== ( const SwTOXSortTabBase ) const

◆ sort_lt()

bool SwTOXSortTabBase::sort_lt ( const SwTOXSortTabBase rCmp)

Member Data Documentation

◆ aLocale

css::lang::Locale SwTOXSortTabBase::aLocale

Definition at line 129 of file txmsrt.hxx.

Referenced by GetLocale(), and SwTOXSortTabBase().

◆ aTOXSources

std::vector<SwTOXSource> SwTOXSortTabBase::aTOXSources

◆ m_aSort

TextAndReading SwTOXSortTabBase::m_aSort

Definition at line 165 of file txmsrt.hxx.

Referenced by GetText(), and InitText().

◆ m_bValidText

bool SwTOXSortTabBase::m_bValidText

Definition at line 164 of file txmsrt.hxx.

Referenced by GetText(), and InitText().

◆ nCntPos

sal_Int32 SwTOXSortTabBase::nCntPos

Definition at line 134 of file txmsrt.hxx.

Referenced by equivalent(), sort_lt(), SwTOXAuthority::SwTOXAuthority(), and SwTOXSortTabBase().

◆ nOpt

SwTOIOptions SwTOXSortTabBase::nOpt = SwTOIOptions::NONE

◆ nPos

SwNodeOffset SwTOXSortTabBase::nPos

◆ nType

sal_uInt16 SwTOXSortTabBase::nType

Definition at line 135 of file txmsrt.hxx.

Referenced by equivalent(), SwTOXAuthority::equivalent(), GetType(), and sort_lt().

◆ pTextMark

const SwTextTOXMark* SwTOXSortTabBase::pTextMark

◆ pTOXIntl

const SwTOXInternational* SwTOXSortTabBase::pTOXIntl

◆ pTOXNd

const SwTextNode* SwTOXSortTabBase::pTOXNd

Definition at line 130 of file txmsrt.hxx.

Referenced by SwTOXBaseSection::UpdatePageNum().

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