LibreOffice Module sc (master) 1
|
Extends the XclCellArea struct for export. More...
#include <xestyle.hxx>
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... | |
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.
|
explicit |
Definition at line 1901 of file xestyle.cxx.
References COL_TRANSPARENT().
Definition at line 1909 of file xestyle.cxx.
bool XclExpCellArea::FillFromItemSet | ( | const SfxItemSet & | rItemSet, |
XclExpPalette & | rPalette, | ||
bool | bStyle | ||
) |
Fills the area attributes from the passed item set.
Definition at line 1918 of file xestyle.cxx.
References ATTR_BACKGROUND(), ScfTools::CheckItem(), EXC_COLOR_CELLAREA, EXC_COLOR_WINDOWBACK, EXC_COLOR_WINDOWTEXT, EXC_PATT_NONE, EXC_PATT_SOLID, SfxItemSet::Get(), SvxBrushItem::GetColor(), XclExpPalette::GetColorIdFromIndex(), SvxBrushItem::getComplexColor(), model::ComplexColor::getType(), XclExpPalette::InsertColor(), Color::IsTransparent(), maForegroundComplexColor, mnBackColorId, mnForeColorId, XclCellArea::mnPattern, and model::Unused.
Referenced by XclExpXF::Init(), and XclExpCFImpl::XclExpCFImpl().
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().
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().
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().
void XclExpCellArea::SaveXml | ( | XclExpXmlStream & | rStrm | ) | const |
Definition at line 1986 of file xestyle.cxx.
References COL_TRANSPARENT(), oox::convertColorTransformsToTintOrShade(), oox::convertThemeColorTypeToExcelThemeNumber(), EXC_PATT_NONE, XclExpPalette::GetColor(), model::ComplexColor::getSchemeType(), model::ComplexColor::isValidSchemeType(), maBackColor, maBackgroundComplexColor, maForeColor, maForegroundComplexColor, XclCellArea::mnBackColor, XclCellArea::mnForeColor, XclCellArea::mnPattern, rStrm, XclXmlUtils::ToOString(), ToPatternType(), and sax_fastparser::UseIf().
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().
Color XclExpCellArea::maBackColor |
Definition at line 383 of file xestyle.hxx.
Referenced by SaveXml().
model::ComplexColor XclExpCellArea::maBackgroundComplexColor |
Definition at line 386 of file xestyle.hxx.
Referenced by SaveXml().
Color XclExpCellArea::maForeColor |
model::ComplexColor XclExpCellArea::maForegroundComplexColor |
Definition at line 385 of file xestyle.hxx.
Referenced by FillFromItemSet(), and SaveXml().
sal_uInt32 XclExpCellArea::mnBackColorId |
Foreground color ID.
Definition at line 380 of file xestyle.hxx.
Referenced by FillFromItemSet(), and SetFinalColors().
sal_uInt32 XclExpCellArea::mnForeColorId |
Definition at line 379 of file xestyle.hxx.
Referenced by FillFromItemSet(), and SetFinalColors().