10 #include "pluginapi.h"
17 extern "C" PLUGIN_API
void GetText(QString filename, QString encoding,
bool textOnly,
gtWriter *writer);
19 extern "C" PLUGIN_API QString FileFormatName();
21 extern "C" PLUGIN_API QStringList FileExtensions();
27 typedef unsigned int UT_uint32;
28 typedef unsigned short UT_uint16;
32 typedef unsigned char Byte;
33 typedef UT_uint16 Word;
34 typedef UT_uint32 DWord;
37 #define RECORD_SIZE_MAX 4096
38 #define BUFFER_SIZE 4096
41 #define DOC_CREATOR "REAd"
42 #define DOC_TYPE "TEXt"
44 #define dmDBNameLength 32
59 char name[ dmDBNameLength ];
65 DWord modificationNumber;
78 #define PDB_HEADER_SIZE 78
79 #define PDB_RECORD_HEADER_SIZE 8
94 Byte buf[BUFFER_SIZE];
99 #define GET_Word(f,n) { fread( &n, 2, 1, f ); n = swap_Word ( n ); }
100 #define GET_DWord(f,n) { fread( &n, 4, 1, f ); n = swap_DWord( n ); }
121 PdbIm(
const QString& fname,
const QString& enc,
gtWriter *w);
142 void loadFile(QString fname);
149 Word swap_Word(Word r);
153 DWord swap_DWord(DWord r);
156 void uncompress(
buffer *m_buf);
void write()
Write data into Scribus text frame. User should specify encoding of the imported text - it's recoded ...
Definition: pdbim.cpp:70
Definition: gtwriter.h:38
PDB Document record. 16 bytes total.
Definition: pdbim.h:83
PdbIm(const QString &fname, const QString &enc, gtWriter *w)
Parse and decode the PDB file.
Definition: pdbim.cpp:58
Definition: gtparagraphstyle.h:51
Binary buffer.
Definition: pdbim.h:93
An import filter for Palm Documents (PDB files). PDB documents are simple non-formatted texts in bina...
Definition: pdbim.h:114