Kaydet (Commit) 82170a21 authored tarafından Herbert Dürr's avatar Herbert Dürr

#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>
üst 963530a3
...@@ -383,6 +383,14 @@ void __EXPORT EditorWindow::Command( const CommandEvent& rCEvt ) ...@@ -383,6 +383,14 @@ void __EXPORT EditorWindow::Command( const CommandEvent& rCEvt )
( rCEvt.GetCommand() == COMMAND_AUTOSCROLL ) ) ( rCEvt.GetCommand() == COMMAND_AUTOSCROLL ) )
{ {
HandleScrollCommand( rCEvt, pModulWindow->GetHScrollBar(), &pModulWindow->GetEditVScrollBar() ); HandleScrollCommand( rCEvt, pModulWindow->GetHScrollBar(), &pModulWindow->GetEditVScrollBar() );
} else if ( rCEvt.GetCommand() == COMMAND_CONTEXTMENU ) {
BasicIDEShell* pIDEShell = IDE_DLL()->GetShell();
SfxViewFrame* pViewFrame = pIDEShell ? pIDEShell->GetViewFrame() : NULL;
SfxDispatcher* pDispatcher = pViewFrame ? pViewFrame->GetDispatcher() : NULL;
if ( pDispatcher )
{
pDispatcher->ExecutePopup();
}
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment