1#ifndef OPENXLSX_XLTABLES_HPP
2#define OPENXLSX_XLTABLES_HPP
12#include "OpenXLSX-Exports.hpp"
64 XLTable operator[](
size_t index)
const;
69 XLTable table(std::string_view name)
const;
77 XLTable add(std::string_view name, std::string_view range);
95 mutable std::vector<XLTable> m_tables;
96 mutable bool m_loaded{
false};
157 std::string name()
const;
163 void setName(std::string_view name);
169 std::string displayName()
const;
175 void setDisplayName(std::string_view name);
181 std::string rangeReference()
const;
187 void setRangeReference(std::string_view ref);
193 std::string styleName()
const;
199 void setStyleName(std::string_view styleName);
205 std::string comment()
const;
211 void setComment(std::string_view comment);
241 bool published()
const;
247 void setPublished(
bool published);
253 bool showRowStripes()
const;
259 void setShowRowStripes(
bool show);
265 bool showHeaderRow()
const;
271 void setShowHeaderRow(
bool show);
277 bool showTotalsRow()
const;
283 void setShowTotalsRow(
bool show);
289 bool showColumnStripes()
const;
295 void setShowColumnStripes(
bool show);
301 bool showFirstColumn()
const;
307 void setShowFirstColumn(
bool show);
313 bool showLastColumn()
const;
319 void setShowLastColumn(
bool show);
352 void resizeToFitData(
const XLWorksheet& worksheet);
358 void createColumnsFromRange(
const XLWorksheet& worksheet);
363 void print(std::basic_ostream<char>& ostr)
const;
XLXmlData * xmlData
Definition XLDocument.cpp:1422
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:40
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:105
uint32_t headerRowDxfId() const
Get the differential formatting ID for the header row.
XLTable()
Constructor.
Definition XLTables.hpp:113
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:118
The XLXmlData class encapsulates the properties and behaviour of the .xml files in an ....
Definition XLXmlData.hpp:29
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
uint32_t width
Definition XLTables.hpp:28
int32_t offsetX
Definition XLTables.hpp:30
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