|
| | XLCellAssignable () |
| | Default constructor. Constructs a null object.
|
| |
| | XLCellAssignable (XLCell const &other) |
| | Copy constructor. Constructs an assignable XLCell from an existing cell.
|
| |
| | XLCellAssignable (XLCellAssignable const &other) |
| |
| | XLCellAssignable (XLCell &&other) |
| | Move constructor. Constructs an assignable XLCell from a temporary (r)value.
|
| |
| | XLCellAssignable (XLCellAssignable &&other) noexcept |
| |
| XLCellAssignable & | operator= (const XLCell &other) override |
| | Copy assignment operator.
|
| |
| XLCellAssignable & | operator= (const XLCellAssignable &other) |
| |
| XLCellAssignable & | operator= (XLCell &&other) noexcept override |
| | Move assignment operator -> overrides XLCell copy operator, becomes a copy operator.
|
| |
| XLCellAssignable & | operator= (XLCellAssignable &&other) noexcept |
| |
| XLCellAssignable & | addNote (std::string_view text, std::string_view author="") |
| |
| XLCellAssignable & | setCellFormat (XLStyleIndex cellFormatIndex) |
| |
| XLCellAssignable & | setStyle (const XLStyle &style) |
| |
| template<typename T , typename = std::enable_if_t< std::is_integral_v<T> or std::is_floating_point_v<T> or std::is_same_v<std::decay_t<T>, std::string> || std::is_same_v<std::decay_t<T>, std::string_view> or std::is_same_v<std::decay_t<T>, const char*> || std::is_same_v<std::decay_t<T>, char*> or std::is_same_v<T, XLDateTime>>> |
| XLCellAssignable & | operator= (T value) |
| | Templated assignment operator.
|
| |
| | XLCell () |
| | Default constructor. Constructs a null object.
|
| |
| | XLCell (const XMLNode &cellNode, const XLSharedStrings &sharedStrings, XLWorksheet *wks=nullptr) |
| | Constructs an XLCell mapped to an XML node.
|
| |
| | XLCell (const XLCell &other) |
| | Copy constructor.
|
| |
| | XLCell (XLCell &&other) noexcept |
| | Move constructor.
|
| |
| virtual | ~XLCell () |
| | Destructor.
|
| |
| void | copyFrom (XLCell const &other) |
| | Copy contents of a cell, value & formula.
|
| |
| bool | empty () const |
| | test if cell object has no (valid) content
|
| |
| | operator bool () const |
| | opposite of empty()
|
| |
| void | clear (uint32_t keep) |
| | clear all cell content and attributes except for the cell reference (attribute r)
|
| |
| XLCellValueProxy & | value () |
| | Retrieves the mutable value proxy for the cell.
|
| |
| const XLCellValueProxy & | value () const |
| | Retrieves the read-only value proxy for the cell.
|
| |
| XLCellReference | cellReference () const |
| | get the XLCellReference object for the cell.
|
| |
| XLCell | offset (uint16_t rowOffset, uint16_t colOffset) const |
| | get the XLCell object from the current cell offset
|
| |
| bool | hasFormula () const |
| | test if cell has a formula (XML) node, even if it is an empty string
|
| |
| XLFormulaProxy & | formula () |
| | Retrieves the mutable formula proxy for the cell.
|
| |
| const XLFormulaProxy & | formula () const |
| | Retrieves the read-only formula proxy for the cell.
|
| |
| std::string | getString () const |
| |
| XLStyleIndex | cellFormat () const |
| | Get the array index of xl/styles.xml:<styleSheet>:<cellXfs> for the style used in this cell. This value is stored in the s attribute of a cell like so: s="2".
|
| |
| XLCell & | setCellFormat (XLStyleIndex cellFormatIndex) |
| | Set the cell style (attribute s) with a reference to the array index of xl/styles.xml:<styleSheet>:<cellXfs>
|
| |
| XLCell & | setStyle (const XLStyle &style) |
| | Apply a high-level XLStyle to this cell. Automatically creates or reuses the required underlying XML structures in xl/styles.xml.
|
| |
| XLThreadedComment | addComment (std::string_view text, std::string_view author="") |
| | Add a modern threaded comment (Excel 365) to this cell fluently.
|
| |
| XLCell & | addNote (std::string_view text, std::string_view author="") |
| | Add a legacy yellow note to this cell fluently.
|
| |
| void | print (std::basic_ostream< char > &ostr) const |
| | Print the XML contents of the XLCell using the underlying XMLNode print function.
|
| |
template<typename T , typename = std::enable_if_t< std::is_integral_v<T> or std::is_floating_point_v<T> or std::is_same_v<std::decay_t<T>, std::string> || std::is_same_v<std::decay_t<T>, std::string_view> or std::is_same_v<std::decay_t<T>, const char*> || std::is_same_v<std::decay_t<T>, char*> or std::is_same_v<T, XLDateTime>>>
Templated assignment operator.
- Template Parameters
-
| T | The type of the value argument. |
- Parameters
-
- Returns
- A reference to the assigned-to object.