There is a plugin for Netbeans to develop Add-on for OpenOffice, no need to bother about coding a Add-on, only you have to bother is what Add-on do and how to code them. Netbeans provide facility to develop Add-on, test coded add-on in OpenOffice directly and debug them.

But there is one thing you have to install openoffice.org SDK development kit in your system and openoffice too :). http://download.openoffice.org/sdk/index.html.




All setting can be of the add-on can be done while creating it like define user commands.

After you click Finish, the wizard creates two configuration files and a Java class.The AddOns.xcu configuration file includes the add-on parameters, and ProtocolHandler.xcu defines the protocol handler configuration. Protocol handlers are part of OpenOffice.org dispatch framework; they bind user-interface controls, such as menu or toolbar items, to the functionality of penOffice.org. Everything reachable through the user interface is described by a command URL and corresponding parameters.
The structure of the ProtocolHandler.xcu file defines a namespace for the add-on, All commands
defined by the same addon use this namespace.
The dispatch() method is where user code is begin to code. As a example from dispatch() method we can call another class or method.
Following is a example code where insert "Hello World" to the document.


But there is one thing you have to install openoffice.org SDK development kit in your system and openoffice too :). http://download.openoffice.org/sdk/index.html.



All setting can be of the add-on can be done while creating it like define user commands.
After you click Finish, the wizard creates two configuration files and a Java class.The AddOns.xcu configuration file includes the add-on parameters, and ProtocolHandler.xcu defines the protocol handler configuration. Protocol handlers are part of OpenOffice.org dispatch framework; they bind user-interface controls, such as menu or toolbar items, to the functionality of penOffice.org. Everything reachable through the user interface is described by a command URL and corresponding parameters.
The structure of the ProtocolHandler.xcu file defines a namespace for the add-on, All commands
defined by the same addon use this namespace.
The dispatch() method is where user code is begin to code. As a example from dispatch() method we can call another class or method.

No comments:
Post a Comment