4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Lars Gullik Bjønnes
8 * \author Jean-Marc Lasgouttes
10 * \author Jürgen Vigna
12 * Full author contact details are available in file CREDITS.
27 Language() : RightToLeft_(false) {}
29 Language(string const & l, string const & b, string const & d,
30 bool rtl, Encoding const * e, string const & c,
32 : lang_(l), babel_(b), display_(d), RightToLeft_(rtl),
33 encoding_(e), code_(c), latex_options_(o)
36 string const & lang() const {
40 string const & babel() const {
44 string const & display() const {
48 bool RightToLeft() const {
52 Encoding const * encoding() const {
56 string const & code() const {
60 string const & latex_options() const {
61 return latex_options_;
73 Encoding const * encoding_;
77 string latex_options_;
84 typedef std::map<string, Language> LanguageList;
86 typedef LanguageList::const_iterator const_iterator;
88 typedef LanguageList::size_type size_type;
90 void read(string const & filename);
92 Language const * getLanguage(string const & language) const;
94 size_type size() const {
95 return languagelist.size();
98 const_iterator begin() const {
99 return languagelist.begin();
102 const_iterator end() const {
103 return languagelist.end();
109 LanguageList languagelist;
112 extern Languages languages;
113 extern Language const * default_language;
114 extern Language const * english_language;
115 extern Language const * ignore_language;
116 extern Language const * latex_language;