]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/KeySymbol.h
Fix up 'Reduce metrics updates from 4 to 1 when loading file'
[lyx.git] / src / frontends / KeySymbol.h
index dc71a966e61110887170b933b76c4ad0eb22c38b..7e67536aa5146c61258a0b6f6d47566470590bec 100644 (file)
@@ -4,7 +4,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author Asger and Jürgen
+ * \author Asger and Jürgen
  *
  * Full author contact details are available in file CREDITS.
  */
@@ -33,6 +33,9 @@ public:
        /// Initialize with the name of a key. F. ex. "space" or "a"
        void init(std::string const & symbolname);
 
+       /// Initialize with some platform specific sym value
+       void init(int key);
+
        /// Is this a valid key?
        bool isOK() const;
 
@@ -56,7 +59,7 @@ public:
         * Use the native UI format when \c forgui is true.
         * i.e. (translated and with special characters for Mac OS X)
         */
-       docstring const print(KeyModifier mod, bool forgui) const;
+       docstring const print(KeyModifier mod, bool forgui, bool untranslated = false) const;
 
        ///
        int key() const { return key_; }