]> git.sven.stormbind.net Git - sven/vym.git/blob - exporthtmldialog.h
Import Upstream version 2.6.11
[sven/vym.git] / exporthtmldialog.h
1 #ifndef EXPORTHTMLDIALOG_H
2 #define EXPORTHTMLDIALOG_H
3
4 #include "ui_exporthtmldialog.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 {
16     Q_OBJECT
17 public:
18     ExportHTMLDialog(QWidget* parent = 0);
19
20     virtual QDir getDir();
21     virtual bool warnings();
22     virtual bool hasChanged();
23
24 public slots:
25     virtual void readSettings();
26     virtual void setDirectory (const QString&);
27     virtual void dirChanged();
28     virtual void browseDirectoryPressed();
29     virtual void imageCheckBoxPressed( bool b );
30     virtual void includeImagesCheckBoxPressed( bool b );
31     virtual void TOCCheckBoxPressed( bool b );
32     virtual void numberingCheckBoxPressed( bool b );
33     virtual void taskFlagsCheckBoxPressed( bool b );
34     virtual void userFlagsCheckBoxPressed( bool b );
35     virtual void textcolorCheckBoxPressed( bool b );
36     virtual void saveSettingsInMapCheckBoxPressed( bool b );
37     virtual void warningsCheckBoxPressed( bool b );
38     virtual void outputCheckBoxPressed( bool b );
39     virtual void cssSrcChanged();
40     virtual void cssDstChanged();
41     virtual QString getCssSrc();
42     virtual QString getCssDst();
43     virtual void copyCssPressed();
44     virtual void browseCssSrcPressed();
45     virtual void browseCssDstPressed();
46     virtual void postscriptChanged();
47     virtual void browsePostExportButtonPressed();
48     virtual void saveSettings ();
49     virtual void setFilePath( const QString & s );
50     virtual void setMapName( const QString & s );
51
52 public:
53     bool includeMapImage;
54     bool includeImages;
55     bool useTOC;
56     bool useNumbering;
57     bool useTaskFlags;
58     bool useUserFlags;
59     bool useTextColor;
60     QString postscript;
61     bool css_copy;
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
79 #endif // EXPORTHTMLDIALOG_H