I have a writer extension I would like to intercept the context menu and add a submenu with a number of items
I have found this basic code, which can add an item on the context menu, but no submenu.
Then I remembered hanya's example called InterceptContextMenu, which is in python, and i believe i can make it add a submenu.
I have copied the code to a file called contextmenu.py, but the thing is that i cannot "activate" it from within the extension. I tried adding to the manifest.xml:
Code: Select all
<manifest:file-entry manifest:media-type="application/vnd.sun.star.uno-component;type=Python" manifest:full-path="contextmenu.py"/>
How do i activate this code in the extension?