LibreOffice Module sw (master) 1
|
#include <docsort.hxx>
Public Member Functions | |
SwSortElement ()=default | |
SwSortElement (SwSortElement const &)=default | |
SwSortElement (SwSortElement &&)=default | |
SwSortElement & | operator= (SwSortElement const &)=default |
SwSortElement & | operator= (SwSortElement &&)=default |
virtual | ~SwSortElement () |
virtual OUString | GetKey (sal_uInt16 nKey) const =0 |
virtual double | GetValue (sal_uInt16 nKey) const |
bool | operator< (const SwSortElement &) const |
Static Public Member Functions | |
static void | Init (SwDoc *, const SwSortOptions &rOpt, FlatFndBox const *=nullptr) |
Construct a SortElement for the Sort. More... | |
static void | Finit () |
static double | StrToDouble (std::u16string_view rStr) |
Static Public Attributes | |
static SwSortOptions * | pOptions = nullptr |
static SwDoc * | pDoc = nullptr |
static const FlatFndBox * | pBox = nullptr |
static CollatorWrapper * | pSortCollator = nullptr |
static css::lang::Locale * | pLocale = nullptr |
static std::optional< OUString > | xLastAlgorithm |
static LocaleDataWrapper * | pLclData = nullptr |
Private Member Functions | |
int | keycompare (const SwSortElement &rCmp, sal_uInt16 nKey) const |
Definition at line 59 of file docsort.hxx.
|
default |
|
default |
|
default |
|
virtual |
Definition at line 100 of file docsort.cxx.
|
static |
Definition at line 85 of file docsort.cxx.
References pBox, pDoc, pLclData, pLocale, pOptions, pSortCollator, and xLastAlgorithm.
Referenced by SwDoc::SortTable(), and SwDoc::SortText().
|
pure virtual |
Implemented in SwSortTextElement, and SwSortBoxElement.
Referenced by GetValue(), and keycompare().
|
virtual |
Reimplemented in SwSortBoxElement.
Definition at line 175 of file docsort.cxx.
References GetKey(), and StrToDouble().
Referenced by SwSortBoxElement::GetValue(), and keycompare().
|
static |
Construct a SortElement for the Sort.
Definition at line 67 of file docsort.cxx.
References o3tl::strong_int< typename UNDERLYING_TYPE, typename PHANTOM_TYPE >::anyOf(), LanguageTag::convertToLocale(), GetAppLanguage(), LANGUAGE_DONTKNOW, LANGUAGE_NONE, nLang, SwSortOptions::nLanguage, pBox, pDoc, pLocale, pOptions, and pSortCollator.
Referenced by SwDoc::SortTable(), and SwDoc::SortText().
|
private |
Definition at line 118 of file docsort.cxx.
References SwSortOptions::aKeys, Ascending, SwSortOptions::bIgnoreCase, SwSortKey::bIsNumeric, CollatorWrapper::compareString(), SwSortKey::eSortOrder, GetKey(), GetValue(), CollatorWrapper::loadCollatorAlgorithm(), n1, n2, pLocale, pOptions, pSortCollator, SwSortKey::sSortType, SW_COLLATOR_IGNORES, and xLastAlgorithm.
Referenced by operator<().
bool SwSortElement::operator< | ( | const SwSortElement & | rCmp | ) | const |
Definition at line 159 of file docsort.cxx.
References SwSortOptions::aKeys, keycompare(), and pOptions.
|
default |
|
default |
|
static |
Definition at line 104 of file docsort.cxx.
References pLclData, pLocale, and LocaleDataWrapper::stringToDouble().
Referenced by GetValue().
|
static |
Definition at line 63 of file docsort.hxx.
Referenced by Finit(), SwSortBoxElement::GetKey(), SwSortBoxElement::GetValue(), and Init().
|
static |
Definition at line 62 of file docsort.hxx.
Referenced by Finit(), SwSortBoxElement::GetKey(), SwSortBoxElement::GetValue(), and Init().
|
static |
Definition at line 67 of file docsort.hxx.
Referenced by Finit(), and StrToDouble().
|
static |
Definition at line 65 of file docsort.hxx.
Referenced by Finit(), Init(), keycompare(), and StrToDouble().
|
static |
Definition at line 61 of file docsort.hxx.
Referenced by Finit(), SwSortTextElement::GetKey(), SwSortBoxElement::GetKey(), SwSortBoxElement::GetValue(), Init(), keycompare(), and operator<().
|
static |
Definition at line 64 of file docsort.hxx.
Referenced by Finit(), Init(), and keycompare().
|
static |
Definition at line 66 of file docsort.hxx.
Referenced by Finit(), and keycompare().