Diffstat (limited to 'noncore/apps/opie-reader/Aportis.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/Aportis.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/noncore/apps/opie-reader/Aportis.h b/noncore/apps/opie-reader/Aportis.h index 08016f4..1ca5e73 100644 --- a/noncore/apps/opie-reader/Aportis.h +++ b/noncore/apps/opie-reader/Aportis.h | |||
@@ -41,4 +41,12 @@ struct tDocRecord0 { | |||
41 | }; | 41 | }; |
42 | 42 | ||
43 | struct PeanutHeader | ||
44 | { | ||
45 | UInt16 Version; | ||
46 | UInt8 Junk1[6]; | ||
47 | UInt16 Records; | ||
48 | UInt8 Junk2[106]; | ||
49 | }; | ||
50 | |||
43 | ////////////// utilities ////////////////////////////////////// | 51 | ////////////// utilities ////////////////////////////////////// |
44 | 52 | ||
@@ -54,4 +62,6 @@ inline DWORD SwapLong(DWORD r) | |||
54 | 62 | ||
55 | class Aportis : public CExpander, Cpdb { | 63 | class Aportis : public CExpander, Cpdb { |
64 | bool peanutfile; | ||
65 | void dePeanut(int&); | ||
56 | DWORD dwLen; | 66 | DWORD dwLen; |
57 | WORD nRecs2; | 67 | WORD nRecs2; |
@@ -79,4 +89,8 @@ public: | |||
79 | virtual void locate(unsigned int n); | 89 | virtual void locate(unsigned int n); |
80 | virtual CList<Bkmk>* getbkmklist(); | 90 | virtual CList<Bkmk>* getbkmklist(); |
91 | virtual MarkupType PreferredMarkup() | ||
92 | { | ||
93 | return (peanutfile) ? cPML : cTEXT; | ||
94 | } | ||
81 | private: | 95 | private: |
82 | bool refreshbuffer(); | 96 | bool refreshbuffer(); |