]> git.lyx.org Git - features.git/blob - src/WordLangTuple.h
Remove LYX_LAYOUT_DEFAULT - it is very very old, even klyx doesn't use it.
[features.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 <config.h>
13 #include "LString.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(string const & w, string const & c)
24                 : word_(w), code_(c) {}
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