Provides Geotools functionalities as add-ins for OpenOffice.

Compilation and deployment instruction

All {@code XFoo} Java interfaces are generated from IDL files with the same name. As long as {@code XFoo} Java/IDL interfaces are not modified, there is no need for the OpenOffice SDK. But if any {@code XFoo} interface is modified, then steps 1 to 3 below must be done. Steps 5 to 7 are performed by Maven, but are cited here for completness. Step 8 must be executed on the client machine (users can also use the "Tools / Package manager" menu from OpenOffice GUI).

Tool Provided with
idlc OpenOffice SDK
regmerge OpenOffice SDK
javamaker OpenOffice SDK
javap Java SDK
javac Java SDK
jar Java SDK
zip Unix distribution
unopkg OpenOffice suite

 

Required OOo JARs
ridl.jar
unoil.jar
jurt.jar
juh.jar
  1. Compiles the UNO {@code .urd} binary file

    idlc -C -cid -w -I $OO_SDK_HOME/idl org/geotools/openoffice/XReferencing.idl
  2. Compiles the UNO {@code .rdb} registry file

    regmerge geotools.rdb /UCR org/geotools/openoffice/XReferencing.urd
  3. Creates the {@code .class} file for Java interfaces

    javamaker -BUCR -nD -Torg.geotools.openoffice.XReferencing geotools.rdb $OFFICE_PROGRAM_PATH/types.rdb
  4. Derives a {@code .java} source from the {@code .class} file

    javap org.geotools.openoffice.XReferencing

  5. Compiles {@code .java} source files

    javac org/geotools/openoffice/*.java
  6. Creates the {@code .jar} file

    jar -cfm0 openoffice-2.3-SNAPSHOT.jar META-INF/MANIFEST.MF org/geotools/openoffice/*.class
  7. Creates the {@code .pkg} file

    zip -9 geotools.uno.pkg geotools.rdb openoffice-2.3-SNAPSHOT.jar META-INF/manifest.xml

  8. Register the component to OpenOffice

    unopkg add geotools.uno.pkg