LibreOffice Module sw (master)
1
|
Class for sorting directories. More...
#include <txmsrt.hxx>
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 SwIndex &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 OUString | GetURL () 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< SwTOXSource > | aTOXSources |
css::lang::Locale | aLocale |
const SwTextNode * | pTOXNd |
const SwTextTOXMark * | pTextMark |
const SwTOXInternational * | pTOXIntl |
sal_uLong | 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 |
Class for sorting directories.
Definition at line 120 of file txmsrt.hxx.
SwTOXSortTabBase::SwTOXSortTabBase | ( | TOXSortType | nType, |
const SwContentNode * | pTOXSrc, | ||
const SwTextTOXMark * | pTextMark, | ||
const SwTOXInternational * | pIntl, | ||
const css::lang::Locale * | pLocale = nullptr |
||
) |
Definition at line 128 of file txmsrt.cxx.
References aLocale, aTOXSources, GetBodyTextNode(), IDocumentLayoutAccess::GetCurrentLayout(), SwNode::GetDoc(), SwDoc::getIDocumentLayoutAccess(), SwIndex::GetIndex(), SwNodeIndex::GetIndex(), SwNode::GetIndex(), SwContentNode::getLayoutFrame(), SwTextAttr::GetStart(), SwTextAttr::GetTOXMark(), SwTOXMark::IsMainEntry(), n, nCntPos, SwPosition::nContent, SwPosition::nNode, nPos, nPos, nType, Point, pTextMark, TOX_SORT_CONTENT, TOX_SORT_PARA, and TOX_SORT_TABLE.
|
inlinevirtual |
Definition at line 140 of file txmsrt.hxx.
|
virtual |
Reimplemented in SwTOXAuthority, SwTOXCustom, and SwTOXIndex.
Definition at line 198 of file txmsrt.cxx.
References aTOXSources, SwTextAttr::End(), GetLocale(), SwTextAttr::GetStart(), GetText(), SwTOXInternational::IsEqual(), nCntPos, nPos, nType, pTextMark, pTOXIntl, and TOX_SORT_CONTENT.
Referenced by SwAuthorityFieldType::GetSequencePos(), and SwTOXBaseSection::InsertSorted().
|
virtual |
Reimplemented in SwTOXAuthority, SwTOXPara, SwTOXContent, and SwTOXIndex.
Definition at line 192 of file txmsrt.cxx.
References GetText(), and SwTextNode::InsertText().
Referenced by sw::ToxTextGenerator::GenerateText().
|
pure virtual |
Implemented in SwTOXAuthority, SwTOXTable, SwTOXPara, SwTOXContent, SwTOXCustom, and SwTOXIndex.
Referenced by SwTOXCustom::equivalent(), sw::ToxTextGenerator::GenerateText(), SwTOXBaseSection::GetKeyRange(), SwTOXIndex::sort_lt(), and SwTOXCustom::sort_lt().
|
inline |
Definition at line 182 of file txmsrt.hxx.
References aLocale.
Referenced by equivalent(), SwTOXIndex::equivalent(), SwTOXCustom::equivalent(), SwTOXBaseSection::GetKeyRange(), sort_lt(), SwTOXIndex::sort_lt(), SwTOXCustom::sort_lt(), and SwTOXAuthority::sort_lt().
|
inlinestatic |
Definition at line 143 of file txmsrt.hxx.
References nOpt.
Referenced by SwTOXIndex::equivalent(), SwTOXIndex::FillText(), SwTOXIndex::GetLevel(), SwTOXBaseSection::InsertSorted(), and SwTOXIndex::sort_lt().
|
inline |
Definition at line 176 of file txmsrt.hxx.
References assert(), m_aSort, and m_bValidText.
Referenced by equivalent(), SwTOXIndex::equivalent(), SwTOXCustom::equivalent(), FillText(), SwTOXIndex::FillText(), SwTOXContent::FillText(), SwTOXPara::FillText(), SwTOXBaseSection::GetKeyRange(), sw::ToxTextGenerator::HandleTextToken(), sort_lt(), SwTOXIndex::sort_lt(), and SwTOXCustom::sort_lt().
|
privatepure virtual |
Implemented in SwTOXAuthority, SwTOXTable, SwTOXPara, SwTOXContent, SwTOXCustom, and SwTOXIndex.
Referenced by InitText().
|
inline |
Definition at line 142 of file txmsrt.hxx.
References nType.
Referenced by SwTOXBaseSection::InsertSorted(), and SwTOXBaseSection::UpdatePageNum().
|
virtual |
Reimplemented in SwTOXTable, and SwTOXPara.
Definition at line 182 of file txmsrt.cxx.
Referenced by sw::ToxTextGenerator::GenerateText().
|
inline |
Definition at line 167 of file txmsrt.hxx.
References assert(), GetText_Impl(), m_aSort, and m_bValidText.
|
virtual |
Reimplemented in SwTOXPara.
Definition at line 187 of file txmsrt.cxx.
Referenced by sw::ToxTextGenerator::HandleTextToken().
|
delete |
|
delete |
|
virtual |
Reimplemented in SwTOXAuthority, SwTOXCustom, and SwTOXIndex.
Definition at line 224 of file txmsrt.cxx.
References aTOXSources, SwTextAttr::End(), GetLocale(), SwTextAttr::GetStart(), GetText(), IsFrameBehind(), SwTOXInternational::IsLess(), SwNode::IsTextNode(), nCntPos, nPos, nType, pTextMark, pTOXIntl, and TOX_SORT_CONTENT.
Referenced by SwAuthorityFieldType::GetSequencePos(), SwTOXBaseSection::InsertSorted(), and SwTOXAuthority::sort_lt().
css::lang::Locale SwTOXSortTabBase::aLocale |
Definition at line 126 of file txmsrt.hxx.
Referenced by GetLocale(), and SwTOXSortTabBase().
std::vector<SwTOXSource> SwTOXSortTabBase::aTOXSources |
Definition at line 125 of file txmsrt.hxx.
Referenced by equivalent(), SwTOXIndex::FillText(), SwTOXContent::FillText(), SwTOXPara::FillText(), sw::ToxTextGenerator::GenerateText(), SwTOXPara::GetLevel(), sw::ToxTextGenerator::GetNumStringOfFirstNode(), SwTOXContent::GetText_Impl(), SwTOXPara::GetText_Impl(), SwTOXTable::GetText_Impl(), SwTOXPara::GetURL(), SwTOXTable::GetURL(), sw::ToxTextGenerator::HandleChapterToken(), sw::ToxTextGenerator::HandleTextToken(), SwTOXBaseSection::InsertSorted(), sort_lt(), SwTOXSortTabBase(), and SwTOXBaseSection::UpdatePageNum().
|
private |
Definition at line 162 of file txmsrt.hxx.
Referenced by GetText(), and InitText().
|
private |
Definition at line 161 of file txmsrt.hxx.
Referenced by GetText(), and InitText().
sal_Int32 SwTOXSortTabBase::nCntPos |
Definition at line 131 of file txmsrt.hxx.
Referenced by equivalent(), sort_lt(), SwTOXAuthority::SwTOXAuthority(), and SwTOXSortTabBase().
|
static |
Definition at line 133 of file txmsrt.hxx.
Referenced by SwTOXIndex::FillText(), GetOptions(), SwTOXIndex::GetText_Impl(), and SwTOXIndex::SwTOXIndex().
sal_uLong SwTOXSortTabBase::nPos |
Definition at line 130 of file txmsrt.hxx.
Referenced by equivalent(), SwTOXIndex::equivalent(), sort_lt(), SwTOXIndex::sort_lt(), SwTOXIndex::SwTOXIndex(), and SwTOXSortTabBase().
sal_uInt16 SwTOXSortTabBase::nType |
Definition at line 132 of file txmsrt.hxx.
Referenced by equivalent(), SwTOXAuthority::equivalent(), GetType(), and sort_lt().
const SwTextTOXMark* SwTOXSortTabBase::pTextMark |
Definition at line 128 of file txmsrt.hxx.
Referenced by equivalent(), SwTOXIndex::equivalent(), SwTOXIndex::FillText(), SwTOXContent::FillText(), SwTOXIndex::GetLevel(), SwTOXContent::GetLevel(), sw::ToxTextGenerator::GetNumStringOfFirstNode(), SwTOXIndex::GetText_Impl(), SwTOXContent::GetText_Impl(), sort_lt(), SwTOXIndex::sort_lt(), and SwTOXSortTabBase().
const SwTOXInternational* SwTOXSortTabBase::pTOXIntl |
Definition at line 129 of file txmsrt.hxx.
Referenced by equivalent(), SwTOXIndex::equivalent(), SwTOXCustom::equivalent(), SwTOXIndex::FillText(), SwTOXBaseSection::GetKeyRange(), SwTOXAuthority::GetLevel(), SwTOXIndex::GetText_Impl(), sort_lt(), SwTOXIndex::sort_lt(), SwTOXCustom::sort_lt(), and SwTOXAuthority::sort_lt().
const SwTextNode* SwTOXSortTabBase::pTOXNd |
Definition at line 127 of file txmsrt.hxx.
Referenced by SwTOXBaseSection::UpdatePageNum().