OpenXLSX 1.12.1
Modern C++ Excel Library (Fork of OpenXLSX by Kenneth Troldal Balslev)
Loading...
Searching...
No Matches
XLChart_Internal.hpp
Go to the documentation of this file.
1/*
2 * OpenXLSX-NX - Modern High-Performance C++ Excel Library
3 *
4 * Original work Copyright (c) 2018-2025, Kenneth Troldal Balslev and OpenXLSX contributors
5 * Modified work Copyright (c) 2026, Curry Tang and OpenXLSX-NX contributors
6 *
7 * Distributed under the BSD 3-Clause License.
8 * See LICENSE.md in the project root or https://opensource.org/licenses/BSD-3-Clause
9 */
10
11#ifndef OPENXLSX_XLCHART_INTERNAL_HPP
12#define OPENXLSX_XLCHART_INTERNAL_HPP
13
19
20#include "XLChart.hpp"
21#include "XLXmlParser.hpp"
22
23#include <cstdint>
24#include <optional>
25#include <string_view>
26
27namespace OpenXLSX
28{
30 [[nodiscard]] std::string_view chartTypeToNodeName(XLChartType type);
31
36 [[nodiscard]] XMLNode getOrCreateChartNode(XMLDocument& doc,
37 std::optional<XLChartType> targetChartType,
38 bool useSecondaryAxis);
39
41 [[nodiscard]] XMLNode getChartNode(const XMLDocument& doc);
42
44 [[nodiscard]] XMLNode getSeriesNode(const XMLDocument& doc, uint32_t seriesIndex);
45
46} // namespace OpenXLSX
47
48#endif // OPENXLSX_XLCHART_INTERNAL_HPP
Definition IXLCellProvider.hpp:24
std::string_view chartTypeToNodeName(XLChartType type)
Definition XLChart_Init.cpp:261
XMLNode getSeriesNode(const XMLDocument &doc, uint32_t seriesIndex)
Definition XLChart_Init.cpp:488
XMLNode getChartNode(const XMLDocument &doc)
Definition XLChart_Init.cpp:476
XLChartType
Definition XLChart.hpp:24
OpenXLSX_xml_node XMLNode
Definition XLXmlParser.hpp:64
OpenXLSX_xml_document XMLDocument
Definition XLXmlParser.hpp:65
XMLNode getOrCreateChartNode(XMLDocument &doc, std::optional< XLChartType > targetChartType, bool useSecondaryAxis)
Definition XLChart_Init.cpp:331