[ooo-build] Navigation buttons progress
Cedric Bosdonnat
cbosdonnat at novell.com
Wed Jul 1 00:50:28 PDT 2009
Hello Maja,
Le mercredi 01 juillet 2009 à 02:11 +0100, Maja Djordjevic a écrit :
> 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?
> Any help for creating the actual toolbar is highly appreciated :)
Here is how I calculated that value based on the id in the file
sw/source/ui/inc/shells.hrc. When checking for the media toolbar it
gives:
RID_MEDIA_TOOLBOX = RC_SHELLS_BEGIN + 61
where RC_SHELLS_BEGIN = RC_SHELLS = RC_BASE + 3250
and RC_BASE = RID_SW_START = 20000
then for the media toolbox we get the value: 23311, which is the value
defined in the file you mentioned.
I guess that the value for the Navigation toolbar has to be calculated
in the same way, which would give:
RID_NAVIGATION_TOOLBOX = 23312
I'm not sure of all that... but it seems that this RID and this map are
linking the toolbar/navigationobjectbar resource to the
SwNavigationShell.
--
Cedric
More information about the ooo-build
mailing list