Abstract package services port (archive + XML parts + relationships + content types).
More...
#include <XLPackageServices.hpp>
Abstract package services port (archive + XML parts + relationships + content types).
- Note
- Implementations must outlive any object that stores a pointer/reference to them. XLDocument is the primary implementation.
◆ ~XLPackageServices()
| virtual OpenXLSX::XLPackageServices::~XLPackageServices |
( |
| ) |
|
|
virtualdefault |
◆ archive() [1/2]
| virtual const IZipArchive & OpenXLSX::XLPackageServices::archive |
( |
| ) |
const |
|
nodiscardpure virtual |
◆ archive() [2/2]
| virtual IZipArchive & OpenXLSX::XLPackageServices::archive |
( |
| ) |
|
|
nodiscardpure virtual |
◆ contentTypes() [1/2]
| virtual const XLContentTypes & OpenXLSX::XLPackageServices::contentTypes |
( |
| ) |
const |
|
nodiscardpure virtual |
◆ contentTypes() [2/2]
| virtual XLContentTypes & OpenXLSX::XLPackageServices::contentTypes |
( |
| ) |
|
|
nodiscardpure virtual |
◆ drawingRelationships()
| virtual XLRelationships OpenXLSX::XLPackageServices::drawingRelationships |
( |
std::string_view | drawingPath | ) |
|
|
nodiscardpure virtual |
◆ emplaceXmlPart()
| virtual XLXmlData * OpenXLSX::XLPackageServices::emplaceXmlPart |
( |
const std::string & | path, |
|
|
const std::string & | id, |
|
|
XLContentType | type ) |
|
pure virtual |
Create and register a new managed XML part in the document's part list.
Implemented in OpenXLSX::XLDocument.
◆ findXmlPart() [1/2]
| virtual const XLXmlData * OpenXLSX::XLPackageServices::findXmlPart |
( |
std::string_view | path, |
|
|
bool | doNotThrow = false ) const |
|
nodiscardpure virtual |
◆ findXmlPart() [2/2]
| virtual XLXmlData * OpenXLSX::XLPackageServices::findXmlPart |
( |
std::string_view | path, |
|
|
bool | doNotThrow = false ) |
|
nodiscardpure virtual |
Locate a managed XML part by package path (e.g. "xl/pivotCache/pivotCacheDefinition1.xml").
- Parameters
-
| doNotThrow | When true, return nullptr if missing instead of throwing. |
Implemented in OpenXLSX::XLDocument.
◆ workbookRelationships()
| virtual XLRelationships & OpenXLSX::XLPackageServices::workbookRelationships |
( |
| ) |
|
|
nodiscardpure virtual |
◆ xmlRelationships()
| virtual XLRelationships OpenXLSX::XLPackageServices::xmlRelationships |
( |
std::string_view | xmlPath | ) |
|
|
nodiscardpure virtual |
Relationships for an arbitrary package XML part (…/_rels/name.xml.rels).
Implemented in OpenXLSX::XLDocument.
The documentation for this class was generated from the following file: