LibreOffice Module sc (master)  1
Classes | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
ScUserListData Class Reference

Stores individual user-defined sort list. More...

#include <userlist.hxx>

Classes

struct  SubStr
 

Public Member Functions

 ScUserListData (const OUString &rStr)
 
 ScUserListData (const ScUserListData &rData)
 
 ~ScUserListData ()
 
const OUString & GetString () const
 
void SetString (const OUString &rStr)
 
size_t GetSubCount () const
 
bool GetSubIndex (const OUString &rSubStr, sal_uInt16 &rIndex, bool &bMatchCase) const
 
OUString GetSubStr (sal_uInt16 nIndex) const
 
sal_Int32 Compare (const OUString &rSubStr1, const OUString &rSubStr2) const
 
sal_Int32 ICompare (const OUString &rSubStr1, const OUString &rSubStr2) const
 

Private Types

typedef std::vector< SubStrSubStringsType
 

Private Member Functions

SAL_DLLPRIVATE void InitTokens ()
 

Private Attributes

SubStringsType maSubStrings
 
OUString aStr
 

Detailed Description

Stores individual user-defined sort list.

Definition at line 33 of file userlist.hxx.

Member Typedef Documentation

typedef std::vector<SubStr> ScUserListData::SubStringsType
private

Definition at line 43 of file userlist.hxx.

Constructor & Destructor Documentation

ScUserListData::ScUserListData ( const OUString &  rStr)

Definition at line 87 of file userlist.cxx.

References InitTokens().

ScUserListData::ScUserListData ( const ScUserListData rData)

Definition at line 93 of file userlist.cxx.

References aStr, and InitTokens().

ScUserListData::~ScUserListData ( )

Definition at line 99 of file userlist.cxx.

Member Function Documentation

sal_Int32 ScUserListData::Compare ( const OUString &  rSubStr1,
const OUString &  rSubStr2 
) const
const OUString& ScUserListData::GetString ( ) const
inline
size_t ScUserListData::GetSubCount ( ) const
bool ScUserListData::GetSubIndex ( const OUString &  rSubStr,
sal_uInt16 &  rIndex,
bool &  bMatchCase 
) const
OUString ScUserListData::GetSubStr ( sal_uInt16  nIndex) const
sal_Int32 ScUserListData::ICompare ( const OUString &  rSubStr1,
const OUString &  rSubStr2 
) const

Definition at line 174 of file userlist.cxx.

References ScGlobal::GetpTransliteration(), and GetSubIndex().

Referenced by naturalsort::Compare(), and ScTable::CompareCell().

void ScUserListData::InitTokens ( )
private
void ScUserListData::SetString ( const OUString &  rStr)

Definition at line 103 of file userlist.cxx.

References aStr, and InitTokens().

Member Data Documentation

OUString ScUserListData::aStr
private

Definition at line 45 of file userlist.hxx.

Referenced by InitTokens(), and SetString().

SubStringsType ScUserListData::maSubStrings
private

Definition at line 44 of file userlist.hxx.

Referenced by GetSubCount(), GetSubIndex(), GetSubStr(), and InitTokens().


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