Apache OpenOffice (AOO) Bugzilla – Issue 95180
Context menu should be extensible by regular means
Last modified: 2017-05-20 11:15:45 UTC
Because context menus can not be extended by 'normal means' the spell check context menu in olmenu.cxx had always to do this hardwired. That turned out especially bad when that context menu was to extended by an extension. It should be possible to properly extend (context) menus by adding a new slot with the specific text to be displayed. E.g. to add proposals for misspelled words it should be possible to add slots like - ".uno.Spellcheck?word=abcd" - ".uno.Spellcheck?word=xyz" to provide the corrections.
.
Not sure if that helps, but when asking for a context menu from the dispatcher, it was directly shwon and could not be manipulated. This was changed by myself, so you can get the returned context menu from the dispatcher, change it in any way and then show it. E.g. SfxPopupMenuManager* aMgr = mpMarginWin->DocView()->GetViewFrame()->GetDispatcher()->Popup(0, this,&rCEvt.GetMousePosPixel()); ((PopupMenu*)aMgr->GetSVMenu())->SetItemText(FN_DELETE_NOTE_AUTHOR,aText); ((PopupMenu*)aMgr->GetSVMenu())->Execute(this,rCEvt.GetMousePosPixel());
move target to 3.2.
Reset assigne to the default "issues@openoffice.apache.org".