Kaydet (Commit) 002aab30 authored tarafından Noel Grandin's avatar Noel Grandin

fdo#46808, convert sdb::tools::ConnectionTools to new style

service already existed, just needed an IDL file

Change-Id: I9000cff76056efecf7ac748bcfc6dd5b8e902e65
üst 18af8278
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
#include "sdbcoretools.hxx" #include "sdbcoretools.hxx"
#include <com/sun/star/sdb/CommandType.hpp> #include <com/sun/star/sdb/CommandType.hpp>
#include <com/sun/star/sdb/tools/ConnectionTools.hpp>
#include <com/sun/star/sdbc/XDriverAccess.hpp> #include <com/sun/star/sdbc/XDriverAccess.hpp>
#include <com/sun/star/sdbcx/XDataDefinitionSupplier.hpp> #include <com/sun/star/sdbcx/XDataDefinitionSupplier.hpp>
#include <com/sun/star/reflection/ProxyFactory.hpp> #include <com/sun/star/reflection/ProxyFactory.hpp>
...@@ -756,9 +757,7 @@ void OConnection::impl_loadConnectionTools_throw() ...@@ -756,9 +757,7 @@ void OConnection::impl_loadConnectionTools_throw()
Sequence< Any > aArguments( 1 ); Sequence< Any > aArguments( 1 );
aArguments[0] <<= NamedValue( "Connection" , makeAny( Reference< XConnection >( this ) ) ); aArguments[0] <<= NamedValue( "Connection" , makeAny( Reference< XConnection >( this ) ) );
m_xConnectionTools.set( m_xConnectionTools = css::sdb::tools::ConnectionTools::create( m_aContext );
m_aContext->getServiceManager()->createInstanceWithArgumentsAndContext("com.sun.star.sdb.tools.ConnectionTools", aArguments, m_aContext),
UNO_QUERY_THROW );
} }
Reference< XTableName > SAL_CALL OConnection::createTableName( ) throw (RuntimeException) Reference< XTableName > SAL_CALL OConnection::createTableName( ) throw (RuntimeException)
......
...@@ -303,6 +303,9 @@ $(eval $(call gb_UnoApi_add_idlfiles_nohdl,offapi,offapi/com/sun/star/sdb/applic ...@@ -303,6 +303,9 @@ $(eval $(call gb_UnoApi_add_idlfiles_nohdl,offapi,offapi/com/sun/star/sdb/applic
CopyTableWizard \ CopyTableWizard \
MacroMigrationWizard \ MacroMigrationWizard \
)) ))
$(eval $(call gb_UnoApi_add_idlfiles_nohdl,offapi,offapi/com/sun/star/sdb/tools,\
ConnectionTools \
))
$(eval $(call gb_UnoApi_add_idlfiles_nohdl,offapi,offapi/com/sun/star/sdbc,\ $(eval $(call gb_UnoApi_add_idlfiles_nohdl,offapi,offapi/com/sun/star/sdbc,\
ConnectionPool \ ConnectionPool \
DriverManager \ DriverManager \
......
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef __com_sun_star_sdb_tools_ConnectionTools_idl__
#define __com_sun_star_sdb_tools_ConnectionTools_idl__
#include <com/sun/star/sdb/tools/XConnectionTools.idl>
module com { module sun { module star { module sdb { module tools {
/**
@since LibreOffice 4.1
*/
service ConnectionTools : XConnectionTools;
}; }; }; }; };
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment