Madhan Ponnusamy wrote:
hai,
I had added menus and submenus in openoffice impress using a java
program.now i want to add action event to those submenus i.e) if the user
click the submenu a java class file should be called. How to do this?


you should take a look on ProtocolHandler add-ons. See for example the <sdk>/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_java and i suggest the appropriate DevGuide chapter http://api.openoffice.org/docs/DevelopersGuide/Components/Components.xhtml#1_7_Integrating_Components_into_OpenOffice.org

A small ProtocollHandler object can trigger different Java classes for different commands (simplified -> protocol+commands = menu|toolbar items).

You can package your ProtocolHandler + xcu files + your Java classes in one extension package and can deploy it easily.

Juergen

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to