LibreOffice Module sc (master) 1
|
Extends the XclCellArea struct for import. More...
#include <xistyle.hxx>
Public Member Functions | |
XclImpCellArea () | |
true = Pattern used. More... | |
void | SetUsedFlags (bool bUsed) |
Sets colors and pattern state to used or unused. More... | |
void | FillFromXF2 (sal_uInt8 nFlags) |
Fills this struct with BIFF2 XF record data. More... | |
void | FillFromXF3 (sal_uInt16 nArea) |
Fills this struct with BIFF3/BIFF4 XF record data. More... | |
void | FillFromXF5 (sal_uInt32 nArea) |
Fills this struct with BIFF5/BIFF7 XF record data. More... | |
void | FillFromXF8 (sal_uInt32 nBorder2, sal_uInt16 nArea) |
Fills this struct with BIFF8 XF record data. More... | |
void | FillFromCF8 (sal_uInt16 nPattern, sal_uInt16 nColor, sal_uInt32 nFlags) |
Fills this struct with BIFF8 CF (conditional format) record data. More... | |
void | FillToItemSet (SfxItemSet &rItemSet, const XclImpPalette &rPalette, bool bSkipPoolDefs=false) const |
Inserts a brush item representing this area style into the item set. More... | |
Public Member Functions inherited from XclCellArea | |
XclCellArea () | |
Fill pattern. More... | |
XclCellArea (sal_uInt8 nPattern) | |
bool | IsTransparent () const |
Returns true, if the area represents transparent state. More... | |
Public Attributes | |
bool | mbForeUsed |
bool | mbBackUsed |
true = Foreground color used. More... | |
bool | mbPattUsed |
true = Background color used. More... | |
Public Attributes inherited from XclCellArea | |
sal_uInt16 | mnForeColor |
sal_uInt16 | mnBackColor |
Palette index to foreground color. More... | |
sal_uInt8 | mnPattern |
Palette index to background color. More... | |
Extends the XclCellArea struct for import.
@descr Provides functions to fill from Excel record data and to fill to item sets.
Definition at line 324 of file xistyle.hxx.
|
explicit |
void XclImpCellArea::FillFromCF8 | ( | sal_uInt16 | nPattern, |
sal_uInt16 | nColor, | ||
sal_uInt32 | nFlags | ||
) |
Fills this struct with BIFF8 CF (conditional format) record data.
Definition at line 1056 of file xistyle.cxx.
References EXC_CF_AREA_BGCOLOR, EXC_CF_AREA_FGCOLOR, EXC_CF_AREA_PATTERN, EXC_PATT_SOLID, get_flag(), mbBackUsed, mbForeUsed, mbPattUsed, XclCellArea::mnBackColor, XclCellArea::mnForeColor, and XclCellArea::mnPattern.
Referenced by XclImpCondFormat::ReadCF().
void XclImpCellArea::FillFromXF2 | ( | sal_uInt8 | nFlags | ) |
Fills this struct with BIFF2 XF record data.
Definition at line 1024 of file xistyle.cxx.
References EXC_COLOR_BIFF2_BLACK, EXC_COLOR_BIFF2_WHITE, EXC_PATT_12_5_PERC, EXC_PATT_NONE, EXC_XF2_BACKGROUND, get_flagvalue(), XclCellArea::mnBackColor, XclCellArea::mnForeColor, XclCellArea::mnPattern, and SetUsedFlags().
Referenced by XclImpXF::ApplyPatternForBiff2CellFormat(), and XclImpXF::ReadXF2().
void XclImpCellArea::FillFromXF3 | ( | sal_uInt16 | nArea | ) |
Fills this struct with BIFF3/BIFF4 XF record data.
Definition at line 1032 of file xistyle.cxx.
References XclCellArea::mnBackColor, XclCellArea::mnForeColor, XclCellArea::mnPattern, and SetUsedFlags().
Referenced by XclImpXF::ReadXF3(), and XclImpXF::ReadXF4().
void XclImpCellArea::FillFromXF5 | ( | sal_uInt32 | nArea | ) |
Fills this struct with BIFF5/BIFF7 XF record data.
Definition at line 1040 of file xistyle.cxx.
References XclCellArea::mnBackColor, XclCellArea::mnForeColor, XclCellArea::mnPattern, and SetUsedFlags().
Referenced by XclImpXF::ReadXF5().
void XclImpCellArea::FillFromXF8 | ( | sal_uInt32 | nBorder2, |
sal_uInt16 | nArea | ||
) |
Fills this struct with BIFF8 XF record data.
Definition at line 1048 of file xistyle.cxx.
References XclCellArea::mnBackColor, XclCellArea::mnForeColor, XclCellArea::mnPattern, and SetUsedFlags().
Referenced by XclImpXF::ReadXF8().
void XclImpCellArea::FillToItemSet | ( | SfxItemSet & | rItemSet, |
const XclImpPalette & | rPalette, | ||
bool | bSkipPoolDefs = false |
||
) | const |
Inserts a brush item representing this area style into the item set.
bSkipPoolDefs | true = Do not put items equal to pool default; false = Put all items. |
Definition at line 1077 of file xistyle.cxx.
References ATTR_BACKGROUND(), COL_TRANSPARENT(), EXC_COLOR_WINDOWBACK, EXC_COLOR_WINDOWTEXT, EXC_PATT_NONE, XclImpPalette::GetColor(), XclTools::GetPatternColor(), mbBackUsed, mbForeUsed, mbPattUsed, XclCellArea::mnBackColor, XclCellArea::mnForeColor, XclCellArea::mnPattern, ScfTools::PutItem(), and SvxBrushItem::SetColor().
Referenced by XclImpXF::CreatePattern(), and XclImpCondFormat::ReadCF().
void XclImpCellArea::SetUsedFlags | ( | bool | bUsed | ) |
Sets colors and pattern state to used or unused.
Definition at line 1019 of file xistyle.cxx.
References mbBackUsed, mbForeUsed, and mbPattUsed.
Referenced by FillFromXF2(), FillFromXF3(), FillFromXF5(), FillFromXF8(), and XclImpCellArea().
bool XclImpCellArea::mbBackUsed |
true = Foreground color used.
Definition at line 327 of file xistyle.hxx.
Referenced by FillFromCF8(), FillToItemSet(), and SetUsedFlags().
bool XclImpCellArea::mbForeUsed |
Definition at line 326 of file xistyle.hxx.
Referenced by FillFromCF8(), FillToItemSet(), and SetUsedFlags().
bool XclImpCellArea::mbPattUsed |
true = Background color used.
Definition at line 328 of file xistyle.hxx.
Referenced by FillFromCF8(), FillToItemSet(), and SetUsedFlags().