2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1995-2001 The LyX Team.
10 * ====================================================== */
28 Language() : RightToLeft_(false) {}
30 Language(string const & l, string const & b, string const & d,
31 bool rtl, Encoding const * e, string const & c,
33 : lang_(l), babel_(b), display_(d), RightToLeft_(rtl),
34 encoding_(e), code_(c), latex_options_(o)
37 string const & lang() const {
41 string const & babel() const {
45 string const & display() const {
49 bool RightToLeft() const {
53 Encoding const * encoding() const {
57 string const & code() const {
61 string const & latex_options() const {
62 return latex_options_;
74 Encoding const * encoding_;
78 string latex_options_;
85 typedef std::map<string, Language> LanguageList;
87 typedef LanguageList::const_iterator const_iterator;
89 typedef LanguageList::size_type size_type;
91 void read(string const & filename);
95 Language const * getLanguage(string const & language) const;
97 size_type size() const {
98 return languagelist.size();
101 const_iterator begin() const {
102 return languagelist.begin();
105 const_iterator end() const {
106 return languagelist.end();
112 LanguageList languagelist;
115 extern Languages languages;
116 extern Language const * default_language;
117 extern Language const * english_language;
118 extern Language const * ignore_language;
119 extern Language const * latex_language;
120 #ifdef INHERIT_LANGUAGE
121 extern Language const * inherit_language;