Subversion Repositories Scribus

Rev

Rev 455 | Rev 766 | Go to most recent revision | Details | Compare with Previous | 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:
456 fschmid 16
        TxtIm(const QString& fname, const QString& enc, bool textOnly, gtWriter *w);
364 Franz 17
        ~TxtIm();
18
        void write();
19
private:
20
        QString filename;
21
        QString encoding;
22
        QString text;
23
        gtWriter *writer;
456 fschmid 24
        bool textOnly;
364 Franz 25
        void loadText();
26
        void toUnicode();
27
};
28
 
29
#endif // TXTIM_H