LibreOffice Module sc (master)  1
Public Member Functions | Public Attributes | List of all members
XclImpCellArea Struct Reference

Extends the XclCellArea struct for import. More...

#include <xistyle.hxx>

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

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

Detailed Description

Extends the XclCellArea struct for import.

Provides functions to fill from Excel record data and to fill to item sets.

Definition at line 325 of file xistyle.hxx.

Constructor & Destructor Documentation

XclImpCellArea::XclImpCellArea ( )
explicit

true = Pattern used.

Definition at line 1010 of file xistyle.cxx.

References SetUsedFlags().

Member Function Documentation

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 1052 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)
void XclImpCellArea::FillFromXF3 ( sal_uInt16  nArea)

Fills this struct with BIFF3/BIFF4 XF record data.

Definition at line 1028 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 1036 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 1044 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.

Parameters
bSkipPoolDefstrue = Do not put items equal to pool default; false = Put all items.

Definition at line 1073 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 1015 of file xistyle.cxx.

References mbBackUsed, mbForeUsed, and mbPattUsed.

Referenced by FillFromXF2(), FillFromXF3(), FillFromXF5(), FillFromXF8(), and XclImpCellArea().

Member Data Documentation

bool XclImpCellArea::mbBackUsed

true = Foreground color used.

Definition at line 328 of file xistyle.hxx.

Referenced by FillFromCF8(), FillToItemSet(), and SetUsedFlags().

bool XclImpCellArea::mbForeUsed

Definition at line 327 of file xistyle.hxx.

Referenced by FillFromCF8(), FillToItemSet(), and SetUsedFlags().

bool XclImpCellArea::mbPattUsed

true = Background color used.

Definition at line 329 of file xistyle.hxx.

Referenced by FillFromCF8(), FillToItemSet(), and SetUsedFlags().


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