[Solved] I'm developing an OpenOffice extension using Python. I would like to toggle on/off a check mark for the menu item when it is selected. I have added my menu items in Addons.xcu, but I'm not sure how to access them in Python code to toggle the check status when they are clicked. Any help would be really appreciated.
Thanks.
[Solved]Toggle check mark in menu items for Python extension
[Solved]Toggle check mark in menu items for Python extension
Last edited by jmarch on Fri Jan 11, 2019 4:30 pm, edited 2 times in total.
LibreOffice 7.3 on Mac Monterey
Re: Toggle check mark in menu items for Python extension
Post by calling statusChanged with FeatureStateEvent.State = bool in your dispatch object.
So you need dispatch object and you have to receive object which implements css.frame.XStatusListener when your dispatch provider is called.
So you need dispatch object and you have to receive object which implements css.frame.XStatusListener when your dispatch provider is called.
Please, edit this thread's initial post and add "[Solved]" to the subject line if your problem has been solved.
Apache OpenOffice 4-dev on Xubuntu 14.04
Apache OpenOffice 4-dev on Xubuntu 14.04
Re: Toggle check mark in menu items for Python extension
Thanks! That helped a lot. That is working now.
LibreOffice 7.3 on Mac Monterey