Repository navigation
Expand file tree
/
Copy pathtableworker.h
More file actions
52 lines (44 loc) · 1.64 KB
/
Copy pathtableworker.h
File metadata and controls
52 lines (44 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#ifndef TABLEWORKER_H
#define TABLEWORKER_H
#include "types.h"
#include "xlsxdocument.h"
#include "xlsxchartsheet.h"
#include "xlsxcellrange.h"
#include "xlsxchart.h"
#include "xlsxrichstring.h"
#include "xlsxworkbook.h"
const char GREEN_COLOR = 43;
const char RED_COLOR = 22;
const char YELLOW_COLOR = 36;
const char BROWN_COLOR = 53;
const char MAIN_COLOR = 42;
const char HEADER_COLOR = 8;
#include <QList>
class TableWorker {
public:
TableWorker();
~TableWorker();
void open(QString file_path);
void closeXlsx();
QVector<Command> getCommands() const;
QList<DataAnalize> genLDA(Command cmd, QDate dateCosntr = QDate(1900, 1, 1));
void setDateConstr(QDate dConstr);
int makeTable1vs1(Command first_command, Command second_command, int flags, QString file_path);
static void visibleOpen(QString file_path, QString sheet_name);
private:
DataAnalize parseToDA(QString ews, int row_id);
TableSize makeTable1(int start_row, int start_col, QList<DataAnalize> first_cmd, QList<DataAnalize> second_cmd);
TableSize makeTable2(int start_row, int start_col, QList<DataAnalize> first_cmd, QList<DataAnalize> second_cmd);
TableSize makeTable3(int start_row, int start_col, QList<DataAnalize> first_cmd, QList<DataAnalize> second_cmd);
QXlsx::Document * doc;
QVector<Command> commands;
QDate dateConstr;
QXlsx::Document * tb_doc;
QXlsx::Format * main_format;
QXlsx::Format * header_format;
QXlsx::Format * green_format;
QXlsx::Format * red_format;
QXlsx::Format * yellow_format;
QXlsx::Format * brown_format;
};
#endif // TABLEWORKER_H