An encapsulation of the XLSX fills.
More...
#include <XLStyles_Fills.hpp>
An encapsulation of the XLSX fills.
◆ XLFills() [1/4]
◆ XLFills() [2/4]
| XLFills::XLFills |
( |
const XMLNode & | node | ) |
|
|
explicit |
Constructor. New items should only be created through an XLStyles object.
- Parameters
-
| node | An XMLNode object with the fills item. If no input is provided, a null node is used. |
◆ XLFills() [3/4]
| XLFills::XLFills |
( |
const XLFills & | other | ) |
|
Copy Constructor.
- Parameters
-
| other | Object to be copied. |
◆ XLFills() [4/4]
| XLFills::XLFills |
( |
XLFills && | other | ) |
|
Move Constructor.
- Parameters
-
◆ ~XLFills()
◆ count()
| size_t XLFills::count |
( |
| ) |
const |
Get the count of fills.
- Returns
- The amount of fill entries
◆ create()
Append a new XLFill, based on copyFrom, and return its index in fills node.
- Parameters
-
| 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 |
- Returns
- The index of the new style as used by operator[]
◆ fillByIndex()
Get the fill entry identified by index.
- Parameters
-
| index | The index within the XML sequence |
- Returns
- An XLFill object
◆ findOrCreate()
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.
◆ operator=() [1/2]
Copy assignment operator.
- Parameters
-
| other | Right hand side of assignment operation. |
- Returns
- A reference to the lhs object.
◆ operator=() [2/2]
Move assignment operator.
- Parameters
-
| other | Right hand side of assignment operation. |
- Returns
- A reference to lhs object.
◆ operator[]()
Operator overload: allow [] as shortcut access to fillByIndex.
- Parameters
-
| index | The index within the XML sequence |
- Returns
- An XLFill object
The documentation for this class was generated from the following files: