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 "frontends/LyXKeySym.h"
19 * This is the XForms (X11) version of LyXKeySym.
21 class XLyXKeySym : public LyXKeySym {
25 /// X11 specific initialization with an X11 KeySym
26 void initFromKeySym(KeySym);
28 virtual void init(std::string const & symbolname);
30 virtual ~XLyXKeySym() {}
32 /// Is this a valid key?
33 virtual bool isOK() const;
35 /// Is this a modifier key only?
36 virtual bool isModifier() const;
38 virtual std::string getSymbolName() const;
41 * Return the value of the keysym into the local ISO encoding.
42 * This converts the LyXKeySym to a 8-bit encoded character.
43 * This relies on user to use the right encoding.
45 virtual char getISOEncoded(std::string const & encoding) const;
48 virtual std::string const print(key_modifier::state mod) const;
51 unsigned int keysym() const {
58 #endif // XLYXKEYSYM_H