From 33a0f8ce656c8c5bb9c3c3deaa10c182e262b374 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 17 Oct 2012 10:52:52 +0200 Subject: fdo#46808, Adapt awt::Toolkit UNO service to new style Create a merged XToolkit2 interface for this service to implement. Which is backwards-compatible, but does not require creating a new service. Also mark sub-interfaces as non-optional. Change-Id: I278d0288e92be277033013302267cf93f7d70480 --- slideshow/source/engine/shapes/viewappletshape.cxx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'slideshow/source/engine/shapes') 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 #include #include -#include +#include #include #include #include @@ -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(), -- cgit