OpenOffice.org Add-Ons provide one or more functions through
the user interface of OpenOffice.org. A typical Add-On is available
as a UNO package (or component) that is easily deployed with the deployment tool.
In addition to an ordinary UNO package, an Add-On package contains configuration files
which specify the user interface, registration for a protocol scheme, and
first-time instantiation. An Add-On will typically react on one or more commands
defined for the protocol of the Add-On.
See for example
Add-Ons.
The commands that are defined in an Add-On are available either in an menu, in a toolbar, or in both a menu and a toolbar in OpenOffice.org. The context of a command determines in which OpenOffice.org application it will be visible. Possible contexts are:
After you have deployed the Add-On in an OpenOffice.org installation you can use it directly from the user interface.
You will see the name of your new top-level menu in the OpenOffice.org menu bar.
When you click on the new menu item, the menu structure with the commands you defined will drop down.
A toolbar is shown containing the new commands for the current context.
You must implement the calls to your commands in your main Java file with the actions that
should happen when your command is selected.