]> git.lyx.org Git - lyx.git/blob - src/WordList.h
Disable CheckTeX while buffer is processed
[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 <memory>
18
19 namespace lyx {
20
21 class WordList {
22 public:
23         ///
24         WordList();
25         ///
26         docstring const & word(size_t idx) const;
27         ///
28         size_t size() const;
29         ///
30         void insert(docstring const & w);
31         ///
32         void remove(docstring const & w);
33
34 private:
35         struct Impl;
36         std::unique_ptr<Impl> d;
37 };
38
39 WordList & theWordList(std::string const & lang);
40
41 } // namespace lyx
42
43 #endif // WORDLIST_H