|
OpenXLSX 1.12.1
Modern C++ Excel Library (Fork of OpenXLSX by Kenneth Troldal Balslev)
|
The XLSheetBase class is the base class for the XLWorksheet and XLChartsheet classes. However, it is not a base class in the traditional sense. Rather, it provides common functionality that is inherited via the CRTP (Curiously Recurring Template Pattern) pattern. More...
#include <XLSheetBase.hpp>
Public Member Functions | |
| XLSheetBase () | |
| Constructor. | |
| XLSheetBase (XLXmlData *xmlData) | |
| The constructor. There are no default constructor, so all parameters must be provided for constructing an XLAbstractSheet object. Since this is a pure abstract class, instantiation is only possible via one of the derived classes. | |
| XLSheetBase (const XLSheetBase &other)=default | |
| The copy constructor. | |
| XLSheetBase (XLSheetBase &&other) noexcept=default | |
| ~XLSheetBase ()=default | |
| The destructor. | |
| XLSheetBase & | operator= (const XLSheetBase &)=default |
| Assignment operator. | |
| XLSheetBase & | operator= (XLSheetBase &&other) noexcept=default |
| XLSheetState | visibility () const |
| void | setVisibility (XLSheetState state) |
| XLColor | color () const |
| void | setColor (const XLColor &color) |
| uint16_t | index () const |
| look up sheet name via relationshipID, then attempt to match that to a sheet in XLWorkbook::sheet(uint16_t index), looping over index | |
| void | setIndex (uint16_t index) |
| std::string | name () const |
| Method to retrieve the name of the sheet. | |
| void | setName (const std::string &sheetName) |
| Method for renaming the sheet. | |
| bool | isSelected () const |
| void | setSelected (bool selected) |
| bool | isActive () const |
| bool | setActive () |
| void | clone (const std::string &newName) |
| Method for cloning the sheet. | |
| 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 |
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 XLSheetBase class is the base class for the XLWorksheet and XLChartsheet classes. However, it is not a base class in the traditional sense. Rather, it provides common functionality that is inherited via the CRTP (Curiously Recurring Template Pattern) pattern.
| T | Type that will inherit functionality. Restricted to types XLWorksheet and XLChartsheet. |
|
inline |
Constructor.
|
inlineexplicit |
The constructor. There are no default constructor, so all parameters must be provided for constructing an XLAbstractSheet object. Since this is a pure abstract class, instantiation is only possible via one of the derived classes.
| xmlData |
|
default |
The copy constructor.
| other | The object to be copied. |
|
defaultnoexcept |
| other |
|
default |
The destructor.
|
inline |
Method for cloning the sheet.
| newName | A std::string with the name of the clone |
|
inline |
|
inline |
look up sheet name via relationshipID, then attempt to match that to a sheet in XLWorkbook::sheet(uint16_t index), looping over index
|
inline |
|
inline |
|
inline |
Method to retrieve the name of the sheet.
|
default |
Assignment operator.
|
defaultnoexcept |
| other |
|
inline |
|
inline |
| color |
|
inline |
| index |
|
inline |
Method for renaming the sheet.
| sheetName | A std::string with the new name. |
|
inline |
| selected |
|
inline |
| state |
|
inline |