4 * Copyright 2002 the LyX Team
5 * Read the file COPYING
7 * \author Asger and Juergen
19 #include "frontends/LyXKeySym.h"
22 * This is a base class for representing a keypress.
23 * Each frontend has to implement this to provide
24 * the functionality that LyX needs in regards to
27 class XLyXKeySym : public LyXKeySym {
31 /// X11 specific initialization with an X11 KeySym
32 void initFromKeySym(KeySym);
34 virtual void init(string const & symbolname);
36 virtual ~XLyXKeySym() {}
38 /// Is this a valid key?
39 virtual bool isOK() const;
41 /// Is this a modifier key only?
42 virtual bool isModifier() const;
44 virtual string getSymbolName() const;
47 * Return the value of the keysym into the local ISO encoding.
48 * This converts the LyXKeySym to a 8-bit encoded character.
49 * This relies on user to use the right encoding.
51 virtual char getISOEncoded() const;
53 virtual bool operator==(LyXKeySym const & k) const;