summaryrefslogtreecommitdiff
path: root/sd/source/ui/framework/module/ShellStackGuard.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/framework/module/ShellStackGuard.cxx')
-rw-r--r--sd/source/ui/framework/module/ShellStackGuard.cxx11
1 files changed, 4 insertions, 7 deletions
diff --git a/sd/source/ui/framework/module/ShellStackGuard.cxx b/sd/source/ui/framework/module/ShellStackGuard.cxx
index 83d73b055a54..d7dcfb0f2923 100644
--- a/sd/source/ui/framework/module/ShellStackGuard.cxx
+++ b/sd/source/ui/framework/module/ShellStackGuard.cxx
@@ -38,19 +38,16 @@ namespace sd::framework {
//===== CenterViewFocusModule ====================================================
-ShellStackGuard::ShellStackGuard (Reference<frame::XController> const & rxController)
+ShellStackGuard::ShellStackGuard (rtl::Reference<sd::DrawController> const & rxController)
: mpBase(nullptr),
maPrinterPollingIdle("sd ShellStackGuard PrinterPollingIdle")
{
- Reference<XControllerManager> xControllerManager (rxController, UNO_QUERY);
- if (xControllerManager.is())
+ if (rxController.is())
{
- mxConfigurationController = xControllerManager->getConfigurationController();
+ mxConfigurationController = rxController->getConfigurationController();
// Tunnel through the controller to obtain a ViewShellBase.
- auto pController = comphelper::getFromUnoTunnel<sd::DrawController>(rxController);
- if (pController != nullptr)
- mpBase = pController->GetViewShellBase();
+ mpBase = rxController->GetViewShellBase();
}
if (mxConfigurationController.is())