summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPascal Junck <pjunck@openoffice.org>2004-10-22 10:52:49 +0000
committerPascal Junck <pjunck@openoffice.org>2004-10-22 10:52:49 +0000
commit059fdc254a63f04bd4dfaf00d41b920de65ce8a2 (patch)
tree5effd2c6ff6b65ada16eab9ab789044214e8b94e
parent8c1bcafeb51f37f868e95dcc4b802a8634ad4d4a (diff)
INTEGRATION: CWS dba17 (1.12.14); FILE MERGED
2004/09/22 12:58:20 fs 1.12.14.1: #i33913# isEmbeddedInDatabase superseding getComponentContextConnection
-rw-r--r--svx/source/form/dbtoolsclient.cxx25
1 files changed, 19 insertions, 6 deletions
diff --git a/svx/source/form/dbtoolsclient.cxx b/svx/source/form/dbtoolsclient.cxx
index 5d65ac9571c5..3327d2168418 100644
--- a/svx/source/form/dbtoolsclient.cxx
+++ b/svx/source/form/dbtoolsclient.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: dbtoolsclient.cxx,v $
*
- * $Revision: 1.12 $
+ * $Revision: 1.13 $
*
- * last change: $Author: rt $ $Date: 2004-09-09 10:21:28 $
+ * last change: $Author: pjunck $ $Date: 2004-10-22 11:52:49 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -381,13 +381,26 @@ namespace svxform
}
//----------------------------------------------------------------
- Reference< XConnection > OStaticDataAccessTools::getComponentContextConnection( const Reference< XInterface >& _rxComponent )
+ bool OStaticDataAccessTools::isEmbeddedInDatabase( const Reference< XInterface >& _rxComponent, Reference< XConnection >& _rxActualConnection )
{
- Reference< XConnection > xReturn;
+ bool bReturn = false;
checkIfLoaded();
if ( m_xDataAccessTools.is() )
- xReturn = m_xDataAccessTools->getComponentContextConnection( _rxComponent );
- return xReturn;
+ bReturn = m_xDataAccessTools->isEmbeddedInDatabase( _rxComponent, _rxActualConnection );
+ return bReturn;
+ }
+
+ //----------------------------------------------------------------
+ bool OStaticDataAccessTools::isEmbeddedInDatabase( const Reference< XInterface >& _rxComponent )
+ {
+ bool bReturn = false;
+ checkIfLoaded();
+ if ( m_xDataAccessTools.is() )
+ {
+ Reference< XConnection > xDummy;
+ bReturn = m_xDataAccessTools->isEmbeddedInDatabase( _rxComponent, xDummy );
+ }
+ return bReturn;
}
//........................................................................