diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-09-30 14:42:10 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-10-02 10:37:09 +0200 |
commit | e1ac2a940389f52e28264a623a6620a7a0d94d57 (patch) | |
tree | e8cf96b31091482bc628cf501ecbba4cf1096c05 /vcl/source/window/layout.cxx | |
parent | 1709a9b9a2433032b5acf262ef506272c33d5e63 (diff) |
tdf#134566 gtk IM support for custom widgets
Change-Id: I5c731161768d09d021db5c353de816e173159096
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103764
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source/window/layout.cxx')
-rw-r--r-- | vcl/source/window/layout.cxx | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx index 8c2ff59f52d1..9e4831789f8d 100644 --- a/vcl/source/window/layout.cxx +++ b/vcl/source/window/layout.cxx @@ -2857,6 +2857,23 @@ void VclDrawingArea::StartDrag(sal_Int8, const Point&) xContainer->StartDrag(this, m_nDragAction); } +OUString VclDrawingArea::GetSurroundingText() const +{ + OUString sSurroundingText; + if (m_aGetSurroundingHdl.Call(sSurroundingText) != -1) + return sSurroundingText; + return Control::GetSurroundingText(); +} + +Selection VclDrawingArea::GetSurroundingTextSelection() const +{ + OUString sSurroundingText; + int nCursor = m_aGetSurroundingHdl.Call(sSurroundingText); + if (nCursor != -1) + return Selection(nCursor, nCursor); + return Control::GetSurroundingTextSelection(); +} + VclHPaned::~VclHPaned() { } |