Back to index

scribus-ng  1.3.4.dfsg+svn20071115
txtim.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 TXTIM_H
00008 #define TXTIM_H
00009 
00010 #include "pluginapi.h"
00011 #include "gtwriter.h"
00012 
00013 extern "C" PLUGIN_API void GetText(QString filename, QString encoding, bool textOnly, gtWriter *writer);
00014 
00015 extern "C" PLUGIN_API QString FileFormatName();
00016 
00017 extern "C" PLUGIN_API QStringList FileExtensions();
00018 
00019 class TxtIm 
00020 {
00021 public:
00022        TxtIm(const QString& fname, const QString& enc, bool textOnly, gtWriter *w);
00023        ~TxtIm();
00024        void write();
00025 private:
00026        QString filename;
00027        QString encoding;
00028        QString text;
00029        gtWriter *writer;
00030        bool textOnly;
00031        void loadText();
00032        void toUnicode();
00033 };
00034 
00035 #endif // TXTIM_H