OpenXLSX 1.12.1
Modern C++ Excel Library (Fork of OpenXLSX by Kenneth Troldal Balslev)
Loading...
Searching...
No Matches
OpenXLSX::XLPivotTable Class Referencefinal

#include <XLPivotTable.hpp>

Inheritance diagram for OpenXLSX::XLPivotTable:
OpenXLSX::XLXmlFile

Public Member Functions

class XLRelationships relationships ()
 XLPivotTable ()
 XLPivotTable (XLXmlData *xmlData)
 ~XLPivotTable ()=default
 XLPivotTable (const XLPivotTable &other)=default
 XLPivotTable (XLPivotTable &&other) noexcept=default
XLPivotTable & operator= (const XLPivotTable &other)=default
XLPivotTable & operator= (XLPivotTable &&other) noexcept=default
void setName (std::string_view name)
void setRefreshOnLoad (bool refresh=true)
 Tell Excel to refresh this pivot table when the file is opened.
std::string name () const
 Get the name of the pivot table.
std::string targetCell () const
 Get the target location anchor (first cell of location/.
std::string sourceRange () const
 Get the data source range or table/defined name.
XLPivotTableOptions options () const
 Best-effort reconstruction of create-time options from package XML.
class XLPivotCacheDefinition cacheDefinition () const
 Get the pivot cache definition object.
void changeSourceRange (std::string_view newRange)
 Change the data source range for the pivot table.
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}

Constructor & Destructor Documentation

◆ XLPivotTable() [1/4]

OpenXLSX::XLPivotTable::XLPivotTable ( )
inline

◆ XLPivotTable() [2/4]

OpenXLSX::XLPivotTable::XLPivotTable ( XLXmlData * xmlData)
explicit

◆ ~XLPivotTable()

OpenXLSX::XLPivotTable::~XLPivotTable ( )
default

◆ XLPivotTable() [3/4]

OpenXLSX::XLPivotTable::XLPivotTable ( const XLPivotTable & other)
default

◆ XLPivotTable() [4/4]

OpenXLSX::XLPivotTable::XLPivotTable ( XLPivotTable && other)
defaultnoexcept

Member Function Documentation

◆ cacheDefinition()

XLPivotCacheDefinition OpenXLSX::XLPivotTable::cacheDefinition ( ) const

Get the pivot cache definition object.

◆ changeSourceRange()

void OpenXLSX::XLPivotTable::changeSourceRange ( std::string_view newRange)

Change the data source range for the pivot table.

◆ name()

std::string OpenXLSX::XLPivotTable::name ( ) const

Get the name of the pivot table.

◆ operator=() [1/2]

XLPivotTable & OpenXLSX::XLPivotTable::operator= ( const XLPivotTable & other)
default

◆ operator=() [2/2]

XLPivotTable & OpenXLSX::XLPivotTable::operator= ( XLPivotTable && other)
defaultnoexcept

◆ options()

XLPivotTableOptions OpenXLSX::XLPivotTable::options ( ) const
nodiscard

Best-effort reconstruction of create-time options from package XML.

Round-trip is complete for tables written by OpenXLSX / excelize-style parts; Excel-authored files are parsed as much as the definition allows.

◆ relationships()

XLRelationships OpenXLSX::XLPivotTable::relationships ( )

◆ setName()

void OpenXLSX::XLPivotTable::setName ( std::string_view name)

◆ setRefreshOnLoad()

void OpenXLSX::XLPivotTable::setRefreshOnLoad ( bool refresh = true)

Tell Excel to refresh this pivot table when the file is opened.

◆ sourceRange()

std::string OpenXLSX::XLPivotTable::sourceRange ( ) const

Get the data source range or table/defined name.

◆ targetCell()

std::string OpenXLSX::XLPivotTable::targetCell ( ) const

Get the target location anchor (first cell of location/.


The documentation for this class was generated from the following files: