summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2016-03-06 20:59:21 +0200
committerMaxim Monastirsky <momonasmon@gmail.com>2016-03-06 21:19:17 +0200
commit1f9374af4f8ea343db0c239d2449893ac4efc675 (patch)
tree92110f208b1e685a71286b34aac865a4d43aec50
parentdc5e56e6910718bd8e1fd568408960d778b3d25a (diff)
Use menu URLs for context menu interception
This way it's clearer what this name stands for, as it's now the same name that used to manipulate the same menus via the XUIConfigurationManager API. It's also consistent with the names we use for spelling/grammar (see SwView::ExecSpellPopup) or read-only (see SwEditWin::Command) menus. Change-Id: I0619578cea9d1f495168e2fa5060d1a664bfcd59
-rw-r--r--sfx2/source/control/dispatch.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sfx2/source/control/dispatch.cxx b/sfx2/source/control/dispatch.cxx
index 350277f69074..576a2b915a2b 100644
--- a/sfx2/source/control/dispatch.cxx
+++ b/sfx2/source/control/dispatch.cxx
@@ -1897,7 +1897,8 @@ void SfxDispatcher::ExecutePopup( const OUString& rResName, vcl::Window *pWin, c
xPopupController->setPopupMenu( xPopupMenu );
VCLXMenu* pAwtMenu = VCLXMenu::GetImplementation( xPopupMenu );
PopupMenu* pVCLMenu = static_cast< PopupMenu* >( pAwtMenu->GetMenu() );
- if ( pVCLMenu && GetFrame()->GetViewShell()->TryContextMenuInterception( *pVCLMenu, rResName, aEvent ) )
+ OUString aMenuURL = "private:resource/popupmenu/" + rResName;
+ if ( pVCLMenu && GetFrame()->GetViewShell()->TryContextMenuInterception( *pVCLMenu, aMenuURL, aEvent ) )
pVCLMenu->Execute( pWindow, aPos );
css::uno::Reference< css::lang::XComponent > xComponent( xPopupController, css::uno::UNO_QUERY );