From a303b404e82cd8d435efe7a726d74fb10a67cf6f Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 16 Apr 2014 12:47:39 +1000 Subject: Allow filtering of insertions. --- doc/ScintillaDoc.html | 61 ++++++++++++++++++++++++++++++++------------------- 1 file changed, 39 insertions(+), 22 deletions(-) (limited to 'doc/ScintillaDoc.html') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index e70b86ca0..b8789801f 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -82,7 +82,7 @@

Scintilla Documentation

-

Last edited 08 April 2014 NH

+

Last edited 16 April 2014 NH

There is an overview of the internal design of Scintilla.
@@ -413,6 +413,7 @@ SCI_ADDSTYLEDTEXT(int length, cell *s)
SCI_APPENDTEXT(int length, const char *s)
SCI_INSERTTEXT(int pos, const char *text)
+ SCI_CHANGEINSERTION(int length, const char *text)
SCI_CLEARALL
SCI_DELETERANGE(int pos, int deleteLength)
SCI_CLEARDOCUMENTSTYLE
@@ -546,6 +547,10 @@ the current position if pos is -1. If the current position is after the insertion point then it is moved along with its surrounding text but no scrolling is performed.

+

SCI_CHANGEINSERTION(int length, const char *text)
+ This may only be called from a SC_MOD_INSERTCHECK + notification handler and will change the text being inserted to that provided.

+

SCI_CLEARALL
Unless the document is read-only, this deletes all the text.

@@ -6791,7 +6796,7 @@ href="#SCI_POSITIONFROMLINE">SCI_POSITIONFROMLINE(lineNumber); SC_MOD_INSERTTEXT - 0x01 + 0x01 Text has been inserted into the document. @@ -6801,7 +6806,7 @@ href="#SCI_POSITIONFROMLINE">SCI_POSITIONFROMLINE(lineNumber); SC_MOD_DELETETEXT - 0x02 + 0x02 Text has been removed from the document. @@ -6811,7 +6816,7 @@ href="#SCI_POSITIONFROMLINE">SCI_POSITIONFROMLINE(lineNumber); SC_MOD_CHANGESTYLE - 0x04 + 0x04 A style change has occurred. @@ -6821,7 +6826,7 @@ href="#SCI_POSITIONFROMLINE">SCI_POSITIONFROMLINE(lineNumber); SC_MOD_CHANGEFOLD - 0x08 + 0x08 A folding change has occurred. @@ -6831,7 +6836,7 @@ href="#SCI_POSITIONFROMLINE">SCI_POSITIONFROMLINE(lineNumber); SC_PERFORMED_USER - 0x10 + 0x10 Information: the operation was done by the user. @@ -6841,7 +6846,7 @@ href="#SCI_POSITIONFROMLINE">SCI_POSITIONFROMLINE(lineNumber); SC_PERFORMED_UNDO - 0x20 + 0x20 Information: this was the result of an Undo. @@ -6851,7 +6856,7 @@ href="#SCI_POSITIONFROMLINE">SCI_POSITIONFROMLINE(lineNumber); SC_PERFORMED_REDO - 0x40 + 0x40 Information: this was the result of a Redo. @@ -6861,7 +6866,7 @@ href="#SCI_POSITIONFROMLINE">SCI_POSITIONFROMLINE(lineNumber); SC_MULTISTEPUNDOREDO - 0x80 + 0x80 This is part of a multi-step Undo or Redo transaction. @@ -6871,7 +6876,7 @@ href="#SCI_POSITIONFROMLINE">SCI_POSITIONFROMLINE(lineNumber); SC_LASTSTEPINUNDOREDO - 0x100 + 0x100 This is the final step in an Undo or Redo transaction. @@ -6881,7 +6886,7 @@ href="#SCI_POSITIONFROMLINE">SCI_POSITIONFROMLINE(lineNumber); SC_MOD_CHANGEMARKER - 0x200 + 0x200 One or more markers has changed in a line. @@ -6891,7 +6896,7 @@ href="#SCI_POSITIONFROMLINE">SCI_POSITIONFROMLINE(lineNumber); SC_MOD_BEFOREINSERT - 0x400 + 0x400 Text is about to be inserted into the document. @@ -6901,7 +6906,7 @@ href="#SCI_POSITIONFROMLINE">SCI_POSITIONFROMLINE(lineNumber); SC_MOD_BEFOREDELETE - 0x800 + 0x800 Text is about to be deleted from the document. @@ -6911,7 +6916,7 @@ href="#SCI_POSITIONFROMLINE">SCI_POSITIONFROMLINE(lineNumber); SC_MOD_CHANGEINDICATOR - 0x4000 + 0x4000 An indicator has been added or removed from a range of text. @@ -6921,7 +6926,7 @@ href="#SCI_POSITIONFROMLINE">SCI_POSITIONFROMLINE(lineNumber); SC_MOD_CHANGELINESTATE - 0x8000 + 0x8000 A line state has changed because SCI_SETLINESTATE was called. @@ -6932,7 +6937,7 @@ href="#SCI_POSITIONFROMLINE">SCI_POSITIONFROMLINE(lineNumber); SC_MOD_LEXERSTATE - 0x80000 + 0x80000 The internal state of a lexer has changed over a range. @@ -6942,7 +6947,7 @@ href="#SCI_POSITIONFROMLINE">SCI_POSITIONFROMLINE(lineNumber); SC_MOD_CHANGEMARGIN - 0x10000 + 0x10000 A text margin has changed. @@ -6952,17 +6957,29 @@ href="#SCI_POSITIONFROMLINE">SCI_POSITIONFROMLINE(lineNumber); SC_MOD_CHANGEANNOTATION - 0x20000 + 0x20000 An annotation has changed. line + + SC_MOD_INSERTCHECK + + 0x100000 + + Text is about to be inserted. The handler may change the text being inserted by calling + SCI_CHANGEINSERTION. + No other modifications may be made in this handler. + + position, length, text + + SC_MULTILINEUNDOREDO - 0x1000 + 0x1000 This is part of an Undo or Redo with multi-line changes. @@ -6972,7 +6989,7 @@ href="#SCI_POSITIONFROMLINE">SCI_POSITIONFROMLINE(lineNumber); SC_STARTACTION - 0x2000 + 0x2000 This is set on a SC_PERFORMED_USER action when it is the first or only step in an undo transaction. This can be used to integrate the Scintilla @@ -6987,7 +7004,7 @@ href="#SCI_POSITIONFROMLINE">SCI_POSITIONFROMLINE(lineNumber); SC_MOD_CONTAINER - 0x40000 + 0x40000 This is set on for actions that the container stored into the undo stack with SCI_ADDUNDOACTION. @@ -6999,7 +7016,7 @@ href="#SCI_POSITIONFROMLINE">SCI_POSITIONFROMLINE(lineNumber); SC_MODEVENTMASKALL - 0x7FFFF + 0x1FFFFF This is a mask for all valid flags. This is the default mask state set by SCI_SETMODEVENTMASK. -- cgit v1.2.3