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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
|
#ifndef EXPORTXHTMLDIALOG_H
#define EXPORTXHTMLDIALOG_H
#include "ui_exportxhtmldialog.h"
/*! \brief Dialog to export a map as XHTML document
This is an overloaded QDialog with various settings needed to call
convert the vym.xml to a XHTML document.
The conversion itself is done by calling xsltproc.
*/
class ExportXHTMLDialog:public QDialog
{
Q_OBJECT
public:
ExportXHTMLDialog(QWidget* parent = 0);
virtual QString getDir();
virtual bool warnings();
virtual bool hasChanged();
public slots:
virtual void readSettings();
virtual void setDir (const QString&);
virtual void dirChanged();
virtual void browseDirectoryPressed();
virtual void imageButtonPressed( bool b );
virtual void textcolorButtonPressed( bool b );
virtual void saveSettingsInMapButtonPressed( bool b );
virtual void warningsButtonPressed( bool b );
virtual void outputButtonPressed( bool b );
virtual void cssChanged();
virtual void browseCSSPressed();
virtual void xslChanged();
virtual void prescriptChanged();
virtual void browseXSLPressed();
virtual void postscriptChanged();
virtual void browsePreExportButtonPressed();
virtual void browsePostExportButtonPressed();
virtual void doExport( const QString & mapname );
virtual void setFilePath( const QString & s );
virtual void setMapName( const QString & s );
protected:
bool useTextColor;
bool showWarnings;
QString xsl;
QString css;
bool useImage;
bool showOutput;
QString dir;
QString filepath;
QString prescript;
QString postscript;
bool settingsChanged;
QString mapname;
bool saveSettingsInMap;
XSLTProc p;
Process *scriptProc;
private:
Ui::ExportXHTMLDialog ui;
void init();
void destroy();
void runScript( QString spath, QString fpath );
};
#endif // EXPORTXHTMLDIALOG_H
|