]> git.lyx.org Git - lyx.git/blob - src/WordLangTuple.h
multicol; small stuff
[lyx.git] / src / WordLangTuple.h
1 /**
2  * \file WordLangTuple.h
3  * Copyright 2002 the LyX Team
4  * Read the file COPYING
5  *
6  * \author John Levon <levon@movementarian.org>
7  */
8
9 #ifndef WORD_LANG_TUPLE_H
10 #define WORD_LANG_TUPLE_H
11
12 #include "LString.h"
13
14 /**
15  * A word and its given language code ("en_US").
16  * This is used for spellchecking.
17  */
18 class WordLangTuple {
19 public:
20         WordLangTuple() {}
21
22         WordLangTuple(string const & w, string const & c)
23                 : word_(w), code_(c)
24         {}
25
26         /// return the word
27         string const & word() const {
28                 return word_;
29         }
30
31         /// return its language code
32         string const & lang_code() const {
33                 return code_;
34         }
35
36 private:
37         /// the word
38         string word_;
39         /// language code of word
40         string code_;
41 };
42
43 #endif // WORD_LANG_TUPLE_H