11#ifndef OPENXLSX_XLSTYLES_HPP
12#define OPENXLSX_XLSTYLES_HPP
16# pragma warning(disable : 4251)
17# pragma warning(disable : 4275)
65 bool suppressWarnings =
false,
176 std::optional<XLStyleIndex> fontId = std::nullopt,
177 std::optional<XLStyleIndex> fillId = std::nullopt,
178 std::optional<XLStyleIndex> borderId = std::nullopt,
179 std::optional<XLStyleIndex> numFmtId = std::nullopt);
205 void compactStyles();
209 struct StyleCacheImpl;
211 bool m_suppressWarnings;
212 std::unique_ptr<XLNumberFormats> m_numberFormats;
213 std::unique_ptr<XLFonts> m_fonts;
214 std::unique_ptr<XLFills> m_fills;
215 std::unique_ptr<XLBorders> m_borders;
216 std::unique_ptr<XLCellFormats> m_cellStyleFormats;
217 std::unique_ptr<XLCellFormats> m_cellFormats;
218 std::unique_ptr<XLCellStyles> m_cellStyles;
219 std::unique_ptr<XLDxfs> m_dxfs;
220 std::unique_ptr<StyleCacheImpl> m_styleCache;
An encapsulation of the XLSX borders.
Definition XLStyles_Borders.hpp:254
An encapsulation of the XLSX cell styles.
Definition XLStyles_CellStyles.hpp:158
Definition XLStyles_Dxfs.hpp:36
An encapsulation of the XLSX differential cell formats (dxfs).
Definition XLStyles_Dxfs.hpp:151
An encapsulation of the XLSX fills.
Definition XLStyles_Fills.hpp:417
An encapsulation of the XLSX fonts.
Definition XLStyles_Fonts.hpp:205
XLCellStyles & cellStyles() const
Get the cell styles object.
Definition XLStyles.cpp:280
XLBorders & borders() const
Get the borders object.
Definition XLStyles.cpp:274
XLCellFormats & cellFormats() const
Get the cell formats object.
Definition XLStyles.cpp:278
XLFills & fills() const
Get the fills object.
Definition XLStyles.cpp:272
XLCellFormats & cellStyleFormats() const
Get the cell style formats object.
Definition XLStyles.cpp:276
uint32_t createNumberFormat(std::string_view formatCode)
Create a new custom number format with a unique ID and format code.
Definition XLStyles.cpp:266
XLDxfs & dxfs() const
Get the differential cell formats object (dxfs).
Definition XLStyles.cpp:282
XLFonts & fonts() const
Get the fonts object.
Definition XLStyles.cpp:270
XLStyles()
Definition XLStyles.cpp:90
XLStyles & operator=(XLStyles &&other) noexcept
move assignment
Definition XLStyles.cpp:239
XLNumberFormats & numberFormats() const
Get the number formats object.
Definition XLStyles.cpp:268
XLDxfs & diffCellFormats() const
Backward compatibility alias for dxfs().
Definition XLStyles.hpp:157
std::string xmlData(XLXmlSavingDeclaration savingDeclaration=XLXmlSavingDeclaration{}) const
Method for getting the XML data represented by the object.
Definition XLXmlFile.cpp:49
XLXmlFile()=default
Default constructor.
Definition IXLCellProvider.hpp:24
constexpr const char * XLDefaultStylesPrefix
Definition XLStyles_Common.hpp:51
size_t XLStyleIndex
Definition XLStyles_Common.hpp:36
A high-level, human-ergonomic structure representing the styling of a cell or range....
Definition XLStyle.hpp:29