LibreOffice Module sc (master)
1
|
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< SubStr > | SubStringsType |
Private Member Functions | |
SAL_DLLPRIVATE void | InitTokens () |
Private Attributes | |
SubStringsType | maSubStrings |
OUString | aStr |
Stores individual user-defined sort list.
Definition at line 33 of file userlist.hxx.
|
private |
Definition at line 44 of file userlist.hxx.
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.
sal_Int32 ScUserListData::Compare | ( | const OUString & | rSubStr1, |
const OUString & | rSubStr2 | ||
) | const |
Definition at line 148 of file userlist.cxx.
References utl::TransliterationWrapper::compareString(), ScGlobal::GetCaseTransliteration(), and GetSubIndex().
Referenced by naturalsort::Compare(), and ScTable::CompareCell().
|
inline |
Definition at line 55 of file userlist.hxx.
Referenced by ScGridWindow::DPLaunchFieldPopupMenu(), and ExcAutoFilterRecs::ExcAutoFilterRecs().
size_t ScUserListData::GetSubCount | ( | ) | const |
Definition at line 109 of file userlist.cxx.
References maSubStrings.
Referenced by ScDBFunc::DataPilotSort(), ScTable::FillAnalyse(), ScTable::FillAuto(), ScTable::GetAutoFillPreview(), and ScTpUserLists::UpdateEntries().
bool ScUserListData::GetSubIndex | ( | const OUString & | rSubStr, |
sal_uInt16 & | rIndex, | ||
bool & | bMatchCase | ||
) | const |
Definition at line 114 of file userlist.cxx.
References ScGlobal::getCharClassPtr(), maSubStrings, and CharClass::uppercase().
Referenced by Compare(), ScTable::FillAnalyse(), ScTable::FillAuto(), and ICompare().
OUString ScUserListData::GetSubStr | ( | sal_uInt16 | nIndex | ) | const |
Definition at line 140 of file userlist.cxx.
References maSubStrings.
Referenced by ScDBFunc::DataPilotSort(), ScTable::FillAuto(), ScTable::GetAutoFillPreview(), and ScTpUserLists::UpdateEntries().
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().
|
private |
Definition at line 50 of file userlist.cxx.
References aStr, ScGlobal::cListDelimiter, ScGlobal::getCharClassPtr(), i, maSubStrings, n, p, and CharClass::uppercase().
Referenced by ScUserListData(), and SetString().
void ScUserListData::SetString | ( | const OUString & | rStr | ) |
Definition at line 103 of file userlist.cxx.
References aStr, and InitTokens().
|
private |
Definition at line 46 of file userlist.hxx.
Referenced by InitTokens(), and SetString().
|
private |
Definition at line 45 of file userlist.hxx.
Referenced by GetSubCount(), GetSubIndex(), GetSubStr(), and InitTokens().