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

Stores the default colors for the current BIFF version and the contents of a PALETTE record. More...

#include <xistyle.hxx>

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

Public Member Functions

 XclImpPalette (const XclImpRoot &rRoot)
 
void Initialize ()
 Clears all buffered data, used to set up for a new sheet. More...
 
Color GetColor (sal_uInt16 nXclIndex) const
 Returns the color for a (non-zero-based) Excel palette entry. More...
 
void ReadPalette (XclImpStream &rStrm)
 Reads a PALETTE record. More...
 
- Public Member Functions inherited from XclDefaultPalette
 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 Types

typedef ::std::vector< ColorColorVec
 

Private Member Functions

void ExportPalette ()
 

Private Attributes

ColorVec maColorTable
 
const XclImpRootmrRoot
 Colors read from file. More...
 

Detailed Description

Stores the default colors for the current BIFF version and the contents of a PALETTE record.

Definition at line 44 of file xistyle.hxx.

Member Typedef Documentation

◆ ColorVec

typedef ::std::vector< Color > XclImpPalette::ColorVec
private

Definition at line 62 of file xistyle.hxx.

Constructor & Destructor Documentation

◆ XclImpPalette()

XclImpPalette::XclImpPalette ( const XclImpRoot rRoot)
explicit

Definition at line 147 of file xistyle.cxx.

Member Function Documentation

◆ ExportPalette()

void XclImpPalette::ExportPalette ( )
private

Definition at line 124 of file xistyle.cxx.

References GetColor(), XclRoot::GetDocShell(), SfxObjectShell::GetModel(), maColorTable, mrRoot, and nIndex.

Referenced by ReadPalette().

◆ GetColor()

Color XclImpPalette::GetColor ( sal_uInt16  nXclIndex) const

◆ Initialize()

void XclImpPalette::Initialize ( )

Clears all buffered data, used to set up for a new sheet.

Definition at line 152 of file xistyle.cxx.

References maColorTable.

Referenced by XclImpRoot::InitializeTable().

◆ ReadPalette()

void XclImpPalette::ReadPalette ( XclImpStream rStrm)

Reads a PALETTE record.

Definition at line 168 of file xistyle.cxx.

References ExportPalette(), maColorTable, nCount, nIndex, rStrm, and SAL_WARN.

Referenced by ImportExcel::Read(), and ImportExcel8::Read().

Member Data Documentation

◆ maColorTable

ColorVec XclImpPalette::maColorTable
private

Definition at line 63 of file xistyle.hxx.

Referenced by ExportPalette(), GetColor(), Initialize(), and ReadPalette().

◆ mrRoot

const XclImpRoot& XclImpPalette::mrRoot
private

Colors read from file.

Definition at line 64 of file xistyle.hxx.

Referenced by ExportPalette().


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