LibreOffice Module sc (master) 1
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
XclXFBase Class Reference

Contains base members for XF record import/export. More...

#include <xlstyle.hxx>

Inheritance diagram for XclXFBase:
[legend]

Public Member Functions

 XclXFBase (bool bCellXF)
 
virtual ~XclXFBase ()
 
 XclXFBase (XclXFBase const &)=default
 
 XclXFBase (XclXFBase &&)=default
 
XclXFBaseoperator= (XclXFBase const &)=default
 
XclXFBaseoperator= (XclXFBase &&)=default
 
void SetAllUsedFlags (bool bUsed)
 Sets all "attribute used" flags to the passed state. More...
 
bool HasUsedFlags () const
 Returns true, if any "attribute used" flags are ste in this XF. More...
 
bool IsCellXF () const
 Returns true, if this is a hard cell format. More...
 
bool IsStyleXF () const
 Returns true, if this is a cell style. More...
 

Protected Member Functions

bool Equals (const XclXFBase &rCmp) const
 Returns true, if this object is equal to the passed. More...
 

Protected Attributes

sal_uInt16 mnParent
 
bool mbCellXF
 Index to parent style XF. More...
 
bool mbProtUsed
 true = cell XF, false = style XF. More...
 
bool mbFontUsed
 true = cell protection used. More...
 
bool mbFmtUsed
 true = font index used. More...
 
bool mbAlignUsed
 true = number format used. More...
 
bool mbBorderUsed
 true = alignment used. More...
 
bool mbAreaUsed
 true = border data used. More...
 

Detailed Description

Contains base members for XF record import/export.

@descr In detail this class stores the XF type (cell/style), the index to the parent style XF and all "attribute used" flags, which reflect the state of specific attribute groups (true = user has changed the attributes).

Definition at line 562 of file xlstyle.hxx.

Constructor & Destructor Documentation

◆ XclXFBase() [1/3]

XclXFBase::XclXFBase ( bool  bCellXF)
explicit

Definition at line 1719 of file xlstyle.cxx.

References SetAllUsedFlags().

◆ ~XclXFBase()

XclXFBase::~XclXFBase ( )
virtual

Definition at line 1726 of file xlstyle.cxx.

◆ XclXFBase() [2/3]

XclXFBase::XclXFBase ( XclXFBase const &  )
default

◆ XclXFBase() [3/3]

XclXFBase::XclXFBase ( XclXFBase &&  )
default

Member Function Documentation

◆ Equals()

bool XclXFBase::Equals ( const XclXFBase rCmp) const
protected

Returns true, if this object is equal to the passed.

Definition at line 1740 of file xlstyle.cxx.

References mbAlignUsed, mbAreaUsed, mbBorderUsed, mbCellXF, mbFmtUsed, mbFontUsed, mbProtUsed, and mnParent.

Referenced by XclExpXF::Equals().

◆ HasUsedFlags()

bool XclXFBase::HasUsedFlags ( ) const

Returns true, if any "attribute used" flags are ste in this XF.

Definition at line 1735 of file xlstyle.cxx.

References mbAlignUsed, mbAreaUsed, mbBorderUsed, mbFmtUsed, mbFontUsed, and mbProtUsed.

Referenced by XclImpXF::ApplyPattern().

◆ IsCellXF()

bool XclXFBase::IsCellXF ( ) const
inline

◆ IsStyleXF()

bool XclXFBase::IsStyleXF ( ) const
inline

Returns true, if this is a cell style.

Definition at line 581 of file xlstyle.hxx.

References IsCellXF().

Referenced by XclExpXF::Equals(), XclExpXF::Init(), XclExpXF::SaveXml(), XclExpXF::WriteBody5(), and XclExpXF::WriteBody8().

◆ operator=() [1/2]

XclXFBase & XclXFBase::operator= ( XclXFBase &&  )
default

◆ operator=() [2/2]

XclXFBase & XclXFBase::operator= ( XclXFBase const &  )
default

◆ SetAllUsedFlags()

void XclXFBase::SetAllUsedFlags ( bool  bUsed)

Sets all "attribute used" flags to the passed state.

Definition at line 1730 of file xlstyle.cxx.

References mbAlignUsed, mbAreaUsed, mbBorderUsed, mbFmtUsed, mbFontUsed, and mbProtUsed.

Referenced by XclImpXF::ApplyPatternForBiff2CellFormat(), XclImpStyle::CreateStyleSheet(), XclExpXF::Init(), XclImpXF::ReadXF2(), and XclXFBase().

Member Data Documentation

◆ mbAlignUsed

bool XclXFBase::mbAlignUsed
protected

◆ mbAreaUsed

bool XclXFBase::mbAreaUsed
protected

◆ mbBorderUsed

bool XclXFBase::mbBorderUsed
protected

◆ mbCellXF

bool XclXFBase::mbCellXF
protected

◆ mbFmtUsed

bool XclXFBase::mbFmtUsed
protected

◆ mbFontUsed

bool XclXFBase::mbFontUsed
protected

◆ mbProtUsed

bool XclXFBase::mbProtUsed
protected

◆ mnParent

sal_uInt16 XclXFBase::mnParent
protected

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