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

#include <docsort.hxx>

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

Public Member Functions

 SwSortElement ()=default
 
 SwSortElement (SwSortElement const &)=default
 
 SwSortElement (SwSortElement &&)=default
 
SwSortElementoperator= (SwSortElement const &)=default
 
SwSortElementoperator= (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 SwSortOptionspOptions = nullptr
 
static SwDocpDoc = nullptr
 
static const FlatFndBoxpBox = nullptr
 
static CollatorWrapperpSortCollator = nullptr
 
static css::lang::Locale * pLocale = nullptr
 
static std::optional< OUString > xLastAlgorithm
 
static LocaleDataWrapperpLclData = nullptr
 

Private Member Functions

int keycompare (const SwSortElement &rCmp, sal_uInt16 nKey) const
 

Detailed Description

Definition at line 59 of file docsort.hxx.

Constructor & Destructor Documentation

◆ SwSortElement() [1/3]

SwSortElement::SwSortElement ( )
default

◆ SwSortElement() [2/3]

SwSortElement::SwSortElement ( SwSortElement const &  )
default

◆ SwSortElement() [3/3]

SwSortElement::SwSortElement ( SwSortElement &&  )
default

◆ ~SwSortElement()

SwSortElement::~SwSortElement ( )
virtual

Definition at line 100 of file docsort.cxx.

Member Function Documentation

◆ Finit()

void SwSortElement::Finit ( )
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().

◆ GetKey()

virtual OUString SwSortElement::GetKey ( sal_uInt16  nKey) const
pure virtual

Implemented in SwSortTextElement, and SwSortBoxElement.

Referenced by GetValue(), and keycompare().

◆ GetValue()

double SwSortElement::GetValue ( sal_uInt16  nKey) const
virtual

Reimplemented in SwSortBoxElement.

Definition at line 175 of file docsort.cxx.

References GetKey(), and StrToDouble().

Referenced by SwSortBoxElement::GetValue(), and keycompare().

◆ Init()

void SwSortElement::Init ( SwDoc pD,
const SwSortOptions rOpt,
FlatFndBox const *  pFltBx = nullptr 
)
static

◆ keycompare()

int SwSortElement::keycompare ( const SwSortElement rCmp,
sal_uInt16  nKey 
) const
private

◆ operator<()

bool SwSortElement::operator< ( const SwSortElement rCmp) const

Definition at line 159 of file docsort.cxx.

References SwSortOptions::aKeys, keycompare(), and pOptions.

◆ operator=() [1/2]

SwSortElement & SwSortElement::operator= ( SwSortElement &&  )
default

◆ operator=() [2/2]

SwSortElement & SwSortElement::operator= ( SwSortElement const &  )
default

◆ StrToDouble()

double SwSortElement::StrToDouble ( std::u16string_view  rStr)
static

Definition at line 104 of file docsort.cxx.

References pLclData, pLocale, and LocaleDataWrapper::stringToDouble().

Referenced by GetValue().

Member Data Documentation

◆ pBox

const FlatFndBox * SwSortElement::pBox = nullptr
static

Definition at line 63 of file docsort.hxx.

Referenced by Finit(), SwSortBoxElement::GetKey(), SwSortBoxElement::GetValue(), and Init().

◆ pDoc

SwDoc * SwSortElement::pDoc = nullptr
static

Definition at line 62 of file docsort.hxx.

Referenced by Finit(), SwSortBoxElement::GetKey(), SwSortBoxElement::GetValue(), and Init().

◆ pLclData

LocaleDataWrapper * SwSortElement::pLclData = nullptr
static

Definition at line 67 of file docsort.hxx.

Referenced by Finit(), and StrToDouble().

◆ pLocale

lang::Locale * SwSortElement::pLocale = nullptr
static

Definition at line 65 of file docsort.hxx.

Referenced by Finit(), Init(), keycompare(), and StrToDouble().

◆ pOptions

SwSortOptions * SwSortElement::pOptions = nullptr
static

◆ pSortCollator

CollatorWrapper * SwSortElement::pSortCollator = nullptr
static

Definition at line 64 of file docsort.hxx.

Referenced by Finit(), Init(), and keycompare().

◆ xLastAlgorithm

std::optional< OUString > SwSortElement::xLastAlgorithm
static

Definition at line 66 of file docsort.hxx.

Referenced by Finit(), and keycompare().


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