-
Notifications
You must be signed in to change notification settings - Fork 0
/
doccontroller.h
45 lines (35 loc) · 995 Bytes
/
doccontroller.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
39
40
41
42
43
44
45
#ifndef DOCCONTROLLER_H
#define DOCCONTROLLER_H
#include <QObject>
#include "subdata.h"
class MainWindow;
class QXmlStreamWriter;
struct CellData
{
QString _line;
QString _size;
bool _isBold;
CellData(QString line, QString size, bool isBold) : _line(line), _size(size), _isBold(isBold) {};
};
struct FemaleLinesStyle {
bool isBold;
bool isUnderline;
bool isItalic;
FemaleLinesStyle(bool _isBold, bool _isUnderline, bool _isItalic)
: isBold(_isBold)
, isUnderline(_isUnderline)
, isItalic(_isItalic)
{}
};
// Will handle convertation to .doc formate
class CDocController: public QObject
{
public:
void SetMainWindow(MainWindow* MainWindow);
public slots:
void ConvertSubDataToDoc(const QString& fileName, const QString& strTitle, const std::vector<CSubData>& subData, FemaleLinesStyle style, bool useUnderline);
private:
MainWindow* _mainWindow;
quint32 m_OpenElements = 0;
};
#endif // DOCCONTROLLER_H