1#ifndef OPENXLSX_XLROW_HPP
2#define OPENXLSX_XLROW_HPP
6# pragma warning(disable : 4251)
7# pragma warning(disable : 4275)
11#include "OpenXLSX-Exports.hpp"
87 explicit operator bool()
const;
93 double height()
const;
99 void setHeight(
float height);
106 float descent()
const;
113 void setDescent(
float descent);
119 bool isHidden()
const;
125 void setHidden(
bool state);
131 uint8_t outlineLevel()
const;
137 void setOutlineLevel(uint8_t level);
143 bool isCollapsed()
const;
149 void setCollapsed(
bool state);
155 uint32_t rowNumber()
const;
161 uint16_t cellCount()
const;
182 {
return static_cast<T
>(values()); }
203 XLRowDataRange cells(uint16_t firstCell, uint16_t lastCell)
const;
210 XLCell findCell(uint16_t columNumber);
233 static bool isEqual(
const XLRow& lhs,
const XLRow& rhs);
241 static bool isLessThan(
const XLRow& lhs,
const XLRow& rhs);
244 std::unique_ptr<XMLNode> m_rowNode;
303 static constexpr const bool XLDoNotCreateIfMissing =
false;
308 void updateCurrentRow(
bool createIfMissing);
353 explicit operator bool()
const;
371 uint32_t
rowNumber()
const {
return m_endReached ? m_lastRow + 1 : m_currentRowNumber; }
374 std::unique_ptr<XMLNode> m_dataNode;
375 uint32_t m_firstRow{1};
376 uint32_t m_lastRow{1};
383 uint32_t m_hintRowNumber;
384 static constexpr const int XLNotLoaded = 0;
385 static constexpr const int XLNoSuchRow = 1;
386 static constexpr const int XLLoaded = 2;
387 int m_currentRowStatus;
388 uint32_t m_currentRowNumber;
447 uint32_t rowCount()
const;
466 std::unique_ptr<XMLNode> m_dataNode;
Definition XLXmlParser.hpp:84
An implementation class encapsulating the properties and behaviours of a spreadsheet cell.
Definition XLCell.hpp:41
The XLRowDataProxy is used as a proxy object when getting or setting row data. The class facilitates ...
Definition XLRowData.hpp:231
This class encapsulates the concept of a contiguous range of cells in a row.
Definition XLRowData.hpp:131
std::forward_iterator_tag iterator_category
Definition XLRow.hpp:256
XLRowIterator & operator=(XLRowIterator &&other) noexcept
uint32_t rowNumber() const
get the row number corresponding to the current iterator position
Definition XLRow.hpp:371
XLRowIterator(XLRowIterator &&other) noexcept
bool endReached() const
determine whether iterator is at 1 beyond the last row in range
Definition XLRow.hpp:365
int64_t difference_type
Definition XLRow.hpp:258
XLRowRange & operator=(XLRowRange &&other) noexcept
XLRowRange(XLRowRange &&other) noexcept
The XLRow class represent a row in an Excel spreadsheet. Using XLRow objects, various row formatting ...
Definition XLRow.hpp:23
T values() const
Definition XLRow.hpp:181
This class encapsulate the Excel concept of Shared Strings. In Excel, instead of havig individual str...
Definition XLSharedStrings.hpp:67
A class encapsulating an Excel worksheet. Access to XLWorksheet objects should be via the workbook ob...
Definition XLWorksheet.hpp:118
Definition IZipArchive.hpp:18
XLIteratorLocation
Definition XLIterator.hpp:7
bool operator==(const XLCell &lhs, const XLCell &rhs)
Definition XLCell.hpp:304
bool operator!=(const XLCell &lhs, const XLCell &rhs)
Definition XLCell.hpp:311
constexpr const bool XLCreateIfMissing
Definition XLStyles.hpp:41
OpenXLSX_xml_node XMLNode
Definition XLXmlParser.hpp:63
bool operator<=(const XLCellReference &lhs, const XLCellReference &rhs) noexcept
Asserts whether a cell sequentially precedes or occupies the exact same coordinate as another.
Definition XLCellReference.hpp:244
size_t XLStyleIndex
Definition XLStyles.hpp:31
bool operator<(const XLCellReference &lhs, const XLCellReference &rhs) noexcept
Evaluates precedence primarily by row, then by column, allowing cell ranges to be sorted efficiently ...
Definition XLCellReference.hpp:233
bool operator>=(const XLCellReference &lhs, const XLCellReference &rhs) noexcept
Asserts whether a cell sequentially follows or occupies the exact same coordinate as another.
Definition XLCellReference.hpp:249
bool operator>(const XLCellReference &lhs, const XLCellReference &rhs) noexcept
Inverts the less-than operator logic to verify strict left-to-right, top-to-bottom traversal dominanc...
Definition XLCellReference.hpp:239
std::reference_wrapper< const XLSharedStrings > XLSharedStringsRef
Definition XLSharedStrings.hpp:56