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.

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::XclXFBase ( bool  bCellXF)
explicit

Definition at line 1707 of file xlstyle.cxx.

References SetAllUsedFlags().

XclXFBase::~XclXFBase ( )
virtual

Definition at line 1714 of file xlstyle.cxx.

XclXFBase::XclXFBase ( XclXFBase const &  )
default
XclXFBase::XclXFBase ( XclXFBase &&  )
default

Member Function Documentation

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

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

Definition at line 1728 of file xlstyle.cxx.

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

Referenced by XclExpXF::Equals().

bool XclXFBase::HasUsedFlags ( ) const

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

Definition at line 1723 of file xlstyle.cxx.

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

Referenced by XclImpXF::ApplyPattern().

bool XclXFBase::IsCellXF ( ) const
inline
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().

XclXFBase& XclXFBase::operator= ( XclXFBase const &  )
default
XclXFBase& XclXFBase::operator= ( XclXFBase &&  )
default
void XclXFBase::SetAllUsedFlags ( bool  bUsed)

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

Definition at line 1718 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

bool XclXFBase::mbAlignUsed
protected
bool XclXFBase::mbAreaUsed
protected
bool XclXFBase::mbBorderUsed
protected
bool XclXFBase::mbCellXF
protected
bool XclXFBase::mbFmtUsed
protected
bool XclXFBase::mbFontUsed
protected
bool XclXFBase::mbProtUsed
protected
sal_uInt16 XclXFBase::mnParent
protected

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