diff options
author | nyamatongwe <unknown> | 2007-04-07 00:57:03 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2007-04-07 00:57:03 +0000 |
commit | 6d82fda3c167c1ebdc7242f9ee6d42de2a47e838 (patch) | |
tree | 855af185b33b67caf44e49c655059ff76782ef35 /src/Document.cxx | |
parent | cfc2acb4089acc872b9f06031ca39eef637c149c (diff) | |
download | scintilla-mirror-6d82fda3c167c1ebdc7242f9ee6d42de2a47e838.tar.gz |
More decoration code, with modifications reported from document to views
although this isn't optimal. Some checking for null changes. Messages
documented. Methods for changing indicators in Accessor so can be used by
lexers.
Diffstat (limited to 'src/Document.cxx')
-rw-r--r-- | src/Document.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Document.cxx b/src/Document.cxx index 964d4808b..a25e3070d 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -1340,6 +1340,17 @@ void Document::IncrementStyleClock() { } } +void Document::DecorationFillRange(int position, int value, int fillLength) { + if (decorations.FillRange(position, value, fillLength)) { + DocModification mh(SC_MOD_CHANGESTYLE | SC_PERFORMED_USER, + position, fillLength); + NotifyModified(mh); + } else { + DocModification mh(SC_MOD_CHANGESTYLE | SC_PERFORMED_USER, + position, fillLength); + } +} + bool Document::AddWatcher(DocWatcher *watcher, void *userData) { for (int i = 0; i < lenWatchers; i++) { if ((watchers[i].watcher == watcher) && |