diff options
Diffstat (limited to 'sd/source/ui/remotecontrol/Communicator.cxx')
-rw-r--r-- | sd/source/ui/remotecontrol/Communicator.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sd/source/ui/remotecontrol/Communicator.cxx b/sd/source/ui/remotecontrol/Communicator.cxx index f567b106ff8d..ebe5627e2442 100644 --- a/sd/source/ui/remotecontrol/Communicator.cxx +++ b/sd/source/ui/remotecontrol/Communicator.cxx @@ -9,6 +9,7 @@ #include <algorithm> #include <vector> +#include <com/sun/star/frame/Desktop.hpp> #include <comphelper/processfactory.hxx> #include "Communicator.hxx" @@ -43,10 +44,7 @@ void Communicator::execute() Transmitter::PRIORITY_HIGH ); Receiver aReceiver( pTransmitter ); try { - uno::Reference< lang::XMultiServiceFactory > xServiceManager( - ::comphelper::getProcessServiceFactory(), uno::UNO_QUERY_THROW ); - uno::Reference< frame::XFramesSupplier > xFramesSupplier( xServiceManager->createInstance( - "com.sun.star.frame.Desktop" ) , uno::UNO_QUERY_THROW ); + uno::Reference< frame::XDesktop2 > xFramesSupplier = frame::Desktop::create( ::comphelper::getProcessComponentContext() ); uno::Reference< frame::XFrame > xFrame ( xFramesSupplier->getActiveFrame(), uno::UNO_QUERY_THROW ); uno::Reference<presentation::XPresentationSupplier> xPS ( xFrame->getController()->getModel(), uno::UNO_QUERY_THROW); uno::Reference<presentation::XPresentation2> xPresentation( |