X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLanguage.h;h=278d796a58aac2b177e1fd15aa4b792d82a12266;hb=ea6aed5b8bf38366aaa1eb15ce1b9f13de76987f;hp=59085ec847133da20b9b9dde0859b7681dcf1227;hpb=f630be890494c849981e4fb52ea4740506e92bed;p=lyx.git diff --git a/src/Language.h b/src/Language.h index 59085ec847..278d796a58 100644 --- a/src/Language.h +++ b/src/Language.h @@ -24,6 +24,7 @@ namespace lyx { namespace support { class FileName; } class Encoding; +class Lexer; /// class Language { @@ -31,13 +32,6 @@ public: /// Language() : rightToLeft_(false) {} /// - Language(std::string const & l, std::string const & b, std::string const & d, - bool rtl, std::string const & es, Encoding const * e, std::string const & c, - std::string const & o) - : lang_(l), babel_(b), display_(d), rightToLeft_(rtl), - encodingStr_(es), encoding_(e), code_(c), latex_options_(o) - {} - /// std::string const & lang() const { return lang_; } /// std::string const & babel() const { return babel_; } @@ -53,6 +47,8 @@ public: std::string const & code() const { return code_; } /// std::string const & latex_options() const { return latex_options_; } + /// + bool read(Lexer & lex); private: /// std::string lang_; @@ -98,11 +94,18 @@ private: LanguageList languagelist; }; +/// Global singleton instance. extern Languages languages; +/// Default language defined in LyXRC extern Language const * default_language; -extern Language const * english_language; +/// Used to indicate that the language should be left unchanged when +/// applying a font change. extern Language const * ignore_language; +/// Default language defined in LyXRC extern Language const * latex_language; +/// Used to indicate that the language should be reset to the Buffer +// language when applying a font change. +extern Language const * reset_language; } // namespace lyx