[Libreoffice-commits] core.git: Support of popupmenu resource type
Maxim Monastirsky
momonasmon at gmail.com
Wed Nov 4 00:55:20 PST 2015
Hi Stephan,
On Wed, Nov 4, 2015 at 9:52 AM, Stephan Bergmann <sbergman at redhat.com>
wrote:
> Out of curiosity, do you have a short summary what this is going to
> be used for? Is it about right-click context menus
Yes. I'm trying to implement tdf#93837 - Allow customization of the
Context Menus (which is a continuation of i#7449). For this I need to
change the current .src-based popup menus to a format that allows
writing the modified menu back, and also be able to save to the user
profile or the document itself, the same way we do for other UI
elements. But there are also some secondary goals, that could be
considered later:
1. Easy creation of toolbar buttons with commands-based drop-down
menus. This is something the UX guys are asking for a very long time.
2. We already support 3 different formats to express menus: .src,
framework, VclBuilder. I really hope that it will be possible to kill
one of them (the .src) at some point.
> (are they maybe created in hard-coded ways in the code right now, and
> that will change to a more flexible scheme)?
It depends, e.g. the hard-coded menu in
chart2/source/controller/main/ChartController_Window.cxx should be
easily convertible to xml (and killing then also
svt::ContextMenuHelper), but there are some menus with a custom
implementation (e.g. spellcheck) that unfortunately would need more
complex solution.
Maxim
More information about the LibreOffice
mailing list