]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/XLyXKeySym.C
Yet more dialog tweaking from Rob.
[lyx.git] / src / frontends / xforms / XLyXKeySym.C
index 0398507910288d3ad471570c3bdee55d4500bec7..bd1500e4a594944ff5a60a884312d965012e7a51 100644 (file)
@@ -1,9 +1,11 @@
 /**
  * \file XLyXKeySym.C
- * Copyright 2002 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
  * \author Asger and Juergen
+ *
+ * Full author contact details are available in file CREDITS
  */
 
 #include <config.h>
@@ -25,11 +27,13 @@ XLyXKeySym::XLyXKeySym()
        : LyXKeySym(), keysym(NoSymbol)
 {
 }
 
 void XLyXKeySym::initFromKeySym(KeySym ks)
 {
        keysym = ks;
 }
 
 void XLyXKeySym::init(string const & symbolname)
 {
@@ -41,11 +45,13 @@ void XLyXKeySym::init(string const & symbolname)
        }
 }
 
+
 bool XLyXKeySym::isOK() const
 {
        return keysym != NoSymbol;
 }
 
+
 bool XLyXKeySym::isModifier() const
 {
        // Can we be sure that this will work for all X Window
@@ -55,15 +61,15 @@ bool XLyXKeySym::isModifier() const
            || keysym == XK_Mode_switch || keysym == 0x0);
 }
 
-string
-XLyXKeySym::getSymbolName() const
+
+string XLyXKeySym::getSymbolName() const
 {
        char * name = XKeysymToString(keysym);
        return name ? name : string();
 }
 
-char
-XLyXKeySym::getISOEncoded() const
+char XLyXKeySym::getISOEncoded() const
 {
        if (keysym == NoSymbol) {
                return 0;
@@ -96,6 +102,7 @@ XLyXKeySym::getISOEncoded() const
        return c;
 }
 
 bool XLyXKeySym::operator==(LyXKeySym const & k) const
 {
        // This is dangerous! Ideally, we should use dynamic_cast instead,