]> git.lyx.org Git - lyx.git/blobdiff - src/encoding.h
Fix loop when opening TOC widget in an empty document, basically by Richard Heck.
[lyx.git] / src / encoding.h
index b738893132b2507d3ed6f66b2e94e8f7e3959d91..61ee7c68112a52d87530dcedec6213581e373716 100644 (file)
@@ -15,6 +15,7 @@
 
 #include "support/docstring.h"
 
+#include <map>
 #include <set>
 
 namespace lyx {
@@ -47,9 +48,6 @@ public:
         * character is returned.
         */
        docstring const latexChar(char_type c) const;
-       /// Add the preamble snippet needed for the output of latexChar(c)
-       /// to \p features.
-       void validate(char_type c, LaTeXFeatures & features) const;
 private:
        ///
        std::string Name_;
@@ -122,6 +120,14 @@ public:
        static char_type transformChar(char_type c, Letter_Form form);
        /// Is this a combining char?
        static bool isCombiningChar(char_type c);
+       /**
+        * Add the preamble snippet needed for the output of \p c to
+        * \p features.
+        * This does not depend on the used encoding, since the inputenc
+        * package only maps the code point \p c to a command, it does not
+        * make this command available.
+        */
+       static void validate(char_type c, LaTeXFeatures & features);
 
 private:
        ///