On 21.10.2010 19:30, Eike Rathke wrote:
Hi Mathias,

On Thursday, 2010-10-21 17:41:45 +0200, Mathias Bauer wrote:

          Title: Treatment of HelpIds changed
Effective from:  CWS changehid

What exactly do developers working on a CWS that introduces new HIDs
have to do after having rebased that to a milestone where CWS changehid
was integrated?

   Eike


Replace the number by a string, I gave an example on the wiki page.
Look at the existing helpid.hrc files, it should be easy to understand.

Let's assume you have

        HelpId = HID_FOO_BAR;

in your src file and

        #define HID_FOO_BAR SC_HID_START+4711

or so in your helpid.hrc file. With the changes in cws changehid this won't compile anymore as the rsc thankfully points developers to all places that still use numbers instead of strings.

The easiest way to get your compiled would be to just change the hrc file to

        #define HID_FOO_BAR "SC_HID_FOO_BAR"

(assuming that the file belongs to the sc module). That's all.

The same applies if you have code like

        SetHelpId( HID_FOO_BAR );

If controls shall be accessible to auto tests or help content, they now will need to get a HID assigned explicitly, the auto-HID feature of the resmgr is gone. That's the small price to pay for getting rid of the ridiculous HID compilation process and all the problems related to the use of hid.lst.

Do you think that I should explain that more detailed in the wiki?

Regards,
Mathias

--
Mathias Bauer (mba) - Project Lead OpenOffice.org Writer
OpenOffice.org Engineering at Oracle: http://blogs.sun.com/GullFOSS
Please don't reply to "[email protected]".
I use it for the OOo lists and only rarely read other mails sent to it.

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

Reply via email to