summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorFrank Schönheit <fs@openoffice.org>2001-07-25 13:40:22 +0000
committerFrank Schönheit <fs@openoffice.org>2001-07-25 13:40:22 +0000
commit784db3e3ee125c0db53430984bb65a6b354d53f9 (patch)
tree38ebf96174ccee53aba77d7b8b7802fce03a3edd /svx
parent1d5cfca89b7f1a0bd4981138421c5e84cf8829d9 (diff)
#90221# GetState for SID_FM_FILTER_EXECUTE and SID_FM_FILTER_EXIT
Diffstat (limited to 'svx')
-rw-r--r--svx/source/form/fmshell.cxx18
1 files changed, 8 insertions, 10 deletions
diff --git a/svx/source/form/fmshell.cxx b/svx/source/form/fmshell.cxx
index 3a51b78c5625..d5786e85fa70 100644
--- a/svx/source/form/fmshell.cxx
+++ b/svx/source/form/fmshell.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: fmshell.cxx,v $
*
- * $Revision: 1.20 $
+ * $Revision: 1.21 $
*
- * last change: $Author: fs $ $Date: 2001-07-25 13:43:36 $
+ * last change: $Author: fs $ $Date: 2001-07-25 14:40:22 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1469,6 +1469,12 @@ void FmFormShell::GetState(SfxItemSet &rSet)
{
switch( nWhich )
{
+ case SID_FM_FILTER_EXECUTE:
+ case SID_FM_FILTER_EXIT:
+ if (!GetImpl()->isInFilterMode())
+ rSet.DisableItem( nWhich );
+ break;
+
case SID_FM_USE_WIZARDS:
if (!m_bDesignMode || !GetFormModel())
rSet.DisableItem( nWhich );
@@ -1637,14 +1643,6 @@ void FmFormShell::GetState(SfxItemSet &rSet)
GetFormState(rSet,nWhich);
break;
- case SID_FM_FILTER_EXECUTE:
- case SID_FM_FILTER_EXIT:
- break;
- /*case SID_FM_FILTER_REMOVE:
- {
- if (!m_pFormView || !GetImpl()->isInFilterMode())
- rSet.DisableItem( nWhich );
- } break;*/
case SID_FM_CHANGECONTROLTYPE:
{
if (!m_pFormView || !m_bDesignMode || !GetImpl()->getCurControl().is())