Tim Tow wrote:
I have a custom toolbar defined in Addons.xcu that is not enabling properly.
The icons appear to be found properly but are disabled. The same URL is
being used on custom menubar, so it appears as though it is registered
properly. Here is a snippet of the Addons.xcu for the toolbar:
Two questions:
1. What could be causing the toolbar to be disabled (and what is the best
way to debug this issue?); and
The toolbar disables an entry for two reasons:
1. The queryDispatch(...) call on XDispatchProvider doesn't provide a
dispatch object.
2. The dispatch object sends a statusChanged notification with
FeatureStateEvent.IsEnabled = false. This results in a disabled toolbar
item.
You have to check whether your queryDispatch function is called. If yes,
please check your statusChanged notification.
2. Why does the submenu get the same icon as the toolbar when it isn't
specified to have an icon in Addons.xcu?
OpenOffice.org always associates an image to a command URL. Therefore
you see the same image on the toolbar and menu item.
Regards,
Carsten
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]