From 32f8e2ae7f087f1457167293ee77397a5876a4f0 Mon Sep 17 00:00:00 2001 From: Herbert Dürr Date: Wed, 17 Jul 2013 15:09:17 +0000 Subject: Resolves: #i21548# add context menu to code editor part of Basic IDE for now only with cut, copy and paste but can be extended Patch by: Tsutomu Uchino (cherry picked from commit 82170a2180449bccb55b5091571dc79ec6fc7b51) Conflicts: basctl/source/basicide/baside2b.cxx Change-Id: I2654eb073804cfe6936fa98e859800441ee34e42 --- basctl/source/basicide/baside2b.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx index f5f8c1d92f54..cde1f42c7d3c 100644 --- a/basctl/source/basicide/baside2b.cxx +++ b/basctl/source/basicide/baside2b.cxx @@ -449,6 +449,12 @@ void EditorWindow::Command( const CommandEvent& rCEvt ) ( rCEvt.GetCommand() == COMMAND_AUTOSCROLL ) ) { HandleScrollCommand( rCEvt, rModulWindow.GetHScrollBar(), &rModulWindow.GetEditVScrollBar() ); + } else if ( rCEvt.GetCommand() == COMMAND_CONTEXTMENU ) { + SfxDispatcher* pDispatcher = GetDispatcher(); + if ( pDispatcher ) + { + pDispatcher->ExecutePopup(); + } } } } -- cgit v1.2.3