exportxhtmldialog.h
author insilmaril
Wed Apr 25 16:02:54 2007 +0000 (2007-04-25)
changeset 470 80ae7b79828c
parent 382 8b0ab4c0f767
child 516 263988fee2a7
permissions -rw-r--r--
started doxygen documentation
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@382
    25
    virtual void dirChanged();
insilmaril@382
    26
    virtual void browseDirectoryPressed();
insilmaril@382
    27
    virtual void imageButtonPressed( bool b );
insilmaril@382
    28
    virtual void textcolorButtonPressed( bool b );
insilmaril@382
    29
    virtual void saveSettingsInMapButtonPressed( bool b );
insilmaril@382
    30
    virtual void warningsButtonPressed( bool b );
insilmaril@382
    31
    virtual void outputButtonPressed( bool b );
insilmaril@382
    32
    virtual void cssChanged();
insilmaril@382
    33
    virtual void browseCSSPressed();
insilmaril@382
    34
    virtual void xslChanged();
insilmaril@382
    35
    virtual void prescriptChanged();
insilmaril@382
    36
    virtual void browseXSLPressed();
insilmaril@382
    37
    virtual void postscriptChanged();
insilmaril@382
    38
    virtual void browsePreExportButtonPressed();
insilmaril@382
    39
    virtual void browsePostExportButtonPressed();
insilmaril@382
    40
    virtual void doExport( const QString & mapname );
insilmaril@382
    41
    virtual void setFilePath( const QString & s );
insilmaril@382
    42
    virtual void setMapName( const QString & s );
insilmaril@382
    43
insilmaril@382
    44
protected:
insilmaril@382
    45
    bool useTextColor;
insilmaril@382
    46
    bool showWarnings;
insilmaril@382
    47
    QString xsl;
insilmaril@382
    48
    QString css;
insilmaril@382
    49
    bool useImage;
insilmaril@382
    50
    bool showOutput;
insilmaril@382
    51
    QString dir;
insilmaril@382
    52
    QString filepath;
insilmaril@382
    53
    QString prescript;
insilmaril@382
    54
    QString postscript;
insilmaril@382
    55
    bool settingsChanged;
insilmaril@382
    56
    QString mapname;
insilmaril@382
    57
    bool saveSettingsInMap;
insilmaril@382
    58
    XSLTProc p;
insilmaril@382
    59
    Process *scriptProc;
insilmaril@382
    60
insilmaril@382
    61
private:
insilmaril@382
    62
	Ui::ExportXHTMLDialog ui;
insilmaril@382
    63
    void init();
insilmaril@382
    64
    void destroy();
insilmaril@382
    65
    void runScript( QString spath, QString fpath );
insilmaril@382
    66
insilmaril@382
    67
};
insilmaril@382
    68
insilmaril@382
    69
#endif // EXPORTXHTMLDIALOG_H