11#ifndef OPENXLSX_XLXMLFILE_HPP
12#define OPENXLSX_XLXMLFILE_HPP
16# pragma warning(disable : 4251)
17# pragma warning(disable : 4275)
24#include "OpenXLSX-Exports.hpp"
45 bool empty()
const {
return true; }
46 std::string
summary()
const {
return "XLUnsupportedElement"; }
191 void setXmlData(std::string_view xmlData);
198 std::string relationshipID()
const;
This class encapsulates the concept of an excel file. It is different from the XLWorkbook,...
Definition XLDocument.hpp:97
Abstract factory for worksheet-facing package parts.
Definition XLPackagePartFactory.hpp:53
Abstract package services port (archive + XML parts + relationships + content types).
Definition XLPackageServices.hpp:56
Abstract read-only view of the workbook shared string table.
Definition XLSharedStringTable.hpp:51
This class encapsulate the Excel concept of Shared Strings. In Excel, instead of havig individual str...
Definition XLSharedStrings.hpp:78
XLUnsupportedElement()
Definition XLXmlFile.hpp:44
std::string summary() const
Definition XLXmlFile.hpp:46
bool empty() const
Definition XLXmlFile.hpp:45
The XLXmlData class encapsulates the properties and behaviour of the .xml files in an ....
Definition XLXmlData.hpp:79
The XLXmlFile class provides an interface for derived classes to use. It functions as an ancestor to ...
Definition XLXmlFile.hpp:56
std::string getXmlPath() const
Retrieve the path of the XML data in the .xlsx zip archive via m_xmlData->getXmlPath.
Definition XLXmlFile.cpp:129
XLPackagePartFactory & partFactory()
Narrow package-part factory port (chart / drawing / image / slicer / sheet accessories).
Definition XLXmlFile.cpp:78
XLXmlData * xmlDataPart() noexcept
Definition XLXmlFile.hpp:184
~XLXmlFile()=default
Destructor. Default implementation used.
bool valid() const
check whether class is linked to a valid XML file
Definition XLXmlFile.hpp:100
XLXmlData * m_xmlData
Definition XLXmlFile.hpp:201
const XLSharedStringTable & sharedStringTable() const
Read-only shared string table (SST) port.
Definition XLXmlFile.cpp:89
XMLDocument & xmlDocument()
This function provides access to the underlying XMLDocument object.
Definition XLXmlFile.cpp:110
XLXmlFile & operator=(const XLXmlFile &other)=default
The copy assignment operator. The default implementation has been used.
XLXmlFile(XLXmlFile &&other) noexcept=default
Move constructor. Default implementation used.
const XLSharedStrings & sharedStrings() const
Full workbook SST (including getOrCreate / append).
Definition XLXmlFile.cpp:95
XLDocument & parentDoc()
This function provides access to the parent XLDocument object.
Definition XLXmlFile.cpp:61
XLXmlFile(const XLXmlFile &other)=default
Copy constructor. Default implementation used.
std::string xmlData(XLXmlSavingDeclaration savingDeclaration=XLXmlSavingDeclaration{}) const
Method for getting the XML data represented by the object.
Definition XLXmlFile.cpp:49
XLPackageServices & package()
Narrow package-services port (archive, managed XML parts, relationships, content types).
Definition XLXmlFile.cpp:67
const XLXmlData * xmlDataPart() const noexcept
Access the underlying XLXmlData pointer.
Definition XLXmlFile.hpp:183
XLXmlFile & operator=(XLXmlFile &&other) noexcept=default
The move assignment operator. The default implementation has been used.
XLXmlFile()=default
Default constructor.
The XLXmlSavingDeclaration class encapsulates the properties of an XML saving declaration,...
Definition XLXmlSavingDeclaration.hpp:29
Definition IXLCellProvider.hpp:24
OpenXLSX_xml_document XMLDocument
Definition XLXmlParser.hpp:65