summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-03-08 13:08:30 +0200
committerNoel Grandin <noel@peralex.com>2013-03-20 07:32:51 +0200
commit24d53ed075b9c904c6947cf3ca7096d3d4a70bce (patch)
treee38d35c5d9fb5235a260e1b1d4308acd99c3dce7 /sw
parente655c756c48f3ba21e18eae6b705432e5dd37a08 (diff)
fdo#46808, Convert sdb::TextConnectionSettings to new style
The service already existed, it just needed an IDL file Change-Id: Ia8729e87d65e8a6deda07c102a2a71cae3ce83fd
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/dbui/dbmgr.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/dbui/dbmgr.cxx b/sw/source/ui/dbui/dbmgr.cxx
index d10e27773c90..b6bca9d25baf 100644
--- a/sw/source/ui/dbui/dbmgr.cxx
+++ b/sw/source/ui/dbui/dbmgr.cxx
@@ -30,6 +30,7 @@
#include <com/sun/star/lang/XEventListener.hpp>
#include <com/sun/star/util/NumberFormatter.hpp>
#include <com/sun/star/sdb/DatabaseContext.hpp>
+#include <com/sun/star/sdb/TextConnectionSettings.hpp>
#include <com/sun/star/sdb/XCompletedConnection.hpp>
#include <com/sun/star/sdb/XCompletedExecution.hpp>
#include <com/sun/star/container/XChild.hpp>
@@ -2278,7 +2279,6 @@ String SwNewDBMgr::LoadAndRegisterDataSource()
#endif
try
{
- Reference<XMultiServiceFactory> xMgr( ::comphelper::getProcessServiceFactory() );
Reference<XComponentContext> xContext( ::comphelper::getProcessComponentContext() );
Reference<XDatabaseContext> xDBContext = DatabaseContext::create(xContext);
Reference<XSingleServiceFactory> xFact( xDBContext, UNO_QUERY);
@@ -2322,7 +2322,7 @@ String SwNewDBMgr::LoadAndRegisterDataSource()
if( bTextConnection )
{
- uno::Reference < ui::dialogs::XExecutableDialog > xSettingsDlg(xMgr->createInstance( "com.sun.star.sdb.TextConnectionSettings" ), uno::UNO_QUERY);
+ uno::Reference < ui::dialogs::XExecutableDialog > xSettingsDlg = sdb::TextConnectionSettings::create(xContext);
if( xSettingsDlg->execute() )
{
uno::Any aSettings = xDataProperties->getPropertyValue( "Settings" );