[Libreoffice-commits] core.git: basctl/source
Herbert Dürr
hdu at apache.org
Wed Jul 17 09:38:43 PDT 2013
basctl/source/basicide/baside2b.cxx | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit 32f8e2ae7f087f1457167293ee77397a5876a4f0
Author: Herbert Dürr <hdu at apache.org>
Date: Wed Jul 17 15:09:17 2013 +0000
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 at gmail.com>
(cherry picked from commit 82170a2180449bccb55b5091571dc79ec6fc7b51)
Conflicts:
basctl/source/basicide/baside2b.cxx
Change-Id: I2654eb073804cfe6936fa98e859800441ee34e42
diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx
index f5f8c1d..cde1f42 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();
+ }
}
}
}
More information about the Libreoffice-commits
mailing list