summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorNiklas Nebel <nn@openoffice.org>2001-07-25 17:44:04 +0000
committerNiklas Nebel <nn@openoffice.org>2001-07-25 17:44:04 +0000
commit85c884a4fa9effd83a77f8748444443fefa379ac (patch)
treea17e714754a59810fcd0a7f1937fdcdf7f74b77f /sc
parent00cdf0c560725ffdb67a27aa7762212158225ec5 (diff)
#90211# state for SID_OPENDLG_MODCHART
Diffstat (limited to 'sc')
-rw-r--r--sc/sdi/tabvwsh.sdi4
-rw-r--r--sc/source/ui/view/drawview.cxx5
-rw-r--r--sc/source/ui/view/tabvwshb.cxx9
3 files changed, 12 insertions, 6 deletions
diff --git a/sc/sdi/tabvwsh.sdi b/sc/sdi/tabvwsh.sdi
index a2e82b3ea453..a83d6bbee48f 100644
--- a/sc/sdi/tabvwsh.sdi
+++ b/sc/sdi/tabvwsh.sdi
@@ -3,7 +3,7 @@
// StarCalc
//
// (C) 1994 StarDivision GmbH, Hamburg, Germany
- // $Author: er $ $Date: 2001-07-04 17:14:41 $ $Revision: 1.5 $
+ // $Author: nn $ $Date: 2001-07-25 18:42:52 $ $Revision: 1.6 $
// $Logfile: T:/sc/sdi/tabvwsh.sdv $ $Workfile: tabvwsh.sdi $
//----------------------------------------------------------------------------
@@ -91,7 +91,7 @@ interface BaseSelection : Selection
SID_FM_CREATE_CONTROL [ ExecMethod = ExecDraw ; ]
SID_LINKS [ ExecMethod = ExecDrawIns; StateMethod = GetDrawInsState; ]
SID_DRAW_CHART [ ExecMethod = ExecDraw; StateMethod = GetDrawState; ]
- SID_OPENDLG_MODCHART [ ExecMethod = Execute; StateMethod = NoState; ]
+ SID_OPENDLG_MODCHART [ ExecMethod = Execute; StateMethod = GetDrawInsState; ]
// } Einfuegen von Objekten
diff --git a/sc/source/ui/view/drawview.cxx b/sc/source/ui/view/drawview.cxx
index 6747ec757600..5c0187776901 100644
--- a/sc/source/ui/view/drawview.cxx
+++ b/sc/source/ui/view/drawview.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: drawview.cxx,v $
*
- * $Revision: 1.11 $
+ * $Revision: 1.12 $
*
- * last change: $Author: nn $ $Date: 2001-05-21 18:17:27 $
+ * last change: $Author: nn $ $Date: 2001-07-25 18:44:04 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -221,6 +221,7 @@ void ScDrawView::InvalidateAttribs()
rBindings.Invalidate( SID_ANCHOR_CELL );
rBindings.Invalidate( SID_OLE_OBJECT );
+ rBindings.Invalidate( SID_OPENDLG_MODCHART );
rBindings.Invalidate( SID_HYPERLINK_GETLINK );
diff --git a/sc/source/ui/view/tabvwshb.cxx b/sc/source/ui/view/tabvwshb.cxx
index ef8467e26c49..877f8ddbbb65 100644
--- a/sc/source/ui/view/tabvwshb.cxx
+++ b/sc/source/ui/view/tabvwshb.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: tabvwshb.cxx,v $
*
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
*
- * last change: $Author: nn $ $Date: 2001-06-22 19:57:51 $
+ * last change: $Author: nn $ $Date: 2001-07-25 18:44:04 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -419,6 +419,11 @@ void ScTabViewShell::GetDrawInsState(SfxItemSet &rSet)
rSet.DisableItem( nWhich );
break;
+ case SID_OPENDLG_MODCHART:
+ if ( bTabProt || !GetSelectedChartName().Len() )
+ rSet.DisableItem( nWhich );
+ break;
+
case SID_INSERT_SMATH:
if ( bOle || bTabProt || !SvtModuleOptions().IsMath() )
rSet.DisableItem( nWhich );