|
OpenXLSX 1.9.1
|
An encapsulation of the XLSX differential cell formats (dxfs) More...
#include <XLStyles.hpp>
Public Member Functions | |
| XLDxfs () | |
| Default constructor. | |
| XLDxfs (const XMLNode &node) | |
| Constructor. New items should only be created through an XLStyles object. | |
| XLDxfs (const XLDxfs &other) | |
| Copy Constructor. | |
| XLDxfs (XLDxfs &&other) | |
| Move Constructor. | |
| ~XLDxfs () | |
| Destructor. | |
| XLDxfs & | operator= (const XLDxfs &other) |
| Copy assignment operator. | |
| XLDxfs & | operator= (XLDxfs &&other) noexcept |
| Move assignment operator. | |
| size_t | count () const |
| Get the count of differential cell formats. | |
| XLDxf | dxfByIndex (XLStyleIndex index) const |
| Get the differential cell format identified by index. | |
| XLDxf | operator[] (XLStyleIndex index) const |
| Operator overload: allow [] as shortcut access to dxfByIndex. | |
| XLStyleIndex | create (XLDxf copyFrom=XLDxf{}, std::string_view styleEntriesPrefix=XLDefaultStyleEntriesPrefix) |
| Append a new XLDxf, based on copyFrom, and return its index in dxfs node. | |
An encapsulation of the XLSX differential cell formats (dxfs)
| XLDxfs::XLDxfs | ( | ) |
Default constructor.
|
explicit |
Constructor. New items should only be created through an XLStyles object.
| node | An XMLNode object with the dxfs item. If no input is provided, a null node is used. |
| XLDxfs::XLDxfs | ( | const XLDxfs & | other | ) |
Copy Constructor.
| other | Object to be copied. |
| XLDxfs::XLDxfs | ( | XLDxfs && | other | ) |
Move Constructor.
| other | Object to be moved. |
| XLDxfs::~XLDxfs | ( | ) |
Destructor.
| size_t XLDxfs::count | ( | ) | const |
Get the count of differential cell formats.
| XLStyleIndex XLDxfs::create | ( | XLDxf | copyFrom = XLDxf{}, |
| std::string_view | styleEntriesPrefix = XLDefaultStyleEntriesPrefix |
||
| ) |
Append a new XLDxf, based on copyFrom, and return its index in dxfs node.
| copyFrom | Can provide an XLDxf to use as template for the new style |
| styleEntriesPrefix | Prefix the newly created cell style XMLNode with this pugi::node_pcdata text |
| XLDxf XLDxfs::dxfByIndex | ( | XLStyleIndex | index | ) | const |
Get the differential cell format identified by index.
Copy assignment operator.
| other | Right hand side of assignment operation. |
Move assignment operator.
| other | Right hand side of assignment operation. |
|
inline |
Operator overload: allow [] as shortcut access to dxfByIndex.
| index | The index within the XML sequence |