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 /include/svx/weldeditview.hxx | |
parent | CID#1467666 Unchecked return value (CHECKED_RETURN) (diff) | |
download | core-e1ac2a940389f52e28264a623a6620a7a0d94d57.tar.gz core-e1ac2a940389f52e28264a623a6620a7a0d94d57.zip |
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 'include/svx/weldeditview.hxx')
-rw-r--r-- | include/svx/weldeditview.hxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/svx/weldeditview.hxx b/include/svx/weldeditview.hxx index 65396e342b27..d54f2c9404a7 100644 --- a/include/svx/weldeditview.hxx +++ b/include/svx/weldeditview.hxx @@ -25,6 +25,8 @@ class SVX_DLLPUBLIC WeldEditView : public weld::CustomWidgetController, public E public: WeldEditView(); virtual void SetDrawingArea(weld::DrawingArea* pDrawingArea) override; + virtual int GetSurroundingText(OUString& rSurrounding) override; + virtual bool DeleteSurroundingText(const Selection& rRange) override; void SetText(const OUString& rStr) { m_xEditEngine->SetText(rStr); } @@ -77,6 +79,13 @@ protected: { SetInputContext(rInputContext); } + + virtual void EditViewCursorRect(const tools::Rectangle& rRect, int nExtTextInputWidth) override + { + OutputDevice& rRefDevice = EditViewOutputDevice(); + SetCursorRect(rRefDevice.LogicToPixel(rRect), + rRefDevice.LogicToPixel(Size(nExtTextInputWidth, 0)).Width()); + } }; #endif // INCLUDED_SVX_WELDEDITVIEW_HXX |