X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FEncoding.h;h=c78972a1c8b71e0a341f0e9e4a57cce9ec2ec633;hb=e01e14872d60935908ad42bc164bff1342277b22;hp=b4e728ea67bcc6757df3640ec902efcf2542c449;hpb=f48d7caee3fab40528ceedc7a05f67004ba59d83;p=lyx.git diff --git a/src/Encoding.h b/src/Encoding.h index b4e728ea67..c78972a1c8 100644 --- a/src/Encoding.h +++ b/src/Encoding.h @@ -14,6 +14,7 @@ #define ENCODING_H #include "support/docstring.h" +#include "support/types.h" #include #include @@ -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 getSymbolsList() const; private: /// std::string Name_;