incubator-ooo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ariel Constenla-Haile <arie...@apache.org>
Subject Re: [EXT] programmatically editing a addons toolbar
Date Tue, 17 Jan 2012 12:10:42 GMT
Hi Fabian

On Tue, Jan 17, 2012 at 8:46 AM, fabian <fmh@netempire.de> wrote:
> Hi,
>
> I am writing my first UNO/Java extension for ooo 3.3 and are trying to add a dropdown/submenu
to my existing toolbar.
>
> I created the toolbar in the Addons.xcu file and are trying now to get a handle to it.
> I read about implementing the com.sun.star.frame.XToolbarController interface but don't
know how to address my toolbar.

a ToolbarController is almost impossible to implement with the current API.
Instead, you have to use the so called "complex toolbar controls" feature:

http://wiki.services.openoffice.org/wiki/Framework/Article/Generic_UNO_Interfaces_for_complex_toolbar_controls

There is a C++ example on the SDK.

Regards

Mime
View raw message