Hi Mathias,

First of all, thanks for useful information and suggestions 
Please, see my comments in line

Alle 08:50, giovedì 7 settembre 2006, Mathias Bauer ha scritto:
[....]
> > Although an "official" support is actually missing, with a "creative" ;-)
> > use of the createUnoListener() function it's possible to intercept
> > dispatches and replace dispatch actions with your arbitrary basic code.
>
> Yes, correct. Of course this is something I recommend only to
> experienced developers. 

Yes, I agree.

> Thanks for posting this example. Does it exist 
> as a code snippet BTW?

No, but there should be an old version (more or less the same code) in the 
Andrew Pitonyak Macro document.
Anyway if you think it's appropriate I can submit it as a code snippet.


>
> We should mention two things here:
>
> Your example does not support the StatusListeners so it will not send
> any status events to the GUI. This will work in many cases but not in
> all. In case of the "Save" command this command will never be disabled
> then. This is not a serious problem but it will look unusual at least.

Of course you are right!
With a small work I've been able to manage the status-listener (at least for 
the .uno:Save dispatch) directly from my basic program.


> In this case it could help to redirect StatusListeners to the
> SlaveDispatcher.

This would seem a bit more difficult, but I've to experiment more...


>
> The interceptor also must be registered somehow, so binding the macro
> that registers it to the event "OnViewCreated" on a global level is
> recommened.

I can't find this event among the ones available in the user interface.
Perhaps is it only available via the API ? 

Thanks
Paolo

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

Reply via email to