summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-reader/plucker_base.h
authorpohly <pohly>2005-05-05 14:39:33 (UTC)
committer pohly <pohly>2005-05-05 14:39:33 (UTC)
commit39fbfd5eb7e45d73d38e8a2ce9437a3d7e1b8e91 (patch) (side-by-side diff)
tree96e66fdc18dca4d4ab8611133e072f57dea224b9 /noncore/apps/opie-reader/plucker_base.h
parent279fc4fd1986074acbadd3a8e86fcf3968a8dd5c (diff)
downloadopie-39fbfd5eb7e45d73d38e8a2ce9437a3d7e1b8e91.zip
opie-39fbfd5eb7e45d73d38e8a2ce9437a3d7e1b8e91.tar.gz
opie-39fbfd5eb7e45d73d38e8a2ce9437a3d7e1b8e91.tar.bz2
new opie-reader sources with support for ArriereGo, Reb input and flite output plugins
Diffstat (limited to 'noncore/apps/opie-reader/plucker_base.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-reader/plucker_base.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/noncore/apps/opie-reader/plucker_base.h b/noncore/apps/opie-reader/plucker_base.h
index 8d74cc2..2b57986 100644
--- a/noncore/apps/opie-reader/plucker_base.h
+++ b/noncore/apps/opie-reader/plucker_base.h
@@ -57,29 +57,29 @@ protected:
UInt32 compressedbuffersize;
UInt32 buffercontent;
UInt8* expandedtextbuffer;
UInt8* compressedtextbuffer;
// char* urls;
// size_t urlsize;
size_t bufferpos;
int bufferrec;
CPlucker_record0 hdr0;
bool m_bufferisreserved;
size_t currentpos;
bool expand(int);
- static void UnZip(UInt8*, size_t, UInt8*, size_t);
- static void UnDoc(UInt8*, size_t, UInt8*, size_t);
+ //static void UnZip(UInt8*, size_t, UInt8*, size_t);
+ static size_t UnDoc(UInt8*, size_t, UInt8*, size_t);
+
+ size_t (*m_decompress)(UInt8*, size_t, UInt8*, size_t);
- void (*m_decompress)(UInt8*, size_t, UInt8*, size_t);
- void (*getdecompressor(const QString& _s))(UInt8*, size_t, UInt8*, size_t);
#ifdef LOCALPICTURES
void showimg(UInt16 tgt);
#endif
QImage* getimg(UInt16 tgt);
QImage* expandimg(UInt16 tgt, bool border=false);
void home();
virtual int bgetch() = 0;
CNavigation m_nav;
public:
QString about();
QImage* getPicture(unsigned long tgt);
void sizes(unsigned long& _file, unsigned long& _text);
@@ -101,15 +101,16 @@ protected:
}
void saveposn(size_t posn) { m_nav.saveposn(posn); }
void writeposn(size_t posn) { m_nav.writeposn(posn); }
linkType forward(size_t& loc) { return (m_nav.forward(loc)) ? eLink : eNone; }
linkType back(size_t& loc) { return (m_nav.back(loc)) ? eLink : eNone; }
bool hasnavigation() { return true; }
void setSaveData(unsigned char*& data, unsigned short& len, unsigned char* src, unsigned short srclen);
void putSaveData(unsigned char*& src, unsigned short& srclen);
virtual bool CorrectDecoder() = 0;
// virtual void setlink(QString&, const QString&) = 0;
virtual QImage* imagefromdata(UInt8*, UInt32) = 0;
+ QString getTableAsHtml(unsigned long loc);
};
#endif