summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-reader/CEncoding.h
Side-by-side diff
Diffstat (limited to 'noncore/apps/opie-reader/CEncoding.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-reader/CEncoding.h21
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
@@ -5,2 +5,4 @@
+#define MAX_ENCODING 6
+
class CEncoding : public CCharacterSource
@@ -10,2 +12,3 @@ class CEncoding : public CCharacterSource
CExpander* parent;
+ linkType hyperlink(unsigned int n, QString& t) { return parent->hyperlink(n,t); }
public:
@@ -52,2 +55,20 @@ public:
+#include "CEncoding_tables.h"
+
+class CGeneral8Bit : public CEncoding
+{
+ int m_index;
+ public:
+ CGeneral8Bit(int _i) : m_index(_i)
+ {
+// qDebug("8Bit:%d", _i);
+// qDebug("%s", unicodetable::iterator(_i)->mime);
+ }
+ void getch(tchar& ch, CStyle& sty)
+ {
+ parent->getch(ch, sty);
+ ch = unicodetable::unicodevalue(m_index, ch);
+ }
+};
+
#endif