author | insilmaril |
Mon Oct 22 09:50:03 2007 +0000 (2007-10-22) | |
changeset 604 | f2aab2a9b6cb |
parent 458 | 84b37cc9e63e |
permissions | -rw-r--r-- |
insilmaril@382 | 1 |
#ifndef EXPORTXHTMLDIALOG_H |
insilmaril@382 | 2 |
#define EXPORTXHTMLDIALOG_H |
insilmaril@382 | 3 |
|
insilmaril@382 | 4 |
#include "ui_exportxhtmldialog.h" |
insilmaril@382 | 5 |
|
insilmaril@458 | 6 |
/*! \brief Dialog to export a map as XHTML document |
insilmaril@458 | 7 |
|
insilmaril@458 | 8 |
This is an overloaded QDialog with various settings needed to call |
insilmaril@458 | 9 |
convert the vym.xml to a XHTML document. |
insilmaril@458 | 10 |
The conversion itself is done by calling xsltproc. |
insilmaril@458 | 11 |
*/ |
insilmaril@458 | 12 |
|
insilmaril@382 | 13 |
class ExportXHTMLDialog:public QDialog |
insilmaril@382 | 14 |
{ |
insilmaril@382 | 15 |
Q_OBJECT |
insilmaril@382 | 16 |
public: |
insilmaril@382 | 17 |
ExportXHTMLDialog(QWidget* parent = 0); |
insilmaril@382 | 18 |
|
insilmaril@382 | 19 |
virtual QString getDir(); |
insilmaril@382 | 20 |
virtual bool warnings(); |
insilmaril@382 | 21 |
virtual bool hasChanged(); |
insilmaril@382 | 22 |
|
insilmaril@382 | 23 |
public slots: |
insilmaril@382 | 24 |
virtual void readSettings(); |
insilmaril@516 | 25 |
virtual void setDir (const QString&); |
insilmaril@382 | 26 |
virtual void dirChanged(); |
insilmaril@382 | 27 |
virtual void browseDirectoryPressed(); |
insilmaril@382 | 28 |
virtual void imageButtonPressed( bool b ); |
insilmaril@382 | 29 |
virtual void textcolorButtonPressed( bool b ); |
insilmaril@382 | 30 |
virtual void saveSettingsInMapButtonPressed( bool b ); |
insilmaril@382 | 31 |
virtual void warningsButtonPressed( bool b ); |
insilmaril@382 | 32 |
virtual void outputButtonPressed( bool b ); |
insilmaril@382 | 33 |
virtual void cssChanged(); |
insilmaril@382 | 34 |
virtual void browseCSSPressed(); |
insilmaril@382 | 35 |
virtual void xslChanged(); |
insilmaril@382 | 36 |
virtual void prescriptChanged(); |
insilmaril@382 | 37 |
virtual void browseXSLPressed(); |
insilmaril@382 | 38 |
virtual void postscriptChanged(); |
insilmaril@382 | 39 |
virtual void browsePreExportButtonPressed(); |
insilmaril@382 | 40 |
virtual void browsePostExportButtonPressed(); |
insilmaril@382 | 41 |
virtual void doExport( const QString & mapname ); |
insilmaril@382 | 42 |
virtual void setFilePath( const QString & s ); |
insilmaril@382 | 43 |
virtual void setMapName( const QString & s ); |
insilmaril@382 | 44 |
|
insilmaril@382 | 45 |
protected: |
insilmaril@382 | 46 |
bool useTextColor; |
insilmaril@382 | 47 |
bool showWarnings; |
insilmaril@382 | 48 |
QString xsl; |
insilmaril@382 | 49 |
QString css; |
insilmaril@382 | 50 |
bool useImage; |
insilmaril@382 | 51 |
bool showOutput; |
insilmaril@382 | 52 |
QString dir; |
insilmaril@382 | 53 |
QString filepath; |
insilmaril@382 | 54 |
QString prescript; |
insilmaril@382 | 55 |
QString postscript; |
insilmaril@382 | 56 |
bool settingsChanged; |
insilmaril@382 | 57 |
QString mapname; |
insilmaril@382 | 58 |
bool saveSettingsInMap; |
insilmaril@382 | 59 |
XSLTProc p; |
insilmaril@382 | 60 |
Process *scriptProc; |
insilmaril@382 | 61 |
|
insilmaril@382 | 62 |
private: |
insilmaril@382 | 63 |
Ui::ExportXHTMLDialog ui; |
insilmaril@382 | 64 |
void init(); |
insilmaril@382 | 65 |
void destroy(); |
insilmaril@382 | 66 |
void runScript( QString spath, QString fpath ); |
insilmaril@382 | 67 |
|
insilmaril@382 | 68 |
}; |
insilmaril@382 | 69 |
|
insilmaril@382 | 70 |
#endif // EXPORTXHTMLDIALOG_H |