Apache OpenOffice (AOO) Bugzilla – Issue 72119
Images in Addons.xcu should be queried every time - not only for addons
Last modified: 2013-02-24 21:08:34 UTC
I wrote a CommanURL and added a picture to the .uno.pkg. This picture is not shown in the menu if I only add it transient and use the Addons.xcu posted below. If I add it through the Addons.xcu to the toolbar or menu, the picture is shown. Here is my Addons.xcu (with this one, no image is shown) -----%<---- <?xml version='1.0' encoding='UTF-8'?> <oor:component-data xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" oor:name="Addons" oor:package="org.openoffice.Office"> <node oor:name="AddonUI"> <node oor:name="Images"> <node oor:name="de.twc.oocom.components.saveto.JudasSaveToComponent" oor:op="replace"> <prop oor:name="URL" oor:type="xs:string"> <value>.JudasSaveTo:</value> </prop> <prop oor:name="ImageIdentifier" oor:type="xs:string"> <value>%origin%/JudasSaveto</value> </prop> </node> </node> </node> </oor:component-data> -----%<-----
cd: Confirmed and accepted. It's a valid use case that someone wants to extend the image base with extensions (Addons.xcu). Therefore the UI elements (menubar/toolbar/statusbar) should also query the addon image repository.
Created attachment 46666 [details] The changes are in two files: toolbarmanager.cxx and its header file.
cd: Set issue to patch.
Created attachment 46717 [details] Demo add-on to test the new support for add-on images
Created attachment 46718 [details] Basic script to test the new support for add-on images for menus&toolbars
cd: Patch accepted and integrated into CWS fwk68. Fixed.
cd->jsk: Please verify. To verify 1. Install the extension (DemoAddon_cpp.oxt) first. 2. Copy the Basic script to the Basic IDE 3. Open a new Writer document 4. Run the macro using the menu "Tools - Macro - Run Macro..." 5. You should see a new button at the end of the Standard bar with the same image as the add-on toolbar (white gulls on a blue background). 6. Open the File menu and you should see a new entry at the end of the menu called "No image!". It should have an image in front same as the new button.
Verified for Windows, Solaris (Sparc) and Linux
close