Hi Ivan,

On Tue, Feb 26, 2013 at 04:32:15PM -0600, jorge ivan poot diaz wrote:
> Hello,
> 
> I try to change the name of a menu in draw. Only I want to learn how it
> works source code.
> 
> I try to change: in DRAW
> 
> From Tools> Color Replacer to Tools> test.
> 
> I've been modifying:
> 
> https://svn.apache.org/repos/asf/openoffice/trunk/main/helpcontent2/source/text/sdraw/guide/eyedropper.xhp
> 
> But I have not results.

This is only a help file. 

> I think I'm changing something that should not.
> 
> Help me please.
> 
> What files I have to modify to do this.

Every item in the menu bar, the toolbars, and the statusbar, is
represented by a string that we call a UNO command. Menu bars,
statusbars and toolbars are defined in XML files, they are usually
located in 

<module>/uiconfig/[submodule/][uielement:menubar|statusbar|toolbar]/*.xml

For the menubar and the statusbar you'll find only one xml file, because
there is only one menubar and only one statusbar.

Locate the menubar definition
http://opengrok.adfinis-sygroup.org/source/xref/aoo-trunk/main/sd/uiconfig/sdraw/menubar/menubar.xml
and search for the command following the menu structure in the UI.

Once you found the command, you can change the label (the text displayed
in the UI). Labels for UNO commands are defined in configuration files,
located in
main/officecfg/registry/data/org/openoffice/Office/UI/<Module>Commands.xcu

UNO commands that are used in more than one application and have the
same label, are defined in GenericCommands.xcu.

Note that your change will only modify the en-US string. You don't need
to rebuild the whole office for this simple change, only officecfg and
postprocess, then copy the respective modified file back in your
installation (I leave this as homework ;) ).


Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina

Attachment: pgpmoJGlIirhL.pgp
Description: PGP signature

Reply via email to