diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2007-04-16 15:46:37 +0000 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2007-04-16 15:46:37 +0000 |
commit | d53097daa137d1266869d47dce82258460868adb (patch) | |
tree | d30b593c661edc538a0b8cec063dd692f51be971 /framework/source/uielement/menubarwrapper.cxx | |
parent | 91880c7975653cbf236effe2bfad2850dc5b68d2 (diff) |
INTEGRATION: CWS fwkdbdesign01 (1.14.36); FILE MERGED
2007/03/29 09:30:08 cd 1.14.36.1: i75851# Extend implementation to support a dispatch provider for every popup menu within the menu bar
Diffstat (limited to 'framework/source/uielement/menubarwrapper.cxx')
-rw-r--r-- | framework/source/uielement/menubarwrapper.cxx | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/framework/source/uielement/menubarwrapper.cxx b/framework/source/uielement/menubarwrapper.cxx index 9dc8ab215be3..33e81ae1c77a 100644 --- a/framework/source/uielement/menubarwrapper.cxx +++ b/framework/source/uielement/menubarwrapper.cxx @@ -4,9 +4,9 @@ * * $RCSfile: menubarwrapper.cxx,v $ * - * $Revision: 1.14 $ + * $Revision: 1.15 $ * - * last change: $Author: kz $ $Date: 2006-12-13 15:09:01 $ + * last change: $Author: ihi $ $Date: 2007-04-16 16:46:37 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -248,8 +248,16 @@ void SAL_CALL MenuBarWrapper::initialize( const Sequence< Any >& aArguments ) th // interaction which is done by the menu bar manager. This must be requested by a special property called "MenuOnly". Be careful // a menu bar created with this property is not fully supported. It must be attached to a real menu bar manager to have full // support. This feature is currently used for "Inplace editing"! - // #110897# MenuBarManager* pMenuBarManager = new MenuBarManager( xFrame, pVCLMenuBar, sal_False, sal_True ); - MenuBarManager* pMenuBarManager = new MenuBarManager( getServiceFactory(), xFrame, aModuleIdentifier, pVCLMenuBar, sal_False, sal_True ); + Reference< XDispatchProvider > xDispatchProvider; + + // #110897# + MenuBarManager* pMenuBarManager = new MenuBarManager( getServiceFactory(), + xFrame, + xDispatchProvider, + aModuleIdentifier, + pVCLMenuBar, + sal_False, + sal_True ); m_xMenuBarManager = Reference< XComponent >( static_cast< OWeakObject *>( pMenuBarManager ), UNO_QUERY ); } |