Hello Giuseppe,

Hi all,

I implemented an XDispatchProviderInterceptor (as a Java object not a
UNO one) it's instantiated when a XJob (synchronous job) is fired by an
OnViewCreated event.

The interceptor works correctly and and it unregisters as frame event
listener and as interceptor when it receives
com.sun.star.frame.FrameAction.COMPONENT_DETACHING_value in
its frameAction() method.

I'm worried about what would happen when another interceptor register
itself at the same frame.

On the DevGuide I haven't find anything useful.

Are there other frame events that need to be detected?

The developers guide mention to register one interceptor for one URL only. Ambigous registrations will result in ambigous reactions :-)

Of course it can happen that different extensions wish to intercept the same functionality (e.g. .uno:Save) .. but then the last registered interceptor wins the race.

A better solution cant exists. Even if any already registered interceptor will be informed about the new interceptor ... what should be done then ? If every "old" interceptor try to register itself again ... its also undefined which one will win the race :-)

So I think extensions should define her own URL namespace and bring new functionality to OOo ... not redefining existing functionality. The interceptor mechanism should be used for well known office installations (e.g company installations) not for generic and widely used extensions.


TIA


Best Regards
Andreas

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

Reply via email to