LibreOffice Module sc (master) 1
|
Extends the XclCellBorder struct for export. More...
#include <xestyle.hxx>
Public Member Functions | |
XclExpCellBorder () | |
Color ID for diagonal line(s). More... | |
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 |
![]() | |
XclCellBorder () | |
true = Bottom-left to top-right on. More... | |
Public Attributes | |
sal_uInt32 | mnLeftColorId |
sal_uInt32 | mnRightColorId |
Color ID for left line. More... | |
sal_uInt32 | mnTopColorId |
Color ID for right line. More... | |
sal_uInt32 | mnBottomColorId |
Color ID for top line. More... | |
sal_uInt32 | mnDiagColorId |
Color ID for bottom line. More... | |
![]() | |
sal_uInt16 | mnLeftColor |
sal_uInt16 | mnRightColor |
Palette index for left line. More... | |
sal_uInt16 | mnTopColor |
Palette index for right line. More... | |
sal_uInt16 | mnBottomColor |
Palette index for top line. More... | |
sal_uInt16 | mnDiagColor |
Palette index for bottom line. More... | |
sal_uInt8 | mnLeftLine |
Palette index for diagonal line(s). More... | |
sal_uInt8 | mnRightLine |
Style of left line. More... | |
sal_uInt8 | mnTopLine |
Style of right line. More... | |
sal_uInt8 | mnBottomLine |
Style of top line. More... | |
sal_uInt8 | mnDiagLine |
Style of bottom line. More... | |
bool | mbDiagTLtoBR |
Style of diagonal line(s). More... | |
bool | mbDiagBLtoTR |
true = Top-left to bottom-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 342 of file xestyle.hxx.
|
explicit |
Color ID for diagonal line(s).
Definition at line 1698 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 1707 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(), 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 1802 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 1774 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 1786 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 1851 of file xestyle.cxx.
References XclExpPalette::GetColor(), lcl_WriteBorder(), 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 rStrm.
void XclExpCellBorder::SetFinalColors | ( | const XclExpPalette & | rPalette | ) |
Fills the mn***Color base members from the mn***ColorId members.
Definition at line 1765 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().
sal_uInt32 XclExpCellBorder::mnBottomColorId |
Color ID for top line.
Definition at line 347 of file xestyle.hxx.
Referenced by FillFromItemSet(), and SetFinalColors().
sal_uInt32 XclExpCellBorder::mnDiagColorId |
Color ID for bottom line.
Definition at line 348 of file xestyle.hxx.
Referenced by FillFromItemSet(), and SetFinalColors().
sal_uInt32 XclExpCellBorder::mnLeftColorId |
Definition at line 344 of file xestyle.hxx.
Referenced by FillFromItemSet(), and SetFinalColors().
sal_uInt32 XclExpCellBorder::mnRightColorId |
Color ID for left line.
Definition at line 345 of file xestyle.hxx.
Referenced by FillFromItemSet(), and SetFinalColors().
sal_uInt32 XclExpCellBorder::mnTopColorId |
Color ID for right line.
Definition at line 346 of file xestyle.hxx.
Referenced by FillFromItemSet(), and SetFinalColors().