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

Collection of user-defined sort lists. More...

#include <userlist.hxx>

Public Member Functions

 ScUserList (bool initDefault=true)
 
 ScUserList (const ScUserList &r)=default
 
void AddDefaults ()
 
void EraseData (size_t nIndex)
 
const ScUserListDataGetData (const OUString &rSubStr) const
 
bool HasEntry (std::u16string_view rStr) const
 If the list in rStr is already inserted. More...
 
const ScUserListDataoperator[] (size_t nIndex) const
 
ScUserListDataoperator[] (size_t nIndex)
 
ScUserListoperator= (const ScUserList &r)=default
 
bool operator== (const ScUserList &r) const
 
bool operator!= (const ScUserList &r) const
 
void clear ()
 
size_t size () const
 
template<class... Args>
void emplace_back (Args &&... args)
 

Private Types

typedef std::vector< ScUserListDataDataType
 

Private Attributes

DataType maData
 

Detailed Description

Collection of user-defined sort lists.

Definition at line 61 of file userlist.hxx.

Member Typedef Documentation

◆ DataType

typedef std::vector<ScUserListData> ScUserList::DataType
private

Definition at line 63 of file userlist.hxx.

Constructor & Destructor Documentation

◆ ScUserList() [1/2]

ScUserList::ScUserList ( bool  initDefault = true)
explicit

Definition at line 145 of file userlist.cxx.

References AddDefaults().

◆ ScUserList() [2/2]

ScUserList::ScUserList ( const ScUserList r)
default

Member Function Documentation

◆ AddDefaults()

void ScUserList::AddDefaults ( )

◆ clear()

void ScUserList::clear ( )
inline

Definition at line 83 of file userlist.hxx.

References maData.

Referenced by ScSpreadsheetSettings::setPropertyValue().

◆ emplace_back()

template<class... Args>
void ScUserList::emplace_back ( Args &&...  args)
inline

◆ EraseData()

void ScUserList::EraseData ( size_t  nIndex)
inline

Definition at line 71 of file userlist.hxx.

References maData, and nIndex.

◆ GetData()

const ScUserListData * ScUserList::GetData ( const OUString &  rSubStr) const

Definition at line 213 of file userlist.cxx.

References maData, and nIndex.

Referenced by ScTable::FillAnalyse().

◆ HasEntry()

bool ScUserList::HasEntry ( std::u16string_view  rStr) const

If the list in rStr is already inserted.

Definition at line 241 of file userlist.cxx.

References maData, and pData.

Referenced by AddDefaults().

◆ operator!=()

bool ScUserList::operator!= ( const ScUserList r) const
inline

Definition at line 81 of file userlist.hxx.

References operator==().

◆ operator=()

ScUserList & ScUserList::operator= ( const ScUserList r)
default

◆ operator==()

bool ScUserList::operator== ( const ScUserList r) const

Definition at line 233 of file userlist.cxx.

References maData.

◆ operator[]() [1/2]

ScUserListData & ScUserList::operator[] ( size_t  nIndex)
inline

Definition at line 78 of file userlist.hxx.

References maData, and nIndex.

◆ operator[]() [2/2]

const ScUserListData & ScUserList::operator[] ( size_t  nIndex) const
inline

Definition at line 77 of file userlist.hxx.

References maData, and nIndex.

◆ size()

size_t ScUserList::size ( ) const
inline

Member Data Documentation

◆ maData

DataType ScUserList::maData
private

Definition at line 64 of file userlist.hxx.

Referenced by GetData(), HasEntry(), and operator==().


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