author | pohly <pohly> | 2004-08-24 20:52:45 (UTC) |
---|---|---|
committer | pohly <pohly> | 2004-08-24 20:52:45 (UTC) |
commit | 73253e93327cf4ef0932de1b4afb56af22a0f37e (patch) (unidiff) | |
tree | 1c9a7a6dd3341e036a894d348a3372525d29acec /noncore/apps/opie-reader/plucker_base.h | |
parent | e90847c784c48bd21bf8768cb38edb853b832697 (diff) | |
download | opie-73253e93327cf4ef0932de1b4afb56af22a0f37e.zip opie-73253e93327cf4ef0932de1b4afb56af22a0f37e.tar.gz opie-73253e93327cf4ef0932de1b4afb56af22a0f37e.tar.bz2 |
updated source to opie-reader 0.7g
Diffstat (limited to 'noncore/apps/opie-reader/plucker_base.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/plucker_base.h | 36 |
1 files changed, 16 insertions, 20 deletions
diff --git a/noncore/apps/opie-reader/plucker_base.h b/noncore/apps/opie-reader/plucker_base.h index 131b999..8d74cc2 100644 --- a/noncore/apps/opie-reader/plucker_base.h +++ b/noncore/apps/opie-reader/plucker_base.h | |||
@@ -3,3 +3,2 @@ | |||
3 | 3 | ||
4 | #include "useqpe.h" | ||
5 | #include "CExpander.h" | 4 | #include "CExpander.h" |
@@ -11,2 +10,3 @@ | |||
11 | #include "Navigation.h" | 10 | #include "Navigation.h" |
11 | #include "hrule.h" | ||
12 | 12 | ||
@@ -29,6 +29,8 @@ class QWidget; | |||
29 | #endif | 29 | #endif |
30 | class QString; | ||
30 | 31 | ||
31 | class CPlucker_base : public CExpander, public Cpdb | 32 | class CPlucker_base : public Cpdb |
32 | { | 33 | { |
33 | protected: | 34 | protected: |
35 | static const UInt8 continuation_bit; | ||
34 | virtual void setbuffersize() = 0; | 36 | virtual void setbuffersize() = 0; |
@@ -45,3 +47,3 @@ protected: | |||
45 | #endif | 47 | #endif |
46 | size_t textlength, m_lastBreak; | 48 | size_t textlength, m_lastBreak, m_offset; |
47 | UInt16 uid; | 49 | UInt16 uid; |
@@ -61,3 +63,3 @@ protected: | |||
61 | size_t bufferpos; | 63 | size_t bufferpos; |
62 | UInt16 bufferrec; | 64 | int bufferrec; |
63 | CPlucker_record0 hdr0; | 65 | CPlucker_record0 hdr0; |
@@ -66,4 +68,7 @@ protected: | |||
66 | bool expand(int); | 68 | bool expand(int); |
67 | void UnZip(UInt8*, size_t, UInt8*, size_t); | 69 | static void UnZip(UInt8*, size_t, UInt8*, size_t); |
68 | void UnDoc(UInt8*, size_t, UInt8*, size_t); | 70 | static void UnDoc(UInt8*, size_t, UInt8*, size_t); |
71 | |||
72 | void (*m_decompress)(UInt8*, size_t, UInt8*, size_t); | ||
73 | void (*getdecompressor(const QString& _s))(UInt8*, size_t, UInt8*, size_t); | ||
69 | #ifdef LOCALPICTURES | 74 | #ifdef LOCALPICTURES |
@@ -77,12 +82,3 @@ protected: | |||
77 | public: | 82 | public: |
78 | #ifdef USEQPE | 83 | QString about(); |
79 | void suspend() | ||
80 | { | ||
81 | CExpander::suspend(fin); | ||
82 | } | ||
83 | void unsuspend() | ||
84 | { | ||
85 | CExpander::unsuspend(fin); | ||
86 | } | ||
87 | #endif | ||
88 | QImage* getPicture(unsigned long tgt); | 84 | QImage* getPicture(unsigned long tgt); |
@@ -96,3 +92,3 @@ protected: | |||
96 | int getch(); | 92 | int getch(); |
97 | void getch(tchar&, CStyle&); | 93 | void getch(tchar&, CStyle&, unsigned long& pos); |
98 | unsigned int locate(); | 94 | unsigned int locate(); |
@@ -100,3 +96,3 @@ protected: | |||
100 | CList<Bkmk>* getbkmklist(); | 96 | CList<Bkmk>* getbkmklist(); |
101 | linkType hyperlink(unsigned int n, QString&); | 97 | linkType hyperlink(unsigned int, unsigned int, QString&, QString&); |
102 | MarkupType PreferredMarkup() | 98 | MarkupType PreferredMarkup() |
@@ -107,4 +103,4 @@ protected: | |||
107 | void writeposn(size_t posn) { m_nav.writeposn(posn); } | 103 | void writeposn(size_t posn) { m_nav.writeposn(posn); } |
108 | bool forward(size_t& loc) { return m_nav.forward(loc); } | 104 | linkType forward(size_t& loc) { return (m_nav.forward(loc)) ? eLink : eNone; } |
109 | bool back(size_t& loc) { return m_nav.back(loc); } | 105 | linkType back(size_t& loc) { return (m_nav.back(loc)) ? eLink : eNone; } |
110 | bool hasnavigation() { return true; } | 106 | bool hasnavigation() { return true; } |