From bb98b129db1029aaa37511306836f0e31d13fc38 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 31 Jan 2013 10:31:47 +0200 Subject: fdo#46808, use service constructor for awt::ContainerWindowProvider Change-Id: I15f45bb51fe8880041c396025efdd5c91ebc3f13 --- framework/source/classes/fwktabwindow.cxx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'framework') diff --git a/framework/source/classes/fwktabwindow.cxx b/framework/source/classes/fwktabwindow.cxx index 55ae33741774..323f4b4cddd8 100644 --- a/framework/source/classes/fwktabwindow.cxx +++ b/framework/source/classes/fwktabwindow.cxx @@ -25,13 +25,12 @@ #include #include -#include +#include #include #include #include #include #include -#include #include #include @@ -41,7 +40,6 @@ #include #include -const char SERVICENAME_WINPROVIDER[] = "com.sun.star.awt.ContainerWindowProvider"; const char EXTERNAL_EVENT[] = "external_event"; const char INITIALIZE_METHOD[] = "initialize"; @@ -197,9 +195,7 @@ FwkTabWindow::FwkTabWindow( Window* pParent ) : m_aTabCtrl ( this, FwkResId( TC_TABCONTROL ) ) { - uno::Reference < lang::XMultiServiceFactory > xFactory( ::comphelper::getProcessServiceFactory() ); - m_xWinProvider = uno::Reference < awt::XContainerWindowProvider >( - xFactory->createInstance( rtl::OUString(SERVICENAME_WINPROVIDER) ), uno::UNO_QUERY ); + m_xWinProvider = awt::ContainerWindowProvider::create( ::comphelper::getProcessComponentContext() ); SetPaintTransparent(true); -- cgit