-rw-r--r-- | noncore/apps/opie-reader/ZText.h | 4 | ||||
-rw-r--r-- | noncore/apps/opie-reader/plucker.h | 24 | ||||
-rw-r--r-- | noncore/apps/opie-reader/ztxt.h | 32 |
3 files changed, 30 insertions, 30 deletions
diff --git a/noncore/apps/opie-reader/ZText.h b/noncore/apps/opie-reader/ZText.h index 9e72161..debfe8c 100644 --- a/noncore/apps/opie-reader/ZText.h +++ b/noncore/apps/opie-reader/ZText.h | |||
@@ -2,5 +2,5 @@ | |||
2 | #define __Text_h | 2 | #define __Text_h |
3 | #include <stdio.h> | 3 | #include <stdio.h> |
4 | #include <zlib.h> | 4 | #include "zlib/zlib.h" |
5 | #include <sys/stat.h> | 5 | #include <sys/stat.h> |
6 | 6 | ||
@@ -34,5 +34,5 @@ public: | |||
34 | virtual MarkupType PreferredMarkup() | 34 | virtual MarkupType PreferredMarkup() |
35 | { | 35 | { |
36 | return cTEXT; | 36 | return cTEXT; |
37 | } | 37 | } |
38 | }; | 38 | }; |
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 | |||
@@ -3,5 +3,5 @@ | |||
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" |
@@ -59,15 +59,15 @@ class CPlucker : public CExpander, Cpdb | |||
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); |
@@ -79,7 +79,7 @@ class CPlucker : public CExpander, Cpdb | |||
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 | ||
diff --git a/noncore/apps/opie-reader/ztxt.h b/noncore/apps/opie-reader/ztxt.h index 7be45c0..20558a6 100644 --- a/noncore/apps/opie-reader/ztxt.h +++ b/noncore/apps/opie-reader/ztxt.h | |||
@@ -3,5 +3,5 @@ | |||
3 | 3 | ||
4 | #include "CExpander.h" | 4 | #include "CExpander.h" |
5 | #include <zlib.h> | 5 | #include "zlib/zlib.h" |
6 | #include "pdb.h" | 6 | #include "pdb.h" |
7 | /* | 7 | /* |
@@ -77,18 +77,18 @@ class ztxt : public CExpander, Cpdb | |||
77 | public: | 77 | public: |
78 | virtual void sizes(unsigned long& _file, unsigned long& _text) | 78 | virtual void sizes(unsigned long& _file, unsigned long& _text) |
79 | { | 79 | { |
80 | _file = file_length; | 80 | _file = file_length; |
81 | _text = ntohl(hdr0.size); | 81 | _text = ntohl(hdr0.size); |
82 | } | 82 | } |
83 | virtual bool hasrandomaccess() { return (hdr0.randomAccess != 0); } | 83 | virtual bool hasrandomaccess() { return (hdr0.randomAccess != 0); } |
84 | virtual ~ztxt() | 84 | virtual ~ztxt() |
85 | { | 85 | { |
86 | if (expandedtextbuffer != NULL) delete [] expandedtextbuffer; | 86 | if (expandedtextbuffer != NULL) delete [] expandedtextbuffer; |
87 | if (compressedtextbuffer != NULL) delete [] compressedtextbuffer; | 87 | if (compressedtextbuffer != NULL) delete [] compressedtextbuffer; |
88 | if (bInit) | 88 | if (bInit) |
89 | { | 89 | { |
90 | inflateEnd(&zstream); | 90 | inflateEnd(&zstream); |
91 | } | 91 | } |
92 | } | 92 | } |
93 | ztxt(); | 93 | ztxt(); |
94 | virtual int openfile(const char *src); | 94 | virtual int openfile(const char *src); |
@@ -98,7 +98,7 @@ class ztxt : public CExpander, Cpdb | |||
98 | virtual CList<Bkmk>* getbkmklist(); | 98 | virtual CList<Bkmk>* getbkmklist(); |
99 | virtual MarkupType PreferredMarkup() | 99 | virtual MarkupType PreferredMarkup() |
100 | { | 100 | { |
101 | return cTEXT; | 101 | return cTEXT; |
102 | } | 102 | } |
103 | }; | 103 | }; |
104 | 104 | ||