]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/XLyXKeySym.C
Change the semantics of 'none' and 'auto' viewers/editors: 'none' means now
[lyx.git] / src / frontends / xforms / XLyXKeySym.C
index ecca7ad3c7a5fa0682062780ee3521e198fc8865..a16a7bc6c12e90eb9a66f9851463d79761a17e26 100644 (file)
@@ -3,22 +3,34 @@
  * 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>
 
-
 #include "XLyXKeySym.h"
 
 #include "debug.h"
+#include "kbmap.h"
 
-#include <X11/Xlib.h>
 #include <X11/keysym.h>
 
 using std::endl;
+using std::string;
+
+
+bool operator==(LyXKeySym const & k1, LyXKeySym const & k2)
+{
+       using lyx::frontend::XLyXKeySym;
+       return static_cast<XLyXKeySym const &>(k1).keysym()
+               == static_cast<XLyXKeySym const &>(k2).keysym();
+}
+
+
+namespace lyx {
+namespace frontend {
 
 XLyXKeySym::XLyXKeySym()
        : LyXKeySym(), keysym_(NoSymbol)
@@ -100,8 +112,10 @@ char XLyXKeySym::getISOEncoded(string const &) const
 }
 
 
-bool operator==(LyXKeySym const & k1, LyXKeySym const & k2)
+string const XLyXKeySym::print(key_modifier::state mod) const
 {
-       return static_cast<XLyXKeySym const &>(k1).keysym()
-               == static_cast<XLyXKeySym const &>(k2).keysym();
+       return kb_keymap::printKeySym(*this, mod);
 }
+
+} // namespace frontend
+} // namespace lyx