LibreOffice Module sc (master) 1
|
Extends the XclCellBorder struct for export. More...
#include <xestyle.hxx>
Public Member Functions | |
XclExpCellBorder () | |
bool | FillFromItemSet (const SfxItemSet &rItemSet, XclExpPalette &rPalette, XclBiff eBiff, bool bStyle=false) |
Fills the border 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 &rnBorder, sal_uInt32 &rnArea) const |
Fills the data to the passed fields of a BIFF5/BIFF7 XF record. More... | |
void | FillToXF8 (sal_uInt32 &rnBorder1, sal_uInt32 &rnBorder2) const |
Fills the data to the passed fields of a BIFF8 XF record. More... | |
void | FillToCF8 (sal_uInt16 &rnLine, sal_uInt32 &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 XclCellBorder | |
XclCellBorder () | |
true = Bottom-left to top-right on. More... | |
Extends the XclCellBorder struct for export.
@descr Provides functions to fill from item sets and to fill to Excel record data.
Definition at line 340 of file xestyle.hxx.
|
explicit |
Definition at line 1706 of file xestyle.cxx.
bool XclExpCellBorder::FillFromItemSet | ( | const SfxItemSet & | rItemSet, |
XclExpPalette & | rPalette, | ||
XclBiff | eBiff, | ||
bool | bStyle = false |
||
) |
Fills the border attributes from the passed item set.
@descr Fills only the attributes exported in the passed BIFF version.
Definition at line 1715 of file xestyle.cxx.
References ATTR_BORDER(), ATTR_BORDER_BLTR(), ATTR_BORDER_TLBR(), ScfTools::CheckItem(), DBG_ERROR_BIFF, EXC_BIFF2, EXC_BIFF3, EXC_BIFF4, EXC_BIFF5, EXC_BIFF8, EXC_LINE_NONE, SfxItemSet::Get(), SvxBoxItem::GetBottom(), SvxBoxItem::GetLeft(), SvxLineItem::GetLine(), SvxBoxItem::GetRight(), SvxBoxItem::GetTop(), maComplexColorBottom, maComplexColorLeft, maComplexColorRight, maComplexColorTop, XclCellBorder::mbDiagBLtoTR, XclCellBorder::mbDiagTLtoBR, mnBottomColorId, XclCellBorder::mnBottomLine, mnDiagColorId, XclCellBorder::mnDiagLine, mnLeftColorId, XclCellBorder::mnLeftLine, mnRightColorId, XclCellBorder::mnRightLine, mnTopColorId, XclCellBorder::mnTopLine, rBoxItem, and ScHasPriority().
Referenced by XclExpXF::Init(), and XclExpCFImpl::XclExpCFImpl().
void XclExpCellBorder::FillToCF8 | ( | sal_uInt16 & | rnLine, |
sal_uInt32 & | rnColor | ||
) | const |
Fills the data to the passed fields of a BIFF8 CF (conditional format) record.
Definition at line 1814 of file xestyle.cxx.
References insert_value(), XclCellBorder::mnBottomColor, XclCellBorder::mnBottomLine, XclCellBorder::mnLeftColor, XclCellBorder::mnLeftLine, XclCellBorder::mnRightColor, XclCellBorder::mnRightLine, XclCellBorder::mnTopColor, and XclCellBorder::mnTopLine.
Referenced by XclExpCFImpl::WriteBody().
void XclExpCellBorder::FillToXF5 | ( | sal_uInt32 & | rnBorder, |
sal_uInt32 & | rnArea | ||
) | const |
Fills the data to the passed fields of a BIFF5/BIFF7 XF record.
Definition at line 1786 of file xestyle.cxx.
References insert_value(), XclCellBorder::mnBottomColor, XclCellBorder::mnBottomLine, XclCellBorder::mnLeftColor, XclCellBorder::mnLeftLine, XclCellBorder::mnRightColor, XclCellBorder::mnRightLine, XclCellBorder::mnTopColor, and XclCellBorder::mnTopLine.
Referenced by XclExpXF::WriteBody5().
void XclExpCellBorder::FillToXF8 | ( | sal_uInt32 & | rnBorder1, |
sal_uInt32 & | rnBorder2 | ||
) | const |
Fills the data to the passed fields of a BIFF8 XF record.
Definition at line 1798 of file xestyle.cxx.
References EXC_XF_DIAGONAL_BL_TO_TR, EXC_XF_DIAGONAL_TL_TO_BR, insert_value(), XclCellBorder::mbDiagBLtoTR, XclCellBorder::mbDiagTLtoBR, XclCellBorder::mnBottomColor, XclCellBorder::mnBottomLine, XclCellBorder::mnDiagColor, XclCellBorder::mnDiagLine, XclCellBorder::mnLeftColor, XclCellBorder::mnLeftLine, XclCellBorder::mnRightColor, XclCellBorder::mnRightLine, XclCellBorder::mnTopColor, XclCellBorder::mnTopLine, and set_flag().
Referenced by XclExpXF::WriteBody8().
void XclExpCellBorder::SaveXml | ( | XclExpXmlStream & | rStrm | ) | const |
Definition at line 1879 of file xestyle.cxx.
References XclExpPalette::GetColor(), XclExpXmlStream::GetCurrentStream(), XclExpRoot::GetPalette(), XclExpXmlStream::GetRoot(), lcl_WriteBorder(), maComplexColorBottom, maComplexColorDiagonal, maComplexColorLeft, maComplexColorRight, maComplexColorTop, XclCellBorder::mbDiagBLtoTR, XclCellBorder::mbDiagTLtoBR, XclCellBorder::mnBottomColor, XclCellBorder::mnBottomLine, XclCellBorder::mnDiagColor, XclCellBorder::mnDiagLine, XclCellBorder::mnLeftColor, XclCellBorder::mnLeftLine, XclCellBorder::mnRightColor, XclCellBorder::mnRightLine, XclCellBorder::mnTopColor, and XclCellBorder::mnTopLine.
void XclExpCellBorder::SetFinalColors | ( | const XclExpPalette & | rPalette | ) |
Fills the mn***Color base members from the mn***ColorId members.
Definition at line 1777 of file xestyle.cxx.
References XclExpPalette::GetColorIndex(), XclCellBorder::mnBottomColor, mnBottomColorId, XclCellBorder::mnDiagColor, mnDiagColorId, XclCellBorder::mnLeftColor, mnLeftColorId, XclCellBorder::mnRightColor, mnRightColorId, XclCellBorder::mnTopColor, and mnTopColorId.
Referenced by XclExpXF::SetFinalColors(), and XclExpCFImpl::WriteBody().
model::ComplexColor XclExpCellBorder::maComplexColorBottom |
Definition at line 351 of file xestyle.hxx.
Referenced by FillFromItemSet(), and SaveXml().
model::ComplexColor XclExpCellBorder::maComplexColorDiagonal |
Definition at line 352 of file xestyle.hxx.
Referenced by SaveXml().
model::ComplexColor XclExpCellBorder::maComplexColorLeft |
Color ID for diagonal line(s).
Definition at line 348 of file xestyle.hxx.
Referenced by FillFromItemSet(), and SaveXml().
model::ComplexColor XclExpCellBorder::maComplexColorRight |
Definition at line 349 of file xestyle.hxx.
Referenced by FillFromItemSet(), and SaveXml().
model::ComplexColor XclExpCellBorder::maComplexColorTop |
Definition at line 350 of file xestyle.hxx.
Referenced by FillFromItemSet(), and SaveXml().
sal_uInt32 XclExpCellBorder::mnBottomColorId |
Color ID for top line.
Definition at line 345 of file xestyle.hxx.
Referenced by FillFromItemSet(), and SetFinalColors().
sal_uInt32 XclExpCellBorder::mnDiagColorId |
Color ID for bottom line.
Definition at line 346 of file xestyle.hxx.
Referenced by FillFromItemSet(), and SetFinalColors().
sal_uInt32 XclExpCellBorder::mnLeftColorId |
Definition at line 342 of file xestyle.hxx.
Referenced by FillFromItemSet(), and SetFinalColors().
sal_uInt32 XclExpCellBorder::mnRightColorId |
Color ID for left line.
Definition at line 343 of file xestyle.hxx.
Referenced by FillFromItemSet(), and SetFinalColors().
sal_uInt32 XclExpCellBorder::mnTopColorId |
Color ID for right line.
Definition at line 344 of file xestyle.hxx.
Referenced by FillFromItemSet(), and SetFinalColors().