Apache OpenOffice (AOO) Bugzilla – Attachment #80257: Patch to add context menu for code editor part of Basic IDE for issue #21548
( rCEvt.GetCommand() == COMMAND_AUTOSCROLL ) )
{
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();