org.geotools.openoffice |
package org.geotools.openoffice
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 |
|
|
Compiles the UNO {@code .urd} binary file
idlc -C -cid -w -I $OO_SDK_HOME/idl org/geotools/openoffice/XReferencing.idl
Compiles the UNO {@code .rdb} registry file
regmerge geotools.rdb /UCR org/geotools/openoffice/XReferencing.urd
Creates the {@code .class} file for Java interfaces
javamaker -BUCR -nD -Torg.geotools.openoffice.XReferencing geotools.rdb $OFFICE_PROGRAM_PATH/types.rdb
Derives a {@code .java} source from the {@code .class} file
javap org.geotools.openoffice.XReferencing
Compiles {@code .java} source files
javac org/geotools/openoffice/*.java
Creates the {@code .jar} file
jar -cfm0 openoffice-2.3-SNAPSHOT.jar META-INF/MANIFEST.MF org/geotools/openoffice/*.class
Creates the {@code .pkg} file
zip -9 geotools.uno.pkg geotools.rdb openoffice-2.3-SNAPSHOT.jar META-INF/manifest.xml
Register the component to OpenOffice
unopkg add geotools.uno.pkg
|
|
Java Source File Name | Type | Comment |
Formulas.java | Class | Base class for methods to export as formulas in the
OpenOffice spread sheet. |
MethodInfo.java | Class | Information about a method to be exported as OpenOffice
add-in. |
Nature.java | Class | Exports methods from the
org.geotools.nature package as
OpenOffice add-ins. |
Referencing.java | Class | Exports methods from the
org.geotools.referencing package as
OpenOffice add-ins. |
Registration.java | Class | The registration of all formulas provided in this package. |
XNature.java | Interface | Services from the
org.geotools.nature package to be exported to
OpenOffice.
This interface is derived from the
XNature.idl file using the
javamaker tool provided in OpenOffice SDK, and disassembling the output using the
javap tool
provided in Java SDK. |
XReferencing.java | Interface | Services from the
org.geotools.referencing package to be exported to
OpenOffice.
This interface is derived from the
XReferencing.idl file using the
javamaker tool provided in OpenOffice SDK, and disassembling the output using the
javap tool
provided in Java SDK. |