With a little help from my friends :), I realised there are some parts missing to creating the icons for the toolbar: this is what you need to do if you're going to insert custom icons! I can't guarantee this works, since I see no buttons what so ever, but everybody is suggesting the same thing:
- you have to insert the following code:
<prop oor:name="Properties" type="xs:int">
<value> 1 </value>
</prop>
in e.g. WriterCommands.xcu file, under the part that defines the toolbar button, to enable the icon to appear.
When that is done, you need 4 images (or 4 copies of one image :) ) put into the src/icons/ and src/icons/tango folders. The images name should derive from the name of your command, e.g. if your command is NavigateBack, the names of the files should be lc_navigateback.png, lch_*, sch_* and sc_*
The module that should also be rebuilt is packimages.
If this doesn't work, try reinstalling. If that doesn't work, try purging the user config directory (~/.openoffice.org/3/user/config)
I think I have some serious build problems, because some things behave very diferently on my distro comparing to Cedric's.
I'm trying killing and rebuilding individual modules, and I shall have to try full rebuild if that doesn't work.
Possible things that I still haven't tried:
Cedric suggested to add an entry to sfx2/source/appl/workwin.cxx file, describing the navigationobjectbar. This is not the first time I encounter that there should be some (probably five-digit) number somehow connected to the toolbar I'm trying to make. I thought that the number would be generated by combining SFX_INTERFACE_SW_START and a small constant, but I realised it's just 250, and the numbers I see for other toolbars are usually around 23000 for writer. I guess that the numbers associated with the commands I make is generated by combining the FN_EXTRA2 and SID_SW_START - and those *are* around 20k...maybe I'm getting the concept of these IDs completely wrong? I've got this posted to the mailing list, hoping for some feedback :)
The other option I will also try before full rebuild, is adding the buttons to the standard toolbar instead of creating my own one.
Any help for creating the actual toolbar is highly appreciated! :)
Tuesday, June 30, 2009
Subscribe to:
Post Comments (Atom)
1 comments:
Hi Maja,
I've added the magic Property to the XCU file: it works fine: the icons are shown.
Post a Comment