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

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

#include <userlist.hxx>

Classes

struct  SubStr
 

Public Member Functions

 ScUserListData (OUString aStr)
 
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 Member Functions

SAL_DLLPRIVATE void InitTokens ()
 

Private Attributes

std::vector< SubStrmaSubStrings
 
OUString aStr
 

Detailed Description

Stores individual user-defined sort list.

Definition at line 31 of file userlist.hxx.

Constructor & Destructor Documentation

◆ ScUserListData()

ScUserListData::ScUserListData ( OUString  aStr)

Definition at line 48 of file userlist.cxx.

References InitTokens().

Member Function Documentation

◆ Compare()

sal_Int32 ScUserListData::Compare ( const OUString &  rSubStr1,
const OUString &  rSubStr2 
) const

◆ GetString()

const OUString & ScUserListData::GetString ( ) const
inline

Definition at line 49 of file userlist.hxx.

References aStr.

Referenced by ScGridWindow::DPSetupFieldPopup(), and ExcAutoFilterRecs::ExcAutoFilterRecs().

◆ GetSubCount()

size_t ScUserListData::GetSubCount ( ) const
inline

◆ GetSubIndex()

bool ScUserListData::GetSubIndex ( const OUString &  rSubStr,
sal_uInt16 &  rIndex,
bool &  bMatchCase 
) const

◆ GetSubStr()

OUString ScUserListData::GetSubStr ( sal_uInt16  nIndex) const

◆ ICompare()

sal_Int32 ScUserListData::ICompare ( const OUString &  rSubStr1,
const OUString &  rSubStr2 
) const

◆ InitTokens()

void ScUserListData::InitTokens ( )
private

Definition at line 36 of file userlist.cxx.

References aStr, ScGlobal::cListDelimiter, maSubStrings, and nIndex.

Referenced by ScUserListData(), and SetString().

◆ SetString()

void ScUserListData::SetString ( const OUString &  rStr)

Definition at line 54 of file userlist.cxx.

References aStr, and InitTokens().

Member Data Documentation

◆ aStr

OUString ScUserListData::aStr
private

Definition at line 42 of file userlist.hxx.

Referenced by InitTokens(), and SetString().

◆ maSubStrings

std::vector<SubStr> ScUserListData::maSubStrings
private

Definition at line 41 of file userlist.hxx.

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


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