11#ifndef OPENXLSX_XLPACKAGEPARTFACTORY_HPP
12#define OPENXLSX_XLPACKAGEPARTFACTORY_HPP
16# pragma warning(disable : 4251)
17# pragma warning(disable : 4275)
32#include "OpenXLSX-Exports.hpp"
80 [[nodiscard]]
virtual std::string
addImage(std::string_view name, std::string_view data) = 0;
81 [[nodiscard]]
virtual std::string
addImage(std::string_view name, gsl::span<const uint8_t> data) = 0;
82 [[nodiscard]]
virtual std::string
getImage(std::string_view path)
const = 0;
89 uint32_t tableColumnId,
90 std::string_view name,
91 std::string_view sourceName) = 0;
93 uint32_t tableColumnId,
94 std::string_view name,
95 std::string_view sourceName) = 0;
99 std::string_view pivotTableName,
100 std::string_view name,
101 std::string_view sourceName) = 0;
104 std::string_view pivotTableName,
105 std::string_view name,
106 std::string_view sourceName) = 0;
109 std::string_view cacheName,
110 std::string_view caption,
111 std::string_view existingSlicerFile = {}) = 0;
Definition XLChart.hpp:261
The XLDrawing class is the base class for worksheet drawings (images, charts, etc....
Definition XLDrawing.hpp:398
Abstract factory for worksheet-facing package parts.
Definition XLPackagePartFactory.hpp:53
virtual std::string getImage(std::string_view path) const =0
virtual XLChart createChart(XLChartType type=XLChartType::Bar)=0
virtual bool hasSheetRelationships(uint16_t sheetXmlNo, bool isChartsheet=false) const =0
virtual XLDrawing createDrawing()=0
virtual std::string addImage(std::string_view name, std::string_view data)=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 uint32_t nextTableId() const =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 bool hasSheetDrawing(uint16_t sheetXmlNo) const =0
virtual std::string createTableSlicerCache(uint32_t tableId, uint32_t tableColumnId, std::string_view name, std::string_view sourceName)=0
virtual bool hasSheetVmlDrawing(uint16_t sheetXmlNo) const =0
virtual ~XLPackagePartFactory()=default
virtual XLVmlDrawing sheetVmlDrawing(uint16_t sheetXmlNo)=0
virtual XLDrawing drawing(std::string_view path)=0
virtual bool hasSheetComments(uint16_t sheetXmlNo) const =0
virtual XLRelationships sheetRelationships(uint16_t sheetXmlNo, bool isChartsheet=false)=0
virtual XLTables sheetTables(uint16_t sheetXmlNo)=0
virtual bool hasSheetTables(uint16_t sheetXmlNo) const =0
virtual std::string addImage(std::string_view name, gsl::span< const uint8_t > data)=0
virtual XLDrawing sheetDrawing(uint16_t sheetXmlNo)=0
virtual XLComments sheetComments(uint16_t sheetXmlNo)=0
virtual bool hasSheetThreadedComments(uint16_t sheetXmlNo) const =0
virtual std::string findOrCreateTableSlicerCache(uint32_t tableId, uint32_t tableColumnId, 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 XLThreadedComments sheetThreadedComments(uint16_t sheetXmlNo)=0
virtual void deleteSlicerFileAndOrphanCache(const std::string &name)=0
Definition XLRelationships.hpp:150
The XLVmlDrawing class is the base class for worksheet comments.
Definition XLDrawing.hpp:523
Definition IXLCellProvider.hpp:24
XLChartType
Definition XLChart.hpp:24
@ Bar
Definition XLChart.hpp:25
XLTableCollection XLTables
Definition XLTables.hpp:379