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

Extends the XclCellBorder struct for import. More...

#include <xistyle.hxx>

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

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ XclImpCellBorder()

XclImpCellBorder::XclImpCellBorder ( )
explicit

true = Diagonal line style used.

Definition at line 850 of file xistyle.cxx.

References SetUsedFlags().

Member Function Documentation

◆ FillFromCF8()

void XclImpCellBorder::FillFromCF8 ( sal_uInt16  nLineStyle,
sal_uInt32  nLineColor,
sal_uInt32  nFlags 
)

◆ FillFromXF2()

void XclImpCellBorder::FillFromXF2 ( sal_uInt8  nFlags)

◆ FillFromXF3()

void XclImpCellBorder::FillFromXF3 ( sal_uInt32  nBorder)

◆ FillFromXF5()

void XclImpCellBorder::FillFromXF5 ( sal_uInt32  nBorder,
sal_uInt32  nArea 
)

◆ FillFromXF8()

void XclImpCellBorder::FillFromXF8 ( sal_uInt32  nBorder1,
sal_uInt32  nBorder2 
)

◆ FillToItemSet()

void XclImpCellBorder::FillToItemSet ( SfxItemSet rItemSet,
const XclImpPalette rPalette,
bool  bSkipPoolDefs = false 
) const

◆ HasAnyOuterBorder()

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().

◆ SetUsedFlags()

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().

Member Data Documentation

◆ mbBottomUsed

bool XclImpCellBorder::mbBottomUsed

true = Top line style used.

Definition at line 291 of file xistyle.hxx.

Referenced by FillFromCF8(), FillToItemSet(), HasAnyOuterBorder(), and SetUsedFlags().

◆ mbDiagUsed

bool XclImpCellBorder::mbDiagUsed

true = Bottom line style used.

Definition at line 292 of file xistyle.hxx.

Referenced by FillFromCF8(), FillToItemSet(), and SetUsedFlags().

◆ mbLeftUsed

bool XclImpCellBorder::mbLeftUsed

Definition at line 288 of file xistyle.hxx.

Referenced by FillFromCF8(), FillToItemSet(), HasAnyOuterBorder(), and SetUsedFlags().

◆ mbRightUsed

bool XclImpCellBorder::mbRightUsed

true = Left line style used.

Definition at line 289 of file xistyle.hxx.

Referenced by FillFromCF8(), FillToItemSet(), HasAnyOuterBorder(), and SetUsedFlags().

◆ mbTopUsed

bool XclImpCellBorder::mbTopUsed

true = Right line style used.

Definition at line 290 of file xistyle.hxx.

Referenced by FillFromCF8(), FillToItemSet(), HasAnyOuterBorder(), and SetUsedFlags().


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