summaryrefslogtreecommitdiff
path: root/dbaccess/source
diff options
context:
space:
mode:
authorPascal Junck <pjunck@openoffice.org>2004-10-27 12:07:21 +0000
committerPascal Junck <pjunck@openoffice.org>2004-10-27 12:07:21 +0000
commitb4b29b41dfd41d7d1160b83fc8ec2364fa669fd7 (patch)
tree42ec569d645b37f5162941b3b589a5563d67dd7c /dbaccess/source
parent91d8ef1f3431a1e4b364e35132ed2736a5ca424a (diff)
INTEGRATION: CWS dbwizard1 (1.18.6); FILE MERGED
2004/09/14 22:52:10 bc 1.18.6.3: ## several changes 2004/08/17 08:32:05 bc 1.18.6.2: #i20313# supportsTableCreation modified 2004/08/16 10:52:17 bc 1.18.6.1: #i20313#Classes for Datasource wizard checked in
Diffstat (limited to 'dbaccess/source')
-rw-r--r--dbaccess/source/ui/misc/dsntypes.cxx82
1 files changed, 73 insertions, 9 deletions
diff --git a/dbaccess/source/ui/misc/dsntypes.cxx b/dbaccess/source/ui/misc/dsntypes.cxx
index 2ad8e746a65b..da89b050b4ce 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.18 $
+ * $Revision: 1.19 $
*
- * last change: $Author: hr $ $Date: 2004-08-02 16:10:18 $
+ * last change: $Author: pjunck $ $Date: 2004-10-27 13:07:21 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -238,7 +238,7 @@ DATASOURCE_TYPE ODsnTypeCollection::getType(const String& _rDsn)
}
//-------------------------------------------------------------------------
-String ODsnTypeCollection::getTypeDisplayName(DATASOURCE_TYPE _eType)
+String ODsnTypeCollection::getTypeDisplayName( DATASOURCE_TYPE _eType, sal_Bool bWizardMode)
{
String sDisplayName;
@@ -335,6 +335,70 @@ sal_Bool ODsnTypeCollection::isFileSystemBased(DATASOURCE_TYPE _eType)
}
}
+
+sal_Bool ODsnTypeCollection::supportsTableCreation(DATASOURCE_TYPE _eType)
+{
+ BOOL bSupportsTableCreation;
+ switch( _eType )
+ {
+ case DST_MOZILLA:
+ case DST_OUTLOOK:
+ case DST_OUTLOOKEXP:
+ case DST_FLAT:
+ case DST_EVOLUTION:
+ case DST_CALC:
+ bSupportsTableCreation = FALSE;
+ break;
+ case DST_DBASE:
+ case DST_ADABAS:
+ case DST_ADO:
+ case DST_MSACCESS:
+ case DST_MYSQL_ODBC:
+ case DST_ODBC:
+ case DST_MYSQL_JDBC:
+ case DST_ORACLE_JDBC:
+ case DST_LDAP:
+ case DST_JDBC:
+ default:
+ bSupportsTableCreation = TRUE;
+ break;
+ }
+ return bSupportsTableCreation;
+}
+
+
+
+sal_Bool ODsnTypeCollection::supportsBrowsing(DATASOURCE_TYPE _eType)
+{
+ BOOL bEnableBrowseButton;
+ switch( _eType )
+ {
+ case DST_DBASE:
+ case DST_FLAT:
+ case DST_CALC:
+ case DST_ADABAS:
+ case DST_ADO:
+ case DST_MSACCESS:
+ case DST_MYSQL_ODBC:
+ case DST_ODBC:
+ bEnableBrowseButton = TRUE;
+ break;
+ case DST_MYSQL_JDBC:
+ case DST_ORACLE_JDBC:
+ case DST_LDAP:
+ case DST_MOZILLA:
+ case DST_OUTLOOK:
+ case DST_OUTLOOKEXP:
+ case DST_JDBC:
+ case DST_EVOLUTION:
+ default:
+ bEnableBrowseButton = FALSE;
+ break;
+ }
+ return bEnableBrowseButton;
+}
+
+
//-------------------------------------------------------------------------
sal_Bool ODsnTypeCollection::hasAuthentication(DATASOURCE_TYPE _eType)
{
@@ -357,15 +421,15 @@ sal_Bool ODsnTypeCollection::hasAuthentication(DATASOURCE_TYPE _eType)
case DST_MYSQL_JDBC:
case DST_ODBC:
case DST_ADO:
- case DST_MSACCESS:
- case DST_MOZILLA :
- case DST_EVOLUTION :
- case DST_LDAP :
- case DST_OUTLOOK :
- case DST_OUTLOOKEXP :
+ case DST_LDAP:
case DST_CALC:
return sal_True;
break;
+ case DST_MSACCESS:
+ case DST_MOZILLA:
+ case DST_EVOLUTION:
+ case DST_OUTLOOK:
+ case DST_OUTLOOKEXP: //????
case DST_DBASE:
case DST_FLAT:
default: