author | groucho <groucho> | 2003-05-07 09:01:39 (UTC) |
---|---|---|
committer | groucho <groucho> | 2003-05-07 09:01:39 (UTC) |
commit | 118d03d815a7615b9c53363218a7ac45b3f4c514 (patch) (side-by-side diff) | |
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 @@ -2,13 +2,16 @@ #define __CENCODING_H #include "CExpander.h" +#define MAX_ENCODING 6 + class CEncoding : public CCharacterSource { friend class CFilterChain; protected: CExpander* parent; + linkType hyperlink(unsigned int n, QString& t) { return parent->hyperlink(n,t); } public: CEncoding() : parent(NULL) {} void setparent(CExpander* p) { parent = p; } virtual ~CEncoding() {}; @@ -49,5 +52,23 @@ class CAscii : public CEncoding public: void getch(tchar& ch, CStyle& sty); }; +#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 |