author | groucho <groucho> | 2003-05-07 09:01:39 (UTC) |
---|---|---|
committer | groucho <groucho> | 2003-05-07 09:01:39 (UTC) |
commit | 118d03d815a7615b9c53363218a7ac45b3f4c514 (patch) (unidiff) | |
tree | 356953e2413cddcec0f35bd47bb6439767da7051 /noncore/apps/opie-reader/CEncoding.h | |
parent | 00894537decf01c5a5cdc565b2740b5e67a2e90f (diff) | |
download | opie-118d03d815a7615b9c53363218a7ac45b3f4c514.zip opie-118d03d815a7615b9c53363218a7ac45b3f4c514.tar.gz opie-118d03d815a7615b9c53363218a7ac45b3f4c514.tar.bz2 |
Incorporated TimWs current source tree and make it compile
Diffstat (limited to 'noncore/apps/opie-reader/CEncoding.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/CEncoding.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/noncore/apps/opie-reader/CEncoding.h b/noncore/apps/opie-reader/CEncoding.h index 86562e7..463fba9 100644 --- a/noncore/apps/opie-reader/CEncoding.h +++ b/noncore/apps/opie-reader/CEncoding.h | |||
@@ -4,4 +4,6 @@ | |||
4 | #include "CExpander.h" | 4 | #include "CExpander.h" |
5 | 5 | ||
6 | #define MAX_ENCODING 6 | ||
7 | |||
6 | class CEncoding : public CCharacterSource | 8 | class CEncoding : public CCharacterSource |
7 | { | 9 | { |
@@ -9,4 +11,5 @@ class CEncoding : public CCharacterSource | |||
9 | protected: | 11 | protected: |
10 | CExpander* parent; | 12 | CExpander* parent; |
13 | linkType hyperlink(unsigned int n, QString& t) { return parent->hyperlink(n,t); } | ||
11 | public: | 14 | public: |
12 | CEncoding() : parent(NULL) {} | 15 | CEncoding() : parent(NULL) {} |
@@ -51,3 +54,21 @@ public: | |||
51 | }; | 54 | }; |
52 | 55 | ||
56 | #include "CEncoding_tables.h" | ||
57 | |||
58 | class CGeneral8Bit : public CEncoding | ||
59 | { | ||
60 | int m_index; | ||
61 | public: | ||
62 | CGeneral8Bit(int _i) : m_index(_i) | ||
63 | { | ||
64 | // qDebug("8Bit:%d", _i); | ||
65 | // qDebug("%s", unicodetable::iterator(_i)->mime); | ||
66 | } | ||
67 | void getch(tchar& ch, CStyle& sty) | ||
68 | { | ||
69 | parent->getch(ch, sty); | ||
70 | ch = unicodetable::unicodevalue(m_index, ch); | ||
71 | } | ||
72 | }; | ||
73 | |||
53 | #endif | 74 | #endif |