diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-05-08 11:07:10 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-05-08 11:10:46 +0100 |
commit | eef0e91d5ec90d7e972195b8d3b059ffab39c92d (patch) | |
tree | 0761e793b54a5cb70c9ae6ce81e8690aed391157 /sfx2 | |
parent | 79776356d9597f3c0e06f8e81019909bdbb1a560 (diff) |
there's another ExecuteInfo in sw
Change-Id: Id72d3cdfa8b0d5e62fc04ddc464069ac58df0f58
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/menu/mnuitem.cxx | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/sfx2/source/menu/mnuitem.cxx b/sfx2/source/menu/mnuitem.cxx index c3daef0afe64..9d10b93ddf4f 100644 --- a/sfx2/source/menu/mnuitem.cxx +++ b/sfx2/source/menu/mnuitem.cxx @@ -327,6 +327,15 @@ SfxUnoMenuControl::~SfxUnoMenuControl() pUnoCtrl->release(); } +struct MenuExecuteInfo +{ + ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatch > xDispatch; + ::com::sun::star::util::URL aTargetURL; + ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > aArgs; + + DECL_STATIC_LINK( MenuExecuteInfo, ExecuteHdl_Impl, MenuExecuteInfo* ); +}; + sal_IntPtr Select_Impl( void* /*pHdl*/, void* pVoid ) { Menu* pMenu = static_cast<Menu*>(pVoid); @@ -360,17 +369,17 @@ sal_IntPtr Select_Impl( void* /*pHdl*/, void* pVoid ) if ( xDisp.is() ) { - ExecuteInfo* pExecuteInfo = new ExecuteInfo; + MenuExecuteInfo* pExecuteInfo = new MenuExecuteInfo; pExecuteInfo->xDispatch = xDisp; pExecuteInfo->aTargetURL = aTargetURL; pExecuteInfo->aArgs = Sequence< PropertyValue >(); - Application::PostUserEvent( LINK( 0, ExecuteInfo, ExecuteHdl_Impl), pExecuteInfo ); + Application::PostUserEvent( LINK( 0, MenuExecuteInfo, ExecuteHdl_Impl), pExecuteInfo ); } return sal_IntPtr(true); } -IMPL_STATIC_LINK_NOINSTANCE( ExecuteInfo, ExecuteHdl_Impl, ExecuteInfo*, pExecuteInfo ) +IMPL_STATIC_LINK_NOINSTANCE( MenuExecuteInfo, ExecuteHdl_Impl, MenuExecuteInfo*, pExecuteInfo ) { pExecuteInfo->xDispatch->dispatch( pExecuteInfo->aTargetURL, pExecuteInfo->aArgs ); delete pExecuteInfo; |