Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


Hi All,

Thought I would just delete one of these entries but Kohei and Markus pointed out that's no good. If you go into customize keyboard in Spreadsheet you'll see two entries for "Rename Sheet" -> both appear to do the same thing but the unoName does something internally (see Kohei's notes below) while the RenameTable is probably correctly marked as "Rename Sheet". The code:

http://opengrok.libreoffice.org/xref/core/officecfg/registry/data/org/openoffice/Office/UI/CalcCommands.xcu#1304 &

http://opengrok.libreoffice.org/xref/core/officecfg/registry/data/org/openoffice/Office/UI/CalcCommands.xcu#1312

What can I rename so end user doesn't see the same thing twice. This is in reference to: https://bugs.freedesktop.org/show_bug.cgi?id=63965



Thanks!
Joel


On 06/28/2013 07:05 AM, Kohei Yoshida wrote:
On 06/28/2013 08:34 AM, Markus Mohrhard wrote:

Actually these are normally not trivial as they have code indirectly
attached to them so you should first check that also the attached
actions have the same behavior or are surely unused. Normally the
string is mapped to a command id which is then used in the code. For
example the .uno:RenameTable can't be deleted because it has a lot of
code attached that is necessary. I could not find anything for the
.uno:Name command but if you say that it appears in the menu when you
delete the string definition there appears to be somewhere a hidden
mapping.

.uno:Name is mapped internally to FID_TAB_RENAME which is still very much used.

The way to find out the mapping from an .uno:Foo name to an internal event ID is to look into these .sdi files in sc/sdi/ (without the ".uno:" prefix). In this case there is this entry

SfxVoidItem RenameTable FID_TAB_MENU_RENAME
(SfxStringItem Name FID_TAB_RENAME)
[
...
]

BTW, I'm not 100% sure how these two are related - the one at the top and the one in the parenthesis. I'm not an expert on this sdi file syntax.

Anyway, even this small hint will hopefully be helpful.

Kohei



Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.