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

#include <ColorSets.hxx>

Public Member Functions

 ColorSet (OUString const &rName)
 
void add (model::ThemeColorType Type, Color aColorData)
 
const OUString & getName () const
 
Color resolveColor (model::ThemeColor const &rThemeColor) const
 
Color getColor (model::ThemeColorType eType) const
 
void dumpAsXml (xmlTextWriterPtr pWriter) const
 

Private Attributes

OUString maName
 
std::array< Color, 12 > maColors
 

Detailed Description

Definition at line 31 of file ColorSets.hxx.

Constructor & Destructor Documentation

◆ ColorSet()

svx::ColorSet::ColorSet ( OUString const &  rName)

Definition at line 114 of file ColorSets.cxx.

References maName.

Member Function Documentation

◆ add()

void svx::ColorSet::add ( model::ThemeColorType  Type,
Color  aColorData 
)

Definition at line 118 of file ColorSets.cxx.

References eType, maColors, and model::Unknown.

Referenced by svx::Theme::FromAny(), and svx::ColorSets::init().

◆ dumpAsXml()

void svx::ColorSet::dumpAsXml ( xmlTextWriterPtr  pWriter) const

Definition at line 147 of file ColorSets.cxx.

References maColors, and maName.

◆ getColor()

Color svx::ColorSet::getColor ( model::ThemeColorType  eType) const

Definition at line 125 of file ColorSets.cxx.

References COL_AUTO(), eType, maColors, SAL_WARN, and model::Unknown.

Referenced by resolveColor(), and svx::ThemeColorValueSet::UserDraw().

◆ getName()

const OUString & svx::ColorSet::getName ( ) const
inline

Definition at line 41 of file ColorSets.hxx.

References maName.

Referenced by svx::ColorSets::getColorSet(), and svx::ThemeColorValueSet::UserDraw().

◆ resolveColor()

Color svx::ColorSet::resolveColor ( model::ThemeColor const &  rThemeColor) const

Member Data Documentation

◆ maColors

std::array<Color, 12> svx::ColorSet::maColors
private

Definition at line 34 of file ColorSets.hxx.

Referenced by add(), dumpAsXml(), and getColor().

◆ maName

OUString svx::ColorSet::maName
private

Definition at line 33 of file ColorSets.hxx.

Referenced by dumpAsXml().


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