Matthias Benkmann wrote:
Is it possible to create a new item category that will be listed in
Tools/Customize/Add../Category and to put custom commands into it? I
know I can create macros that will appear in the OpenOffice.org macros
category, but this is not what I want. I want to create a custom Java
component with its own command category and commands. Is this
possible?
Hi Matthias,
No, this is not possible, at least with an acceptable amount of work
from your side. Currently commands available in the tools customize
dialog are always bound to a module or to all modules. A component is
not part of an OOo module. You could add programmatically a new category
and commands to the configuration, but the controller of each module has
to provide available commands. So the customize dialog wouldn't use your
new commands and categories.
I can think of an enhancement, where the customize dialog also uses the
addon configuration to provide the additional commands/categories.
There is a big problem with this solution: An add-on/component can be
deinstalled by the user. The deinstallation process doesn't call the
component, so it is possible that commands from the component are in the
menu bar or a toolbar, but the component itself is not available
anymore. This would lead to confusion and non-functional commands.
From my point of view you should provide all functions of your
component with an add-on (menu bar, toolbar, popup menu in the add-on
menu). The add-on implementation of OOo automatically controls the user
interface definitions of any add-on. If your add-on will be deinstalled
your functions are automatically removed from the user interface.
Therefore the above described problem cannot occur.
Regards,
Carsten
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]