Jimmy wrote:
Thanks for the explanation, it finally works ALMOST like a charm.
I encountered some problem with the whole statusChange thing now that I
don't only have my buttons in the toolbar but also in the menubar (same
commandUrl).
Now what I want is that of course the buttons with the same Command URL
listen to the same listener and react to my FeatureStateEvents but that
doesn't work. Every new Object gets a new Listener and I can't control
the outcome.
Anyone got an idea here?
Hi Jimmy,
You have to use a container which provides the same dispatch object for
a command URL. Another option would be to use separate dispatch objects,
but to share the state data. The add-ons I wrote use the first approach.
May be you want to have a look at the following add-on which uses the
new complex toolbar controllers feature. You can find the sources (C++)
here (for your problem look at ListenerHelper.h/cxx and class
BaseDispatch in MyProtocolHandler.h/cxx):
http://framework.openoffice.org/files/documents/25/3461/complextoolbarcontrols.zip
Regards,
Carsten
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]