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

Stores all default colors for a specific BIFF version. More...

#include <xlstyle.hxx>

Inheritance diagram for XclDefaultPalette:
[legend]
Collaboration diagram for XclDefaultPalette:
[legend]

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 ColormpnColorTable
 
Color mnWindowText
 The table with RGB values. More...
 
Color mnWindowBack
 System window text color. More...
 
Color mnFaceColor
 System window background color. More...
 
Color mnNoteText
 System button background color. More...
 
Color mnNoteBack
 Note text color. More...
 
sal_uInt32 mnTableSize
 Note background color. More...
 

Detailed Description

Stores all default colors for a specific BIFF version.

Definition at line 251 of file xlstyle.hxx.

Constructor & Destructor Documentation

XclDefaultPalette::XclDefaultPalette ( const XclRoot rRoot)
explicit

Member Function Documentation

sal_uInt32 XclDefaultPalette::GetColorCount ( ) const
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
bool XclDefaultPalette::IsSystemColor ( sal_uInt16  nXclIndex) const
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().

Member Data Documentation

Color XclDefaultPalette::mnFaceColor
private

System window background color.

Definition at line 269 of file xlstyle.hxx.

Referenced by GetDefColor(), and XclDefaultPalette().

Color XclDefaultPalette::mnNoteBack
private

Note text color.

Definition at line 271 of file xlstyle.hxx.

Referenced by GetDefColor(), and XclDefaultPalette().

Color XclDefaultPalette::mnNoteText
private

System button background color.

Definition at line 270 of file xlstyle.hxx.

Referenced by GetDefColor(), and XclDefaultPalette().

sal_uInt32 XclDefaultPalette::mnTableSize
private

Note background color.

Definition at line 272 of file xlstyle.hxx.

Referenced by GetColorCount(), GetDefColor(), IsSystemColor(), and XclDefaultPalette().

Color XclDefaultPalette::mnWindowBack
private

System window text color.

Definition at line 268 of file xlstyle.hxx.

Referenced by GetDefColor(), and XclDefaultPalette().

Color XclDefaultPalette::mnWindowText
private

The table with RGB values.

Definition at line 267 of file xlstyle.hxx.

Referenced by GetDefColor(), and XclDefaultPalette().

const Color* XclDefaultPalette::mpnColorTable
private

Definition at line 266 of file xlstyle.hxx.

Referenced by GetDefColor(), and XclDefaultPalette().


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