From 02e0afd5a9d78f997df5e498550e5b2832ca5aa0 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 15 May 2000 14:19:52 +0000 Subject: Support for different character sets for each style. --- include/Platform.h | 2 +- include/Scintilla.h | 8 ++++++++ include/Scintilla.iface | 8 ++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/Platform.h b/include/Platform.h index 24c6b8854..5a87c64fe 100644 --- a/include/Platform.h +++ b/include/Platform.h @@ -210,7 +210,7 @@ public: Font(); ~Font(); - void Create(const char *faceName, int size, bool bold=false, bool italic=false); + void Create(const char *faceName, int characterSet, int size, bool bold, bool italic); void Release(); FontID GetID() { return id; } diff --git a/include/Scintilla.h b/include/Scintilla.h index 2a7f51613..8e52ba59e 100644 --- a/include/Scintilla.h +++ b/include/Scintilla.h @@ -160,6 +160,10 @@ extern "C" { #define STYLE_CONTROLCHAR 36 #define STYLE_MAX 127 +#define SC_CHARSET_ANSI 0 +#define SC_CHARSET_DEFAULT 1 +#define SC_CHARSET_RUSSIAN 204 + #define SCI_STYLECLEARALL SCI_START + 50 #define SCI_STYLESETFORE SCI_START + 51 #define SCI_STYLESETBACK SCI_START + 52 @@ -170,6 +174,7 @@ extern "C" { #define SCI_STYLESETEOLFILLED SCI_START + 57 #define SCI_STYLERESETDEFAULT SCI_START + 58 #define SCI_STYLESETUNDERLINE SCI_START + 59 +#define SCI_STYLESETCHARACTERSET SCI_START + 66 #define SCI_SETSELFORE SCI_START + 67 #define SCI_SETSELBACK SCI_START + 68 @@ -344,6 +349,9 @@ extern "C" { #define SCI_SETZOOM SCI_START + 373 #define SCI_GETZOOM SCI_START + 374 +#define SCI_ADDREFDOC SCI_START + 375 +#define SCI_RELEASEDOC SCI_START + 376 + // GTK+ Specific #define SCI_GRABFOCUS SCI_START + 400 diff --git a/include/Scintilla.iface b/include/Scintilla.iface index af4a9583b..5187070c5 100644 --- a/include/Scintilla.iface +++ b/include/Scintilla.iface @@ -280,6 +280,9 @@ fun void StyleResetDefault=2058(,) # Set a style to be underlined or not. set void StyleSetUnderline=2059(int style, bool underline) +# Set the character set of the font in a style. +set void StyleSetCharacterSet=2066(int style, int characterSet) + # Set the foreground colour of the selection and whether to use this setting. fun void SetSelFore=2067(bool useSetting, colour fore) @@ -701,6 +704,11 @@ set void SetZoom=2373(int zoom,) # Retrieve the zoom level. get int GetZoom=2374(,) +# Extend life of document. +fun void AddRefDoc=2375(, int doc) +# Release a reference to the document, deleting document if it fades to black. +fun void ReleaseDoc=2376(, int doc) + # Set the focus to this Scintilla widget. fun void GrabFocus=2400(,) -- cgit v1.2.3