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 | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/noncore/apps/opie-reader/plucker_base.h b/noncore/apps/opie-reader/plucker_base.h index 8d74cc2..2b57986 100644 --- a/noncore/apps/opie-reader/plucker_base.h +++ b/noncore/apps/opie-reader/plucker_base.h | |||
@@ -53,37 +53,37 @@ protected: | |||
53 | UInt16 m_nParas; | 53 | UInt16 m_nParas; |
54 | CStyle mystyle; | 54 | CStyle mystyle; |
55 | // bool bInit; | 55 | // bool bInit; |
56 | UInt32 buffersize; | 56 | UInt32 buffersize; |
57 | UInt32 compressedbuffersize; | 57 | UInt32 compressedbuffersize; |
58 | UInt32 buffercontent; | 58 | UInt32 buffercontent; |
59 | UInt8* expandedtextbuffer; | 59 | UInt8* expandedtextbuffer; |
60 | UInt8* compressedtextbuffer; | 60 | UInt8* compressedtextbuffer; |
61 | // char* urls; | 61 | // char* urls; |
62 | // size_t urlsize; | 62 | // size_t urlsize; |
63 | size_t bufferpos; | 63 | size_t bufferpos; |
64 | int bufferrec; | 64 | int bufferrec; |
65 | CPlucker_record0 hdr0; | 65 | CPlucker_record0 hdr0; |
66 | bool m_bufferisreserved; | 66 | bool m_bufferisreserved; |
67 | size_t currentpos; | 67 | size_t currentpos; |
68 | bool expand(int); | 68 | bool expand(int); |
69 | static void UnZip(UInt8*, size_t, UInt8*, size_t); | 69 | //static void UnZip(UInt8*, size_t, UInt8*, size_t); |
70 | static void UnDoc(UInt8*, size_t, UInt8*, size_t); | 70 | static size_t UnDoc(UInt8*, size_t, UInt8*, size_t); |
71 | |||
72 | size_t (*m_decompress)(UInt8*, size_t, UInt8*, size_t); | ||
71 | 73 | ||
72 | void (*m_decompress)(UInt8*, size_t, UInt8*, size_t); | ||
73 | void (*getdecompressor(const QString& _s))(UInt8*, size_t, UInt8*, size_t); | ||
74 | #ifdef LOCALPICTURES | 74 | #ifdef LOCALPICTURES |
75 | void showimg(UInt16 tgt); | 75 | void showimg(UInt16 tgt); |
76 | #endif | 76 | #endif |
77 | QImage* getimg(UInt16 tgt); | 77 | QImage* getimg(UInt16 tgt); |
78 | QImage* expandimg(UInt16 tgt, bool border=false); | 78 | QImage* expandimg(UInt16 tgt, bool border=false); |
79 | void home(); | 79 | void home(); |
80 | virtual int bgetch() = 0; | 80 | virtual int bgetch() = 0; |
81 | CNavigation m_nav; | 81 | CNavigation m_nav; |
82 | public: | 82 | public: |
83 | QString about(); | 83 | QString about(); |
84 | QImage* getPicture(unsigned long tgt); | 84 | QImage* getPicture(unsigned long tgt); |
85 | void sizes(unsigned long& _file, unsigned long& _text); | 85 | void sizes(unsigned long& _file, unsigned long& _text); |
86 | bool hasrandomaccess() { return true; } | 86 | bool hasrandomaccess() { return true; } |
87 | virtual ~CPlucker_base(); | 87 | virtual ~CPlucker_base(); |
88 | CPlucker_base(); | 88 | CPlucker_base(); |
89 | int OpenFile(const char *src); | 89 | int OpenFile(const char *src); |
@@ -97,19 +97,20 @@ protected: | |||
97 | linkType hyperlink(unsigned int, unsigned int, QString&, QString&); | 97 | linkType hyperlink(unsigned int, unsigned int, QString&, QString&); |
98 | MarkupType PreferredMarkup() | 98 | MarkupType PreferredMarkup() |
99 | { | 99 | { |
100 | return cNONE; | 100 | return cNONE; |
101 | } | 101 | } |
102 | void saveposn(size_t posn) { m_nav.saveposn(posn); } | 102 | void saveposn(size_t posn) { m_nav.saveposn(posn); } |
103 | void writeposn(size_t posn) { m_nav.writeposn(posn); } | 103 | void writeposn(size_t posn) { m_nav.writeposn(posn); } |
104 | linkType forward(size_t& loc) { return (m_nav.forward(loc)) ? eLink : eNone; } | 104 | linkType forward(size_t& loc) { return (m_nav.forward(loc)) ? eLink : eNone; } |
105 | linkType back(size_t& loc) { return (m_nav.back(loc)) ? eLink : eNone; } | 105 | linkType back(size_t& loc) { return (m_nav.back(loc)) ? eLink : eNone; } |
106 | bool hasnavigation() { return true; } | 106 | bool hasnavigation() { return true; } |
107 | void setSaveData(unsigned char*& data, unsigned short& len, unsigned char* src, unsigned short srclen); | 107 | void setSaveData(unsigned char*& data, unsigned short& len, unsigned char* src, unsigned short srclen); |
108 | void putSaveData(unsigned char*& src, unsigned short& srclen); | 108 | void putSaveData(unsigned char*& src, unsigned short& srclen); |
109 | 109 | ||
110 | virtual bool CorrectDecoder() = 0; | 110 | virtual bool CorrectDecoder() = 0; |
111 | // virtual void setlink(QString&, const QString&) = 0; | 111 | // virtual void setlink(QString&, const QString&) = 0; |
112 | virtual QImage* imagefromdata(UInt8*, UInt32) = 0; | 112 | virtual QImage* imagefromdata(UInt8*, UInt32) = 0; |
113 | QString getTableAsHtml(unsigned long loc); | ||
113 | }; | 114 | }; |
114 | 115 | ||
115 | #endif | 116 | #endif |