summaryrefslogtreecommitdiff
path: root/svx/source/form/fmshell.cxx
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2005-11-11 12:55:55 +0000
committerKurt Zenker <kz@openoffice.org>2005-11-11 12:55:55 +0000
commitac40e2a9844146efa1d805485e040e505ebcb126 (patch)
tree3af0a858142e769598024b86d8c7f1338d6f965a /svx/source/form/fmshell.cxx
parent6e2c200e3daca503a30d555a45fdffed82161851 (diff)
INTEGRATION: CWS c05v001 (1.63.84); FILE MERGED
2005/08/26 13:14:01 fs 1.63.84.1: #125322# do not show NavigationBar and TableControl icons if no Base is installed !!DO NOT COPY FIX INTO THE MASTER, it's intended for this branch only!!
Diffstat (limited to 'svx/source/form/fmshell.cxx')
-rw-r--r--svx/source/form/fmshell.cxx15
1 files changed, 11 insertions, 4 deletions
diff --git a/svx/source/form/fmshell.cxx b/svx/source/form/fmshell.cxx
index 847d96d99fb3..2827442fdc1a 100644
--- a/svx/source/form/fmshell.cxx
+++ b/svx/source/form/fmshell.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: fmshell.cxx,v $
*
- * $Revision: 1.64 $
+ * $Revision: 1.65 $
*
- * last change: $Author: rt $ $Date: 2005-09-08 22:56:11 $
+ * last change: $Author: kz $ $Date: 2005-11-11 13:55:55 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -1197,13 +1197,20 @@ void FmFormShell::GetState(SfxItemSet &rSet)
rSet.Put( SfxBoolItem(nWhich, GetFormModel()->GetOpenInDesignMode() ) );
break;
- case SID_FM_SCROLLBAR:
case SID_FM_NAVIGATIONBAR:
+ case SID_FM_DBGRID:
+ if ( !SvtModuleOptions().IsModuleInstalled( SvtModuleOptions::E_SDATABASE ) )
+ {
+ rSet.Put( SfxVisibilityItem( nWhich, sal_False ) );
+ break;
+ }
+ // NO break!
+
+ case SID_FM_SCROLLBAR:
case SID_FM_IMAGECONTROL:
case SID_FM_FILECONTROL:
case SID_FM_CURRENCYFIELD:
case SID_FM_PATTERNFIELD:
- case SID_FM_DBGRID:
if ( GetImpl()->isEnhancedForm() )
{
// in XForms mode, several controls are disabled: