The next lines will show you how to export your component into an OpenOffice.org package. There is quite nothing to do apart from following these small steps:
Select the File > Export menu. Then choose the UNO > OpenOffice.org package export type.
The next page of the wizard, asks for the UNO project to export (already selected), the directory where to export the package and the OpenOffice.org minimum compatibility version for the package. Depending of the selected OpenOffice.org version, the package will get a different name and a different structure.
Then click on the Finish button. The wizard will ask you whether to deploy to package or not and asks for the old package removal if needed.
Then we will suppose that the package is deployed on the
OpenOffice.org installation and we will test it using the following OooBasic
macro.
Sub testHelloworld oHelloworld = createUnoService( "org.openoffice.helloworld.Helloworld" ) oHelloworld.LadyName = "Robinson" print oHelloworld.sayHello( false ) print oHelloworld.sayHello( True ) End Sub
This macro should open two message windows with “Hello Mrs. Robinson” and “A third is 0.3333333”. Your first UNO component is now running, enjoy doing others.