/**
* \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>
: LyXKeySym(), keysym(NoSymbol)
{
}
+
void XLyXKeySym::initFromKeySym(KeySym ks)
{
keysym = ks;
}
+
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
|| 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;
return c;
}
+
bool XLyXKeySym::operator==(LyXKeySym const & k) const
{
// This is dangerous! Ideally, we should use dynamic_cast instead,