1.1 --- a/exportxhtmldialog.h Wed Apr 07 10:45:24 2010 +0000
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,70 +0,0 @@
1.4 -#ifndef EXPORTXHTMLDIALOG_H
1.5 -#define EXPORTXHTMLDIALOG_H
1.6 -
1.7 -#include "ui_exportxhtmldialog.h"
1.8 -
1.9 -/*! \brief Dialog to export a map as XHTML document
1.10 -
1.11 -This is an overloaded QDialog with various settings needed to call
1.12 -convert the vym.xml to a XHTML document.
1.13 -The conversion itself is done by calling xsltproc.
1.14 -*/
1.15 -
1.16 -class ExportXHTMLDialog:public QDialog
1.17 -{
1.18 - Q_OBJECT
1.19 -public:
1.20 - ExportXHTMLDialog(QWidget* parent = 0);
1.21 -
1.22 - virtual QString getDir();
1.23 - virtual bool warnings();
1.24 - virtual bool hasChanged();
1.25 -
1.26 -public slots:
1.27 - virtual void readSettings();
1.28 - virtual void setDir (const QString&);
1.29 - virtual void dirChanged();
1.30 - virtual void browseDirectoryPressed();
1.31 - virtual void imageButtonPressed( bool b );
1.32 - virtual void textcolorButtonPressed( bool b );
1.33 - virtual void saveSettingsInMapButtonPressed( bool b );
1.34 - virtual void warningsButtonPressed( bool b );
1.35 - virtual void outputButtonPressed( bool b );
1.36 - virtual void cssChanged();
1.37 - virtual void browseCSSPressed();
1.38 - virtual void xslChanged();
1.39 - virtual void prescriptChanged();
1.40 - virtual void browseXSLPressed();
1.41 - virtual void postscriptChanged();
1.42 - virtual void browsePreExportButtonPressed();
1.43 - virtual void browsePostExportButtonPressed();
1.44 - virtual void doExport( const QString & mapname );
1.45 - virtual void setFilePath( const QString & s );
1.46 - virtual void setMapName( const QString & s );
1.47 -
1.48 -protected:
1.49 - bool useTextColor;
1.50 - bool showWarnings;
1.51 - QString xsl;
1.52 - QString css;
1.53 - bool useImage;
1.54 - bool showOutput;
1.55 - QString dir;
1.56 - QString filepath;
1.57 - QString prescript;
1.58 - QString postscript;
1.59 - bool settingsChanged;
1.60 - QString mapname;
1.61 - bool saveSettingsInMap;
1.62 - XSLTProc p;
1.63 - Process *scriptProc;
1.64 -
1.65 -private:
1.66 - Ui::ExportXHTMLDialog ui;
1.67 - void init();
1.68 - void destroy();
1.69 - void runScript( QString spath, QString fpath );
1.70 -
1.71 -};
1.72 -
1.73 -#endif // EXPORTXHTMLDIALOG_H