How to add item category to Tools/Customize

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

How to add item category to Tools/Customize

Matthias B.-2
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?

Ciao

Matthias

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: How to add item category to Tools/Customize

Carsten Driesner
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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: How to add item category to Tools/Customize

Matthias B.-2
On 1/12/06, Carsten Driesner <[hidden email]> wrote:

>  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).

Well, the functionality I want to provide is not supposed to be
visible by default, nor do I wish to force a certain menu/toolbar
location on the user. I'd like the user to determine if and where he
can access the function. I think I'll create a macro library whose
functions simply call the Java component. Then the user can add the
respective macros via Tools/Customize.../Add..   Not as elegant as
having my own category but it should work. The only problem then is
that I can't provide predefined icons for my functions.

Matthias

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: How to add item category to Tools/Customize

Carsten Driesner
In reply to this post by Matthias B.-2
Matthias Benkmann wrote:

> On 1/12/06, Carsten Driesner <[hidden email]> wrote:
>
>
>> 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).
>
>
> Well, the functionality I want to provide is not supposed to be
> visible by default, nor do I wish to force a certain menu/toolbar
> location on the user. I'd like the user to determine if and where he
> can access the function. I think I'll create a macro library whose
> functions simply call the Java component. Then the user can add the
> respective macros via Tools/Customize.../Add..   Not as elegant as
> having my own category but it should work. The only problem then is
> that I can't provide predefined icons for my functions.

Hi Matthias,

Now I see your point and I think your idea is good. Unfortunately OOo
has currently no support to enhance the built-in commands. The current
concept to add functions to OOo is based on add-ons. Only Calc has an
function based extension concept called add-in.

May be you want to write a request for enhancement as we think to extend
our add-on concept for the next major version. Any information what
external developers need can be of great value for us.

Regards,
Carsten

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: How to add item category to Tools/Customize

Matthias B.-2
> May be you want to write a request for enhancement as we think to extend
> our add-on concept for the next major version. Any information what
> external developers need can be of great value for us.

Done.

http://qa.openoffice.org/issues/show_bug.cgi?id=60471


Matthias

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]