Make sure that you have configured a valid OpenOffice.org and OpenOffice.org SDK installation
under Tools > Options > Miscellaneous > OpenOffice.org Extensions.
Use the OpenOffice.org Calc Add-In project template.
Choose File > New Project > OpenOffice.org > OpenOffice.org Calc Add-In.
Specify the project name.
Specify the Add-In name which is used to create a class name, UNO Idl service and interface name implicitly.
Specify a Java package (implicitly mapped to modules in UNO Idl). Note: This is an optional step.
Select the project location. The project location is the directory where the new project should be created.
Define one or more new Add-In functions and finish the wizard to generate all necessary files and the intial
code skeleton for the new Add-In component.
Choose Build >
Build Main Project or right-click any project and choose Build Project.
With the context menu of the project node (projects window) you can create and deploy an office
extension package directly into your specified office installation.
Right-click on the project node > Create OXT to create the extension package.
Right-click on the project node > Deploy Office Extension to deploy the extension.
Alternatively, you can choose the appropriate targets in the context menu of the build.xml file.
Choose build.xml > Run Target > uno-package to create the extension package.
Choose build.xml > Run Target > uno-deploy to deploy the extension.
Run the project
This is currently not supported. OpenOffice.org extensions are running in the OpenOffice.org process
and a suitable workflow to support this from inside the IDE is not yet implemented.
Debug the project
Debugging OpenOffice.org extensions is quite simple. In the Projects window, open the context
menu and select "Debug Extension in Target Office".
OpenOffice.org is started with a new user installation that is created in the
build/soffice_debug directory. Your extension is deployed in this new user installation
and OpenOffice.org is started.