summaryrefslogtreecommitdiff
path: root/vcl/source/app/customweld.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/app/customweld.cxx')
-rw-r--r--vcl/source/app/customweld.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/source/app/customweld.cxx b/vcl/source/app/customweld.cxx
index e8ce7003532a..9a56aeb0acbd 100644
--- a/vcl/source/app/customweld.cxx
+++ b/vcl/source/app/customweld.cxx
@@ -38,6 +38,7 @@ CustomWeld::CustomWeld(weld::Builder& rBuilder, const OString& rDrawingId,
m_xDrawingArea->connect_style_updated(LINK(this, CustomWeld, DoStyleUpdated));
m_xDrawingArea->connect_command(LINK(this, CustomWeld, DoCommand));
m_xDrawingArea->connect_query_tooltip(LINK(this, CustomWeld, DoRequestHelp));
+ m_xDrawingArea->connect_im_context_get_surrounding(LINK(this, CustomWeld, DoGetSurrounding));
}
IMPL_LINK(CustomWeld, DoResize, const Size&, rSize, void)
@@ -94,6 +95,11 @@ IMPL_LINK(CustomWeld, DoRequestHelp, tools::Rectangle&, rHelpArea, OUString)
{
return m_rWidgetController.RequestHelp(rHelpArea);
}
+
+IMPL_LINK(CustomWeld, DoGetSurrounding, OUString&, rSurrounding, int)
+{
+ return m_rWidgetController.GetSurroundingText(rSurrounding);
+}
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */