]> git.lyx.org Git - lyx.git/blobdiff - src/KeyMap.h
saner borderline between buffer and exporter
[lyx.git] / src / KeyMap.h
index bb28d37433e4df7c23d0fef004cef112628cff5d..d8069f2d6876bdbc3c8c8f367a33915cdeff0866 100644 (file)
@@ -71,6 +71,14 @@ public:
        /// Given an action, print the keybindings.
        docstring const printbindings(FuncRequest const & func) const;
 
+       typedef std::pair<FuncRequest, KeySequence> Binding; 
+       typedef std::vector<Binding> BindingList;
+       /**
+        * Return all lfun and their associated bindings.
+        * @param unbound list unbound (func without any keybinding) as well
+        */
+       BindingList const listBindings(bool unbound) const;
+
        /**
         *  Given an action, find the first 1-key binding (if it exists).
         *  The KeySymbol pointer is 0 is no key is found.
@@ -90,6 +98,7 @@ public:
 
        typedef std::pair<KeyModifier, KeyModifier> ModifierPair;
 
+
 private:
        ///
        struct Key {
@@ -120,6 +129,9 @@ private:
         */
        Bindings findbindings(FuncRequest const & func,
                              KeySequence const & prefix) const;
+       
+       void listBindings(BindingList & list,
+                                 KeySequence const & prefix) const;
 
        /// is the table empty ?
        bool empty() const { return table.empty(); }