|
OpenXLSX 1.9.1
|
An encapsulation of a number format (numFmt) item. More...
#include <XLStyles.hpp>
Public Member Functions | |
| XLNumberFormat () | |
| XLNumberFormat (const XMLNode &node) | |
| Constructor. New items should only be created through an XLStyles object. | |
| XLNumberFormat (const XLNumberFormat &other) | |
| Copy Constructor. | |
| XLNumberFormat (XLNumberFormat &&other) noexcept=default | |
| Move Constructor. | |
| ~XLNumberFormat () | |
| XLNumberFormat & | operator= (const XLNumberFormat &other) |
| Copy assignment operator. | |
| XLNumberFormat & | operator= (XLNumberFormat &&other) noexcept=default |
| Move assignment operator. | |
| uint32_t | numberFormatId () const |
| Get the id of the number format. | |
| std::string | formatCode () const |
| Get the code of the number format. | |
| bool | setNumberFormatId (uint32_t newNumberFormatId) |
| Setter functions for style parameters. | |
| bool | setFormatCode (std::string_view newFormatCode) |
| std::string | summary () const |
| Return a string summary of the number format. | |
Friends | |
| class | XLNumberFormats |
An encapsulation of a number format (numFmt) item.
| XLNumberFormat::XLNumberFormat | ( | ) |
|
explicit |
Constructor. New items should only be created through an XLStyles object.
| node | An XMLNode object with the styles item. If no input is provided, a null node is used. |
| XLNumberFormat::XLNumberFormat | ( | const XLNumberFormat & | other | ) |
Copy Constructor.
| other | Object to be copied. |
|
defaultnoexcept |
Move Constructor.
| other | Object to be moved. |
|
default |
| std::string XLNumberFormat::formatCode | ( | ) | const |
Get the code of the number format.
| uint32_t XLNumberFormat::numberFormatId | ( | ) | const |
Get the id of the number format.
| XLNumberFormat & XLNumberFormat::operator= | ( | const XLNumberFormat & | other | ) |
Copy assignment operator.
| other | Right hand side of assignment operation. |
|
defaultnoexcept |
Move assignment operator.
| other | Right hand side of assignment operation. |
| bool XLNumberFormat::setFormatCode | ( | std::string_view | newFormatCode | ) |
| bool XLNumberFormat::setNumberFormatId | ( | uint32_t | newNumberFormatId | ) |
Setter functions for style parameters.
| value | that shall be set |
| std::string XLNumberFormat::summary | ( | ) | const |
Return a string summary of the number format.
|
friend |