diff options
author | Rüdiger Timm <rt@openoffice.org> | 2005-01-31 14:25:58 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2005-01-31 14:25:58 +0000 |
commit | afc76d0941d53033509342857a49a5caf43abdce (patch) | |
tree | 2a0d670f1907e5db9eeb9e8f856f9215a12497ed /framework | |
parent | 77e015716892099d69f64d5115d98e094bd4502e (diff) |
INTEGRATION: CWS sdksample (1.17.2); FILE MERGED
2005/01/26 17:30:49 cd 1.17.2.1: #i29308# Detect tools menu with .uno: command
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/uielement/menubarmanager.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/framework/source/uielement/menubarmanager.cxx b/framework/source/uielement/menubarmanager.cxx index fce9c18a12b0..35b46906228d 100644 --- a/framework/source/uielement/menubarmanager.cxx +++ b/framework/source/uielement/menubarmanager.cxx @@ -2,9 +2,9 @@ * * $RCSfile: menubarmanager.cxx,v $ * - * $Revision: 1.19 $ + * $Revision: 1.20 $ * - * last change: $Author: rt $ $Date: 2005-01-28 17:20:16 $ + * last change: $Author: rt $ $Date: 2005-01-31 15:25:58 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -280,6 +280,7 @@ const ::rtl::OUString aCmdNewDocDirect( RTL_CONSTASCII_USTRINGPARAM( ".uno:AddDi const ::rtl::OUString aSlotAutoPilot( RTL_CONSTASCII_USTRINGPARAM( "slot:6381" )); const ::rtl::OUString aCmdAutoPilot( RTL_CONSTASCII_USTRINGPARAM( ".uno:AutoPilotMenu" )); const ::rtl::OUString aCmdHelpIndex( RTL_CONSTASCII_USTRINGPARAM( ".uno:HelpIndex" )); +const ::rtl::OUString aCmdToolsMenu( RTL_CONSTASCII_USTRINGPARAM( ".uno:ToolsMenu" )); const ::rtl::OUString aSpecialFileMenu( RTL_CONSTASCII_USTRINGPARAM( "file" )); const ::rtl::OUString aSpecialWindowMenu( RTL_CONSTASCII_USTRINGPARAM( "window" )); @@ -1674,7 +1675,8 @@ void MenuBarManager::FillMenuManager( Menu* pMenu, Reference< XFrame >& rFrame, // Create addon popup menu if there exist elements and this is the tools popup menu if (( nItemId == SID_ADDONLIST || - aItemCommand == aSlotSpecialToolsMenu ) && + aItemCommand == aSlotSpecialToolsMenu || + aItemCommand == aCmdToolsMenu ) && AddonMenuManager::HasAddonMenuElements() ) { USHORT nCount = 0; |