Subversion Repositories Scribus

Rev

Rev 5093 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4430 cbradney 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
*/
364 Franz 7
#ifndef TXTIM_H
8
#define TXTIM_H
9
 
2986 craig 10
#include "pluginapi.h"
364 Franz 11
#include "gtwriter.h"
12
 
2986 craig 13
extern "C" PLUGIN_API void GetText(QString filename, QString encoding, bool textOnly, gtWriter *writer);
364 Franz 14
 
2986 craig 15
extern "C" PLUGIN_API QString FileFormatName();
364 Franz 16
 
2986 craig 17
extern "C" PLUGIN_API QStringList FileExtensions();
364 Franz 18
 
11381 jghali 19
class QCString;
20
 
364 Franz 21
class TxtIm
22
{
23
public:
456 fschmid 24
        TxtIm(const QString& fname, const QString& enc, bool textOnly, gtWriter *w);
364 Franz 25
        ~TxtIm();
26
        void write();
27
private:
28
        QString filename;
29
        QString encoding;
30
        QString text;
31
        gtWriter *writer;
456 fschmid 32
        bool textOnly;
364 Franz 33
        void loadText();
11381 jghali 34
        QString toUnicode(const QCString& rawText);
364 Franz 35
};
36
 
37
#endif // TXTIM_H