Hi all,

I implemented a Java component, embedded in an extension, which exports a
single "com.sun.star.frame.ProtocolHandler" service.

Through the protocol URL, its com.sun.star.frame.XDispatch:dispatch()
method is bound to a submenu item.

I have an XEventListener which should be fired on "OnLoad" event.

But the com.sun.star.lang.XInitialization:initialize() method of the
component, in which the XEventListener is activated, is called when the
menu is displayed the first time.

That means that the event is intercepted only from that moment onward,
that is, after the menu is displayed the first time.

I need to have the XEventListener ready to fire up whenever OOo loads a
document, even if the doc is passed to OOo directly on start line (e.g.
with the command: soffice mydoc.odt).

Is there a way to implement this in a ProtocolHandler or do I need to
implement another service in the component besides ProtocolHandler?

Would a job be suitable, for example?

Thanks.

--
Kind Regards,
Giuseppe Castagno
Acca Esse http://www.acca-esse.eu
[EMAIL PROTECTED]
[EMAIL PROTECTED]






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

Reply via email to