diff options
author | nyamatongwe <devnull@localhost> | 2003-01-12 04:02:43 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2003-01-12 04:02:43 +0000 |
commit | b9a72f1e42a8b75bbd30ccb6b58c06ea91552691 (patch) | |
tree | 0d044674b7e8558b555e1f8c3e0698bd2f2fa8dc /include | |
parent | ae33ce73c43277fd6fb87571201b4e2ecdc2ea64 (diff) | |
download | scintilla-mirror-b9a72f1e42a8b75bbd30ccb6b58c06ea91552691.tar.gz |
Additions from Yukihiro Nakai to enable DBCS mode on GTK+.
DBCS mode for Surface so that different font and text drawing code can be
invoked on GTK+.
Diffstat (limited to 'include')
-rw-r--r-- | include/Platform.h | 1 | ||||
-rw-r--r-- | include/Scintilla.h | 1 | ||||
-rw-r--r-- | include/Scintilla.iface | 3 |
3 files changed, 5 insertions, 0 deletions
diff --git a/include/Platform.h b/include/Platform.h index ee31063e3..9061449e2 100644 --- a/include/Platform.h +++ b/include/Platform.h @@ -329,6 +329,7 @@ public: virtual void FlushCachedState()=0; virtual void SetUnicodeMode(bool unicodeMode_)=0; + virtual void SetDBCSMode(int codePage)=0; }; /** diff --git a/include/Scintilla.h b/include/Scintilla.h index 74efc3f78..8df32be4c 100644 --- a/include/Scintilla.h +++ b/include/Scintilla.h @@ -83,6 +83,7 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam, #define SCI_SETTABWIDTH 2036 #define SCI_GETTABWIDTH 2121 #define SC_CP_UTF8 65001 +#define SC_CP_DBCS 1 #define SCI_SETCODEPAGE 2037 #define SCI_SETUSEPALETTE 2039 #define MARKER_MAX 31 diff --git a/include/Scintilla.iface b/include/Scintilla.iface index bb7ee0a15..bade44fd2 100644 --- a/include/Scintilla.iface +++ b/include/Scintilla.iface @@ -221,6 +221,9 @@ get int GetTabWidth=2121(,) # This is the same value as CP_UTF8 in Windows val SC_CP_UTF8=65001 +# The SC_CP_DBCS value can be used to indicate a DBCS mode for GTK+. +val SC_CP_DBCS=1 + # Set the code page used to interpret the bytes of the document as characters. # The SC_CP_UTF8 value can be used to enter Unicode mode. set void SetCodePage=2037(int codePage,) |