summaryrefslogtreecommitdiff
path: root/slideshow/source/engine/shapes/viewappletshape.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'slideshow/source/engine/shapes/viewappletshape.cxx')
-rw-r--r--slideshow/source/engine/shapes/viewappletshape.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/slideshow/source/engine/shapes/viewappletshape.cxx b/slideshow/source/engine/shapes/viewappletshape.cxx
index eb0a53268a05..d4ee1d2b64d7 100644
--- a/slideshow/source/engine/shapes/viewappletshape.cxx
+++ b/slideshow/source/engine/shapes/viewappletshape.cxx
@@ -41,7 +41,7 @@
#include <com/sun/star/beans/PropertyValue.hpp>
#include <com/sun/star/util/XCloseable.hpp>
#include <com/sun/star/awt/WindowDescriptor.hpp>
-#include <com/sun/star/awt/XToolkit.hpp>
+#include <com/sun/star/awt/Toolkit.hpp>
#include <com/sun/star/awt/XWindow2.hpp>
#include <com/sun/star/awt/XWindowPeer.hpp>
#include <com/sun/star/awt/WindowAttribute.hpp>
@@ -150,11 +150,7 @@ namespace slideshow
// create an awt window to contain the applet
// ==========================================
- uno::Reference< awt::XToolkit > xToolkit(
- xFactory->createInstanceWithContext(
- ::rtl::OUString("com.sun.star.awt.Toolkit" ),
- mxComponentContext ),
- uno::UNO_QUERY_THROW );
+ uno::Reference< awt::XToolkit2 > xToolkit = awt::Toolkit::create(mxComponentContext);
awt::WindowDescriptor aOwnWinDescriptor( awt::WindowClass_SIMPLE,
::rtl::OUString(),