OpenXLSX 1.9.1
Loading...
Searching...
No Matches
XLChartsheet.hpp
Go to the documentation of this file.
1#ifndef OPENXLSX_XLCHARTSHEET_HPP
2#define OPENXLSX_XLCHARTSHEET_HPP
3
4#include "OpenXLSX-Exports.hpp"
5#include "XLChart.hpp"
6#include "XLDrawing.hpp"
7#include "XLSheetBase.hpp"
8
9namespace OpenXLSX
10{
14 class OPENXLSX_EXPORT XLChartsheet final : public XLSheetBase<XLChartsheet>
15 {
16 friend class XLSheetBase<XLChartsheet>;
17
18 public:
19 XLChartsheet() : XLSheetBase(nullptr) {};
21 XLChartsheet(const XLChartsheet& other) = default;
22 XLChartsheet(XLChartsheet&& other) noexcept = default;
24
25 XLChartsheet& operator=(const XLChartsheet& other) = default;
26 XLChartsheet& operator=(XLChartsheet&& other) noexcept = default;
27
34 XLChart addChart(XLChartType type, std::string_view name);
35
39 XLDrawing& drawing();
40 XLRelationships& relationships();
41
42 private:
43 XLColor getColor_impl() const;
44 void setColor_impl(const XLColor& color);
45 bool isSelected_impl() const;
46 void setSelected_impl(bool selected);
47 bool isActive_impl() const { return false; }
48 bool setActive_impl() { return true; }
49
50 uint16_t sheetXmlNumber() const;
51
52 XLRelationships m_relationships{};
53 XLDrawing m_drawing{};
54 };
55} // namespace OpenXLSX
56
57#endif
XLXmlData * xmlData
Definition XLDocument.cpp:1422
return XLRelationships(xmlData, relsFilename)
Definition XLChart.hpp:223
Class representing an Excel chartsheet.
Definition XLChartsheet.hpp:15
XLChartsheet()
Definition XLChartsheet.hpp:19
XLChartsheet(const XLChartsheet &other)=default
XLChartsheet & operator=(const XLChartsheet &other)=default
XLChartsheet & operator=(XLChartsheet &&other) noexcept=default
XLChartsheet(XLChartsheet &&other) noexcept=default
Definition XLColor.hpp:22
The XLDrawing class is the base class for worksheet drawings (images, charts, etc....
Definition XLDrawing.hpp:383
Definition XLRelationships.hpp:140
The XLSheetBase class is the base class for the XLWorksheet and XLChartsheet classes....
Definition XLSheetBase.hpp:54
The XLXmlData class encapsulates the properties and behaviour of the .xml files in an ....
Definition XLXmlData.hpp:29
Definition IZipArchive.hpp:18
XLChartType
Definition XLChart.hpp:14