]> git.lyx.org Git - lyx.git/blob - src/WordLangTuple.h
Qt compilation fixes.
[lyx.git] / src / WordLangTuple.h
1 // -*- C++ -*-
2 /**
3  * \file WordLangTuple.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author John Levon
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef WORD_LANG_TUPLE_H
13 #define WORD_LANG_TUPLE_H
14
15 /**
16  * A word and its given language code ("en_US").
17  * This is used for spellchecking.
18  */
19 class WordLangTuple {
20 public:
21         WordLangTuple() {}
22
23         WordLangTuple(std::string const & w, std::string const & c)
24                 : word_(w), code_(c)
25         {}
26
27         /// return the word
28         std::string const & word() const {
29                 return word_;
30         }
31
32         /// return its language code
33         std::string const & lang_code() const {
34                 return code_;
35         }
36
37 private:
38         /// the word
39         std::string word_;
40         /// language code of word
41         std::string code_;
42 };
43
44 #endif // WORD_LANG_TUPLE_H