summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/dlg/dbwiz.cxx
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2005-03-10 15:49:19 +0000
committerVladimir Glazounov <vg@openoffice.org>2005-03-10 15:49:19 +0000
commitb944db3f3f05780812e3c2900637220dc0939da4 (patch)
tree6f30f6e51528cc616589dc4bae879d635af93331 /dbaccess/source/ui/dlg/dbwiz.cxx
parentfa69ee9679942d92f0bb7d3217a5d02e9d559b6d (diff)
INTEGRATION: CWS dba24 (1.4.4); FILE MERGED
2005/03/08 10:17:34 oj 1.4.4.2: RESYNC: (1.4-1.5); FILE MERGED 2005/02/01 07:52:00 oj 1.4.4.1: #i41727# disable propeties for specific types
Diffstat (limited to 'dbaccess/source/ui/dlg/dbwiz.cxx')
-rw-r--r--dbaccess/source/ui/dlg/dbwiz.cxx31
1 files changed, 28 insertions, 3 deletions
diff --git a/dbaccess/source/ui/dlg/dbwiz.cxx b/dbaccess/source/ui/dlg/dbwiz.cxx
index 524d84b85..5162486ac 100644
--- a/dbaccess/source/ui/dlg/dbwiz.cxx
+++ b/dbaccess/source/ui/dlg/dbwiz.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: dbwiz.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: vg $ $Date: 2005-02-21 12:43:25 $
+ * last change: $Author: vg $ $Date: 2005-03-10 16:49:19 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -200,6 +200,20 @@ ODbTypeWizDialog::~ODbTypeWizDialog()
IMPL_LINK(ODbTypeWizDialog, OnTypeSelected, OGeneralPage*, _pTabPage)
{
m_eType = _pTabPage->GetSelectedType();
+ switch(m_eType)
+ {
+ case DST_MOZILLA:
+ case DST_OUTLOOK:
+ case DST_OUTLOOKEXP:
+ case DST_EVOLUTION:
+ enableButtons(WZB_NEXT,sal_False);
+ enableButtons(WZB_FINISH,sal_True);
+ break;
+ default:
+ enableButtons(WZB_NEXT,sal_True);
+ enableButtons(WZB_FINISH,sal_False);
+ break;
+ }
return 1L;
}
//-------------------------------------------------------------------------
@@ -209,7 +223,18 @@ WizardTypes::WizardState ODbTypeWizDialog::determineNextState(WizardState _nCurr
switch(_nCurrentState)
{
case START_PAGE:
- nNextState = CONNECTION_PAGE;
+ switch(m_eType)
+ {
+ case DST_MOZILLA:
+ case DST_OUTLOOK:
+ case DST_OUTLOOKEXP:
+ case DST_EVOLUTION:
+ nNextState = WZS_INVALID_STATE;
+ break;
+ default:
+ nNextState = CONNECTION_PAGE;
+ break;
+ }
break;
case CONNECTION_PAGE:
switch(m_eType)