]> git.lyx.org Git - lyx.git/blob - src/WordLangTuple.h
Enable convertDefault.sh to run even if its executable bit is not set.
[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 #include "LString.h"
16
17 /**
18  * A word and its given language code ("en_US").
19  * This is used for spellchecking.
20  */
21 class WordLangTuple {
22 public:
23         WordLangTuple() {}
24
25         WordLangTuple(string const & w, string const & c)
26                 : word_(w), code_(c)
27         {}
28
29         /// return the word
30         string const & word() const {
31                 return word_;
32         }
33
34         /// return its language code
35         string const & lang_code() const {
36                 return code_;
37         }
38
39 private:
40         /// the word
41         string word_;
42         /// language code of word
43         string code_;
44 };
45
46 #endif // WORD_LANG_TUPLE_H