Java protocol handler registered, but not called

Discussions about using 3rd party extension with OpenOffice.org
Post Reply
aharnack
Posts: 33
Joined: Mon Jun 02, 2008 8:26 pm

Java protocol handler registered, but not called

Post by aharnack »

Hi,

I'm trying to write a Java extension for OpenOffice Writer (version 4.1.x, on Linux). I used the protocol handler example from the SDK distribution that matches the OOO version as a starting point. The Java code compiles, and the package loads. Menu and toolbar entries have been created, but they are greyed out. Additional debug output shows that the Java class is loaded, as __getComponentFactory() and __writeRegistryServiceInfo() are called, and the extension is listed in "unopkg list –verbose". However, functions such as queryDispatch(), queryDispatches(), addStatusListener() and dispatch() are never called. Does anyone have any idea what the problem could be? Alternatively, does anyone know of a Java extension that provides a protocol handler, including source code, which works with recent AOO versions, and that I could use as a reference?

Thanks in advance.
Post Reply