OpenXLSX 1.12.1
Modern C++ Excel Library (Fork of OpenXLSX by Kenneth Troldal Balslev)
Loading...
Searching...
No Matches
OpenXLSX::XLPackagePartFactory Class Referenceabstract

Abstract factory for worksheet-facing package parts. More...

#include <XLPackagePartFactory.hpp>

Inheritance diagram for OpenXLSX::XLPackagePartFactory:
OpenXLSX::XLDocument

Public Member Functions

virtual ~XLPackagePartFactory ()=default
virtual bool hasSheetRelationships (uint16_t sheetXmlNo, bool isChartsheet=false) const =0
virtual bool hasSheetVmlDrawing (uint16_t sheetXmlNo) const =0
virtual bool hasSheetComments (uint16_t sheetXmlNo) const =0
virtual bool hasSheetThreadedComments (uint16_t sheetXmlNo) const =0
virtual bool hasSheetDrawing (uint16_t sheetXmlNo) const =0
virtual bool hasSheetTables (uint16_t sheetXmlNo) const =0
virtual XLRelationships sheetRelationships (uint16_t sheetXmlNo, bool isChartsheet=false)=0
virtual XLDrawing sheetDrawing (uint16_t sheetXmlNo)=0
virtual XLDrawing createDrawing ()=0
virtual XLDrawing drawing (std::string_view path)=0
virtual XLVmlDrawing sheetVmlDrawing (uint16_t sheetXmlNo)=0
virtual XLComments sheetComments (uint16_t sheetXmlNo)=0
virtual XLThreadedComments sheetThreadedComments (uint16_t sheetXmlNo)=0
virtual XLTables sheetTables (uint16_t sheetXmlNo)=0
virtual XLChart createChart (XLChartType type=XLChartType::Bar)=0
virtual std::string addImage (std::string_view name, std::string_view data)=0
virtual std::string addImage (std::string_view name, gsl::span< const uint8_t > data)=0
virtual std::string getImage (std::string_view path) const =0
virtual uint32_t nextTableId () const =0
virtual std::string createTableSlicerCache (uint32_t tableId, uint32_t tableColumnId, std::string_view name, std::string_view sourceName)=0
virtual std::string findOrCreateTableSlicerCache (uint32_t tableId, uint32_t tableColumnId, std::string_view name, std::string_view sourceName)=0
virtual std::string createPivotSlicerCache (uint32_t pivotCacheId, uint32_t sheetId, std::string_view pivotTableName, std::string_view name, std::string_view sourceName)=0
virtual std::string findOrCreatePivotSlicerCache (uint32_t pivotCacheId, uint32_t sheetId, std::string_view pivotTableName, std::string_view name, std::string_view sourceName)=0
virtual std::string createSlicer (std::string_view name, std::string_view cacheName, std::string_view caption, std::string_view existingSlicerFile={})=0
virtual void deleteSlicerFileAndOrphanCache (const std::string &name)=0

Detailed Description

Abstract factory for worksheet-facing package parts.

Note
Implemented by XLDocument. Lifetime must outlive consumers.
XLVmlDrawing is defined in XLDrawing.hpp (included above).

Constructor & Destructor Documentation

◆ ~XLPackagePartFactory()

virtual OpenXLSX::XLPackagePartFactory::~XLPackagePartFactory ( )
virtualdefault

Member Function Documentation

◆ addImage() [1/2]

virtual std::string OpenXLSX::XLPackagePartFactory::addImage ( std::string_view name,
gsl::span< const uint8_t > data )
nodiscardpure virtual

Implemented in OpenXLSX::XLDocument.

◆ addImage() [2/2]

virtual std::string OpenXLSX::XLPackagePartFactory::addImage ( std::string_view name,
std::string_view data )
nodiscardpure virtual

Implemented in OpenXLSX::XLDocument.

◆ createChart()

virtual XLChart OpenXLSX::XLPackagePartFactory::createChart ( XLChartType type = XLChartType::Bar)
nodiscardpure virtual

Implemented in OpenXLSX::XLDocument.

◆ createDrawing()

virtual XLDrawing OpenXLSX::XLPackagePartFactory::createDrawing ( )
nodiscardpure virtual

Implemented in OpenXLSX::XLDocument.

◆ createPivotSlicerCache()

virtual std::string OpenXLSX::XLPackagePartFactory::createPivotSlicerCache ( uint32_t pivotCacheId,
uint32_t sheetId,
std::string_view pivotTableName,
std::string_view name,
std::string_view sourceName )
nodiscardpure virtual

Implemented in OpenXLSX::XLDocument.

◆ createSlicer()

virtual std::string OpenXLSX::XLPackagePartFactory::createSlicer ( std::string_view name,
std::string_view cacheName,
std::string_view caption,
std::string_view existingSlicerFile = {} )
nodiscardpure virtual

Implemented in OpenXLSX::XLDocument.

