|
OpenXLSX 1.12.1
Modern C++ Excel Library (Fork of OpenXLSX by Kenneth Troldal Balslev)
|
A structure that represents a cell to be appended via the streaming API. More...
#include <XLStreamWriter.hpp>
Public Member Functions | |
| XLStreamCell (XLCellValue val) | |
| XLStreamCell (XLCellValue val, XLStyleIndex style) | |
| XLStreamCell (XLCellValue val, XLStyleIndex style, std::string formulaText) | |
Static Public Member Functions | |
| static XLStreamCell | withFormula (std::string formulaText, XLCellValue cached=XLCellValue {}) |
| static XLStreamCell | withArrayFormula (std::string formulaText, std::string ref={}, XLCellValue cached=XLCellValue {}) |
| Array formula (t="array", optional ref= for multi-cell CSE). | |
| static XLStreamCell | withSharedFormula (int si, std::string formulaText={}, std::string ref={}, XLCellValue cached=XLCellValue {}) |
| Shared formula master (t="shared" si=… ref=…) or dependent (empty formula body, si= only). | |
| static XLStreamCell | withDateTime (const XLDateTime &dt, std::optional< XLStyleIndex > style=std::nullopt) |
| Date/time cell: stores Excel serial and requests an automatic date number format. | |
Data Fields | |
| XLCellValue | value |
| std::optional< XLStyleIndex > | styleIndex |
| std::optional< std::string > | formula |
| bool | treatAsDate {false} |
| XLStreamFormulaType | formulaType {XLStreamFormulaType::Normal} |
| std::optional< std::string > | formulaRef |
| std::optional< int > | formulaSi |
| bool | formulaCa {false} |
A structure that represents a cell to be appended via the streaming API.
|
inlineexplicit |
|
inline |
|
inline |
|
inlinestatic |
Array formula (t="array", optional ref= for multi-cell CSE).
|
inlinestatic |
Date/time cell: stores Excel serial and requests an automatic date number format.
| dt | Excel date/time value. |
| style | Optional explicit style; when omitted the writer caches a default date style. |
|
inlinestatic |
|
inlinestatic |
Shared formula master (t="shared" si=… ref=…) or dependent (empty formula body, si= only).
| std::optional<std::string> OpenXLSX::XLStreamCell::formula |
| bool OpenXLSX::XLStreamCell::formulaCa {false} |
| std::optional<std::string> OpenXLSX::XLStreamCell::formulaRef |
| std::optional<int> OpenXLSX::XLStreamCell::formulaSi |
| XLStreamFormulaType OpenXLSX::XLStreamCell::formulaType {XLStreamFormulaType::Normal} |
| std::optional<XLStyleIndex> OpenXLSX::XLStreamCell::styleIndex |
| bool OpenXLSX::XLStreamCell::treatAsDate {false} |
When true and styleIndex is empty, writer applies the cached default date/time style.
| XLCellValue OpenXLSX::XLStreamCell::value |