summaryrefslogtreecommitdiff
path: root/include/vcl/commandinfoprovider.hxx
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 /include/vcl/commandinfoprovider.hxx
parent7affe26a1291eef8c77e890228061f13e987bff1 (diff)
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 'include/vcl/commandinfoprovider.hxx')
-rw-r--r--include/vcl/commandinfoprovider.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/vcl/commandinfoprovider.hxx b/include/vcl/commandinfoprovider.hxx
index d6aa358e7192..29a9bf8f3c0f 100644
--- a/include/vcl/commandinfoprovider.hxx
+++ b/include/vcl/commandinfoprovider.hxx
@@ -84,6 +84,9 @@ public:
OUString GetCommandShortcut (const OUString& rCommandName,
const css::uno::Reference<css::frame::XFrame>& rxFrame);
+ OUString GetRealCommandForCommand( const OUString& rCommandName,
+ const css::uno::Reference<css::frame::XFrame>& rxFrame );
+
Image GetImageForCommand(
const OUString& rsCommandName,
bool bLarge,