summaryrefslogtreecommitdiff
path: root/framework/source/inc/accelerators/acceleratorcache.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'framework/source/inc/accelerators/acceleratorcache.hxx')
-rw-r--r--framework/source/inc/accelerators/acceleratorcache.hxx25
1 files changed, 6 insertions, 19 deletions
diff --git a/framework/source/inc/accelerators/acceleratorcache.hxx b/framework/source/inc/accelerators/acceleratorcache.hxx
index 666d1eb4eb7a..adfdf8fe5aa2 100644
--- a/framework/source/inc/accelerators/acceleratorcache.hxx
+++ b/framework/source/inc/accelerators/acceleratorcache.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_FRAMEWORK_SOURCE_INC_ACCELERATORS_ACCELERATORCACHE_HXX
-#define INCLUDED_FRAMEWORK_SOURCE_INC_ACCELERATORS_ACCELERATORCACHE_HXX
+#pragma once
#include <stdtypes.h>
@@ -43,18 +42,18 @@ namespace framework
*/
class AcceleratorCache
{
-
- // const, types
-
public:
- /** TODO document me
+ /**
commands -> keys
*/
typedef ::std::vector< css::awt::KeyEvent > TKeyList;
+
+ private:
+
typedef std::unordered_map<OUString, TKeyList> TCommand2Keys;
- /** TODO document me
+ /**
keys -> commands
*/
typedef std::unordered_map< css::awt::KeyEvent ,
@@ -62,10 +61,6 @@ class AcceleratorCache
KeyEventHashCode ,
KeyEventEqualsFunc > TKey2Commands;
- // member
-
- private:
-
/** map commands to keys in relation 1:n.
First key is interpreted as preferred one! */
TCommand2Keys m_lCommand2Keys;
@@ -73,8 +68,6 @@ class AcceleratorCache
/** map keys to commands in relation 1:1. */
TKey2Commands m_lKey2Commands;
- // interface
-
public:
/** @short checks if the specified key exists.
@@ -87,7 +80,6 @@ class AcceleratorCache
bool hasKey(const css::awt::KeyEvent& aKey) const;
bool hasCommand(const OUString& sCommand) const;
- /** TODO document me */
TKeyList getAllKeys() const;
/** @short add a new or change an existing key-command pair
@@ -113,16 +105,11 @@ class AcceleratorCache
*/
TKeyList getKeysByCommand(const OUString& sCommand) const;
- /** TODO */
OUString getCommandByKey(const css::awt::KeyEvent& aKey) const;
-
- /** TODO */
void removeKey(const css::awt::KeyEvent& aKey);
void removeCommand(const OUString& sCommand);
};
} // namespace framework
-#endif // INCLUDED_FRAMEWORK_SOURCE_INC_ACCELERATORS_ACCELERATORCACHE_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */