-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathprintwindow.h
More file actions
30 lines (25 loc) · 777 Bytes
/
printwindow.h
File metadata and controls
30 lines (25 loc) · 777 Bytes
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
#ifndef PRINTWINDOW_H
#define PRINTWINDOW_H
#include <QDialog>
#include "report.h"
#include "icfcontroller.h"
/*
* Uses QTextDocument to print given report data onto a printer or pdf file.
* Layout of the page is set here.
*/
class ICFController;
class PrintWindow : public QDialog
{
Q_OBJECT
public:
PrintWindow(ICFController* icfController, QDialog *parent = 0);
~PrintWindow();
int printReport(int repId);
private:
int createXmlReport(Report &rep);
void createXmlTherapist(Report &rep, QDomDocument &doc, QDomElement &root);
void createXmlPatient(Report &rep, QDomDocument &doc, QDomElement &root);
void createXmlFunction(Report& rep, QDomDocument& doc, QDomElement& root);
ICFController* icfController;
};
#endif // PRINTWINDOW_H