diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-09-30 14:11:54 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-09-30 17:13:13 +0200 |
commit | 31342a1bda26f4e3dd29274dafd306fd0a9e7047 (patch) | |
tree | ff55c1961391d911b9e62a866b7cf38aa4ddf23a /include/vcl | |
parent | 9e129e8557370207f784cba0f40643044ead88be (diff) |
tdf#134566 accept input engine commands in editview in custom widget
for the generic case first
Change-Id: I10bd707900b54c70c9bda79d5d09532cc159779e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103692
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/customweld.hxx | 6 | ||||
-rw-r--r-- | include/vcl/weld.hxx | 5 |
2 files changed, 10 insertions, 1 deletions
diff --git a/include/vcl/customweld.hxx b/include/vcl/customweld.hxx index 938308a45ca8..0b79df8d1df1 100644 --- a/include/vcl/customweld.hxx +++ b/include/vcl/customweld.hxx @@ -12,6 +12,8 @@ #include <vcl/weld.hxx> +class InputContext; + namespace weld { class VCL_DLLPUBLIC CustomWidgetController @@ -86,6 +88,10 @@ public: void SetPointer(PointerStyle ePointerStyle) { m_pDrawingArea->set_cursor(ePointerStyle); } void SetHelpId(const OString& rHelpId) { m_pDrawingArea->set_help_id(rHelpId); } void SetAccessibleName(const OUString& rName) { m_pDrawingArea->set_accessible_name(rName); } + void SetInputContext(const InputContext& rInputContext) + { + m_pDrawingArea->set_input_context(rInputContext); + } void SetDragDataTransferrable(rtl::Reference<TransferDataContainer>& rTransferrable, sal_uInt8 eDNDConstants) { diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx index 5508246e0c1c..9b2950cc8b43 100644 --- a/include/vcl/weld.hxx +++ b/include/vcl/weld.hxx @@ -46,8 +46,9 @@ typedef css::uno::Reference<css::accessibility::XAccessible> a11yref; typedef css::uno::Reference<css::accessibility::XAccessibleRelationSet> a11yrelationset; enum class PointerStyle; class CommandEvent; -class KeyEvent; class Formatter; +class InputContext; +class KeyEvent; class MouseEvent; class SvNumberFormatter; class TransferDataContainer; @@ -2066,6 +2067,8 @@ public: virtual void set_cursor(PointerStyle ePointerStyle) = 0; + virtual void set_input_context(const InputContext& rInputContext) = 0; + // use return here just to generate matching VirtualDevices virtual OutputDevice& get_ref_device() = 0; |