|
OpenXLSX 1.9.1
|
The XLCustomProperties class represents custom user-defined properties (docProps/custom.xml). More...
#include <XLProperties.hpp>
Public Member Functions | |
| XLCustomProperties ()=default | |
| Default constructor. | |
| XLCustomProperties (XLXmlData *xmlData) | |
| Constructor for existing XML data. | |
| XLCustomProperties (const XLCustomProperties &other)=default | |
| Copy constructor. | |
| XLCustomProperties (XLCustomProperties &&other) noexcept=default | |
| Move constructor. | |
| ~XLCustomProperties () | |
| Destructor. | |
| XLCustomProperties & | operator= (const XLCustomProperties &other)=default |
| Copy assignment operator. | |
| XLCustomProperties & | operator= (XLCustomProperties &&other) noexcept=default |
| Move assignment operator. | |
| void | setProperty (std::string_view name, std::string_view value) |
| Set a string custom property (vt:lpwstr). | |
| void | setProperty (std::string_view name, const char *value) |
| Overload for string literals. | |
| void | setProperty (std::string_view name, int value) |
| Set an integer custom property (vt:i4). | |
| void | setProperty (std::string_view name, double value) |
| Set a double custom property (vt:r8). | |
| void | setProperty (std::string_view name, bool value) |
| Set a boolean custom property (vt:bool). | |
| void | setProperty (std::string_view name, const XLDateTime &value) |
| Set a date/time custom property (vt:filetime). | |
| std::string | property (std::string_view name) const |
| Get a custom property value as a string. | |
| void | deleteProperty (std::string_view name) |
| Delete a custom property. | |
Public Member Functions inherited from OpenXLSX::XLXmlFile | |
| XLXmlFile ()=default | |
| Default constructor. | |
| std::string | xmlData (XLXmlSavingDeclaration savingDeclaration=XLXmlSavingDeclaration{}) const |
| Method for getting the XML data represented by the object. | |
| XLXmlFile (XLXmlData *xmlData) | |
| Constructor. Creates an object based on the xmlData input. | |
| XLXmlFile (const XLXmlFile &other)=default | |
| Copy constructor. Default implementation used. | |
| XLXmlFile (XLXmlFile &&other) noexcept=default | |
| Move constructor. Default implementation used. | |
| ~XLXmlFile ()=default | |
| Destructor. Default implementation used. | |
| bool | valid () const |
| check whether class is linked to a valid XML file | |
| XLXmlFile & | operator= (const XLXmlFile &other)=default |
| The copy assignment operator. The default implementation has been used. | |
| XLXmlFile & | operator= (XLXmlFile &&other) noexcept=default |
| The move assignment operator. The default implementation has been used. | |
| XLDocument & | parentDoc () |
| This function provides access to the parent XLDocument object. | |
| const XLDocument & | parentDoc () const |
| This function provides access to the parent XLDocument object. | |
| XMLDocument & | xmlDocument () |
| This function provides access to the underlying XMLDocument object. | |
| const XMLDocument & | xmlDocument () const |
| This function provides access to the underlying XMLDocument object. | |
| std::string | getXmlPath () const |
| Retrieve the path of the XML data in the .xlsx zip archive via m_xmlData->getXmlPath. | |
Additional Inherited Members | |
Protected Member Functions inherited from OpenXLSX::XLXmlFile | |
| void | setXmlData (std::string_view xmlData) |
| Provide the XML data represented by the object. | |
| std::string | relationshipID () const |
| This function returns the relationship ID (the ID used in the XLRelationships objects) for the object. | |
Protected Attributes inherited from OpenXLSX::XLXmlFile | |
| XLXmlData * | m_xmlData {nullptr} |
The XLCustomProperties class represents custom user-defined properties (docProps/custom.xml).
|
default |
Default constructor.
|
explicit |
Constructor for existing XML data.
| xmlData | Pointer to the XML data. |
|
default |
Copy constructor.
|
defaultnoexcept |
Move constructor.
|
default |
Destructor.
| void XLCustomProperties::deleteProperty | ( | std::string_view | name | ) |
Delete a custom property.
| name | The property name. |
|
default |
Copy assignment operator.
|
defaultnoexcept |
Move assignment operator.
| std::string XLCustomProperties::property | ( | std::string_view | name | ) | const |
Get a custom property value as a string.
| name | The property name. |
| void XLCustomProperties::setProperty | ( | std::string_view | name, |
| bool | value | ||
| ) |
Set a boolean custom property (vt:bool).
| name | The property name. |
| value | The value. |
| void XLCustomProperties::setProperty | ( | std::string_view | name, |
| const char * | value | ||
| ) |
Overload for string literals.
| name | The property name. |
| value | The literal value. |
| void XLCustomProperties::setProperty | ( | std::string_view | name, |
| const XLDateTime & | value | ||
| ) |
Set a date/time custom property (vt:filetime).
| name | The property name. |
| value | The XLDateTime value. |
| void XLCustomProperties::setProperty | ( | std::string_view | name, |
| double | value | ||
| ) |
Set a double custom property (vt:r8).
| name | The property name. |
| value | The value. |
| void XLCustomProperties::setProperty | ( | std::string_view | name, |
| int | value | ||
| ) |
Set an integer custom property (vt:i4).
| name | The property name. |
| value | The value. |
| void XLCustomProperties::setProperty | ( | std::string_view | name, |
| std::string_view | value | ||
| ) |
Set a string custom property (vt:lpwstr).
| name | The property name. |
| value | The value. |