exportxhtmldialog.h
author insilmaril
Fri Dec 08 20:18:58 2006 +0000 (2006-12-08)
changeset 410 ceb4532eae34
child 458 84b37cc9e63e
permissions -rw-r--r--
1.6.1 Port to QGraphics
     1 #ifndef EXPORTXHTMLDIALOG_H
     2 #define EXPORTXHTMLDIALOG_H
     3 
     4 #include "ui_exportxhtmldialog.h"
     5 
     6 class ExportXHTMLDialog:public QDialog
     7 {
     8 	Q_OBJECT
     9 public:
    10     ExportXHTMLDialog(QWidget* parent = 0);
    11 
    12     virtual QString getDir();
    13     virtual bool warnings();
    14     virtual bool hasChanged();
    15 
    16 public slots:
    17     virtual void readSettings();
    18     virtual void dirChanged();
    19     virtual void browseDirectoryPressed();
    20     virtual void imageButtonPressed( bool b );
    21     virtual void textcolorButtonPressed( bool b );
    22     virtual void saveSettingsInMapButtonPressed( bool b );
    23     virtual void warningsButtonPressed( bool b );
    24     virtual void outputButtonPressed( bool b );
    25     virtual void cssChanged();
    26     virtual void browseCSSPressed();
    27     virtual void xslChanged();
    28     virtual void prescriptChanged();
    29     virtual void browseXSLPressed();
    30     virtual void postscriptChanged();
    31     virtual void browsePreExportButtonPressed();
    32     virtual void browsePostExportButtonPressed();
    33     virtual void doExport( const QString & mapname );
    34     virtual void setFilePath( const QString & s );
    35     virtual void setMapName( const QString & s );
    36 
    37 protected:
    38     bool useTextColor;
    39     bool showWarnings;
    40     QString xsl;
    41     QString css;
    42     bool useImage;
    43     bool showOutput;
    44     QString dir;
    45     QString filepath;
    46     QString prescript;
    47     QString postscript;
    48     bool settingsChanged;
    49     QString mapname;
    50     bool saveSettingsInMap;
    51     XSLTProc p;
    52     Process *scriptProc;
    53 
    54 private:
    55 	Ui::ExportXHTMLDialog ui;
    56     void init();
    57     void destroy();
    58     void runScript( QString spath, QString fpath );
    59 
    60 };
    61 
    62 #endif // EXPORTXHTMLDIALOG_H