|
OpenXLSX 1.12.1
Modern C++ Excel Library (Fork of OpenXLSX by Kenneth Troldal Balslev)
|
The XLVmlDrawing class is the base class for worksheet comments. More...
#include <XLDrawing.hpp>
Public Member Functions | |
| XLVmlDrawing () | |
| Constructor. | |
| XLVmlDrawing (gsl::not_null< XLXmlData * > xmlData) | |
| The constructor. | |
| XLVmlDrawing (const XLVmlDrawing &other)=default | |
| The copy constructor. | |
| XLVmlDrawing (XLVmlDrawing &&other) noexcept=default | |
| ~XLVmlDrawing ()=default | |
| The destructor. | |
| XLVmlDrawing & | operator= (const XLVmlDrawing &)=default |
| Assignment operator. | |
| XLVmlDrawing & | operator= (XLVmlDrawing &&other) noexcept=default |
| XMLNode | shapeNode (std::string_view cellRef) const |
| Get the shape XML node that is associated with the cell indicated by cellRef. | |
| uint32_t | shapeCount () const |
| XLShape | shape (uint32_t index) const |
| bool | deleteShape (uint32_t index) |
| bool | deleteShape (std::string_view cellRef) |
| XLShape | createShape (const XLShape &shapeTemplate=XLShape()) |
| void | print (std::basic_ostream< char > &ostr) const |
| Print the XML contents of this XLVmlDrawing instance using the underlying XMLNode print function. | |
| 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. | |
| XLPackageServices & | package () |
| Narrow package-services port (archive, managed XML parts, relationships, content types). | |
| const XLPackageServices & | package () const |
| XLPackagePartFactory & | partFactory () |
| Narrow package-part factory port (chart / drawing / image / slicer / sheet accessories). | |
| const XLPackagePartFactory & | partFactory () const |
| const XLSharedStringTable & | sharedStringTable () const |
| Read-only shared string table (SST) port. | |
| const XLSharedStrings & | sharedStrings () const |
| Full workbook SST (including getOrCreate / append). | |
| 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. | |
| const XLXmlData * | xmlDataPart () const noexcept |
| Access the underlying XLXmlData pointer. | |
| XLXmlData * | xmlDataPart () noexcept |
Friends | |
| class | XLWorksheet |
| class | XLComments |
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 XLVmlDrawing class is the base class for worksheet comments.
|
inline |
Constructor.
|
explicit |
The constructor.
| xmlData | the source XML of the comments file |
|
default |
The copy constructor.
| other | The object to be copied. |
|
defaultnoexcept |
|
default |
The destructor.
| bool XLVmlDrawing::deleteShape | ( | std::string_view | cellRef | ) |
| bool XLVmlDrawing::deleteShape | ( | uint32_t | index | ) |
|
default |
Assignment operator.
|
defaultnoexcept |
| void XLVmlDrawing::print | ( | std::basic_ostream< char > & | ostr | ) | const |
Print the XML contents of this XLVmlDrawing instance using the underlying XMLNode print function.
| XLShape XLVmlDrawing::shape | ( | uint32_t | index | ) | const |
| uint32_t XLVmlDrawing::shapeCount | ( | ) | const |
| XMLNode XLVmlDrawing::shapeNode | ( | std::string_view | cellRef | ) | const |
|
friend |
|
friend |