|
OpenXLSX 1.9.1
|
The XLProperties class represents the core properties of the document (docProps/core.xml). More...
#include <XLProperties.hpp>
Public Member Functions | |
| XLProperties ()=default | |
| Default constructor. | |
| XLProperties (XLXmlData *xmlData) | |
| Constructor that binds to existing XML data. | |
| XLProperties (const XLProperties &other)=default | |
| Copy constructor. | |
| XLProperties (XLProperties &&other) noexcept=default | |
| Move constructor. | |
| ~XLProperties () | |
| Destructor. | |
| XLProperties & | operator= (const XLProperties &other)=default |
| Copy assignment operator. | |
| XLProperties & | operator= (XLProperties &&other) noexcept=default |
| Move assignment operator. | |
| void | setProperty (std::string_view name, std::string_view value) |
| Set a property by name. | |
| void | setProperty (std::string_view name, int value) |
| Set a numeric property. | |
| void | setProperty (std::string_view name, double value) |
| Set a numeric property. | |
| std::string | property (std::string_view name) const |
| Get a property value as a string. | |
| void | deleteProperty (std::string_view name) |
| Delete a property. | |
| std::string | title () const |
| void | setTitle (std::string_view title) |
| std::string | subject () const |
| void | setSubject (std::string_view subject) |
| std::string | creator () const |
| void | setCreator (std::string_view creator) |
| std::string | keywords () const |
| void | setKeywords (std::string_view keywords) |
| std::string | description () const |
| void | setDescription (std::string_view description) |
| std::string | lastModifiedBy () const |
| void | setLastModifiedBy (std::string_view author) |
| std::string | revision () const |
| void | setRevision (std::string_view revision) |
| std::string | lastPrinted () const |
| void | setLastPrinted (std::string_view date) |
| XLDateTime | created () const |
| void | setCreated (const XLDateTime &date) |
| XLDateTime | modified () const |
| void | setModified (const XLDateTime &date) |
| std::string | category () const |
| void | setCategory (std::string_view category) |
| std::string | contentStatus () const |
| void | setContentStatus (std::string_view status) |
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 XLProperties class represents the core properties of the document (docProps/core.xml).
|
default |
Default constructor.
|
explicit |
Constructor that binds to existing XML data.
| xmlData | Pointer to the XML data. |
|
default |
Copy constructor.
|
defaultnoexcept |
Move constructor.
|
default |
Destructor.
| std::string XLProperties::category | ( | ) | const |
| std::string XLProperties::contentStatus | ( | ) | const |
| XLDateTime XLProperties::created | ( | ) | const |
| std::string XLProperties::creator | ( | ) | const |
| void XLProperties::deleteProperty | ( | std::string_view | name | ) |
Delete a property.
| name | The name of the property. |
| std::string XLProperties::description | ( | ) | const |
| std::string XLProperties::keywords | ( | ) | const |
| std::string XLProperties::lastModifiedBy | ( | ) | const |
| std::string XLProperties::lastPrinted | ( | ) | const |
| XLDateTime XLProperties::modified | ( | ) | const |
|
default |
Copy assignment operator.
|
defaultnoexcept |
Move assignment operator.
| std::string XLProperties::property | ( | std::string_view | name | ) | const |
Get a property value as a string.
| name | The name of the property. |
| std::string XLProperties::revision | ( | ) | const |
| void XLProperties::setCategory | ( | std::string_view | category | ) |
| void XLProperties::setContentStatus | ( | std::string_view | status | ) |
| void XLProperties::setCreated | ( | const XLDateTime & | date | ) |
| void XLProperties::setCreator | ( | std::string_view | creator | ) |
| void XLProperties::setDescription | ( | std::string_view | description | ) |
| void XLProperties::setKeywords | ( | std::string_view | keywords | ) |
| void XLProperties::setLastModifiedBy | ( | std::string_view | author | ) |
| void XLProperties::setLastPrinted | ( | std::string_view | date | ) |
| void XLProperties::setModified | ( | const XLDateTime & | date | ) |
| void XLProperties::setProperty | ( | std::string_view | name, |
| double | value | ||
| ) |
Set a numeric property.
| name | The name of the property. |
| value | The double value. |
| void XLProperties::setProperty | ( | std::string_view | name, |
| int | value | ||
| ) |
Set a numeric property.
| name | The name of the property. |
| value | The integer value. |
| void XLProperties::setProperty | ( | std::string_view | name, |
| std::string_view | value | ||
| ) |
Set a property by name.
| name | The name of the property (including namespace prefix, e.g., "dc:title"). |
| value | The value to set. |
| void XLProperties::setRevision | ( | std::string_view | revision | ) |
| void XLProperties::setSubject | ( | std::string_view | subject | ) |
| void XLProperties::setTitle | ( | std::string_view | title | ) |
| std::string XLProperties::subject | ( | ) | const |
| std::string XLProperties::title | ( | ) | const |