Scribus
Open source desktop publishing at your fingertips
docim.h
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 <QBuffer>
14 #include <QObject>
15 #include <QStringList>
16 
17 class gtWriter;
18 class QProcess;
19 
20 extern "C" PLUGIN_API void GetText(QString filename, QString encoding, bool textOnly, gtWriter *writer);
21 
25 extern "C" PLUGIN_API QString FileFormatName();
26 
27 extern "C" PLUGIN_API QStringList FileExtensions();
28 
29 class DocIm : public QObject
30 {
31  Q_OBJECT
32 public:
33  DocIm(const QString& fname, const QString& enc, bool textOnly, gtWriter *w);
34  ~DocIm();
35  void write();
36  bool isRunning();
37 private:
38  QString filename;
39  QString encoding;
40  QBuffer textBuffer;
41  QBuffer errorBuffer;
42  gtWriter *writer;
43  QProcess *proc;
44  bool failed;
45  bool textOnly;
46 };
47 
48 #endif // DOCIM_H
Definition: gtwriter.h:38
Definition: docim.h:29