]> git.lyx.org Git - lyx.git/blobdiff - src/Language.h
Remove invalid comment.
[lyx.git] / src / Language.h
index 59085ec847133da20b9b9dde0859b7681dcf1227..278d796a58aac2b177e1fd15aa4b792d82a12266 100644 (file)
@@ -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