From bfc8982eacdbe8748fd3379ae7ce287601216062 Mon Sep 17 00:00:00 2001 From: Ocke Janssen Date: Wed, 14 Feb 2001 13:54:12 +0000 Subject: some corrections --- dbaccess/source/ui/querydesign/QueryTableView.cxx | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'dbaccess/source/ui/querydesign/QueryTableView.cxx') diff --git a/dbaccess/source/ui/querydesign/QueryTableView.cxx b/dbaccess/source/ui/querydesign/QueryTableView.cxx index 151a59172283..7bacf64282d9 100644 --- a/dbaccess/source/ui/querydesign/QueryTableView.cxx +++ b/dbaccess/source/ui/querydesign/QueryTableView.cxx @@ -2,9 +2,9 @@ * * $RCSfile: QueryTableView.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: oj $ $Date: 2001-02-05 16:17:40 $ + * last change: $Author: oj $ $Date: 2001-02-14 14:54:11 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -138,6 +138,9 @@ #ifndef DBAUI_JOINEXCHANGE_HXX #include "JoinExchange.hxx" #endif +#ifndef _CPPUHELPER_EXTRACT_HXX_ +#include +#endif using namespace dbaui; using namespace ::com::sun::star::uno; @@ -419,7 +422,7 @@ Reference getKeyReferencedTo(const Reference& _rxKe for(sal_Int32 i=0;i< xKeyIndex->getCount();++i) { Reference xKey; - xKeyIndex->getByIndex(i) >>= xKey; + ::cppu::extractInterface(xKey,xKeyIndex->getByIndex(i)); if(xKey.is()) { sal_Int32 nKeyType = 0; @@ -448,7 +451,7 @@ sal_Bool isColumnInKeyType(const Reference& _rxKeys,const ::rtl:: for(sal_Int32 i=0;i< xKeyIndex->getCount();++i) { Reference xProp; - xKeyIndex->getByIndex(i) >>= xProp; + ::cppu::extractInterface(xProp,xKeyIndex->getByIndex(i)); if(xProp.is()) { sal_Int32 nKeyType = 0; @@ -490,7 +493,7 @@ void OQueryTableView::addConnections(const OQueryTableWindow* _pSource,const OQu for(sal_Int32 i=0;pBegin != pEnd;++pBegin,++i) { Reference xColumn; - _rxSourceForeignKeyColumns->getByName(*pBegin) >>= xColumn; + ::cppu::extractInterface(xColumn,_rxSourceForeignKeyColumns->getByName(*pBegin)); aNewConnData.SetFieldType(JTCS_FROM,TAB_NORMAL_FIELD); @@ -570,7 +573,7 @@ void OQueryTableView::AddTabWin(const ::rtl::OUString& _rComposedName, const ::r Reference xTables = xSup->getTables(); Reference xTable; - if(xTables->hasByName(strTableName) && (xTables->getByName(strTableName) >>= xTable) && xTable.is() ) + if(xTables->hasByName(strTableName) && ::cppu::extractInterface(xTable,xTables->getByName(strTableName)) && xTable.is()) { ////////////////////////////////////////////////////////////////////// // find relations between the table an the tables already inserted @@ -584,7 +587,7 @@ void OQueryTableView::AddTabWin(const ::rtl::OUString& _rComposedName, const ::r for(sal_Int32 i=0;i< xKeyIndex->getCount();++i) { Reference xProp; - xKeyIndex->getByIndex(i) >>= xProp; + ::cppu::extractInterface(xProp,xKeyIndex->getByIndex(i)); sal_Int32 nKeyType = 0; xProp->getPropertyValue(PROPERTY_TYPE) >>= nKeyType; xColumnsSupplier = Reference(xProp,UNO_QUERY); -- cgit