Hi Cédric,

> Hum... I have found out that some HID are defined in svx/inc/helpid.hrc
> and svx/source/src/app.hrc. What's the difference between those two?
> Should I add the new HIDs in both files as well?

No, please don't. Put your new ID in the same file as other IDs around
where your new ID lives.

The Help ID system is somewhat ... anachronistic. The basic idea is that
help IDs are globally unique. To ensure this, multiple number circles
are defined (svtools/solar.hrc), and within a module, you usually have
one of those circles.
For various reasons (e.g. code block moves, this applies to
svx/source/src, which formerly lived in an own module), the assignment
between a module and a number circle is not always clear. Also, bit rot
causes problems, since this system is not really maintainable.

A (quite old) documentation about help IDs is at
http://ui.openoffice.org/knowledge/help_ids.html. Not sure it is of much
help nowadays ...

One idea which came up during the new build system prototype is to get
rid of help IDs completely, and replace them with help strings
(something which the SmartID in VCL already can do). I hope we can do
this in a not too distant future, the IDs are a PITA.

Ciao
Frank

-- 
- Frank Schönheit, Software Engineer         [email protected] -
- Sun Microsystems                      http://www.sun.com/staroffice -
- OpenOffice.org Base                       http://dba.openoffice.org -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to