4#include "xlsxdocument.h"
5#include "include/spreadsheet/private/spreadsheet_file.h"
7namespace ehm_dal::spreadsheet {
18 qint64 dateToExcelNumber(
const QDate &d)
const;
21 bool read(std::vector<std::vector<QVariant>> &header,
22 std::vector<std::vector<QVariant>> &cells,
23 const qint32 header_count = 0)
override;
24 bool writeCells(std::vector<QVariant> &prefix,
25 std::vector<std::vector<QVariant>> &cells)
override;
26 bool writeHeader(std::vector<QVariant> &prefix,
27 std::vector<std::vector<QVariant>> &header)
override;
34 void readRow(std::vector<std::vector<QVariant>> &data,
36 const qint32 column_count);
37 bool write(std::vector<QVariant> &prefix,
38 std::vector<std::vector<QVariant>> &data,
39 const QXlsx::Format &format,
40 const bool silent_progress_dialog =
false);
41 void writeCell(qint32 row,
45 const QXlsx::Format &standard_format,
46 const QXlsx::Format &date_format);
49 qint32 row_offset_{0};
52 std::unique_ptr<QXlsx::Document> xlsx_;
54 static const QDate excel_epoch_;
Definition: spreadsheet_file.h:17
Definition: spreadsheet_file_xlsx.h:11