4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Asger and Jürgen
9 * Full author contact details are available in file CREDITS.
16 #include "support/std_string.h"
18 #include "frontends/LyXKeySym.h"
21 * This is the XForms (X11) version of LyXKeySym.
23 class XLyXKeySym : public LyXKeySym {
27 /// X11 specific initialization with an X11 KeySym
28 void initFromKeySym(KeySym);
30 virtual void init(string const & symbolname);
32 virtual ~XLyXKeySym() {}
34 /// Is this a valid key?
35 virtual bool isOK() const;
37 /// Is this a modifier key only?
38 virtual bool isModifier() const;
40 virtual string getSymbolName() const;
43 * Return the value of the keysym into the local ISO encoding.
44 * This converts the LyXKeySym to a 8-bit encoded character.
45 * This relies on user to use the right encoding.
47 virtual char getISOEncoded(string const & encoding) const;
50 unsigned int keysym() const {
57 #endif // XLYXKEYSYM_H