OpenOffice.org の SDK を使う

非常に有用なこちらのサイトが本日は 403 Forbidden で、ちょっと困ってしまいました…。

OOo SDK 2.1 を Eclipse 3.2 で使う(日本語)

細かなステップは下記の英語を参考にしてください。要は

  • types.rdb もバージョン管理に入れる
  • SDK インストール後にバッチファイルを走らせる必要はない。手動で IDL をコンパイルしたければ、OOoOOo SDK の exe/dll にパスを張る

ということです。

How to use OOo SDK 2.1 with Eclipse 3.2 (en)
Although there are some online tutorials (English, Japanese), they contains some old information. Followings are a simple direction to create a new UNO-IDL project with Eclipse IDE.

  1. get the installation packages of OpenOffice.org 2.1 and OpenOffice 2.1 SDK from openoffice.org, and install them into your computer. Paths that do not contain white space are better to install them (e.g., "C:/opt/ooo" is better than "C:/Program Files/OpenOffice.org 2.1")
  2. install Eclipse plugin. Use Eclipse Update Manager (start Eclipse, select Help -> Software Update -> Find and Install) with this site.
  3. Create a new UNO-IDL project.
  4. Be sure that "types.rdb" should not be ignored if you manage source code and materials under some version control system (other files such as ".urd" files do not be needed to manage by it). "types.rdb" can be retrieved as the output of IDL compiration and regmerge, but it's not so easy.

No more installation processes are needed. Some tutorials say that a batch file should be run, but current SDK does not require it. If you want to run some tool such as UNO-IDL compiler (idlc.exe), add paths of the OpenOffice.org program directory (default: C:/Program Files/OpenOffice.org 2.1/program) and the OpenOffice.org SDK bin directory (default C:/Program Files/OpenOffice.org 2.1 SDK/windows/bin) to the Windows environmental variable.