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 * ====================================================== */
24 Language() : RightToLeft_(false) {}
26 Language(string const & l, string const & b, string const & d,
27 bool rtl, Encoding const * e, string const & c,
29 : lang_(l), babel_(b), display_(d), RightToLeft_(rtl),
30 encoding_(e), code_(c), latex_options_(o)
33 string const & lang() const {
37 string const & babel() const {
41 string const & display() const {
45 bool RightToLeft() const {
49 Encoding const * encoding() const {
53 string const & code() const {
57 string const & latex_options() const {
58 return latex_options_;
70 Encoding const * encoding_;
74 string latex_options_;
81 typedef std::map<string, Language> LanguageList;
83 typedef LanguageList::const_iterator const_iterator;
85 typedef LanguageList::size_type size_type;
87 void read(string const & filename);
89 Language const * getLanguage(string const & language) const;
91 size_type size() const {
92 return languagelist.size();
95 const_iterator begin() const {
96 return languagelist.begin();
99 const_iterator end() const {
100 return languagelist.end();
106 LanguageList languagelist;
109 extern Languages languages;
110 extern Language const * default_language;
111 extern Language const * english_language;
112 extern Language const * ignore_language;
113 extern Language const * latex_language;