summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/misc
diff options
context:
space:
mode:
authorFrank Schönheit <fs@openoffice.org>2000-10-30 06:59:18 +0000
committerFrank Schönheit <fs@openoffice.org>2000-10-30 06:59:18 +0000
commit693699c2b512b012dd0fa15ea4a9b816b63dda21 (patch)
tree16643e39ffac813e57580d0852fabde9b4ccb679 /dbaccess/source/ui/misc
parent68e03ea7ba882d30abc17538555e2e73c03f8dad (diff)
+ hasAuthentification(DATASOURCE_TYPE)
Diffstat (limited to 'dbaccess/source/ui/misc')
-rw-r--r--dbaccess/source/ui/misc/dsntypes.cxx24
1 files changed, 22 insertions, 2 deletions
diff --git a/dbaccess/source/ui/misc/dsntypes.cxx b/dbaccess/source/ui/misc/dsntypes.cxx
index fed56b0c86b9..4951a52ac7d4 100644
--- a/dbaccess/source/ui/misc/dsntypes.cxx
+++ b/dbaccess/source/ui/misc/dsntypes.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: dsntypes.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: fs $ $Date: 2000-10-20 07:01:39 $
+ * last change: $Author: fs $ $Date: 2000-10-30 07:59:18 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -153,6 +153,23 @@ String ODsnTypeCollection::getTypeDisplayName(const String& _rDsn)
}
//-------------------------------------------------------------------------
+sal_Bool ODsnTypeCollection::hasAuthentication(DATASOURCE_TYPE _eType)
+{
+ switch (_eType)
+ {
+ case DST_ADABAS:
+ case DST_JDBC:
+ case DST_ODBC:
+ return sal_True;
+ break;
+ case DST_DBASE:
+ case DST_TEXT:
+ default:
+ return sal_False;
+ }
+}
+
+//-------------------------------------------------------------------------
DATASOURCE_TYPE ODsnTypeCollection::implDetermineType(const String& _rDsn)
{
sal_Int32 nSeparator = _rDsn.Search((sal_Unicode)':');
@@ -355,6 +372,9 @@ SfxPoolItem* DbuTypeCollectionItem::Clone(SfxItemPool* _pPool) const
/*************************************************************************
* history:
* $Log: not supported by cvs2svn $
+ * Revision 1.2 2000/10/20 07:01:39 fs
+ * sdbc:text -> sdbc:flat:file
+ *
* Revision 1.1 2000/10/05 10:09:11 fs
* initial checkin
*