summaryrefslogtreecommitdiff
path: root/sfx2/source/view/lokhelper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/view/lokhelper.cxx')
-rw-r--r--sfx2/source/view/lokhelper.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/sfx2/source/view/lokhelper.cxx b/sfx2/source/view/lokhelper.cxx
index 5eec80fba576..0ea04c16238f 100644
--- a/sfx2/source/view/lokhelper.cxx
+++ b/sfx2/source/view/lokhelper.cxx
@@ -1105,6 +1105,16 @@ void SfxLokHelper::notifyOtherViewsUpdatePerViewId(SfxViewShell const* pThisView
}
}
+void SfxLokHelper::registerViewCallbacks()
+{
+ comphelper::LibreOfficeKit::setViewSetter([](int nView) {
+ SfxLokHelper::setView(nView);
+ });
+ comphelper::LibreOfficeKit::setViewGetter([]() -> int {
+ return SfxLokHelper::getView();
+ });
+}
+
namespace
{
struct LOKAsyncEventData