Subversion Repositories Scribus

Rev

Rev 4661 | Rev 5182 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4655 tsoots 1
/*
2
For general Scribus (>=1.3.2) copyright and licensing information please refer
3
to the COPYING file provided with the program. Following this notice may exist
4
a copyright and/or license notice that predates the release of Scribus 1.3.2
5
for which a new license (GPL+exception) is in place.
6
*/
7
#ifndef DOCIM_H
8
#define DOCIM_H
9
 
10
#include "scconfig.h"
11
 
12
#include "pluginapi.h"
13
#include <qobject.h>
4677 cbradney 14
#include <qstringlist.h>
4655 tsoots 15
 
4661 tsoots 16
class gtWriter;
4655 tsoots 17
class QProcess;
18
 
19
extern "C" PLUGIN_API void GetText(QString filename, QString encoding, bool textOnly, gtWriter *writer);
20
 
21
extern "C" PLUGIN_API QString FileFormatName();
22
 
23
extern "C" PLUGIN_API QStringList FileExtensions();
24
 
25
class DocIm : public QObject
26
{
27
        Q_OBJECT
28
public:
29
        DocIm(const QString& fname, const QString& enc, bool textOnly, gtWriter *w);
30
        ~DocIm();
31
        void write();
32
        bool isRunning();
33
private:
34
        QString filename;
35
        QString encoding;
36
        QString text;
37
        QString error;
38
        gtWriter *writer;
39
        QProcess *proc;
40
        bool failed;
41
        bool textOnly;
42
        void toUnicode();
43
 
44
private slots:
45
        void slotReadOutput();
46
        void slotReadErr();
47
};
48
 
4661 tsoots 49
#endif // DOCIM_H