]> git.lyx.org Git - lyx.git/blob - src/WordList.h
d02b0b7b880eeb3d78f49fa2c1d964a015615c8f
[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 public:
21         ///
22         WordList();
23         ///
24         ~WordList();
25
26         ///
27         docstring const & word(size_t idx) const;
28         ///
29         size_t size() const;
30         ///
31         void insert(docstring const & w);
32         ///
33         void remove(docstring const & w);
34         
35 private:
36         struct Impl;
37         Impl * d;
38 };
39
40 WordList & theWordList();
41
42 } // namespace lyx
43
44 #endif // WORDLIST_H