LibreOffice Module sc (master) 1
|
Contains base members for XF record import/export. More...
#include <xlstyle.hxx>
Public Member Functions | |
XclXFBase (bool bCellXF) | |
virtual | ~XclXFBase () |
XclXFBase (XclXFBase const &)=default | |
XclXFBase (XclXFBase &&)=default | |
XclXFBase & | operator= (XclXFBase const &)=default |
XclXFBase & | operator= (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... | |
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.
|
explicit |
Definition at line 1719 of file xlstyle.cxx.
References SetAllUsedFlags().
|
virtual |
Definition at line 1726 of file xlstyle.cxx.
|
default |
|
default |
|
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().
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().
|
inline |
Returns true, if this is a hard cell format.
Definition at line 579 of file xlstyle.hxx.
References mbCellXF.
Referenced by XclImpXF::ApplyPattern(), XclImpXF::ApplyPatternToAttrVector(), XclImpXF::CreatePattern(), XclExpXF::Equals(), IsStyleXF(), XclExpXF::SaveXml(), and XclExpXFBuffer::ToFindKey().
|
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().
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().
|
protected |
true = number format used.
Definition at line 593 of file xlstyle.hxx.
Referenced by XclImpXF::CreatePattern(), Equals(), XclExpXF::GetUsedFlags(), HasUsedFlags(), XclExpXF::Init(), XclExpXF::SaveXml(), SetAllUsedFlags(), and XclImpXF::SetUsedFlags().
|
protected |
true = border data used.
Definition at line 595 of file xlstyle.hxx.
Referenced by XclImpXF::CreatePattern(), Equals(), XclExpXF::GetUsedFlags(), HasUsedFlags(), XclExpXF::Init(), SetAllUsedFlags(), and XclImpXF::SetUsedFlags().
|
protected |
true = alignment used.
Definition at line 594 of file xlstyle.hxx.
Referenced by XclImpXF::CreatePattern(), Equals(), XclExpXF::GetUsedFlags(), HasUsedFlags(), XclExpXF::Init(), XclExpXF::SaveXml(), SetAllUsedFlags(), and XclImpXF::SetUsedFlags().
|
protected |
Index to parent style XF.
Definition at line 589 of file xlstyle.hxx.
Referenced by Equals(), XclExpXF::GetUsedFlags(), IsCellXF(), XclImpXF::ReadXF3(), XclImpXF::ReadXF4(), XclImpXF::ReadXF5(), XclImpXF::ReadXF8(), and XclImpXF::SetUsedFlags().
|
protected |
true = font index used.
Definition at line 592 of file xlstyle.hxx.
Referenced by XclImpXF::CreatePattern(), Equals(), XclExpXF::GetUsedFlags(), HasUsedFlags(), XclExpXF::Init(), SetAllUsedFlags(), XclExpDefaultXF::SetNumFmt(), and XclImpXF::SetUsedFlags().
|
protected |
true = cell protection used.
Definition at line 591 of file xlstyle.hxx.
Referenced by XclImpXF::CreatePattern(), Equals(), XclExpXF::GetUsedFlags(), HasUsedFlags(), XclExpXF::Init(), XclExpXF::SaveXml(), SetAllUsedFlags(), XclExpDefaultXF::SetFont(), and XclImpXF::SetUsedFlags().
|
protected |
true = cell XF, false = style XF.
Definition at line 590 of file xlstyle.hxx.
Referenced by XclImpXF::CreatePattern(), Equals(), XclExpXF::GetUsedFlags(), HasUsedFlags(), XclExpXF::Init(), XclExpXF::SaveXml(), SetAllUsedFlags(), and XclImpXF::SetUsedFlags().
|
protected |
Definition at line 588 of file xlstyle.hxx.
Referenced by XclImpXF::CreatePattern(), Equals(), XclImpXF::ReadXF3(), XclImpXF::ReadXF4(), XclImpXF::ReadXF5(), XclImpXF::ReadXF8(), XclExpXF::WriteBody(), XclExpXF::WriteBody5(), and XclExpXF::WriteBody8().