Subversion Repositories Scribus

Rev

Rev 455 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
364 Franz 1
#ifndef TXTIM_H
2
#define TXTIM_H
3
 
4
#include <scribus.h>
5
#include "gtwriter.h"
6
 
7
extern "C" void GetText(QString filename, QString encoding, bool textOnly, gtWriter *writer);
8
 
9
extern "C" QString FileFormatName();
10
 
11
extern "C" QStringList FileExtensions();
12
 
13
class TxtIm
14
{
15
public:
16
        TxtIm(const QString& fname, const QString& enc, gtWriter *w);
17
        ~TxtIm();
18
        void write();
19
private:
20
        QString filename;
21
        QString encoding;
22
        QString text;
23
        gtWriter *writer;
24
        void loadText();
25
        void toUnicode();
26
};
27
 
28
#endif // TXTIM_H