11#ifndef OPENXLSX_XLSTYLES_CELLSTYLES_HPP
12#define OPENXLSX_XLSTYLES_CELLSTYLES_HPP
16# pragma warning(disable : 4251)
17# pragma warning(disable : 4275)
89 std::string
name()
const;
133 bool setName(std::string_view newName);
135 bool setBuiltinId(uint32_t newBuiltinId);
136 bool setOutlineStyle(uint32_t newOutlineStyle);
137 bool setHidden(
bool set =
true);
138 bool setCustomBuiltin(
bool set =
true);
148 std::string summary()
const;
151 std::unique_ptr<XMLNode> m_cellStyleNode;
206 size_t count()
const;
230 std::unique_ptr<XMLNode> m_cellStylesNode;
231 std::vector<XLCellStyle> m_cellStyles;
Definition XLStyles_CellStyles.hpp:33
XLCellStyle & operator=(const XLCellStyle &other)
Copy assignment operator.
Definition XLStyles_CellStyles.cpp:39
bool hidden() const
Get the hidden flag of the cell style.
Definition XLStyles_CellStyles.cpp:51
friend class XLCellStyles
Definition XLStyles_CellStyles.hpp:34
uint32_t builtinId() const
Get the built-in id of the cell style.
Definition XLStyles_CellStyles.cpp:49
XLCellStyle()
Definition XLStyles_CellStyles.cpp:31
bool customBuiltin() const
Get the custom buildin flag.
Definition XLStyles_CellStyles.cpp:52
std::string name() const
Get the name of the cell style.
Definition XLStyles_CellStyles.cpp:47
bool empty() const
Test if this is an empty node.
Definition XLStyles_CellStyles.cpp:45
uint32_t outlineStyle() const
Get the outline style id (attribute iLevel) of the cell style.
Definition XLStyles_CellStyles.cpp:50
XLStyleIndex xfId() const
Get the id of the cell style format.
Definition XLStyles_CellStyles.cpp:48
XLUnsupportedElement extLst() const
Unsupported getter.
Definition XLStyles_CellStyles.hpp:126
XLCellStyle & operator=(XLCellStyle &&other) noexcept=default
Move assignment operator.
XLCellStyle(XLCellStyle &&other) noexcept=default
Move Constructor.
XLCellStyles & operator=(XLCellStyles &&other) noexcept=default
Move assignment operator.
XLCellStyle cellStyleByIndex(XLStyleIndex index) const
Get the cell style identified by index.
Definition XLStyles_CellStyles.cpp:130
size_t count() const
Get the count of cell styles.
Definition XLStyles_CellStyles.cpp:128
XLCellStyle operator[](XLStyleIndex index) const
Operator overload: allow [] as shortcut access to cellStyleByIndex.
Definition XLStyles_CellStyles.hpp:219
XLCellStyles()
Definition XLStyles_CellStyles.cpp:90
XLCellStyles & operator=(const XLCellStyles &other)
Copy assignment operator.
Definition XLStyles_CellStyles.cpp:118
The XLUnsupportedElement class provides a stub implementation that can be used as function parameter ...
Definition XLXmlFile.hpp:42
Definition IXLCellProvider.hpp:24
OpenXLSX_xml_node XMLNode
Definition XLXmlParser.hpp:64
size_t XLStyleIndex
Definition XLStyles_Common.hpp:36