diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2005-03-23 13:53:30 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2005-03-23 13:53:30 +0000 |
commit | 25caf58389ebb07b224ae5c80e8c128a5c079ae5 (patch) | |
tree | 8171af0adac57702d6e0d045e142a91f10ce362e | |
parent | 230ea9a268c182357bc250ff54f767c17a5fbaa3 (diff) |
INTEGRATION: CWS adabas2 (1.5.128); FILE MERGED
2005/03/22 13:15:06 fs 1.5.128.1: #i45671# XStorable at the document, not at the data source
-rw-r--r-- | extensions/source/abpilot/datasourcehandling.cxx | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/extensions/source/abpilot/datasourcehandling.cxx b/extensions/source/abpilot/datasourcehandling.cxx index aceccb197b6a..410cdf10d3d2 100644 --- a/extensions/source/abpilot/datasourcehandling.cxx +++ b/extensions/source/abpilot/datasourcehandling.cxx @@ -2,9 +2,9 @@ * * $RCSfile: datasourcehandling.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: hr $ $Date: 2004-08-02 17:36:38 $ + * last change: $Author: vg $ $Date: 2005-03-23 14:53:30 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -95,6 +95,9 @@ #ifndef _COM_SUN_STAR_SDB_XCOMPLETEDCONNECTION_HPP_ #include <com/sun/star/sdb/XCompletedConnection.hpp> #endif +#ifndef _COM_SUN_STAR_SDB_XDOCUMENTDATASOURCE_HPP_ +#include <com/sun/star/sdb/XDocumentDataSource.hpp> +#endif #ifndef _COM_SUN_STAR_SDBCX_XTABLESSUPPLIER_HPP_ #include <com/sun/star/sdbcx/XTablesSupplier.hpp> #endif @@ -535,12 +538,13 @@ namespace abp return; try { - Reference<XStorable> xStorable(m_pImpl->xDataSource,UNO_QUERY); + Reference< XDocumentDataSource > xDocAccess( m_pImpl->xDataSource, UNO_QUERY ); + Reference< XStorable > xStorable; + if ( xDocAccess.is() ) + xStorable = xStorable.query( xDocAccess->getDatabaseDocument() ); OSL_ENSURE( xStorable.is(),"DataSource is no XStorable!" ); if ( xStorable.is() ) - { xStorable->storeAsURL(m_pImpl->sName,Sequence<PropertyValue>()); - } } catch(const Exception&) { |