diff options
author | Kurt Zenker <kz@openoffice.org> | 2005-11-11 12:50:09 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2005-11-11 12:50:09 +0000 |
commit | d72c96f4e14dae2730d59dc4c2b95776eed83417 (patch) | |
tree | 65356eb8bc32d17f782d8a666923011a8d146bca /sd/source/ui/view/drviews7.cxx | |
parent | 9860ca3e87ab281af1067977c2b8d0647548fd26 (diff) |
INTEGRATION: CWS c05v001 (1.58.164); FILE MERGED
2005/08/15 11:14:30 cd 1.58.164.1: #124964# Make menu entry 'insert spreadsheet' invisible, if calc is not installed
Diffstat (limited to 'sd/source/ui/view/drviews7.cxx')
-rw-r--r-- | sd/source/ui/view/drviews7.cxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sd/source/ui/view/drviews7.cxx b/sd/source/ui/view/drviews7.cxx index 1b44adafabcf..803e60772665 100644 --- a/sd/source/ui/view/drviews7.cxx +++ b/sd/source/ui/view/drviews7.cxx @@ -4,9 +4,9 @@ * * $RCSfile: drviews7.cxx,v $ * - * $Revision: 1.60 $ + * $Revision: 1.61 $ * - * last change: $Author: rt $ $Date: 2005-11-08 09:06:05 $ + * last change: $Author: kz $ $Date: 2005-11-11 13:50:09 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -79,6 +79,9 @@ #ifndef _SFXSTRITEM_HXX //autogen #include <svtools/stritem.hxx> #endif +#ifndef _SFXVISIBILITYITEM_HXX +#include <svtools/visitem.hxx> +#endif #ifndef _SFX_WHITER_HXX //autogen #include <svtools/whiter.hxx> #endif @@ -1368,7 +1371,8 @@ void DrawViewShell::GetMenuState( SfxItemSet &rSet ) if (!SvtModuleOptions().IsCalc()) { - rSet.DisableItem( SID_ATTR_TABLE ); + // remove menu entry if module is not available + rSet.Put( SfxVisibilityItem( SID_ATTR_TABLE, sal_False ) ); } if (!SvtModuleOptions().IsChart()) { |