1#ifndef OPENXLSX_XLPROPERTIES_HPP
2#define OPENXLSX_XLPROPERTIES_HPP
6# pragma warning(disable : 4251)
7# pragma warning(disable : 4275)
16#include "OpenXLSX-Exports.hpp"
31 void createFromTemplate();
75 void setProperty(std::string_view name, std::string_view value);
82 void setProperty(std::string_view name,
int value);
89 void setProperty(std::string_view name,
double value);
96 std::string property(std::string_view name)
const;
102 void deleteProperty(std::string_view name);
105 std::string title()
const;
106 void setTitle(std::string_view title);
108 std::string subject()
const;
109 void setSubject(std::string_view subject);
111 std::string creator()
const;
112 void setCreator(std::string_view creator);
114 std::string keywords()
const;
115 void setKeywords(std::string_view keywords);
117 std::string description()
const;
118 void setDescription(std::string_view description);
120 std::string lastModifiedBy()
const;
121 void setLastModifiedBy(std::string_view author);
123 std::string revision()
const;
124 void setRevision(std::string_view revision);
126 std::string lastPrinted()
const;
127 void setLastPrinted(std::string_view date);
135 std::string category()
const;
136 void setCategory(std::string_view category);
138 std::string contentStatus()
const;
139 void setContentStatus(std::string_view status);
152 void createFromTemplate(
XMLDocument const& workbookXml);
202 void incrementSheetCount(int16_t increment);
208 void alignWorksheets(
const std::vector<std::string>& workbookSheetNames);
214 void addSheetName(std::string_view title);
220 void deleteSheetName(std::string_view title);
227 void setSheetName(std::string_view oldTitle, std::string_view newTitle);
234 void addHeadingPair(std::string_view name,
int value);
240 void deleteHeadingPair(std::string_view name);
247 void setHeadingPair(std::string_view name,
int newValue);
254 void setProperty(std::string_view name, std::string_view value);
261 std::string property(std::string_view name)
const;
267 void deleteProperty(std::string_view name);
273 void appendSheetName(std::string_view sheetName);
279 void prependSheetName(std::string_view sheetName);
286 void insertSheetName(std::string_view sheetName,
unsigned int index);
298 void createFromTemplate();
342 void setProperty(std::string_view name, std::string_view value);
349 void setProperty(std::string_view name,
const char* value);
356 void setProperty(std::string_view name,
int value);
363 void setProperty(std::string_view name,
double value);
370 void setProperty(std::string_view name,
bool value);
377 void setProperty(std::string_view name,
const XLDateTime& value);
384 std::string property(std::string_view name)
const;
390 void deleteProperty(std::string_view name);
XLXmlData * xmlData
Definition XLDocument.cpp:1422
Definition XLXmlParser.hpp:241
The XLAppProperties class represents the extended/application properties (docProps/app....
Definition XLProperties.hpp:146
XLAppProperties & operator=(XLAppProperties &&other) noexcept=default
Move assignment operator.
~XLAppProperties()
Destructor.
XLAppProperties(const XLAppProperties &other)=default
Copy constructor.
XLAppProperties & operator=(const XLAppProperties &other)=default
Copy assignment operator.
XLAppProperties()=default
Default constructor.
XLAppProperties(XLAppProperties &&other) noexcept=default
Move constructor.
The XLCustomProperties class represents custom user-defined properties (docProps/custom....
Definition XLProperties.hpp:293
XLCustomProperties(XLCustomProperties &&other) noexcept=default
Move constructor.
XLCustomProperties & operator=(const XLCustomProperties &other)=default
Copy assignment operator.
XLCustomProperties()=default
Default constructor.
XLCustomProperties & operator=(XLCustomProperties &&other) noexcept=default
Move assignment operator.
~XLCustomProperties()
Destructor.
XLCustomProperties(const XLCustomProperties &other)=default
Copy constructor.
Manages date and time values according to the Excel 1900 date system.
Definition XLDateTime.hpp:30
The XLProperties class represents the core properties of the document (docProps/core....
Definition XLProperties.hpp:26
XLProperties(XLProperties &&other) noexcept=default
Move constructor.
XLProperties & operator=(const XLProperties &other)=default
Copy assignment operator.
XLProperties & operator=(XLProperties &&other) noexcept=default
Move assignment operator.
XLProperties(const XLProperties &other)=default
Copy constructor.
XLProperties()=default
Default constructor.
~XLProperties()
Destructor.
The XLXmlData class encapsulates the properties and behaviour of the .xml files in an ....
Definition XLXmlData.hpp:29
The XLXmlFile class provides an interface for derived classes to use. It functions as an ancestor to ...
Definition XLXmlFile.hpp:42
Definition IZipArchive.hpp:18