1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/exportxhtmldialog.h Thu Nov 16 10:07:11 2006 +0000
1.3 @@ -0,0 +1,62 @@
1.4 +#ifndef EXPORTXHTMLDIALOG_H
1.5 +#define EXPORTXHTMLDIALOG_H
1.6 +
1.7 +#include "ui_exportxhtmldialog.h"
1.8 +
1.9 +class ExportXHTMLDialog:public QDialog
1.10 +{
1.11 + Q_OBJECT
1.12 +public:
1.13 + ExportXHTMLDialog(QWidget* parent = 0);
1.14 +
1.15 + virtual QString getDir();
1.16 + virtual bool warnings();
1.17 + virtual bool hasChanged();
1.18 +
1.19 +public slots:
1.20 + virtual void readSettings();
1.21 + virtual void dirChanged();
1.22 + virtual void browseDirectoryPressed();
1.23 + virtual void imageButtonPressed( bool b );
1.24 + virtual void textcolorButtonPressed( bool b );
1.25 + virtual void saveSettingsInMapButtonPressed( bool b );
1.26 + virtual void warningsButtonPressed( bool b );
1.27 + virtual void outputButtonPressed( bool b );
1.28 + virtual void cssChanged();
1.29 + virtual void browseCSSPressed();
1.30 + virtual void xslChanged();
1.31 + virtual void prescriptChanged();
1.32 + virtual void browseXSLPressed();
1.33 + virtual void postscriptChanged();
1.34 + virtual void browsePreExportButtonPressed();
1.35 + virtual void browsePostExportButtonPressed();
1.36 + virtual void doExport( const QString & mapname );
1.37 + virtual void setFilePath( const QString & s );
1.38 + virtual void setMapName( const QString & s );
1.39 +
1.40 +protected:
1.41 + bool useTextColor;
1.42 + bool showWarnings;
1.43 + QString xsl;
1.44 + QString css;
1.45 + bool useImage;
1.46 + bool showOutput;
1.47 + QString dir;
1.48 + QString filepath;
1.49 + QString prescript;
1.50 + QString postscript;
1.51 + bool settingsChanged;
1.52 + QString mapname;
1.53 + bool saveSettingsInMap;
1.54 + XSLTProc p;
1.55 + Process *scriptProc;
1.56 +
1.57 +private:
1.58 + Ui::ExportXHTMLDialog ui;
1.59 + void init();
1.60 + void destroy();
1.61 + void runScript( QString spath, QString fpath );
1.62 +
1.63 +};
1.64 +
1.65 +#endif // EXPORTXHTMLDIALOG_H