summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHerbert Dürr <hdu@apache.org>2013-07-17 15:09:17 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-07-17 17:37:50 +0100
commit32f8e2ae7f087f1457167293ee77397a5876a4f0 (patch)
treef082def14f6430868d3da8d0864ca16183385cf6
parent3a2c872b90f4d1af212ec55dcdd4bcd3e16d61ae (diff)
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 <hanya.runo@gmail.com> (cherry picked from commit 82170a2180449bccb55b5091571dc79ec6fc7b51) Conflicts: basctl/source/basicide/baside2b.cxx Change-Id: I2654eb073804cfe6936fa98e859800441ee34e42
-rw-r--r--basctl/source/basicide/baside2b.cxx6
1 files changed, 6 insertions, 0 deletions
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();
+ }
}
}
}