summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-01-08 11:35:18 +0200
committerNoel Grandin <noel@peralex.com>2013-01-15 09:56:02 +0200
commit23ef230fa0db1f6599ef22edc25e5ce16cc43c41 (patch)
treeeef1ff96c8774969e3467561d9e18fa18e02c364 /sd
parent28f0a6de18d79432d30becdd20d25301f93e86e9 (diff)
fdo#46808, Use service constructor for presentation::SlideShow
Change-Id: Ib757190a9452e8cb69bff417ebd7b558038e1537
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/slideshow/slideshowimpl.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/sd/source/ui/slideshow/slideshowimpl.cxx b/sd/source/ui/slideshow/slideshowimpl.cxx
index ea48eee52064..d317fcaf1073 100644
--- a/sd/source/ui/slideshow/slideshowimpl.cxx
+++ b/sd/source/ui/slideshow/slideshowimpl.cxx
@@ -31,6 +31,7 @@
#include <com/sun/star/util/XURLTransformer.hpp>
#include <com/sun/star/frame/XDispatch.hpp>
#include <com/sun/star/frame/XLayoutManager.hpp>
+#include <com/sun/star/presentation/SlideShow.hpp>
#include <svl/aeitem.hxx>
#include <svl/urihelper.hxx>
@@ -2437,13 +2438,10 @@ Reference< XSlideShow > SlideshowImpl::createSlideShow() const
try
{
- Reference< lang::XMultiServiceFactory > xFactory(
- ::comphelper::getProcessServiceFactory(),
- UNO_QUERY_THROW );
+ Reference< uno::XComponentContext > xContext =
+ ::comphelper::getProcessComponentContext();
- Reference< XInterface > xInt( xFactory->createInstance( "com.sun.star.presentation.SlideShow" ) );
-
- xShow.set( xInt, UNO_QUERY_THROW );
+ xShow.set( presentation::SlideShow::create(xContext), UNO_QUERY_THROW );
}
catch( uno::Exception& )
{