24#include <com/sun/star/awt/KeyEvent.hpp>
26#include <unordered_map>
50 typedef ::std::vector< css::awt::KeyEvent >
TKeyList;
59 typedef std::unordered_map< css::awt::KeyEvent ,
80 bool hasKey(
const css::awt::KeyEvent& aKey)
const;
81 bool hasCommand(
const OUString& sCommand)
const;
95 const OUString& sCommand);
109 void removeKey(
const css::awt::KeyEvent& aKey);
implements a cache for any accelerator configuration.
TKey2Commands m_lKey2Commands
map keys to commands in relation 1:1.
TKeyList getAllKeys() const
TKeyList getKeysByCommand(const OUString &sCommand) const
returns the list of keys, which are registered for this command.
void setKeyCommandPair(const css::awt::KeyEvent &aKey, const OUString &sCommand)
add a new or change an existing key-command pair of this container.
::std::vector< css::awt::KeyEvent > TKeyList
commands -> keys
void removeCommand(const OUString &sCommand)
bool hasCommand(const OUString &sCommand) const
OUString getCommandByKey(const css::awt::KeyEvent &aKey) const
void removeKey(const css::awt::KeyEvent &aKey)
bool hasKey(const css::awt::KeyEvent &aKey) const
checks if the specified key exists.
std::unordered_map< css::awt::KeyEvent, OUString, KeyEventHashCode, KeyEventEqualsFunc > TKey2Commands
keys -> commands
std::unordered_map< OUString, TKeyList > TCommand2Keys
TCommand2Keys m_lCommand2Keys
map commands to keys in relation 1:n.
Own hash functions used for stl-structures ... e.g.