| LibreOffice Module sc (master) 1
    | 
Stores the default colors for the current BIFF version and the contents of a PALETTE record. More...
#include <xistyle.hxx>
| 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< Color > | ColorVec | 
| Private Member Functions | |
| void | ExportPalette () | 
| Private Attributes | |
| ColorVec | maColorTable | 
| const XclImpRoot & | mrRoot | 
| Colors read from file.  More... | |
Stores the default colors for the current BIFF version and the contents of a PALETTE record.
Definition at line 44 of file xistyle.hxx.
| 
 | private | 
Definition at line 62 of file xistyle.hxx.
| 
 | explicit | 
Definition at line 147 of file xistyle.cxx.
| 
 | private | 
Definition at line 124 of file xistyle.cxx.
References GetColor(), XclRoot::GetDocShell(), SfxObjectShell::GetModel(), maColorTable, mrRoot, and nIndex.
Referenced by ReadPalette().
| Color XclImpPalette::GetColor | ( | sal_uInt16 | nXclIndex | ) | const | 
Returns the color for a (non-zero-based) Excel palette entry.
@descr First looks for a color read from file, then looks for a default color.
Definition at line 157 of file xistyle.cxx.
References EXC_COLOR_USEROFFSET, XclDefaultPalette::GetDefColor(), and maColorTable.
Referenced by XclImpChAreaFormat::Convert(), XclImpChLineFormat::Convert(), XclImpDrawObjBase::ConvertFillStyle(), ExportPalette(), XclImpCellArea::FillToItemSet(), XclImpSimpleDffConverter::GetColorFromPalette(), XclImpChRoot::GetFontAutoColor(), XclImpChRoot::GetSeriesFillAutoColor(), XclImpChRoot::GetSeriesLineAutoColor(), XclImpDrawObjBase::GetSolidFillColor(), XclImpDrawObjBase::GetSolidLineColor(), XclImpFont::ReadCFFontBlock(), XclImpChAreaFormat::ReadChAreaFormat(), XclImpChLineFormat::ReadChLineFormat(), XclImpChMarkerFormat::ReadChMarkerFormat(), XclImpChText::ReadHeaderRecord(), XclImpTabViewSettings::ReadTabBgColor(), XclImpTabViewSettings::ReadWindow2(), and XclImpChFrame::UpdateObjFrame().
| 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().
| 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().
| 
 | private | 
Definition at line 63 of file xistyle.hxx.
Referenced by ExportPalette(), GetColor(), Initialize(), and ReadPalette().
| 
 | private |