diff options
Diffstat (limited to 'sd/source/ui/framework/tools/FrameworkHelper.cxx')
-rw-r--r-- | sd/source/ui/framework/tools/FrameworkHelper.cxx | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/sd/source/ui/framework/tools/FrameworkHelper.cxx b/sd/source/ui/framework/tools/FrameworkHelper.cxx index 539f07f99ca5..a22e70ba9c87 100644 --- a/sd/source/ui/framework/tools/FrameworkHelper.cxx +++ b/sd/source/ui/framework/tools/FrameworkHelper.cxx @@ -324,26 +324,6 @@ public: FrameworkHelper::InstanceMap FrameworkHelper::maInstanceMap; -::boost::shared_ptr<FrameworkHelper> FrameworkHelper::Instance ( - const Reference<frame::XController>& rxController) -{ - // Tunnel through the controller to obtain a ViewShellBase. - Reference<lang::XUnoTunnel> xTunnel (rxController, UNO_QUERY); - if (xTunnel.is()) - { - ::sd::DrawController* pController = reinterpret_cast<sd::DrawController*>( - xTunnel->getSomething(sd::DrawController::getUnoTunnelId())); - if (pController != NULL) - { - ViewShellBase* pBase = pController->GetViewShellBase(); - if (pBase != NULL) - return Instance(*pBase); - } - } - - return ::boost::shared_ptr<FrameworkHelper>(); -} - ::boost::shared_ptr<FrameworkHelper> FrameworkHelper::Instance (ViewShellBase& rBase) { |