]> git.lyx.org Git - lyx.git/blobdiff - src/kbmap.h
Fix working of the spellchecker dialog with ispell when there are no
[lyx.git] / src / kbmap.h
index 015bce9c3713953403cf45c60c103e6f1a1ab806..3a0ae1e70c63b648480908209d7ef569fc0cccd5 100644 (file)
@@ -14,6 +14,7 @@
 #endif
 
 #include <list>
+#include <boost/smart_ptr.hpp>
 
 #include "LString.h"
 
@@ -22,9 +23,6 @@ class kb_sequence;
 /// Defines key maps and actions for key sequences
 class kb_keymap {
 public:
-       ///
-       ~kb_keymap();
-       
        /** Bind a key-sequence to an action.
            Returns 0 on success. Otherwise, position in string where
            error occured. */
@@ -38,7 +36,8 @@ public:
                   unsigned int mod, kb_sequence * seq) const;
 
        /// Given an action, find all keybindings.
-       string const findbinding(int action) const;
+       string const findbinding(int action,
+                                string const & prefix = string()) const;
 private:
        ///
        struct kb_key {
@@ -49,7 +48,7 @@ private:
                unsigned int mod;
                
                /// Keymap for prefix keys
-               kb_keymap * table;
+               boost::shared_ptr<kb_keymap> table;
                
                /// Action for !prefix keys
                int action;