]> git.lyx.org Git - lyx.git/blob - src/WordList.h
Pass the encoding to the japanese pLaTeX processor (#4697).
[lyx.git] / src / WordList.h
1 // -*- C++ -*-
2 /**
3  * \file WordList.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Stefan Schimanski
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef WORDLIST_H
13 #define WORDLIST_H
14
15 #include "support/docstring.h"
16
17 #include "Language.h"
18
19 namespace lyx {
20
21 class WordList {
22 public:
23         ///
24         WordList();
25         ///
26         ~WordList();
27
28         ///
29         docstring const & word(size_t idx) const;
30         ///
31         size_t size() const;
32         ///
33         void insert(docstring const & w);
34         ///
35         void remove(docstring const & w);
36         ///
37         static void cleanupWordLists();
38
39 private:
40         struct Impl;
41         Impl * d;
42 };
43
44 WordList * theWordList(Language const & lang);
45
46 } // namespace lyx
47
48 #endif // WORDLIST_H