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.
28 Language() : RightToLeft_(false) {}
30 Language(std::string const & l, std::string const & b, std::string const & d,
31 bool rtl, Encoding const * e, std::string const & c,
32 std::string const & o)
33 : lang_(l), babel_(b), display_(d), RightToLeft_(rtl),
34 encoding_(e), code_(c), latex_options_(o)
37 std::string const & lang() const {
41 std::string const & babel() const {
45 std::string const & display() const {
49 bool RightToLeft() const {
53 Encoding const * encoding() const {
57 std::string const & code() const {
61 std::string const & latex_options() const {
62 return latex_options_;
74 Encoding const * encoding_;
78 std::string latex_options_;
85 typedef std::map<std::string, Language> LanguageList;
87 typedef LanguageList::const_iterator const_iterator;
89 typedef LanguageList::size_type size_type;
91 void read(std::string const & filename);
93 Language const * getLanguage(std::string const & language) const;
95 size_type size() const {
96 return languagelist.size();
99 const_iterator begin() const {
100 return languagelist.begin();
103 const_iterator end() const {
104 return languagelist.end();
110 LanguageList languagelist;
113 extern Languages languages;
114 extern Language const * default_language;
115 extern Language const * english_language;
116 extern Language const * ignore_language;
117 extern Language const * latex_language;