Tag: cws_src680_dba24b
User: fs      
Date: 2007-08-28 13:26:49+0000
Modified:
   dba/dbaccess/source/ui/dlg/DbAdminImpl.cxx

Log:
 authentication information now available at the data source meta data

File Changes:

Directory: /dba/dbaccess/source/ui/dlg/
=======================================

File [changed]: DbAdminImpl.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/dlg/DbAdminImpl.cxx?r1=1.18.28.3&r2=1.18.28.4
Delta lines:  +5 -7
-------------------
--- DbAdminImpl.cxx     2007-08-27 20:31:00+0000        1.18.28.3
+++ DbAdminImpl.cxx     2007-08-28 13:26:46+0000        1.18.28.4
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: DbAdminImpl.cxx,v $
  *
- *  $Revision: 1.18.28.3 $
+ *  $Revision: 1.18.28.4 $
  *
- *  last change: $Author: fs $ $Date: 2007/08/27 20:31:00 $
+ *  last change: $Author: fs $ $Date: 2007/08/28 13:26:46 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -36,9 +36,9 @@
 // MARKER(update_precomp.py): autogen include statement, do not remove
 #include "precompiled_dbaccess.hxx"
 
-#ifndef _DBAUI_DBADMINIMPL_HXX_
 #include "DbAdminImpl.hxx"
-#endif
+#include "dsmeta.hxx"
+
 #ifndef _SFXPOOLITEM_HXX
 #include <svtools/poolitem.hxx>
 #endif
@@ -491,9 +491,7 @@
 //-------------------------------------------------------------------------
 sal_Bool ODbDataSourceAdministrationHelper::hasAuthentication(const 
SfxItemSet& _rSet) const
 {
-       DATASOURCE_TYPE eType = getDatasourceType(_rSet);
-       SFX_ITEMSET_GET(_rSet, pTypeCollection, DbuTypeCollectionItem, 
DSID_TYPECOLLECTION, sal_True);
-       return pTypeCollection->getCollection()->hasAuthentication(eType);
+    return DataSourceMetaData::getAuthentication( getDatasourceType( _rSet ) ) 
!= AuthNone;
 }
 // 
-----------------------------------------------------------------------------
 String ODbDataSourceAdministrationHelper::getConnectionURL() const




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to