Diffstat (limited to 'noncore/apps/opie-reader/CEncoding.h') (more/less context) (show 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 |