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:
Collaboration diagram for XclImpPalette:

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

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

Definition at line 62 of file xistyle.hxx.

Constructor & Destructor Documentation

XclImpPalette::XclImpPalette ( const XclImpRoot rRoot)

Definition at line 145 of file xistyle.cxx.

Member Function Documentation

void XclImpPalette::ExportPalette ( )

Definition at line 122 of file xistyle.cxx.

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

Referenced by ReadPalette().

Color XclImpPalette::GetColor ( sal_uInt16  nXclIndex) const
void XclImpPalette::Initialize ( )

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

Definition at line 150 of file xistyle.cxx.

References maColorTable.

Referenced by XclImpRoot::InitializeTable().

void XclImpPalette::ReadPalette ( XclImpStream rStrm)

Reads a PALETTE record.

Definition at line 166 of file xistyle.cxx.

References ExportPalette(), XclImpStream::GetRecLeft(), maColorTable, nCount, nIndex, XclImpStream::ReaduInt16(), and SAL_WARN.

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

Member Data Documentation

ColorVec XclImpPalette::maColorTable

Definition at line 63 of file xistyle.hxx.

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

const XclImpRoot& XclImpPalette::mrRoot

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: