LibreOffice Module sc (master) 1
|
Extends the XclCellBorder struct for import. More...
#include <xistyle.hxx>
Public Member Functions | |
XclImpCellBorder () | |
true = Diagonal line style used. More... | |
void | SetUsedFlags (bool bOuterUsed, bool bDiagUsed) |
Sets outer line states and diagonal line states to used or unused. More... | |
void | FillFromXF2 (sal_uInt8 nFlags) |
Fills this struct with BIFF2 XF record data. More... | |
void | FillFromXF3 (sal_uInt32 nBorder) |
Fills this struct with BIFF3/BIFF4 XF record data. More... | |
void | FillFromXF5 (sal_uInt32 nBorder, sal_uInt32 nArea) |
Fills this struct with BIFF5/BIFF7 XF record data. More... | |
void | FillFromXF8 (sal_uInt32 nBorder1, sal_uInt32 nBorder2) |
Fills this struct with BIFF8 XF record data. More... | |
void | FillFromCF8 (sal_uInt16 nLineStyle, sal_uInt32 nLineColor, sal_uInt32 nFlags) |
Fills this struct with BIFF8 CF (conditional format) record data. More... | |
bool | HasAnyOuterBorder () const |
Returns true, if any of the outer border lines is visible. More... | |
void | FillToItemSet (SfxItemSet &rItemSet, const XclImpPalette &rPalette, bool bSkipPoolDefs=false) const |
Inserts a box item representing this border style into the item set. More... | |
Public Member Functions inherited from XclCellBorder | |
XclCellBorder () | |
true = Bottom-left to top-right on. More... | |
Public Attributes | |
bool | mbLeftUsed |
bool | mbRightUsed |
true = Left line style used. More... | |
bool | mbTopUsed |
true = Right line style used. More... | |
bool | mbBottomUsed |
true = Top line style used. More... | |
bool | mbDiagUsed |
true = Bottom line style used. More... | |
Public Attributes inherited from XclCellBorder | |
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 import.
@descr Provides functions to fill from Excel record data and to fill to item sets.
Definition at line 286 of file xistyle.hxx.
|
explicit |
true = Diagonal line style used.
Definition at line 850 of file xistyle.cxx.
References SetUsedFlags().
void XclImpCellBorder::FillFromCF8 | ( | sal_uInt16 | nLineStyle, |
sal_uInt32 | nLineColor, | ||
sal_uInt32 | nFlags | ||
) |
Fills this struct with BIFF8 CF (conditional format) record data.
Definition at line 917 of file xistyle.cxx.
References EXC_CF_BORDER_BOTTOM, EXC_CF_BORDER_LEFT, EXC_CF_BORDER_RIGHT, EXC_CF_BORDER_TOP, get_flag(), mbBottomUsed, mbDiagUsed, mbLeftUsed, mbRightUsed, mbTopUsed, XclCellBorder::mnBottomColor, XclCellBorder::mnBottomLine, XclCellBorder::mnLeftColor, XclCellBorder::mnLeftLine, XclCellBorder::mnRightColor, XclCellBorder::mnRightLine, XclCellBorder::mnTopColor, and XclCellBorder::mnTopLine.
Referenced by XclImpCondFormat::ReadCF().
void XclImpCellBorder::FillFromXF2 | ( | sal_uInt8 | nFlags | ) |
Fills this struct with BIFF2 XF record data.
Definition at line 861 of file xistyle.cxx.
References EXC_COLOR_BIFF2_BLACK, EXC_LINE_NONE, EXC_LINE_THIN, EXC_XF2_BOTTOMLINE, EXC_XF2_LEFTLINE, EXC_XF2_RIGHTLINE, EXC_XF2_TOPLINE, get_flagvalue(), XclCellBorder::mnBottomColor, XclCellBorder::mnBottomLine, XclCellBorder::mnLeftColor, XclCellBorder::mnLeftLine, XclCellBorder::mnRightColor, XclCellBorder::mnRightLine, XclCellBorder::mnTopColor, XclCellBorder::mnTopLine, and SetUsedFlags().
Referenced by XclImpXF::ApplyPatternForBiff2CellFormat(), and XclImpXF::ReadXF2().
void XclImpCellBorder::FillFromXF3 | ( | sal_uInt32 | nBorder | ) |
Fills this struct with BIFF3/BIFF4 XF record data.
Definition at line 871 of file xistyle.cxx.
References XclCellBorder::mnBottomColor, XclCellBorder::mnBottomLine, XclCellBorder::mnLeftColor, XclCellBorder::mnLeftLine, XclCellBorder::mnRightColor, XclCellBorder::mnRightLine, XclCellBorder::mnTopColor, XclCellBorder::mnTopLine, nBorder, and SetUsedFlags().
Referenced by XclImpXF::ReadXF3(), and XclImpXF::ReadXF4().
void XclImpCellBorder::FillFromXF5 | ( | sal_uInt32 | nBorder, |
sal_uInt32 | nArea | ||
) |
Fills this struct with BIFF5/BIFF7 XF record data.
Definition at line 884 of file xistyle.cxx.
References XclCellBorder::mnBottomColor, XclCellBorder::mnBottomLine, XclCellBorder::mnLeftColor, XclCellBorder::mnLeftLine, XclCellBorder::mnRightColor, XclCellBorder::mnRightLine, XclCellBorder::mnTopColor, XclCellBorder::mnTopLine, nBorder, and SetUsedFlags().
Referenced by XclImpXF::ReadXF5().
void XclImpCellBorder::FillFromXF8 | ( | sal_uInt32 | nBorder1, |
sal_uInt32 | nBorder2 | ||
) |
Fills this struct with BIFF8 XF record data.
Definition at line 897 of file xistyle.cxx.
References EXC_XF_DIAGONAL_BL_TO_TR, EXC_XF_DIAGONAL_TL_TO_BR, get_flag(), 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 SetUsedFlags().
Referenced by XclImpXF::ReadXF8().
void XclImpCellBorder::FillToItemSet | ( | SfxItemSet & | rItemSet, |
const XclImpPalette & | rPalette, | ||
bool | bSkipPoolDefs = false |
||
) | const |
Inserts a box item representing this border style into the item set.
bSkipPoolDefs | true = Do not put items equal to pool default; false = Put all items. |
Definition at line 981 of file xistyle.cxx.
References ATTR_BORDER(), ATTR_BORDER_BLTR(), ATTR_BORDER_TLBR(), mbBottomUsed, XclCellBorder::mbDiagBLtoTR, XclCellBorder::mbDiagTLtoBR, mbDiagUsed, mbLeftUsed, mbRightUsed, mbTopUsed, XclCellBorder::mnBottomColor, XclCellBorder::mnBottomLine, XclCellBorder::mnDiagColor, XclCellBorder::mnDiagLine, XclCellBorder::mnLeftColor, XclCellBorder::mnLeftLine, XclCellBorder::mnRightColor, XclCellBorder::mnRightLine, XclCellBorder::mnTopColor, XclCellBorder::mnTopLine, ScfTools::PutItem(), SvxLineItem::SetLine(), and SvxBoxItem::SetLine().
Referenced by XclImpXF::CreatePattern(), and XclImpCondFormat::ReadCF().
bool XclImpCellBorder::HasAnyOuterBorder | ( | ) | const |
Returns true, if any of the outer border lines is visible.
Definition at line 934 of file xistyle.cxx.
References EXC_LINE_NONE, mbBottomUsed, mbLeftUsed, mbRightUsed, mbTopUsed, XclCellBorder::mnBottomLine, XclCellBorder::mnLeftLine, XclCellBorder::mnRightLine, and XclCellBorder::mnTopLine.
Referenced by XclImpXF::CreatePattern().
void XclImpCellBorder::SetUsedFlags | ( | bool | bOuterUsed, |
bool | bDiagUsed | ||
) |
Sets outer line states and diagonal line states to used or unused.
Definition at line 855 of file xistyle.cxx.
References mbBottomUsed, mbDiagUsed, mbLeftUsed, mbRightUsed, and mbTopUsed.
Referenced by FillFromXF2(), FillFromXF3(), FillFromXF5(), FillFromXF8(), and XclImpCellBorder().
bool XclImpCellBorder::mbBottomUsed |
true = Top line style used.
Definition at line 291 of file xistyle.hxx.
Referenced by FillFromCF8(), FillToItemSet(), HasAnyOuterBorder(), and SetUsedFlags().
bool XclImpCellBorder::mbDiagUsed |
true = Bottom line style used.
Definition at line 292 of file xistyle.hxx.
Referenced by FillFromCF8(), FillToItemSet(), and SetUsedFlags().
bool XclImpCellBorder::mbLeftUsed |
Definition at line 288 of file xistyle.hxx.
Referenced by FillFromCF8(), FillToItemSet(), HasAnyOuterBorder(), and SetUsedFlags().
bool XclImpCellBorder::mbRightUsed |
true = Left line style used.
Definition at line 289 of file xistyle.hxx.
Referenced by FillFromCF8(), FillToItemSet(), HasAnyOuterBorder(), and SetUsedFlags().
bool XclImpCellBorder::mbTopUsed |
true = Right line style used.
Definition at line 290 of file xistyle.hxx.
Referenced by FillFromCF8(), FillToItemSet(), HasAnyOuterBorder(), and SetUsedFlags().