1#ifndef OPENXLSX_XLTABLES_HPP
2#define OPENXLSX_XLTABLES_HPP
12#include "OpenXLSX-Exports.hpp"
66 XLTable operator[](
size_t index)
const;
71 XLTable table(std::string_view name)
const;
79 XLTable add(std::string_view name, std::string_view range);
97 mutable std::vector<XLTable> m_tables;
98 mutable bool m_loaded{
false};
159 std::string name()
const;
165 void setName(std::string_view name);
171 std::string displayName()
const;
177 void setDisplayName(std::string_view name);
183 std::string rangeReference()
const;
189 void setRangeReference(std::string_view ref);
195 std::string styleName()
const;
201 void setStyleName(std::string_view styleName);
207 std::string comment()
const;
213 void setComment(std::string_view comment);
243 bool published()
const;
249 void setPublished(
bool published);
255 bool showRowStripes()
const;
261 void setShowRowStripes(
bool show);
267 bool showHeaderRow()
const;
273 void setShowHeaderRow(
bool show);
279 bool showTotalsRow()
const;
285 void setShowTotalsRow(
bool show);
291 bool showColumnStripes()
const;
297 void setShowColumnStripes(
bool show);
303 bool showFirstColumn()
const;
309 void setShowFirstColumn(
bool show);
315 bool showLastColumn()
const;
321 void setShowLastColumn(
bool show);
354 void resizeToFitData(
const XLWorksheet& worksheet);
360 void createColumnsFromRange(
const XLWorksheet& worksheet);
365 void print(std::basic_ostream<char>& ostr)
const;
Definition XLXmlParser.hpp:84
Definition XLAutoFilter.hpp:90
Represents a rectangular area of cells within a worksheet.
Definition XLCellRange.hpp:30
The XLTableCollection class manages multiple tables within a worksheet.
Definition XLTables.hpp:42
XLTableCollection()=default
Constructor.
The XLTableColumn class encapsulates the <tableColumn> XML node. It allows setting different kinds of...
Definition XLTableColumn.hpp:21
The XLTable class represents a single Excel table (.xml file).
Definition XLTables.hpp:107
uint32_t headerRowDxfId() const
Get the differential formatting ID for the header row.
XLTable()
Constructor.
Definition XLTables.hpp:115
void setHeaderRowDxfId(uint32_t id)
Set the differential formatting ID for the header row.
uint32_t dataDxfId() const
Get the differential formatting ID for the data rows.
~XLTable()=default
The destructor.
XLTable(XLTable &&other) noexcept=default
Move constructor.
XLTable & operator=(const XLTable &)=default
Assignment operator.
XLTable & operator=(XLTable &&other) noexcept=default
Move assignment operator.
void setDataDxfId(uint32_t id)
Set the differential formatting ID for the data rows.
XLTable(const XLTable &other)=default
The copy constructor.
A class encapsulating an Excel worksheet. Access to XLWorksheet objects should be via the workbook ob...
Definition XLWorksheet.hpp:120
The XLXmlData class encapsulates the properties and behaviour of the .xml files in an ....
Definition XLXmlData.hpp:68
The XLXmlFile class provides an interface for derived classes to use. It functions as an ancestor to ...
Definition XLXmlFile.hpp:42
Definition IZipArchive.hpp:18
Definition XLTables.hpp:25
std::string slicerStyle
Definition XLTables.hpp:32
uint32_t width
Definition XLTables.hpp:28
int32_t offsetX
Definition XLTables.hpp:30
std::vector< std::string > selectedItems
Definition XLTables.hpp:33
uint32_t height
Definition XLTables.hpp:29
std::string caption
Definition XLTables.hpp:27
int32_t offsetY
Definition XLTables.hpp:31
std::string name
Definition XLTables.hpp:26