]> git.lyx.org Git - lyx.git/blobdiff - src/Encoding.h
fix a visual cursor edge-case:
[lyx.git] / src / Encoding.h
index b4e728ea67bcc6757df3640ec902efcf2542c449..c78972a1c8b71e0a341f0e9e4a57cce9ec2ec633 100644 (file)
@@ -14,6 +14,7 @@
 #define ENCODING_H
 
 #include "support/docstring.h"
+#include "support/types.h"
 
 #include <map>
 #include <set>
@@ -24,6 +25,17 @@ namespace support { class FileName; }
 
 class LaTeXFeatures;
 
+class EncodingException : public std::exception {
+public:
+       EncodingException(char_type c);
+       virtual ~EncodingException() throw() {}
+       virtual const char * what() const throw();
+       char_type failed_char;
+       int par_id;
+       pos_type pos;
+};
+
 
 ///
 class Encoding {
@@ -58,6 +70,8 @@ public:
        docstring const latexChar(char_type c) const;
        /// Which LaTeX package handles this encoding?
        Package package() const { return package_; }
+       /// A list of all characters usable in this encoding
+       std::set<char_type> getSymbolsList() const;
 private:
        ///
        std::string Name_;