exportxhtmldialog.h
author insilmaril
Thu Sep 14 11:38:18 2006 +0000 (2006-09-14)
changeset 388 3a58c9ef4a18
child 458 84b37cc9e63e
permissions -rw-r--r--
1.8.57 - more changes in history window, Note Editor is QT4 now
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@382
     6
class ExportXHTMLDialog:public QDialog
insilmaril@382
     7
{
insilmaril@382
     8
	Q_OBJECT
insilmaril@382
     9
public:
insilmaril@382
    10
    ExportXHTMLDialog(QWidget* parent = 0);
insilmaril@382
    11
insilmaril@382
    12
    virtual QString getDir();
insilmaril@382
    13
    virtual bool warnings();
insilmaril@382
    14
    virtual bool hasChanged();
insilmaril@382
    15
insilmaril@382
    16
public slots:
insilmaril@382
    17
    virtual void readSettings();
insilmaril@382
    18
    virtual void dirChanged();
insilmaril@382
    19
    virtual void browseDirectoryPressed();
insilmaril@382
    20
    virtual void imageButtonPressed( bool b );
insilmaril@382
    21
    virtual void textcolorButtonPressed( bool b );
insilmaril@382
    22
    virtual void saveSettingsInMapButtonPressed( bool b );
insilmaril@382
    23
    virtual void warningsButtonPressed( bool b );
insilmaril@382
    24
    virtual void outputButtonPressed( bool b );
insilmaril@382
    25
    virtual void cssChanged();
insilmaril@382
    26
    virtual void browseCSSPressed();
insilmaril@382
    27
    virtual void xslChanged();
insilmaril@382
    28
    virtual void prescriptChanged();
insilmaril@382
    29
    virtual void browseXSLPressed();
insilmaril@382
    30
    virtual void postscriptChanged();
insilmaril@382
    31
    virtual void browsePreExportButtonPressed();
insilmaril@382
    32
    virtual void browsePostExportButtonPressed();
insilmaril@382
    33
    virtual void doExport( const QString & mapname );
insilmaril@382
    34
    virtual void setFilePath( const QString & s );
insilmaril@382
    35
    virtual void setMapName( const QString & s );
insilmaril@382
    36
insilmaril@382
    37
protected:
insilmaril@382
    38
    bool useTextColor;
insilmaril@382
    39
    bool showWarnings;
insilmaril@382
    40
    QString xsl;
insilmaril@382
    41
    QString css;
insilmaril@382
    42
    bool useImage;
insilmaril@382
    43
    bool showOutput;
insilmaril@382
    44
    QString dir;
insilmaril@382
    45
    QString filepath;
insilmaril@382
    46
    QString prescript;
insilmaril@382
    47
    QString postscript;
insilmaril@382
    48
    bool settingsChanged;
insilmaril@382
    49
    QString mapname;
insilmaril@382
    50
    bool saveSettingsInMap;
insilmaril@382
    51
    XSLTProc p;
insilmaril@382
    52
    Process *scriptProc;
insilmaril@382
    53
insilmaril@382
    54
private:
insilmaril@382
    55
	Ui::ExportXHTMLDialog ui;
insilmaril@382
    56
    void init();
insilmaril@382
    57
    void destroy();
insilmaril@382
    58
    void runScript( QString spath, QString fpath );
insilmaril@382
    59
insilmaril@382
    60
};
insilmaril@382
    61
insilmaril@382
    62
#endif // EXPORTXHTMLDIALOG_H