Jimmy wrote:
2.) How can I gray-out and enable commands at runtime? I got my DispatchInterceptor to gray out commands when initiated but how can I change the behaviour at runtime? Do I have to write more than one DispatchProviderInterceptor and release and register them all the time depending on the context?

Hi Jimmy,

The user interface elements register themselves at the dispatch objects as listeners. These objects are responsible to provide the correct state to the listeners (via com.sun.star.frame.XStatusListener::statusChanged ). Therefore the dispatch objects (provided by your dispatch interceptor) must call statusChanged on the listeners to offer the correct state information.

Regards,
Carsten

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

Reply via email to