-
Notifications
You must be signed in to change notification settings - Fork 2
/
schemeexporter.h
38 lines (30 loc) · 1.14 KB
/
schemeexporter.h
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
#ifndef IKOOSKAR_BLL_SCHEMEEXPORTER_H
#define IKOOSKAR_BLL_SCHEMEEXPORTER_H
#include "Shared/deskcoordinates.h"
#include "Shared/scheme.h"
extern "C" {
#include "xlsxwriter.h"
}
namespace ikoOSKAR {
namespace BLL {
using namespace Shared;
class SchemeExporter : public QObject {
Q_OBJECT
private:
Scheme scheme;
void noDesk(lxw_workbook* workbook, lxw_worksheet* sheet, int xRow, int xCol);
void emptyDesk(lxw_workbook* workbook, lxw_worksheet* sheet, DeskCoordinates& coord);
void regularDesk(lxw_workbook* workbook, lxw_worksheet* sheet, DeskCoordinates& coord);
void separator(lxw_workbook* workbook, lxw_worksheet* sheet, int xRow, int xCol, bool bothSidesEmpty);
bool createDesk(lxw_workbook* workbook, lxw_worksheet* sheet, DeskCoordinates& coord);
public:
SchemeExporter(Scheme scheme);
void exportClassLists();
void exportHallLayouts();
void exportAll();
signals:
void exportFinished(const QString& pathClassLists, const QString& pathHallLayouts);
};
} // namespace BLL
} // namespace ikoOSKAR
#endif // IKOOSKAR_BLL_SCHEMEEXPORTER_H