]> git.lyx.org Git - lyx.git/blobdiff - src/KeyMap.h
fix "make check" with gcc 4.3
[lyx.git] / src / KeyMap.h
index b4f4cd133125f8af918461f5a837fe62b57a1dd2..9957bfe3a8013a3bf4b3b33885d394ece0b78966 100644 (file)
@@ -4,7 +4,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author Lars Gullik Bjønnes
+ * \author Lars Gullik Bjønnes
  * \author Jean-Marc Lasgouttes
  * \author John Levon
  *
@@ -56,9 +56,11 @@ public:
                    unsigned int r = 0);
 
 
-       /// if a keybinding has been defined.
-       bool hasBinding(KeySequence const & seq, FuncRequest const & func,
-                       unsigned int r = 0);
+       /// returns the function bound to this key sequence, or 
+       /// FuncRequest::unknown if no binding exists for it.
+       /// @param r an internal recursion counter
+       // FIXME Surely there's a better way to do that?
+       FuncRequest getBinding(KeySequence const & seq, unsigned int r = 0);
 
        /// clear all bindings
        void clear();
@@ -104,7 +106,8 @@ public:
        Bindings findBindings(FuncRequest const & func) const;
 
        /// Given an action, print the keybindings.
-       docstring printBindings(FuncRequest const & func) const;
+       docstring printBindings(FuncRequest const & func,
+                               KeySequence::outputFormat format) const;
 
        struct Binding {
                Binding(FuncRequest const & r, KeySequence const & s, ItemType t)