◆ createTableSlicerCache()

virtual std::string OpenXLSX::XLPackagePartFactory::createTableSlicerCache ( uint32_t tableId,
uint32_t tableColumnId,
std::string_view name,
std::string_view sourceName )
nodiscardpure virtual

Implemented in OpenXLSX::XLDocument.

◆ deleteSlicerFileAndOrphanCache()

virtual void OpenXLSX::XLPackagePartFactory::deleteSlicerFileAndOrphanCache ( const std::string & name)
pure virtual

Implemented in OpenXLSX::XLDocument.

◆ drawing()

virtual XLDrawing OpenXLSX::XLPackagePartFactory::drawing ( std::string_view path)
nodiscardpure virtual

Implemented in OpenXLSX::XLDocument.

◆ findOrCreatePivotSlicerCache()

virtual std::string OpenXLSX::XLPackagePartFactory::findOrCreatePivotSlicerCache ( uint32_t pivotCacheId,
uint32_t sheetId,
std::string_view pivotTableName,
std::string_view name,
std::string_view sourceName )
nodiscardpure virtual

Implemented in OpenXLSX::XLDocument.

◆ findOrCreateTableSlicerCache()

virtual std::string OpenXLSX::XLPackagePartFactory::findOrCreateTableSlicerCache ( uint32_t tableId,
uint32_t tableColumnId,
std::string_view name,
std::string_view sourceName )
nodiscardpure virtual

Implemented in OpenXLSX::XLDocument.

◆ getImage()

virtual std::string OpenXLSX::XLPackagePartFactory::getImage ( std::string_view path) const
nodiscardpure virtual

Implemented in OpenXLSX::XLDocument.

◆ hasSheetComments()

virtual bool OpenXLSX::XLPackagePartFactory::hasSheetComments ( uint16_t sheetXmlNo) const
nodiscardpure virtual

Implemented in OpenXLSX::XLDocument.

◆ hasSheetDrawing()

virtual bool OpenXLSX::XLPackagePartFactory::hasSheetDrawing ( uint16_t sheetXmlNo) const
nodiscardpure virtual

Implemented in OpenXLSX::XLDocument.

◆ hasSheetRelationships()

virtual bool OpenXLSX::XLPackagePartFactory::hasSheetRelationships ( uint16_t sheetXmlNo,
bool isChartsheet = false ) const
nodiscardpure virtual

Implemented in OpenXLSX::XLDocument.

◆ hasSheetTables()

virtual bool OpenXLSX::XLPackagePartFactory::hasSheetTables ( uint16_t sheetXmlNo) const
nodiscardpure virtual

Implemented in OpenXLSX::XLDocument.

◆ hasSheetThreadedComments()

virtual bool OpenXLSX::XLPackagePartFactory::hasSheetThreadedComments ( uint16_t sheetXmlNo) const
nodiscardpure virtual

Implemented in OpenXLSX::XLDocument.

◆ hasSheetVmlDrawing()

virtual bool OpenXLSX::XLPackagePartFactory::hasSheetVmlDrawing ( uint16_t sheetXmlNo) const
nodiscardpure virtual

Implemented in OpenXLSX::XLDocument.

◆ nextTableId()

virtual uint32_t OpenXLSX::XLPackagePartFactory::nextTableId ( ) const
nodiscardpure virtual

Implemented in OpenXLSX::XLDocument.

◆ sheetComments()

virtual XLComments OpenXLSX::XLPackagePartFactory::sheetComments ( uint16_t sheetXmlNo)
nodiscardpure virtual

Implemented in OpenXLSX::XLDocument.

◆ sheetDrawing()

virtual XLDrawing OpenXLSX::XLPackagePartFactory::sheetDrawing ( uint16_t sheetXmlNo)
nodiscardpure virtual

Implemented in OpenXLSX::XLDocument.

◆ sheetRelationships()

virtual XLRelationships OpenXLSX::XLPackagePartFactory::sheetRelationships ( uint16_t sheetXmlNo,
bool isChartsheet = false )
nodiscardpure virtual

Implemented in OpenXLSX::XLDocument.

◆ sheetTables()

virtual XLTables OpenXLSX::XLPackagePartFactory::sheetTables ( uint16_t sheetXmlNo)
nodiscardpure virtual

Implemented in OpenXLSX::XLDocument.

◆ sheetThreadedComments()

virtual XLThreadedComments OpenXLSX::XLPackagePartFactory::sheetThreadedComments ( uint16_t sheetXmlNo)
nodiscardpure virtual

Implemented in OpenXLSX::XLDocument.

◆ sheetVmlDrawing()

virtual XLVmlDrawing OpenXLSX::XLPackagePartFactory::sheetVmlDrawing ( uint16_t sheetXmlNo)
nodiscardpure virtual

Implemented in OpenXLSX::XLDocument.


The documentation for this class was generated from the following file: