Thomas Krumbein wrote:
Hey Carsten,

Carsten Driesner schrieb:
[..]
Hi Thomas,

There is no way to access an add-on toolbar via the configuration API. These toolbars are not stored in the UI configuration base, but in the Office configuration. They are created on-demand via the Addons.xcu and not by reading a toolbar.xml file. I don't know why you want to change the structure using the UI configuration API. You have access using the Addons.xcu file. Custom toolbars are persistent toolbars where their structure is stored in the soffice.cfg folder. You can still access the toolbar (without structure info) via the LayoutManager and make it visible/invisible, move it around or dock/undock it.

Yes, this is possible, but I want to change the displayed title of a
integrated button in real-time. Thia is possible using a "custom-"
toolbar and using the ConfigurationManager.
I haven“d found a way to use the layout Manger??
Hi Thomas,

The UI configuration API shouldn't be used for real-time updates of the displayed text. This is a misuse of the API! It's designed for persistent customization and needs several file I/O. That's something which is very costly for real-time updates! You have to implement a dispatch provider, which is required for most extensions, where you can use the statusChanged() notifications to manipulate the toolbar buttons. Unfortunately Basic doesn't support all features needed to implement a real dispatch provider.

You can find more information about what "features" a normal toolbar button supports via statusChanged() notifications here:
http://wiki.services.openoffice.org/wiki/Framework/Article/OpenOffice.org_2.0_User_Interface_Controller_Internals#Generic_toolbar_item_controller

Regards,
Carsten

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org

Reply via email to