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 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...
 

Detailed Description

Stores all default colors for a specific BIFF version.

Definition at line 251 of file xlstyle.hxx.

Constructor & Destructor Documentation

◆ XclDefaultPalette()

XclDefaultPalette::XclDefaultPalette ( const XclRoot rRoot)
explicit

Member Function Documentation

◆ GetColorCount()

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().

◆ GetDefColor()

Color XclDefaultPalette::GetDefColor ( sal_uInt16  nXclIndex) const

◆ IsSystemColor()

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

◆ mnFaceColor

Color XclDefaultPalette::mnFaceColor
private

The table with RGB values.

Definition at line 267 of file xlstyle.hxx.

Referenced by GetDefColor(), and XclDefaultPalette().

◆ mnNoteBack

Color XclDefaultPalette::mnNoteBack
private

Note text color.

Definition at line 269 of file xlstyle.hxx.

Referenced by GetDefColor(), and XclDefaultPalette().

◆ mnNoteText

Color XclDefaultPalette::mnNoteText
private

System button background color.

Definition at line 268 of file xlstyle.hxx.

Referenced by GetDefColor(), and XclDefaultPalette().

◆ mnTableSize

sal_uInt32 XclDefaultPalette::mnTableSize
private

Note background color.

Definition at line 270 of file xlstyle.hxx.

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

◆ mpnColorTable

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: