|
OpenXLSX 1.9.1
|
An encapsulation of a cell format item. More...
#include <XLStyles.hpp>
Public Member Functions | |
| XLCellFormat () | |
| XLCellFormat (const XMLNode &node, bool permitXfId) | |
| Constructor. New items should only be created through an XLStyles object. | |
| XLCellFormat (const XLCellFormat &other) | |
| Copy Constructor. | |
| XLCellFormat (XLCellFormat &&other) noexcept=default | |
| Move Constructor. | |
| ~XLCellFormat () | |
| XLCellFormat & | operator= (const XLCellFormat &other) |
| Copy assignment operator. | |
| XLCellFormat & | operator= (XLCellFormat &&other) noexcept=default |
| Move assignment operator. | |
| uint32_t | numberFormatId () const |
| Get the number format id. | |
| XLStyleIndex | fontIndex () const |
| Get the font index. | |
| XLStyleIndex | fillIndex () const |
| Get the fill index. | |
| XLStyleIndex | borderIndex () const |
| Get the border index. | |
| XLStyleIndex | xfId () const |
| Get the id of a referred <xf> entry. | |
| bool | applyNumberFormat () const |
| Report whether number format is applied. | |
| bool | applyFont () const |
| Report whether font is applied. | |
| bool | applyFill () const |
| Report whether fill is applied. | |
| bool | applyBorder () const |
| Report whether border is applied. | |
| bool | applyAlignment () const |
| Report whether alignment is applied. | |
| bool | applyProtection () const |
| Report whether protection is applied. | |
| bool | quotePrefix () const |
| Report whether quotePrefix is enabled. | |
| bool | pivotButton () const |
| Report whether pivot button is applied. | |
| bool | locked () const |
| Report whether protection locked is applied. | |
| bool | hidden () const |
| Report whether protection hidden is applied. | |
| XLAlignment | alignment (bool createIfMissing=false) const |
| Return a reference to applicable alignment. | |
| XLUnsupportedElement | extLst () const |
| Unsupported getter. | |
| XLCellFormat & | setNumberFormatId (uint32_t newNumFmtId) |
| Setter functions for style parameters. | |
| XLCellFormat & | setFontIndex (XLStyleIndex newFontIndex) |
| XLCellFormat & | setFillIndex (XLStyleIndex newFillIndex) |
| XLCellFormat & | setBorderIndex (XLStyleIndex newBorderIndex) |
| XLCellFormat & | setXfId (XLStyleIndex newXfId) |
| XLCellFormat & | setApplyNumberFormat (bool set=true) |
| XLCellFormat & | setApplyFont (bool set=true) |
| XLCellFormat & | setApplyFill (bool set=true) |
| XLCellFormat & | setApplyBorder (bool set=true) |
| XLCellFormat & | setApplyAlignment (bool set=true) |
| XLCellFormat & | setApplyProtection (bool set=true) |
| XLCellFormat & | setQuotePrefix (bool set=true) |
| XLCellFormat & | setPivotButton (bool set=true) |
| XLCellFormat & | setLocked (bool set=true) |
| XLCellFormat & | setHidden (bool set=true) |
| XLCellFormat & | setExtLst (XLUnsupportedElement const &newExtLst) |
| Unsupported setter. | |
| std::string | summary () const |
| Return a string summary of the cell format properties. | |
Friends | |
| class | XLCellFormats |
An encapsulation of a cell format item.
| XLCellFormat::XLCellFormat | ( | ) |
|
explicit |
Constructor. New items should only be created through an XLStyles object.
| node | An XMLNode object with the xf XMLNode. If no input is provided, a null node is used. |
| permitXfId | true (XLPermitXfID) -> getter xfId and setter setXfId are enabled, otherwise will throw XLException if invoked |
| XLCellFormat::XLCellFormat | ( | const XLCellFormat & | other | ) |
Copy Constructor.
| other | Object to be copied. |
|
defaultnoexcept |
Move Constructor.
| other | Object to be moved. |
|
default |
| XLAlignment XLCellFormat::alignment | ( | bool | createIfMissing = false | ) | const |
Return a reference to applicable alignment.
| createIfMissing | triggers creation of alignment node - should be used with setter functions of XLAlignment |
| bool XLCellFormat::applyAlignment | ( | ) | const |
Report whether alignment is applied.
| bool XLCellFormat::applyBorder | ( | ) | const |
Report whether border is applied.
| bool XLCellFormat::applyFill | ( | ) | const |
Report whether fill is applied.
| bool XLCellFormat::applyFont | ( | ) | const |
Report whether font is applied.
| bool XLCellFormat::applyNumberFormat | ( | ) | const |
Report whether number format is applied.
| bool XLCellFormat::applyProtection | ( | ) | const |
Report whether protection is applied.
| XLStyleIndex XLCellFormat::borderIndex | ( | ) | const |
Get the border index.
determines the borderIndex
|
inline |
Unsupported getter.
| XLStyleIndex XLCellFormat::fillIndex | ( | ) | const |
Get the fill index.
determines the fillIndex
| XLStyleIndex XLCellFormat::fontIndex | ( | ) | const |
Get the font index.
determines the fontIndex
| bool XLCellFormat::hidden | ( | ) | const |
Report whether protection hidden is applied.
| bool XLCellFormat::locked | ( | ) | const |
Report whether protection locked is applied.
| uint32_t XLCellFormat::numberFormatId | ( | ) | const |
Get the number format id.
determines the numberFormatId
| XLCellFormat & XLCellFormat::operator= | ( | const XLCellFormat & | other | ) |
Copy assignment operator.
| other | Right hand side of assignment operation. |
|
defaultnoexcept |
Move assignment operator.
| other | Right hand side of assignment operation. |
| bool XLCellFormat::pivotButton | ( | ) | const |
Report whether pivot button is applied.
| bool XLCellFormat::quotePrefix | ( | ) | const |
Report whether quotePrefix is enabled.
| XLCellFormat & XLCellFormat::setApplyAlignment | ( | bool | set = true | ) |
| XLCellFormat & XLCellFormat::setApplyBorder | ( | bool | set = true | ) |
| XLCellFormat & XLCellFormat::setApplyFill | ( | bool | set = true | ) |
| XLCellFormat & XLCellFormat::setApplyFont | ( | bool | set = true | ) |
| XLCellFormat & XLCellFormat::setApplyNumberFormat | ( | bool | set = true | ) |
| XLCellFormat & XLCellFormat::setApplyProtection | ( | bool | set = true | ) |
| XLCellFormat & XLCellFormat::setBorderIndex | ( | XLStyleIndex | newBorderIndex | ) |
| XLCellFormat & XLCellFormat::setExtLst | ( | XLUnsupportedElement const & | newExtLst | ) |
Unsupported setter.
Unsupported setter function.
| XLCellFormat & XLCellFormat::setFillIndex | ( | XLStyleIndex | newFillIndex | ) |
| XLCellFormat & XLCellFormat::setFontIndex | ( | XLStyleIndex | newFontIndex | ) |
| XLCellFormat & XLCellFormat::setHidden | ( | bool | set = true | ) |
| XLCellFormat & XLCellFormat::setLocked | ( | bool | set = true | ) |
| XLCellFormat & XLCellFormat::setNumberFormatId | ( | uint32_t | newNumFmtId | ) |
Setter functions for style parameters.
| value | that shall be set |
| XLCellFormat & XLCellFormat::setPivotButton | ( | bool | set = true | ) |
| XLCellFormat & XLCellFormat::setQuotePrefix | ( | bool | set = true | ) |
| XLCellFormat & XLCellFormat::setXfId | ( | XLStyleIndex | newXfId | ) |
| std::string XLCellFormat::summary | ( | ) | const |
Return a string summary of the cell format properties.
| XLStyleIndex XLCellFormat::xfId | ( | ) | const |
Get the id of a referred <xf> entry.
| XLException | when invoked from cellStyleFormats |
|
friend |