diff options
author | Neil Hodgson <nyamatongwe@gmail.com> | 2015-02-22 10:12:28 +1100 |
---|---|---|
committer | Neil Hodgson <nyamatongwe@gmail.com> | 2015-02-22 10:12:28 +1100 |
commit | c1fbe6996a29bc05a5f8889c138f2bf3895de253 (patch) | |
tree | 9a7881f04ea1bd2cb0ea7e5eb5da7ab3040273ca /cocoa/ScintillaCocoa.h | |
parent | 1fc21cb6664d3633602636cfc43ecbdb39b591a7 (diff) | |
download | scintilla-mirror-c1fbe6996a29bc05a5f8889c138f2bf3895de253.tar.gz |
Implement additional methods from the NSTextInputClient protocol so that more
features of the IME work. attributedSubstringForProposedRange:actualRange: and
characterIndexForPoint: now have full implementations.
This required using UTF-16 document indexes in many places as that is what
Cocoa wants. Tentative undo is used for the composition text instead of turning
off undo as that is safer and similar to IME code on other platforms.
Diffstat (limited to 'cocoa/ScintillaCocoa.h')
-rw-r--r-- | cocoa/ScintillaCocoa.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cocoa/ScintillaCocoa.h b/cocoa/ScintillaCocoa.h index 45d04e564..0941ac174 100644 --- a/cocoa/ScintillaCocoa.h +++ b/cocoa/ScintillaCocoa.h @@ -197,7 +197,14 @@ public: virtual void IdleWork(); virtual void QueueIdleWork(WorkNeeded::workItems items, int upTo); int InsertText(NSString* input); + NSRange PositionsFromCharacters(NSRange range) const; + NSRange CharactersFromPositions(NSRange range) const; void SelectOnlyMainSelection(); + void ConvertSelectionVirtualSpace(); + bool ClearAllSelections(); + void CompositionStart(); + void CompositionCommit(); + void CompositionUndo(); virtual void SetDocPointer(Document *document); bool KeyboardInput(NSEvent* event); |