4#include "include/spreadsheet/private/spreadsheet_file.h"
6namespace ehm_dal::spreadsheet {
17 static QString systemDelimiterDescription();
20 bool read(std::vector<std::vector<QVariant>> &header,
21 std::vector<std::vector<QVariant>> &cells,
22 const qint32 header_count = 0)
override;
23 bool writeCells(std::vector<QVariant> &prefix,
24 std::vector<std::vector<QVariant>> &cells)
override;
25 bool writeHeader(std::vector<QVariant> &prefix,
26 std::vector<std::vector<QVariant>> &header)
override;
29 bool isAsciiEnabled()
const {
return !utf_8_enabled_; }
30 bool isUtfEnabled()
const {
return utf_8_enabled_; }
34 QChar system_delimiter_{systemDelimiter()};
35 static QChar systemDelimiter();
38 void readRow(std::vector<std::vector<QVariant>> &data, QChar &delimiter);
39 bool write(std::vector<QVariant> &prefix,
40 std::vector<std::vector<QVariant>> &data,
41 const bool silent_progress_dialog =
false);
44 QByteArray bom()
const;
47 bool utf_8_enabled_{
false};
50 void validate(std::vector<QVariant> &cells);
Definition: spreadsheet_file_csv.h:10
Definition: spreadsheet_file.h:17