Diffstat (limited to 'noncore/apps/opie-reader/plucker.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/plucker.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/noncore/apps/opie-reader/plucker.h b/noncore/apps/opie-reader/plucker.h index 84e855c..d3ca732 100644 --- a/noncore/apps/opie-reader/plucker.h +++ b/noncore/apps/opie-reader/plucker.h | |||
@@ -1,17 +1,17 @@ | |||
1 | #ifndef __plucker_h | 1 | #ifndef __plucker_h |
2 | #define __plucker_h | 2 | #define __plucker_h |
3 | 3 | ||
4 | #include "CExpander.h" | 4 | #include "CExpander.h" |
5 | #include <zlib.h> | 5 | #include "zlib/zlib.h" |
6 | #include "ztxt.h" | 6 | #include "ztxt.h" |
7 | #include "pdb.h" | 7 | #include "pdb.h" |
8 | #include "CBuffer.h" | 8 | #include "CBuffer.h" |
9 | 9 | ||
10 | struct CPlucker_dataRecord | 10 | struct CPlucker_dataRecord |
11 | { | 11 | { |
12 | UInt16 uid; | 12 | UInt16 uid; |
13 | UInt16 nParagraphs; | 13 | UInt16 nParagraphs; |
14 | UInt16 size; | 14 | UInt16 size; |
15 | UInt8 type; | 15 | UInt8 type; |
16 | UInt8 reserved; | 16 | UInt8 reserved; |
17 | }; | 17 | }; |
@@ -49,38 +49,38 @@ class CPlucker : public CExpander, Cpdb | |||
49 | size_t bufferpos; | 49 | size_t bufferpos; |
50 | UInt16 bufferrec; | 50 | UInt16 bufferrec; |
51 | CPlucker_record0 hdr0; | 51 | CPlucker_record0 hdr0; |
52 | size_t currentpos; | 52 | size_t currentpos; |
53 | bool expand(int); | 53 | bool expand(int); |
54 | void UnZip(size_t, UInt8*, UInt16); | 54 | void UnZip(size_t, UInt8*, UInt16); |
55 | void UnDoc(size_t, UInt8*, UInt16); | 55 | void UnDoc(size_t, UInt8*, UInt16); |
56 | void expandimg(UInt16 tgt); | 56 | void expandimg(UInt16 tgt); |
57 | void home(); | 57 | void home(); |
58 | int bgetch(); | 58 | int bgetch(); |
59 | public: | 59 | public: |
60 | virtual void sizes(unsigned long& _file, unsigned long& _text) | 60 | virtual void sizes(unsigned long& _file, unsigned long& _text) |
61 | { | 61 | { |
62 | _file = file_length; | 62 | _file = file_length; |
63 | _text = textlength; | 63 | _text = textlength; |
64 | //ntohl(hdr0.size); | 64 | //ntohl(hdr0.size); |
65 | } | 65 | } |
66 | virtual bool hasrandomaccess() { return true; } | 66 | virtual bool hasrandomaccess() { return true; } |
67 | virtual ~CPlucker() | 67 | virtual ~CPlucker() |
68 | { | 68 | { |
69 | if (expandedtextbuffer != NULL) delete [] expandedtextbuffer; | 69 | if (expandedtextbuffer != NULL) delete [] expandedtextbuffer; |
70 | if (compressedtextbuffer != NULL) delete [] compressedtextbuffer; | 70 | if (compressedtextbuffer != NULL) delete [] compressedtextbuffer; |
71 | } | 71 | } |
72 | CPlucker(); | 72 | CPlucker(); |
73 | virtual int openfile(const char *src); | 73 | virtual int openfile(const char *src); |
74 | virtual int getch(); | 74 | virtual int getch(); |
75 | virtual void getch(int&, CStyle&); | 75 | virtual void getch(int&, CStyle&); |
76 | virtual unsigned int locate(); | 76 | virtual unsigned int locate(); |
77 | virtual void locate(unsigned int n); | 77 | virtual void locate(unsigned int n); |
78 | virtual CList<Bkmk>* getbkmklist(); | 78 | virtual CList<Bkmk>* getbkmklist(); |
79 | virtual bool hyperlink(unsigned int n); | 79 | virtual bool hyperlink(unsigned int n); |
80 | virtual MarkupType PreferredMarkup() | 80 | virtual MarkupType PreferredMarkup() |
81 | { | 81 | { |
82 | return cNONE; | 82 | return cNONE; |
83 | } | 83 | } |
84 | }; | 84 | }; |
85 | 85 | ||
86 | #endif | 86 | #endif |