After a working directory was mountet in the file system,
the Calc Add-in Wizard can be invoked with
New->OpenOffice.org SDK->Calc Add in.

At first, you have to enter the name of the Java file and component, which
should be generated by the wizard.

The service setup panel will show you the service name, the implementation
name, the package, and the interfaces, which should be implemented by
the Calc Add-in component. In order to add your interface to the list of
interfaces, you have to press the button, which resides at the right
side of the list.

The next dialog shows the interfaces, which will be
implemented by your component. You have to add your interface to the list.

Now, you have to select your Interface Description Language
file from the filesystem. The icons in front of the IDL files are marked
with 'IDL'.

After selecting the IDL file the interface name is added
to the list of interfaces.

Also the service setup panel specifies the new interface.

The next panel allows you to customize the default description
of all methods and their parameters. In detail you can change the names
and the description of all methods and its parameters, which will be
displayed in the Spreadsheet program. Also you can determine the category
of your functions.

After finishing the Add-Ins Setup Panel several files will
be created in the before selected directory. The name of your component
is added to every file name.
The ANT file Build_<COMPONENT_NAME>.xml can be used to
build and to deploy your component.
The Java file <COMPONENT_NAME>.java implements your component
and therefore your functions for the spreadsheet program.
The JAR Content file <COMPONENT_NAME>.javaContent can
also be used to build your component.
The manifest file MANIFEST_<COMPONENT_NAME>.TXT is needed for
the JAR file and component, which should be the result of the build
process.
The Star Basic file register_<COMPONENT_NAME>.bas helps you
to register the new component in the Office registry.

Now you have to implement your functions for the spreadsheet
program. You have to replace the default return values of your new
functions, which are part of the file <COMPONENT_NAME>.java .

After all the component can be created by executing
the file Build_<COMPONENT_NAME>.xml .

In our example the output of the successful build process
looks like the following.

After merging the new types of the component <COMPONENT_NAME>.rdb to an Office registry and registering the component <COMPONENT_NAME>.jar at an Office registry, you can take advantage of your new functions.
By now, you can select your functions from the functions
list in the spreadsheet program.

|