|
OpenXLSX 1.9.1
|
An encapsulation of the XLSX fills. More...
#include <XLStyles.hpp>
Public Member Functions | |
| XLFills () | |
| XLFills (const XMLNode &node) | |
| Constructor. New items should only be created through an XLStyles object. | |
| XLFills (const XLFills &other) | |
| Copy Constructor. | |
| XLFills (XLFills &&other) | |
| Move Constructor. | |
| ~XLFills () | |
| XLFills & | operator= (const XLFills &other) |
| Copy assignment operator. | |
| XLFills & | operator= (XLFills &&other) noexcept=default |
| Move assignment operator. | |
| size_t | count () const |
| Get the count of fills. | |
| XLFill | fillByIndex (XLStyleIndex index) const |
| Get the fill entry identified by index. | |
| XLFill | operator[] (XLStyleIndex index) const |
| Operator overload: allow [] as shortcut access to fillByIndex. | |
| XLStyleIndex | create (XLFill copyFrom=XLFill{}, std::string_view styleEntriesPrefix=XLDefaultStyleEntriesPrefix) |
| Append a new XLFill, based on copyFrom, and return its index in fills node. | |
| XLStyleIndex | findOrCreate (XLFill copyFrom, std::string_view styleEntriesPrefix=XLDefaultStyleEntriesPrefix) |
| Find an existing fill matching copyFrom's properties, or create a new one. | |
An encapsulation of the XLSX fills.
| XLFills::XLFills | ( | ) |
|
explicit |
Constructor. New items should only be created through an XLStyles object.
| node | An XMLNode object with the fills item. If no input is provided, a null node is used. |
| XLFills::XLFills | ( | const XLFills & | other | ) |
Copy Constructor.
| other | Object to be copied. |
| XLFills::XLFills | ( | XLFills && | other | ) |
Move Constructor.
| other | Object to be moved. |
| XLFills::~XLFills | ( | ) |
| size_t XLFills::count | ( | ) | const |
Get the count of fills.
| XLStyleIndex XLFills::create | ( | XLFill | copyFrom = XLFill{}, |
| std::string_view | styleEntriesPrefix = XLDefaultStyleEntriesPrefix |
||
| ) |
Append a new XLFill, based on copyFrom, and return its index in fills node.
| copyFrom | Can provide an XLFill to use as template for the new style |
| styleEntriesPrefix | Prefix the newly created cell style XMLNode with this pugi::node_pcdata text |
| XLFill XLFills::fillByIndex | ( | XLStyleIndex | index | ) | const |
Get the fill entry identified by index.
| index | The index within the XML sequence |
| XLStyleIndex XLFills::findOrCreate | ( | XLFill | copyFrom, |
| std::string_view | styleEntriesPrefix = XLDefaultStyleEntriesPrefix |
||
| ) |
Find an existing fill matching copyFrom's properties, or create a new one.
Uses a canonical XML fingerprint for O(1) cache lookups after the first call.
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 fillByIndex.
| index | The index within the XML sequence |