From 010b034cd6195c96a21633c328e9693275d27d72 Mon Sep 17 00:00:00 2001 From: Maxim Monastirsky Date: Fri, 26 Feb 2016 12:47:43 +0200 Subject: 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 --- officecfg/registry/schema/org/openoffice/Office/UI/Commands.xcs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'officecfg') 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 @@ Used for Tooltips (Toolbar and Glade Widgets that have their 'action_name' specified.) + + + The actual command to use for everything except label/icon, typically when the main command doesn't map to a valid application slot. + + -- cgit