Hello,

ivan@ivan-Presario-CQ43-Notebook-PC:~/aoo/main/officecfg/registry/data/org/openoffice/Office/UI$
ls

BaseWindowState.xcu        DbTableDataWindowState.xcu  MathWindowState.xcu
BasicIDECommands.xcu       DbTableWindowState.xcu
StartModuleCommands.xcu
BasicIDEWindowState.xcu    DbuCommands.xcu
StartModuleWindowState.xcu
BibliographyCommands.xcu   DrawImpressCommands.xcu     WriterCommands.xcu
CalcCommands.xcu           DrawWindowState.xcu
WriterFormWindowState.xcu
CalcWindowState.xcu        Effects.xcu
WriterGlobalWindowState.xcu
ChartCommands.xcu          Factories.xcu
WriterReportWindowState.xcu
ChartWindowState.xcu       GenericCategories.xcu
WriterWebWindowState.xcu
Controller.xcu             GenericCommands.xcu         WriterWindowState.xcu
DbBrowserWindowState.xcu   ImpressWindowState.xcu      XFormsWindowState.xcu
DbQueryWindowState.xcu     makefile.mk
DbRelationWindowState.xcu  MathCommands.xcu


I can not find: <Module>Commands.xcu

I have already been modifying:
http://opengrok.adfinis-sygroup.org/source/xref/aoo-trunk/main/sd/uiconfig/sdraw/menubar/menubar.xml

But after on the interface I can not see that I modify labels. Disappear.ar.


2013/2/27 Ariel Constenla-Haile <arie...@apache.org>

> 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
>

Reply via email to