summaryrefslogtreecommitdiffstats
path: root/officecfg
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2016-02-26 12:47:43 +0200
committerMaxim Monastirsky <momonasmon@gmail.com>2016-02-28 09:10:30 +0200
commit010b034cd6195c96a21633c328e9693275d27d72 (patch)
tree5a9cb79e5c68edee741b4dcc79d0fd3ccb240aa0 /officecfg
parentKill sfx2 menu support (diff)
downloadcore-010b034cd6195c96a21633c328e9693275d27d72.tar.gz
core-010b034cd6195c96a21633c328e9693275d27d72.zip
tdf#84258 Allow creation of command aliases
We already can use different labels for commands, based on whether they're in a menu, context menu or a toolbar. But in some cases we need different labels for the same type of UI element, or even different icons. One example is page/slide commands in Draw/Impress, as they share same commands, but need different icons/labels. Creating full-fledged duplicate slots just to satisfy the need of UI representation seems like overkill, and isn't flexible enough. The proposed solution is to allow creation of command entries, that do not correspond to real application slots, but instead link to another existing commands. The "real" commands will be used for controller factory and dispatch (execute/status) APIs, thus fully retaining functionality. This can be useful also for giving icons to complex commands (i.e. commands with arguments). Change-Id: I9b261b406ec8fc781cae06cf283963386379d4ad
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 1fec9f765777..54714b6fa088 100644
--- a/officecfg/registry/schema/org/openoffice/Office/UI/Commands.xcs
+++ b/officecfg/registry/schema/org/openoffice/Office/UI/Commands.xcs
@@ -46,6 +46,11 @@
<desc>Used for Tooltips (Toolbar and Glade Widgets that have their 'action_name' specified.)</desc>
</info>
</prop>
+ <prop oor:name="TargetURL" oor:type="xs:string" oor:localized="false">
+ <info>
+ <desc>The actual command to use for everything except label/icon, typically when the main command doesn't map to a valid application slot.</desc>
+ </info>
+ </prop>
<prop oor:name="Properties" oor:type="xs:int" oor:nillable="false">
<info>
<desc>