LibreOffice Module sc (master) 1
|
Stores all default colors for a specific BIFF version. More...
#include <xlstyle.hxx>
Public Member Functions | |
XclDefaultPalette (const XclRoot &rRoot) | |
sal_uInt32 | GetColorCount () const |
Returns the color count in the current palette. More... | |
Color | GetDefColor (sal_uInt16 nXclIndex) const |
Returns the default color for a (non-zero-based) Excel color or COL_AUTO on error. More... | |
bool | IsSystemColor (sal_uInt16 nXclIndex) const |
Returns true, if the passed Excel color index is a system color. More... | |
Private Attributes | |
const Color * | mpnColorTable |
Color | mnFaceColor |
The table with RGB values. More... | |
Color | mnNoteText |
System button background color. More... | |
Color | mnNoteBack |
Note text color. More... | |
sal_uInt32 | mnTableSize |
Note background color. More... | |
Stores all default colors for a specific BIFF version.
Definition at line 251 of file xlstyle.hxx.
|
explicit |
Definition at line 92 of file xlstyle.cxx.
References svtools::CALCNOTESBACKGROUND, DBG_ERROR_BIFF, EXC_BIFF2, EXC_BIFF3, EXC_BIFF4, EXC_BIFF5, EXC_BIFF8, svtools::FONTCOLOR, XclRoot::GetBiff(), svtools::ColorConfig::GetDefaultColor(), StyleSettings::GetFaceColor(), Application::GetSettings(), AllSettings::GetStyleSettings(), mnFaceColor, mnNoteBack, mnNoteText, mnTableSize, mpnColorTable, SAL_N_ELEMENTS, spnDefColorTable2, spnDefColorTable3, spnDefColorTable5, and spnDefColorTable8.
|
inline |
Returns the color count in the current palette.
Definition at line 257 of file xlstyle.hxx.
References EXC_COLOR_USEROFFSET, and mnTableSize.
Referenced by XclExpPaletteImpl::Finalize(), XclExpPalette::XclExpPalette(), and XclExpPaletteImpl::XclExpPaletteImpl().
Color XclDefaultPalette::GetDefColor | ( | sal_uInt16 | nXclIndex | ) | const |
Returns the default color for a (non-zero-based) Excel color or COL_AUTO on error.
Definition at line 140 of file xlstyle.cxx.
References COL_AUTO(), COL_BLACK(), COL_WHITE(), EXC_COLOR_BUTTONBACK, EXC_COLOR_CHBORDERAUTO, EXC_COLOR_CHWINDOWBACK, EXC_COLOR_CHWINDOWTEXT, EXC_COLOR_FONTAUTO, EXC_COLOR_NOTEBACK, EXC_COLOR_NOTETEXT, EXC_COLOR_WINDOWBACK, EXC_COLOR_WINDOWBACK3, EXC_COLOR_WINDOWTEXT, EXC_COLOR_WINDOWTEXT3, mnFaceColor, mnNoteBack, mnNoteText, mnTableSize, mpnColorTable, and SAL_WARN.
Referenced by XclExpPaletteImpl::GetColor(), XclImpPalette::GetColor(), XclExpPaletteImpl::IsDefaultPalette(), XclExpChRoot::IsSystemColor(), XclExpChRoot::SetSystemColor(), and XclExpPaletteImpl::XclExpPaletteImpl().
|
inline |
Returns true, if the passed Excel color index is a system color.
Definition at line 263 of file xlstyle.hxx.
References mnTableSize.
Referenced by XclExpChRoot::IsSystemColor().
|
private |
The table with RGB values.
Definition at line 267 of file xlstyle.hxx.
Referenced by GetDefColor(), and XclDefaultPalette().
|
private |
Note text color.
Definition at line 269 of file xlstyle.hxx.
Referenced by GetDefColor(), and XclDefaultPalette().
|
private |
System button background color.
Definition at line 268 of file xlstyle.hxx.
Referenced by GetDefColor(), and XclDefaultPalette().
|
private |
Note background color.
Definition at line 270 of file xlstyle.hxx.
Referenced by GetColorCount(), GetDefColor(), IsSystemColor(), and XclDefaultPalette().
|
private |
Definition at line 266 of file xlstyle.hxx.
Referenced by GetDefColor(), and XclDefaultPalette().