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