Back to index

scribus-ng  1.3.4.dfsg+svn20071115
docim.h
Go to the documentation of this file.
00001 /*
00002 For general Scribus (>=1.3.2) copyright and licensing information please refer
00003 to the COPYING file provided with the program. Following this notice may exist
00004 a copyright and/or license notice that predates the release of Scribus 1.3.2
00005 for which a new license (GPL+exception) is in place.
00006 */
00007 #ifndef DOCIM_H
00008 #define DOCIM_H
00009 
00010 #include "scconfig.h"
00011 
00012 #include "pluginapi.h"
00013 #include <qobject.h>
00014 #include <qstringlist.h>
00015 
00016 class gtWriter;
00017 class QProcess;
00018 
00019 extern "C" PLUGIN_API void GetText(QString filename, QString encoding, bool textOnly, gtWriter *writer);
00020 
00024 extern "C" PLUGIN_API QString FileFormatName();
00025 
00026 extern "C" PLUGIN_API QStringList FileExtensions();
00027 
00028 class DocIm : public QObject
00029 {
00030        Q_OBJECT
00031 public:
00032        DocIm(const QString& fname, const QString& enc, bool textOnly, gtWriter *w);
00033        ~DocIm();
00034        void write();
00035        bool isRunning();
00036 private:
00037        QString filename;
00038        QString encoding;
00039        QString text;
00040        QString error;
00041        gtWriter *writer;
00042        QProcess *proc;
00043        bool failed;
00044        bool textOnly;
00045        void toUnicode();
00046 };
00047 
00048 #endif // DOCIM_H