diff options
| author | Neil <nyamatongwe@gmail.com> | 2014-07-18 23:37:23 +1000 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2014-07-18 23:37:23 +1000 |
| commit | 1472b33e83897ba443974f838fb92fe720118d42 (patch) | |
| tree | 9c756a4b25bb8b32082cee01f5d6b1c39e7930bb /src/Document.h | |
| parent | 5e13b48636a6442af501bdbf1fe4afd7d008e489 (diff) | |
| download | scintilla-mirror-1472b33e83897ba443974f838fb92fe720118d42.tar.gz | |
Added the tentative undo feature. This is useful for IMEs that want to display
and manipulate a character being composed, but may then commit or remove it
leaving no history in undo of the intermediate forms.
Diffstat (limited to 'src/Document.h')
| -rw-r--r-- | src/Document.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Document.h b/src/Document.h index a59f192a9..0f2985f89 100644 --- a/src/Document.h +++ b/src/Document.h @@ -303,6 +303,12 @@ public: void AddUndoAction(int token, bool mayCoalesce) { cb.AddUndoAction(token, mayCoalesce); } void SetSavePoint(); bool IsSavePoint() const { return cb.IsSavePoint(); } + + void TentativeStart() { cb.TentativeStart(); } + void TentativeCommit() { cb.TentativeCommit(); } + void TentativeUndo(); + bool TentativeActive() { return cb.TentativeActive(); } + const char * SCI_METHOD BufferPointer() { return cb.BufferPointer(); } const char *RangePointer(int position, int rangeLength) { return cb.RangePointer(position, rangeLength); } int GapPosition() const { return cb.GapPosition(); } |
