Help find a function announced in the LO 25.2 changelog

The LibreOffice 25.2 changelog states:

A context menu is usually predefined at LibreOffice installation. Customization is done statically with the Tools + Customize dialog. The (new) ContextMenu service provides a mean to make temporary additions at the bottom of a context menu.

Where can I find this function and can somebody please explain to me how to use it?

Welcome @Rabin1 !

In ReleaseNotes/25.8 there is a link to the Wiki page on how to create a custom context menu in Calc:

• With the contextmenu.RemoveAllItems() method, you can opt for configuring a totally customized context menu. Example in Wiki: context menu.


recWin11_25842

It seems that LibreOffice Help does not address the ContextMenu service at this time.

In the comment at the beginning of the SF_ContextMenu module
(under the Application Macros and DialogsSFWidgets) one reads:

'''		Detailed user documentation:
'''			https://help.libreoffice.org/latest/en-US/text/sbasic/shared/03/sf_contextmenu.html?DbPAR=BASIC

AFAICT the sf_contextmenu.html file (or .xhp for that matter) is not available.

Anyway, in the said comment you shall find the example for Writer too.

So basically two things I got from this:

the (new) ContextMenu service

… 1) is a new function that has not yet been documented and nobody really knows how to use it
… 2) is something that somehow needs to be coded by the user into a config file that sits inside a odt/ods etc. file

Am I correct? Because I don’t do such advanced coding stuff to customise LO.

Note that the function that you refer to is listed under “scripting”; it’s not a feature for user (to click a button or a menu), but a function that is now available for those who write macros.

partially.

actually the info left in the source code is a bit misleading since there’s no dedicated file
in https://opengrok.libreoffice.org/xref/help/source/text/sbasic/shared/03/
@JPLED could tell us more about his plan to complete it.

the examples given in wiki and source code are pretty straightforward for macro users.

it can also just sit in your profile, and apply to any document you would open.

you’ll see plenty of requests for features here in Ask, where a couple of dozens people can provide directions and/or turnkey solutions.

Ok, got it, thx for the explanation.

I confirm that the help page about the ContextMenu service is behind schedule. Sorry for that. :fearful:

It is realistic to expect the text before the end of January 2026.
Note however that you will find it temporarily at that moment in next url, where “latest” is replaced by “master”:

https://help.libreoffice.org/master/en-US/text/sbasic/shared/03/sf_contextmenu.html?DbPAR=BASIC

I confirm that the help page about the ContextMenu service …

DONE.

https://help.libreoffice.org/master/en-US/text/sbasic/shared/03/sf_contextmenu.html?DbPAR=BASIC