author | llornkcor <llornkcor> | 2002-09-14 02:19:09 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-09-14 02:19:09 (UTC) |
commit | 2d0c1ffcb39f9fac8193ed2e9e93794de0bd7975 (patch) (unidiff) | |
tree | eeed16b5f80dd5883991a7a06133f5f7a6936256 /noncore/apps/opie-reader/ztxt.h | |
parent | 5a95ed6a000a56849b8f093deea500214856c626 (diff) | |
download | opie-2d0c1ffcb39f9fac8193ed2e9e93794de0bd7975.zip opie-2d0c1ffcb39f9fac8193ed2e9e93794de0bd7975.tar.gz opie-2d0c1ffcb39f9fac8193ed2e9e93794de0bd7975.tar.bz2 |
update by Tim
Diffstat (limited to 'noncore/apps/opie-reader/ztxt.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/ztxt.h | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/noncore/apps/opie-reader/ztxt.h b/noncore/apps/opie-reader/ztxt.h index 6352cfc..7be45c0 100644 --- a/noncore/apps/opie-reader/ztxt.h +++ b/noncore/apps/opie-reader/ztxt.h | |||
@@ -2,8 +2,7 @@ | |||
2 | #define __ztxt_h | 2 | #define __ztxt_h |
3 | 3 | ||
4 | #include "CExpander.h" | 4 | #include "CExpander.h" |
5 | #include "zlib/zlib.h" | 5 | #include <zlib.h> |
6 | //#include <zlib.h> | ||
7 | #include "pdb.h" | 6 | #include "pdb.h" |
8 | /* | 7 | /* |
9 | * Stuff common to both Weasel Reader and makeztxt | 8 | * Stuff common to both Weasel Reader and makeztxt |
@@ -77,27 +76,30 @@ class ztxt : public CExpander, Cpdb | |||
77 | void home(); | 76 | void home(); |
78 | public: | 77 | public: |
79 | virtual void sizes(unsigned long& _file, unsigned long& _text) | 78 | virtual void sizes(unsigned long& _file, unsigned long& _text) |
80 | { | 79 | { |
81 | _file = file_length; | 80 | _file = file_length; |
82 | _text = ntohl(hdr0.size); | 81 | _text = ntohl(hdr0.size); |
83 | } | 82 | } |
84 | virtual bool hasrandomaccess() { return (hdr0.randomAccess != 0); } | 83 | virtual bool hasrandomaccess() { return (hdr0.randomAccess != 0); } |
85 | virtual ~ztxt() | 84 | virtual ~ztxt() |
86 | { | 85 | { |
87 | if (expandedtextbuffer != NULL) delete [] expandedtextbuffer; | 86 | if (expandedtextbuffer != NULL) delete [] expandedtextbuffer; |
88 | if (compressedtextbuffer != NULL) delete [] compressedtextbuffer; | 87 | if (compressedtextbuffer != NULL) delete [] compressedtextbuffer; |
89 | if (bInit) | 88 | if (bInit) |
90 | { | 89 | { |
91 | inflateEnd(&zstream); | 90 | inflateEnd(&zstream); |
92 | } | 91 | } |
93 | } | 92 | } |
94 | ztxt(); | 93 | ztxt(); |
95 | virtual int openfile(const char *src); | 94 | virtual int openfile(const char *src); |
96 | virtual int getch(); | 95 | virtual int getch(); |
97 | virtual unsigned int locate(); | 96 | virtual unsigned int locate(); |
98 | virtual void locate(unsigned int n); | 97 | virtual void locate(unsigned int n); |
99 | virtual CList<Bkmk>* getbkmklist(); | 98 | virtual CList<Bkmk>* getbkmklist(); |
99 | virtual MarkupType PreferredMarkup() | ||
100 | { | ||
101 | return cTEXT; | ||
102 | } | ||
100 | }; | 103 | }; |
101 | 104 | ||
102 | #endif | 105 | #endif |
103 | |||