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 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< SwTOXSource > | aTOXSources |
css::lang::Locale | aLocale |
const SwTextNode * | pTOXNd |
const SwTextTOXMark * | pTextMark |
const SwTOXInternational * | pTOXIntl |
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 |
Class for sorting directories.
Definition at line 123 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 135 of file txmsrt.cxx.
References aLocale, aTOXSources, GetBodyTextNode(), SwPosition::GetContentIndex(), IDocumentLayoutAccess::GetCurrentLayout(), SwNode::GetDoc(), SwDoc::getIDocumentLayoutAccess(), SwNode::GetIndex(), SwContentNode::getLayoutFrame(), SwPosition::GetNodeIndex(), SwTextAttr::GetStart(), SwTextAttr::GetTOXMark(), SwTOXMark::IsMainEntry(), n, narrowing(), nCntPos, nPos, nPos, nType, pLocale, pTextMark, TOX_SORT_CONTENT, TOX_SORT_PARA, and TOX_SORT_TABLE.
|
inlinevirtual |
Definition at line 143 of file txmsrt.hxx.
|
virtual |
Reimplemented in SwTOXIndex, SwTOXCustom, and SwTOXAuthority.
Definition at line 227 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 SwTOXIndex, SwTOXContent, SwTOXPara, and SwTOXAuthority.
Definition at line 221 of file txmsrt.cxx.
References GetText(), and SwTextNode::InsertText().
Referenced by sw::ToxTextGenerator::GenerateText().
|
pure virtual |
Implemented in SwTOXIndex, SwTOXCustom, SwTOXContent, SwTOXPara, SwTOXTable, and SwTOXAuthority.
Referenced by SwTOXCustom::equivalent(), sw::ToxTextGenerator::GenerateText(), SwTOXBaseSection::GetKeyRange(), SwTOXIndex::sort_lt(), and SwTOXCustom::sort_lt().
|
inline |
Definition at line 185 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 146 of file txmsrt.hxx.
References nOpt.
Referenced by SwTOXIndex::equivalent(), SwTOXIndex::FillText(), SwTOXIndex::GetLevel(), SwTOXBaseSection::InsertSorted(), and SwTOXIndex::sort_lt().
|
inline |
Definition at line 179 of file txmsrt.hxx.
References m_aSort, and m_bValidText.
Referenced by equivalent(), SwTOXIndex::equivalent(), SwTOXCustom::equivalent(), FillText(), SwTOXIndex::FillText(), SwTOXContent::FillText(), SwTOXPara::FillText(), SwTOXAuthority::FillText(), SwTOXBaseSection::GetKeyRange(), sw::ToxTextGenerator::HandleTextToken(), sort_lt(), SwTOXIndex::sort_lt(), and SwTOXCustom::sort_lt().
|
privatepure virtual |
Implemented in SwTOXIndex, SwTOXCustom, SwTOXContent, SwTOXPara, SwTOXTable, and SwTOXAuthority.
Referenced by InitText().
|
inline |
Definition at line 145 of file txmsrt.hxx.
References nType.
Referenced by SwTOXBaseSection::InsertSorted(), and SwTOXBaseSection::UpdatePageNum().
|
virtual |
Reimplemented in SwTOXPara, and SwTOXTable.
Definition at line 189 of file txmsrt.cxx.
References cMarkSeparator, SwTOXMark::GetText(), SwTextAttr::GetTOXMark(), SwTOXMark::GetTOXType(), SwTOXType::GetType(), SwTOXType::GetTypeName(), pTextMark, TOX_CONTENT, TOX_INDEX, TOX_USER, toxMarkSeparator, and typeName.
Referenced by sw::ToxTextGenerator::GenerateText().
|
inline |
Definition at line 170 of file txmsrt.hxx.
References GetText_Impl(), m_aSort, and m_bValidText.
|
virtual |
Reimplemented in SwTOXPara.
Definition at line 216 of file txmsrt.cxx.
Referenced by sw::ToxTextGenerator::HandleTextToken().
|
delete |
|
delete |
|
virtual |
Reimplemented in SwTOXIndex, SwTOXCustom, and SwTOXAuthority.
Definition at line 253 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 129 of file txmsrt.hxx.
Referenced by GetLocale(), and SwTOXSortTabBase().
std::vector<SwTOXSource> SwTOXSortTabBase::aTOXSources |
Definition at line 128 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 165 of file txmsrt.hxx.
Referenced by GetText(), and InitText().
|
private |
Definition at line 164 of file txmsrt.hxx.
Referenced by GetText(), and InitText().
sal_Int32 SwTOXSortTabBase::nCntPos |
Definition at line 134 of file txmsrt.hxx.
Referenced by equivalent(), sort_lt(), SwTOXAuthority::SwTOXAuthority(), and SwTOXSortTabBase().
|
static |
Definition at line 136 of file txmsrt.hxx.
Referenced by SwTOXIndex::FillText(), GetOptions(), SwTOXIndex::GetText_Impl(), and SwTOXIndex::SwTOXIndex().
SwNodeOffset SwTOXSortTabBase::nPos |
Definition at line 133 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 135 of file txmsrt.hxx.
Referenced by equivalent(), SwTOXAuthority::equivalent(), GetType(), and sort_lt().
const SwTextTOXMark* SwTOXSortTabBase::pTextMark |
Definition at line 131 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(), GetURL(), sort_lt(), SwTOXIndex::sort_lt(), and SwTOXSortTabBase().
const SwTOXInternational* SwTOXSortTabBase::pTOXIntl |
Definition at line 132 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 130 of file txmsrt.hxx.
Referenced by SwTOXBaseSection::UpdatePageNum().