summaryrefslogtreecommitdiff
path: root/officecfg
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2015-10-28 14:21:03 +0200
committerMaxim Monastirsky <momonasmon@gmail.com>2015-11-11 15:03:37 +0200
commit737555eb2ff5f4f90b9794784e1ac8f0451b9b97 (patch)
treecfeca6c43dfa3e93b34ab2923fd7fac6aa67125d /officecfg
parent5c142dd31de4a6d1c6ce9885ad06d84aca492152 (diff)
tdf#93837 Add a new PopupLabel property
Some commands in context menus use different labels than in the menu bar. In the old resource format those labels are defined in the resource file itself. Note that the menu xml has the menu:label attribute, but we can't use it because it lacks localization support, and as such useful only for user customization. The order of consideration now is: 1. Label - Used if Context/PopupLabel isn't defined. (It's also used as the base for toolbar tooltips.) 2. ContextLabel - Overrides Label when in menu or context menu. Useful to drop the context, e.g. "Insert Image" should be only "Image" under "Insert" menu. If exists, that's what returned when asking for the "Label" property, instead of the full label. 3. PopupLabel - Overrides Label/ContextLabel when in context menu. Used to give items in a context menu different labels than in the main menu, e.g. "Paste Special" from the main menu turns to "More Options" when in context menu. It doesn't affect the Label property, and should be asked separately. Change-Id: I7408fc2bfb8d384b0f1a72a78b8c5d7c50de38da
Diffstat (limited to 'officecfg')
-rw-r--r--officecfg/registry/schema/org/openoffice/Office/UI/Commands.xcs5
1 files changed, 5 insertions, 0 deletions
diff --git a/officecfg/registry/schema/org/openoffice/Office/UI/Commands.xcs b/officecfg/registry/schema/org/openoffice/Office/UI/Commands.xcs
index f5e12241dec7..85460d2cbc37 100644
--- a/officecfg/registry/schema/org/openoffice/Office/UI/Commands.xcs
+++ b/officecfg/registry/schema/org/openoffice/Office/UI/Commands.xcs
@@ -36,6 +36,11 @@
<desc>A localized text that describes the identifier of a command in a structured menu. </desc>
</info>
</prop>
+ <prop oor:name="PopupLabel" oor:type="xs:string" oor:localized="true">
+ <info>
+ <desc>A localized text that describes the identifier of a command in a popup menu.</desc>
+ </info>
+ </prop>
<prop oor:name="Properties" oor:type="xs:int" oor:nillable="false">
<info>
<desc>