LibreOffice Module svx (master) 1
Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
svx::ColorSets Class Reference

#include <ColorSets.hxx>

Public Types

enum class  IdenticalNameAction {
  Overwrite ,
  AutoRename
}
 

Public Member Functions

const std::vector< model::ColorSet > & getColorSetVector () const
 
const model::ColorSetgetColorSet (sal_uInt32 nIndex) const
 
model::ColorSet const * getColorSet (std::u16string_view rName) const
 
void insert (model::ColorSet const &rColorSet, IdenticalNameAction eAction=IdenticalNameAction::Overwrite)
 

Static Public Member Functions

static ColorSetsget ()
 

Private Member Functions

 ColorSets ()
 
void init ()
 

Private Attributes

std::vector< model::ColorSetmaColorSets
 

Detailed Description

Definition at line 23 of file ColorSets.hxx.

Member Enumeration Documentation

◆ IdenticalNameAction

Enumerator
Overwrite 
AutoRename 

Definition at line 30 of file ColorSets.hxx.

Constructor & Destructor Documentation

◆ ColorSets()

svx::ColorSets::ColorSets ( )
private

Definition at line 22 of file ColorSets.cxx.

References init().

Referenced by get().

Member Function Documentation

◆ get()

ColorSets & svx::ColorSets::get ( )
static

◆ getColorSet() [1/2]

const model::ColorSet & svx::ColorSets::getColorSet ( sal_uInt32  nIndex) const
inline

Definition at line 38 of file ColorSets.hxx.

References nIndex.

Referenced by SdrModelImpl::initTheme(), and SdrPageProperties::SdrPageProperties().

◆ getColorSet() [2/2]

model::ColorSet const * svx::ColorSets::getColorSet ( std::u16string_view  rName) const

Definition at line 152 of file ColorSets.cxx.

References maColorSets.

◆ getColorSetVector()

const std::vector< model::ColorSet > & svx::ColorSets::getColorSetVector ( ) const
inline

Definition at line 33 of file ColorSets.hxx.

Referenced by svx::ThemeDialog::initColorSets().

◆ init()

void svx::ColorSets::init ( )
private

◆ insert()

void svx::ColorSets::insert ( model::ColorSet const &  rColorSet,
IdenticalNameAction  eAction = IdenticalNameAction::Overwrite 
)

Member Data Documentation

◆ maColorSets

std::vector<model::ColorSet> svx::ColorSets::maColorSets
private

Definition at line 26 of file ColorSets.hxx.

Referenced by getColorSet(), init(), and insert().


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