summaryrefslogtreecommitdiff
path: root/xmlscript
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-05-16 14:13:36 +0200
committerNoel Grandin <noel@peralex.com>2013-05-21 08:23:58 +0200
commit6c61b20a8d4a6dcac28801cde82a211fb7e30654 (patch)
treed82328eaa120b8bc822f028fa1e62bc7814c9e1b /xmlscript
parent6c53dff36ebdac7b6a6cf514ab469b2202d6aa48 (diff)
fdo#46808, Convert awt::UnoControlDialogModel to new style
Change-Id: I4b912034ef3f4855b87d6d6f18ff13bd1ecc8f72
Diffstat (limited to 'xmlscript')
-rw-r--r--xmlscript/test/imexp.cxx6
1 files changed, 3 insertions, 3 deletions
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 <com/sun/star/registry/XImplementationRegistration.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
+#include <com/sun/star/awt/UnoControlDialogModel.hpp>
#include <com/sun/star/awt/XToolkit.hpp>
#include <com/sun/star/awt/XControlModel.hpp>
#include <com/sun/star/awt/XControl.hpp>
@@ -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;