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 (const OUString &rStr)
 

Static Public Attributes

static SwSortOptionspOptions = nullptr
 
static SwDocpDoc = nullptr
 
static const FlatFndBoxpBox = nullptr
 
static CollatorWrapperpSortCollator = nullptr
 
static css::lang::Locale * pLocale = nullptr
 
static OUString * pLastAlgorithm = nullptr
 
static LocaleDataWrapperpLclData = nullptr
 

Private Member Functions

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

Detailed Description

Definition at line 68 of file docsort.hxx.

Constructor & Destructor Documentation

SwSortElement::SwSortElement ( )
default
SwSortElement::SwSortElement ( SwSortElement const &  )
default
SwSortElement::SwSortElement ( SwSortElement &&  )
default
SwSortElement::~SwSortElement ( )
virtual

Definition at line 101 of file docsort.cxx.

Member Function Documentation

void SwSortElement::Finit ( )
static

Definition at line 85 of file docsort.cxx.

References pBox, pDoc, pLastAlgorithm, pLclData, pLocale, pOptions, and pSortCollator.

Referenced by SwDoc::SortTable(), and SwDoc::SortText().

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

Implemented in SwSortBoxElement, and SwSortTextElement.

Referenced by GetValue(), and keycompare().

double SwSortElement::GetValue ( sal_uInt16  nKey) const
virtual

Reimplemented in SwSortBoxElement.

Definition at line 179 of file docsort.cxx.

References GetKey(), and StrToDouble().

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

void SwSortElement::Init ( SwDoc pD,
const SwSortOptions rOpt,
FlatFndBox const *  pFltBx = nullptr 
)
static
int SwSortElement::keycompare ( const SwSortElement rCmp,
sal_uInt16  nKey 
) const
private
bool SwSortElement::operator< ( const SwSortElement rCmp) const

Definition at line 163 of file docsort.cxx.

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

SwSortElement& SwSortElement::operator= ( SwSortElement const &  )
default
SwSortElement& SwSortElement::operator= ( SwSortElement &&  )
default
double SwSortElement::StrToDouble ( const OUString &  rStr)
static

Definition at line 105 of file docsort.cxx.

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

Referenced by GetValue().

Member Data Documentation

const FlatFndBox * SwSortElement::pBox = nullptr
static

Definition at line 72 of file docsort.hxx.

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

SwDoc * SwSortElement::pDoc = nullptr
static

Definition at line 71 of file docsort.hxx.

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

OUString * SwSortElement::pLastAlgorithm = nullptr
static

Definition at line 75 of file docsort.hxx.

Referenced by Finit(), and keycompare().

LocaleDataWrapper * SwSortElement::pLclData = nullptr
static

Definition at line 76 of file docsort.hxx.

Referenced by Finit(), and StrToDouble().

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

Definition at line 74 of file docsort.hxx.

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

SwSortOptions * SwSortElement::pOptions = nullptr
static
CollatorWrapper * SwSortElement::pSortCollator = nullptr
static

Definition at line 73 of file docsort.hxx.

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


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