LibreOffice Module cui (master) 1
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
SvxChartColorTable Class Reference

#include <cfgchart.hxx>

Public Member Functions

size_t size () const
const XColorEntryoperator[] (size_t _nIndex) const
Color getColor (size_t _nIndex) const
void clear ()
void append (const XColorEntry &_rEntry)
void remove (size_t _nIndex)
void replace (size_t _nIndex, const XColorEntry &_rEntry)
void useDefault ()
bool operator== (const SvxChartColorTable &_rOther) const

Static Public Member Functions

static OUString getDefaultName (size_t _nIndex)

Private Attributes

std::vector< XColorEntrym_aColorEntries

Detailed Description

Definition at line 26 of file cfgchart.hxx.

Member Function Documentation

◆ append()

void SvxChartColorTable::append ( const XColorEntry _rEntry)

Definition at line 67 of file cfgchart.cxx.

References m_aColorEntries.

Referenced by SvxChartOptions::GetDefaultColors(), and useDefault().

◆ clear()

void SvxChartColorTable::clear ( )

Definition at line 62 of file cfgchart.cxx.

References m_aColorEntries.

Referenced by useDefault().

◆ getColor()

Color SvxChartColorTable::getColor ( size_t  _nIndex) const

Definition at line 50 of file cfgchart.cxx.

References COL_BLACK(), m_aColorEntries, and SAL_WARN.

Referenced by operator==(), and SvxChartOptions::SetDefaultColors().

◆ getDefaultName()

OUString SvxChartColorTable::getDefaultName ( size_t  _nIndex)

Definition at line 116 of file cfgchart.cxx.

References aName, CuiResId(), and nPos.

Referenced by IMPL_LINK_NOARG(), remove(), and useDefault().

◆ operator==()

bool SvxChartColorTable::operator== ( const SvxChartColorTable _rOther) const

Definition at line 140 of file cfgchart.cxx.

References getColor(), i, and m_aColorEntries.

◆ operator[]()

const XColorEntry & SvxChartColorTable::operator[] ( size_t  _nIndex) const

Definition at line 39 of file cfgchart.cxx.

References m_aColorEntries, and SAL_WARN.

◆ remove()

void SvxChartColorTable::remove ( size_t  _nIndex)

Definition at line 72 of file cfgchart.cxx.

References getDefaultName(), i, and m_aColorEntries.

◆ replace()

void SvxChartColorTable::replace ( size_t  _nIndex,
const XColorEntry _rEntry 

Definition at line 83 of file cfgchart.cxx.

References DBG_ASSERT, and m_aColorEntries.

◆ size()

size_t SvxChartColorTable::size ( ) const

Definition at line 34 of file cfgchart.cxx.

References m_aColorEntries.

Referenced by SvxChartOptions::SetDefaultColors().

◆ useDefault()

void SvxChartColorTable::useDefault ( )

Definition at line 91 of file cfgchart.cxx.

References append(), clear(), getDefaultName(), i, and ROW_COLOR_COUNT.

Member Data Documentation

◆ m_aColorEntries

std::vector< XColorEntry > SvxChartColorTable::m_aColorEntries

Definition at line 29 of file cfgchart.hxx.

Referenced by append(), clear(), getColor(), operator==(), operator[](), remove(), replace(), and size().

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