summaryrefslogtreecommitdiff
path: root/dbaccess
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 /dbaccess
parent6c53dff36ebdac7b6a6cf514ab469b2202d6aa48 (diff)
fdo#46808, Convert awt::UnoControlDialogModel to new style
Change-Id: I4b912034ef3f4855b87d6d6f18ff13bd1ecc8f72
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ext/macromigration/migrationengine.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/dbaccess/source/ext/macromigration/migrationengine.cxx b/dbaccess/source/ext/macromigration/migrationengine.cxx
index bd75b8a39971..7c5a37df3721 100644
--- a/dbaccess/source/ext/macromigration/migrationengine.cxx
+++ b/dbaccess/source/ext/macromigration/migrationengine.cxx
@@ -29,6 +29,7 @@
#include "progresscapture.hxx"
#include "progressmixer.hxx"
+#include <com/sun/star/awt/UnoControlDialogModel.hpp>
#include <com/sun/star/sdb/XFormDocumentsSupplier.hpp>
#include <com/sun/star/sdb/XReportDocumentsSupplier.hpp>
#include <com/sun/star/util/XCloseable.hpp>
@@ -1821,7 +1822,7 @@ namespace dbmm
Reference< XInputStreamProvider > xISP( _inout_rDialogLibraryElement, UNO_QUERY_THROW );
Reference< XInputStream > xInput( xISP->createInputStream(), UNO_QUERY_THROW );
- Reference< XNameContainer > xDialogModel( m_aContext->getServiceManager()->createInstanceWithContext("com.sun.star.awt.UnoControlDialogModel", m_aContext), UNO_QUERY_THROW );
+ Reference< css::awt::XUnoControlDialogModel > xDialogModel = css::awt::UnoControlDialogModel::create( m_aContext );
::xmlscript::importDialogModel( xInput, xDialogModel, m_aContext, m_xDocumentModel );
// adjust the events of the dialog