]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/LyXKeySym.h
Extracted from r14281
[lyx.git] / src / frontends / LyXKeySym.h
index b027b07f387b2f4ce9676b50db776b05d15601b4..11b0677c8e52386f8fa9dc5f62ba3908720b99a3 100644 (file)
 
 #include <string>
 
+#include "key_state.h"
+
+#include <boost/shared_ptr.hpp>
+
 /**
  * This is a base class for representing a keypress.
  * Each frontend has to implement this to provide
@@ -47,6 +51,12 @@ public:
         * This relies on user to use the right encoding.
         */
        virtual char getISOEncoded(std::string const & encoding) const = 0;
+
+       /**
+        * Return a string describing the KeySym with modifier mod.
+        * This should use the native UI format when applicable
+        */
+       virtual std::string const print(key_modifier::state mod) const = 0;
 };
 
 
@@ -56,4 +66,6 @@ public:
  */
 bool operator==(LyXKeySym const & k1, LyXKeySym const & k2);
 
+typedef boost::shared_ptr<LyXKeySym> LyXKeySymPtr;
+
 #endif