summaryrefslogtreecommitdiff
path: root/sfx2/source/view/sfxbasecontroller.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/view/sfxbasecontroller.cxx')
-rw-r--r--sfx2/source/view/sfxbasecontroller.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/sfx2/source/view/sfxbasecontroller.cxx b/sfx2/source/view/sfxbasecontroller.cxx
index b6abf029dc67..12bb93c475d1 100644
--- a/sfx2/source/view/sfxbasecontroller.cxx
+++ b/sfx2/source/view/sfxbasecontroller.cxx
@@ -1021,6 +1021,18 @@ void SfxBaseController::ReleaseShell_Impl()
attachFrame( aXFrame );
}
+void SfxBaseController::CopyLokViewCallbackFromFrameCreator()
+{
+ if (!m_pData->m_pViewShell)
+ return;
+ SfxLokCallbackInterface* pCallback = nullptr;
+ if (m_pData->m_xFrame)
+ if (auto xCreator = m_pData->m_xFrame->getCreator())
+ if (auto parentVS = SfxViewShell::Get(xCreator->getController()))
+ pCallback = parentVS->getLibreOfficeKitViewCallback();
+ m_pData->m_pViewShell->setLibreOfficeKitViewCallback(pCallback);
+}
+
SfxViewShell* SfxBaseController::GetViewShell_Impl() const
{
return m_pData->m_pViewShell;