]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/LyXKeySym.h
reverse last change
[lyx.git] / src / frontends / LyXKeySym.h
index c003e5ab7a14a0469401f1c2bd04ddf9d5e67c17..340808da6f7288e352fe367c0b6fa428e800c9d1 100644 (file)
@@ -1,19 +1,17 @@
 // -*- C++ -*-
 /**
  * \file LyXKeySym.h
- * 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
  */
 
 #ifndef LYXKEYSYM_H
 #define LYXKEYSYM_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
-
 #include "LString.h"
 #include <boost/shared_ptr.hpp>
 
@@ -38,6 +36,9 @@ public:
        /// Is this a modifier key only?
        virtual bool isModifier() const = 0;
 
+       /// Is this normal insertable text ? (last ditch attempt only)
+       virtual bool isText() const { return false; }
        /// What is the symbolic name of this key? F.ex. "Return" or "c"
        virtual string getSymbolName() const = 0;
 
@@ -46,15 +47,16 @@ public:
         * This converts the LyXKeySym to a 8-bit encoded character.
         * This relies on user to use the right encoding.
         */
-       virtual char getISOEncoded() const = 0;
-
-       /**
-        * We need to be able to equality compare these for the
-        * sake of the keymap business.
-        */
-       virtual bool operator==(LyXKeySym const & k) const = 0;
+       virtual char getISOEncoded(string const & encoding) const = 0;
 };
 
+
+/**
+ * We need to be able to equality compare these for the
+ * sake of the keymap business.
+ */
+bool operator==(LyXKeySym const & k1, LyXKeySym const & k2);
+
 typedef boost::shared_ptr<LyXKeySym> LyXKeySymPtr;
 
 #endif