]> git.lyx.org Git - lyx.git/blob - src/WordList.h
Fix #10778 (issue with CJK and language nesting)
[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 namespace lyx {
18
19 class WordList {
20         // noncopyable because of pimpl
21         WordList(WordList const &);
22         WordList & operator=(WordList const &);
23 public:
24         ///
25         WordList();
26         ///
27         ~WordList();
28
29         ///
30         docstring const & word(size_t idx) const;
31         ///
32         size_t size() const;
33         ///
34         void insert(docstring const & w);
35         ///
36         void remove(docstring const & w);
37         ///
38         static void cleanupWordLists();
39
40 private:
41         struct Impl;
42         Impl * d;
43 };
44
45 WordList * theWordList(std::string const & lang);
46
47 } // namespace lyx
48
49 #endif // WORDLIST_H