]> git.sven.stormbind.net Git - sven/vym.git/blob - src/export-html-dialog.h
Replace Pierre as the maintainer
[sven/vym.git] / src / export-html-dialog.h
1 #ifndef EXPORTHTMLDIALOG_H
2 #define EXPORTHTMLDIALOG_H
3
4 #include "ui_export-html-dialog.h"
5
6 #include <QDir>
7
8 /*! \brief Dialog to export a map as HTML document
9
10 This is an overloaded QDialog with various settings needed to call
11 convert the vym.xml to a HTML document.
12 */
13
14 class ExportHTMLDialog : public QDialog {
15     Q_OBJECT
16   public:
17     ExportHTMLDialog(QWidget *parent = 0);
18
19     virtual QDir getDir();
20     virtual bool warnings();
21     virtual bool hasChanged();
22
23   public slots:
24     virtual void readSettings();
25     virtual void setDirectory(const QString &);
26     virtual void dirChanged();
27     virtual void browseDirectoryPressed();
28     virtual void imageCheckBoxPressed(bool b);
29     virtual void includeImagesCheckBoxPressed(bool b);
30     virtual void TOCCheckBoxPressed(bool b);
31     virtual void numberingCheckBoxPressed(bool b);
32     virtual void taskFlagsCheckBoxPressed(bool b);
33     virtual void userFlagsCheckBoxPressed(bool b);
34     virtual void textcolorCheckBoxPressed(bool b);
35     virtual void saveSettingsInMapCheckBoxPressed(bool b);
36     virtual void warningsCheckBoxPressed(bool b);
37     virtual void outputCheckBoxPressed(bool b);
38     virtual void cssSrcChanged();
39     virtual void cssDstChanged();
40     virtual QString getCssSrc();
41     virtual QString getCssDst();
42     virtual void copyCssPressed();
43     virtual void browseCssSrcPressed();
44     virtual void browseCssDstPressed();
45     virtual void postscriptChanged();
46     virtual void browsePostExportButtonPressed();
47     virtual void saveSettings();
48     virtual void setFilePath(const QString &s);
49     virtual void setMapName(const QString &s);
50
51   public:
52     bool includeMapImage;
53     bool includeImages;
54     bool useTOC;
55     bool useNumbering;
56     bool useTaskFlags;
57     bool useUserFlags;
58     bool useTextColor;
59     QString postscript;
60     bool css_copy;
61
62   protected:
63     QString css_src;
64     QString css_dst;
65     bool showWarnings;
66     bool showOutput;
67     QDir dir;
68     QString filepath;
69     bool settingsChanged;
70     QString mapname;
71     bool saveSettingsInMap;
72
73   private:
74     Ui::ExportHTMLDialog ui;
75     void init();
76 };
77
78 #endif // EXPORTHTMLDIALOG_H