summaryrefslogtreecommitdiff
path: root/include/connectivity
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-05-31 15:30:37 +0200
committerNoel Grandin <noel@peralex.com>2013-06-03 10:00:02 +0200
commit2838b8eb5ead00780ed9ed9410abee8b8d53a9a4 (patch)
tree9adc985fafa8e87435546cee5e64aa6d83ef1fe3 /include/connectivity
parent28e3aff576f06b0b02c7232da5d723e865b3c7ed (diff)
fdo#46808, Convert ComponentContext in connectivity,extension..
...modules. Change-Id: Ie61976dc12b514bb85ca42496c0d9173a1c56264
Diffstat (limited to 'include/connectivity')
-rw-r--r--include/connectivity/dbmetadata.hxx8
-rw-r--r--include/connectivity/formattedcolumnvalue.hxx7
-rw-r--r--include/connectivity/virtualdbtools.hxx8
3 files changed, 7 insertions, 16 deletions
diff --git a/include/connectivity/dbmetadata.hxx b/include/connectivity/dbmetadata.hxx
index 565854ba7ed8..06fcc62f548d 100644
--- a/include/connectivity/dbmetadata.hxx
+++ b/include/connectivity/dbmetadata.hxx
@@ -21,15 +21,11 @@
#define CONNECTIVITY_INC_CONNECTIVITY_DBMETADATA_HXX
#include <com/sun/star/sdbc/XConnection.hpp>
+#include <com/sun/star/uno/XComponentContext.hpp>
#include <memory>
#include "connectivity/dbtoolsdllapi.hxx"
-namespace comphelper
-{
- class ComponentContext;
-}
-
//........................................................................
namespace dbtools
{
@@ -170,7 +166,7 @@ namespace dbtools
the component context we operate in. Might be needed to create the
css.sdbc.DriverManager instance.
*/
- bool supportsUserAdministration( const ::comphelper::ComponentContext& _rContext ) const;
+ bool supportsUserAdministration( const css::uno::Reference<css::uno::XComponentContext>& _rContext ) const;
/** determines whether in the application UI, empty table folders (aka catalogs/schemas) should be displayed
*/
diff --git a/include/connectivity/formattedcolumnvalue.hxx b/include/connectivity/formattedcolumnvalue.hxx
index fe5c4dbfff52..79e422804351 100644
--- a/include/connectivity/formattedcolumnvalue.hxx
+++ b/include/connectivity/formattedcolumnvalue.hxx
@@ -20,10 +20,11 @@
#ifndef CONNECTIVITY_FORMATTEDCOLUMNVALUE_HXX
#define CONNECTIVITY_FORMATTEDCOLUMNVALUE_HXX
-#include <com/sun/star/sdbc/XRowSet.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/sdb/XColumn.hpp>
#include <com/sun/star/sdb/XColumnUpdate.hpp>
+#include <com/sun/star/sdbc/XRowSet.hpp>
+#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/util/XNumberFormatter.hpp>
#include <boost/noncopyable.hpp>
@@ -31,8 +32,6 @@
#include <memory>
#include "connectivity/dbtoolsdllapi.hxx"
-namespace comphelper { class ComponentContext; }
-
//........................................................................
namespace dbtools
{
@@ -60,7 +59,7 @@ namespace dbtools
examining its <code>ActiveConnection</code>.
*/
FormattedColumnValue(
- const ::comphelper::ComponentContext& _rContext,
+ const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxContext,
const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XRowSet >& _rxRowSet,
const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _rxColumn
);
diff --git a/include/connectivity/virtualdbtools.hxx b/include/connectivity/virtualdbtools.hxx
index 9083016fa621..10d32b3f00a7 100644
--- a/include/connectivity/virtualdbtools.hxx
+++ b/include/connectivity/virtualdbtools.hxx
@@ -76,10 +76,6 @@ namespace dbtools {
class FormattedColumnValue;
}
-namespace comphelper {
- class ComponentContext;
-}
-
//========================================================================
//= entry into this library
//========================================================================
@@ -336,7 +332,7 @@ namespace connectivity
public:
/// creates a simple version of the class OSQLParser
virtual ::rtl::Reference< ISQLParser > createSQLParser(
- const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext,
+ const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxContext,
const IParseContext* _pContext
) const = 0;
@@ -350,7 +346,7 @@ namespace connectivity
virtual ::rtl::Reference< IDataAccessTools > getDataAccessTools() = 0;
virtual ::std::auto_ptr< ::dbtools::FormattedColumnValue > createFormattedColumnValue(
- const ::comphelper::ComponentContext& _rContext,
+ const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxContext,
const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XRowSet >& _rxRowSet,
const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _rxColumn
) = 0;