2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1995-2000 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)
32 : lang_(l), babel_(b), display_(d), RightToLeft_(rtl),
33 encoding_(e), code_(c)
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 {
69 Encoding const * encoding_;
76 bool operator==(Language const & l1, Language const & l2)
78 return l1.lang == l2.lang
79 && l1.display_ == l2.display_
80 && l1.RightToLeft_ == l2.RightToLeft_
81 && l1.encoding_ == l2.encoding_;
85 bool operator!=(Language const l1, Language const & l2)
92 typedef std::map<string, Language> Languages;
94 extern Languages languages;
96 extern Language const * default_language;
98 extern Language const *ignore_language;