summaryrefslogtreecommitdiff
path: root/sc/source/ui/drawfunc/drawsh2.cxx
diff options
context:
space:
mode:
authorNiklas Nebel <nn@openoffice.org>2001-12-05 21:10:04 +0000
committerNiklas Nebel <nn@openoffice.org>2001-12-05 21:10:04 +0000
commite8963f8d8ef6b19b00342d5253fd14e93a11031e (patch)
tree7702925a8a63c5345f2ac1c455f979c788bd563e /sc/source/ui/drawfunc/drawsh2.cxx
parentba0b6703dad7fe59529b9ca5db6cfc34856c7147 (diff)
#95575# allow changing the name of OLE objects
Diffstat (limited to 'sc/source/ui/drawfunc/drawsh2.cxx')
-rw-r--r--sc/source/ui/drawfunc/drawsh2.cxx13
1 files changed, 11 insertions, 2 deletions
diff --git a/sc/source/ui/drawfunc/drawsh2.cxx b/sc/source/ui/drawfunc/drawsh2.cxx
index e671e921a..7881d8bea 100644
--- a/sc/source/ui/drawfunc/drawsh2.cxx
+++ b/sc/source/ui/drawfunc/drawsh2.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: drawsh2.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: nn $ $Date: 2001-05-21 11:11:10 $
+ * last change: $Author: nn $ $Date: 2001-12-05 22:06:48 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -186,6 +186,15 @@ void ScDrawShell::GetDrawFuncState( SfxItemSet& rSet ) // Funktionen disablen
}
}
+ if ( nMarkCount != 1 ||
+ rMarkList.GetMark( 0 )->GetObj()->GetObjIdentifier() != OBJ_OLE2 )
+ {
+ // Only a single object can be renamed.
+ // Currently only OLE objects (charts and others) are supported,
+ // Graphics and groups may be added later.
+
+ rSet.DisableItem( SID_RENAME_OBJECT );
+ }
if ( !nMarkCount ) // nichts selektiert
{