]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/XLyXKeySym.C
Introduce LFUN_PRINT.
[lyx.git] / src / frontends / xforms / XLyXKeySym.C
index d8597fb29ecfa976e747ceda65123c7edad91d5f..5a71008dabc9a4c617f91fb93763f907f7cb6f3b 100644 (file)
@@ -3,25 +3,23 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author Asger and Juergen
+ * \author Asger and JΓΌrgen
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
 #include "XLyXKeySym.h"
 
 #include "debug.h"
+#include "kbmap.h"
 
-#include <X11/Xlib.h>
 #include <X11/keysym.h>
 
 using std::endl;
+using std::string;
+
 
 XLyXKeySym::XLyXKeySym()
        : LyXKeySym(), keysym_(NoSymbol)
@@ -69,7 +67,7 @@ string XLyXKeySym::getSymbolName() const
 }
 
 
-char XLyXKeySym::getISOEncoded() const
+char XLyXKeySym::getISOEncoded(string const &) const
 {
        if (keysym_ == NoSymbol) {
                return 0;
@@ -103,6 +101,12 @@ char XLyXKeySym::getISOEncoded() const
 }
 
 
+string const XLyXKeySym::print(key_modifier::state mod) const
+{
+       return kb_keymap::printKeySym(*this, mod);
+}
+
+
 bool operator==(LyXKeySym const & k1, LyXKeySym const & k2)
 {
        return static_cast<XLyXKeySym const &>(k1).keysym()