From 6c61b20a8d4a6dcac28801cde82a211fb7e30654 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 16 May 2013 14:13:36 +0200 Subject: fdo#46808, Convert awt::UnoControlDialogModel to new style Change-Id: I4b912034ef3f4855b87d6d6f18ff13bd1ecc8f72 --- xmlscript/test/imexp.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xmlscript') diff --git a/xmlscript/test/imexp.cxx b/xmlscript/test/imexp.cxx index 42cc8851a86c..7d73bd82099c 100644 --- a/xmlscript/test/imexp.cxx +++ b/xmlscript/test/imexp.cxx @@ -44,6 +44,7 @@ #include #include +#include #include #include #include @@ -89,7 +90,7 @@ Reference< XComponentContext > createInitialComponentContext( // ----------------------------------------------------------------------- -Reference< container::XNameContainer > importFile( +Reference< awt::XUnoControlDialogModel > importFile( char const * fname, Reference< XComponentContext > const & xContext ) { @@ -105,8 +106,7 @@ Reference< container::XNameContainer > importFile( ::fread( bytes.getArray(), nLength, 1, f ); ::fclose( f ); - Reference< container::XNameContainer > xModel( xContext->getServiceManager()->createInstanceWithContext( - "com.sun.star.awt.UnoControlDialogModel", xContext ), UNO_QUERY ); + Reference< awt::XUnoControlDialogModel > xModel = awt::UnoControlDialogModel::create( xContext ); ::xmlscript::importDialogModel( ::xmlscript::createInputStream( bytes ), xModel, xContext ); return xModel; -- cgit v1.2.3