author | groucho <groucho> | 2003-05-07 14:07:19 (UTC) |
---|---|---|
committer | groucho <groucho> | 2003-05-07 14:07:19 (UTC) |
commit | b836e3690fbe639b95041999c800d86280985451 (patch) (side-by-side diff) | |
tree | d5a23427be56e4276a8b2ad8409c1ed22ac2c30a /noncore/apps/opie-reader/plucker_base.h | |
parent | 4619398b4712062e65d1919156edea38785c590e (diff) | |
download | opie-b836e3690fbe639b95041999c800d86280985451.zip opie-b836e3690fbe639b95041999c800d86280985451.tar.gz opie-b836e3690fbe639b95041999c800d86280985451.tar.bz2 |
*** empty log message ***
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.h | 119 |
1 files changed, 0 insertions, 119 deletions
diff --git a/noncore/apps/opie-reader/plucker_base.h b/noncore/apps/opie-reader/plucker_base.h deleted file mode 100644 index 131b999..0000000 --- a/noncore/apps/opie-reader/plucker_base.h +++ b/dev/null @@ -1,119 +0,0 @@ -#ifndef __PLUCKER_BASE_H -#define __PLUCKER_BASE_H - -#include "useqpe.h" -#include "CExpander.h" -#include <zlib.h> -#include "ztxt.h" -#include "pdb.h" -#include "CBuffer.h" -#include "my_list.h" -#include "Navigation.h" - -struct CPlucker_record0 -{ - UInt16 uid; - UInt16 version; - UInt16 nRecords; -}; - -struct CPluckerbkmk -{ - UInt32 offset; - tchar title[MAX_BMRK_LENGTH]; -}; - -#ifdef LOCALPICTURES -class QScrollView; -class QWidget; -#endif - -class CPlucker_base : public CExpander, public Cpdb -{ -protected: - virtual void setbuffersize() = 0; - virtual void GetHeader(UInt16&, UInt16&, UInt32&, UInt8&, UInt8&) = 0; - virtual int HeaderSize() = 0; - unsigned short finduid(unsigned short); - char* geturl(UInt16); - void Expand(UInt32, UInt8, UInt8*, UInt32); - CList<unsigned long> visited; - bool m_lastIsBreak; -#ifdef LOCALPICTURES - QScrollView* m_viewer; - QWidget* m_picture; -#endif - size_t textlength, m_lastBreak; - UInt16 uid; - int m_nextPara, m_nextParaIndex; - CBufferFace<UInt16> m_ParaOffsets; - CBufferFace<UInt16> m_ParaAttrs; - UInt16 m_nParas; - CStyle mystyle; -// bool bInit; - UInt32 buffersize; - UInt32 compressedbuffersize; - UInt32 buffercontent; - UInt8* expandedtextbuffer; - UInt8* compressedtextbuffer; -// char* urls; -// size_t urlsize; - size_t bufferpos; - UInt16 bufferrec; - CPlucker_record0 hdr0; - bool m_bufferisreserved; - size_t currentpos; - bool expand(int); - void UnZip(UInt8*, size_t, UInt8*, size_t); - void UnDoc(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: -#ifdef USEQPE - void suspend() - { - CExpander::suspend(fin); - } - void unsuspend() - { - CExpander::unsuspend(fin); - } -#endif - QImage* getPicture(unsigned long tgt); - void sizes(unsigned long& _file, unsigned long& _text); - bool hasrandomaccess() { return true; } - virtual ~CPlucker_base(); - CPlucker_base(); - int OpenFile(const char *src); - virtual tchar getch(bool) = 0; - tchar getch_base(bool); - int getch(); - void getch(tchar&, CStyle&); - unsigned int locate(); - void locate(unsigned int n); - CList<Bkmk>* getbkmklist(); - linkType hyperlink(unsigned int n, QString&); - MarkupType PreferredMarkup() - { - return cNONE; - } - void saveposn(size_t posn) { m_nav.saveposn(posn); } - void writeposn(size_t posn) { m_nav.writeposn(posn); } - bool forward(size_t& loc) { return m_nav.forward(loc); } - bool back(size_t& loc) { return m_nav.back(loc); } - 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; -}; - -#endif |