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

Extends the XclCellArea struct for export. More...

#include <xestyle.hxx>

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

Public Member Functions

 XclExpCellArea ()
 
 XclExpCellArea (Color aForeColor, Color aBackColor)
 
bool FillFromItemSet (const SfxItemSet &rItemSet, XclExpPalette &rPalette, bool bStyle)
 Fills the area attributes from the passed item set. More...
 
void SetFinalColors (const XclExpPalette &rPalette)
 Fills the mn***Color base members from the mn***ColorId members. More...
 
void FillToXF5 (sal_uInt32 &rnArea) const
 Fills the data to the passed fields of a BIFF5/BIFF7 XF record. More...
 
void FillToXF8 (sal_uInt32 &rnBorder2, sal_uInt16 &rnArea) const
 Fills the data to the passed fields of a BIFF8 XF record. More...
 
void FillToCF8 (sal_uInt16 &rnPattern, sal_uInt16 &rnColor) const
 Fills the data to the passed fields of a BIFF8 CF (conditional format) record. More...
 
void SaveXml (XclExpXmlStream &rStrm) const
 
- 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

sal_uInt32 mnForeColorId
 
sal_uInt32 mnBackColorId
 Foreground color ID. More...
 
Color maForeColor
 Background color ID. More...
 
Color maBackColor
 
model::ComplexColor maForegroundComplexColor
 
model::ComplexColor maBackgroundComplexColor
 
- 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 export.

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

Definition at line 377 of file xestyle.hxx.

Constructor & Destructor Documentation

◆ XclExpCellArea() [1/2]

XclExpCellArea::XclExpCellArea ( )
explicit

Definition at line 1901 of file xestyle.cxx.

References COL_TRANSPARENT().

◆ XclExpCellArea() [2/2]

XclExpCellArea::XclExpCellArea ( Color  aForeColor,
Color  aBackColor 
)
explicit

Definition at line 1909 of file xestyle.cxx.

Member Function Documentation

◆ FillFromItemSet()

bool XclExpCellArea::FillFromItemSet ( const SfxItemSet rItemSet,
XclExpPalette rPalette,
bool  bStyle 
)

◆ FillToCF8()

void XclExpCellArea::FillToCF8 ( sal_uInt16 &  rnPattern,
sal_uInt16 &  rnColor 
) const

Fills the data to the passed fields of a BIFF8 CF (conditional format) record.

Definition at line 1959 of file xestyle.cxx.

References EXC_COLOR_WINDOWTEXT, EXC_PATT_SOLID, insert_value(), XclCellArea::IsTransparent(), XclCellArea::mnBackColor, XclCellArea::mnForeColor, and XclCellArea::mnPattern.

Referenced by XclExpCFImpl::WriteBody().

◆ FillToXF5()

void XclExpCellArea::FillToXF5 ( sal_uInt32 &  rnArea) const

Fills the data to the passed fields of a BIFF5/BIFF7 XF record.

Definition at line 1945 of file xestyle.cxx.

References insert_value(), XclCellArea::mnBackColor, XclCellArea::mnForeColor, and XclCellArea::mnPattern.

Referenced by XclExpXF::WriteBody5().

◆ FillToXF8()

void XclExpCellArea::FillToXF8 ( sal_uInt32 &  rnBorder2,
sal_uInt16 &  rnArea 
) const

Fills the data to the passed fields of a BIFF8 XF record.

Definition at line 1952 of file xestyle.cxx.

References insert_value(), XclCellArea::mnBackColor, XclCellArea::mnForeColor, and XclCellArea::mnPattern.

Referenced by XclExpXF::WriteBody8().

◆ SaveXml()

void XclExpCellArea::SaveXml ( XclExpXmlStream rStrm) const

◆ SetFinalColors()

void XclExpCellArea::SetFinalColors ( const XclExpPalette rPalette)

Fills the mn***Color base members from the mn***ColorId members.

Definition at line 1940 of file xestyle.cxx.

References XclExpPalette::GetMixedColors(), XclCellArea::mnBackColor, mnBackColorId, XclCellArea::mnForeColor, mnForeColorId, and XclCellArea::mnPattern.

Referenced by XclExpXF::SetFinalColors(), and XclExpCFImpl::WriteBody().

Member Data Documentation

◆ maBackColor

Color XclExpCellArea::maBackColor

Definition at line 383 of file xestyle.hxx.

Referenced by SaveXml().

◆ maBackgroundComplexColor

model::ComplexColor XclExpCellArea::maBackgroundComplexColor

Definition at line 386 of file xestyle.hxx.

Referenced by SaveXml().

◆ maForeColor

Color XclExpCellArea::maForeColor

Background color ID.

Definition at line 382 of file xestyle.hxx.

Referenced by SaveXml().

◆ maForegroundComplexColor

model::ComplexColor XclExpCellArea::maForegroundComplexColor

Definition at line 385 of file xestyle.hxx.

Referenced by FillFromItemSet(), and SaveXml().

◆ mnBackColorId

sal_uInt32 XclExpCellArea::mnBackColorId

Foreground color ID.

Definition at line 380 of file xestyle.hxx.

Referenced by FillFromItemSet(), and SetFinalColors().

◆ mnForeColorId

sal_uInt32 XclExpCellArea::mnForeColorId

Definition at line 379 of file xestyle.hxx.

Referenced by FillFromItemSet(), and SetFinalColors().


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