Prepare ANNOUNCE and NEWS for rc2
[lyx.git] / src / WordList.h
blobd02b0b7b880eeb3d78f49fa2c1d964a015615c8f
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.
7 * \author Stefan Schimanski
9 * Full author contact details are available in file CREDITS.
12 #ifndef WORDLIST_H
13 #define WORDLIST_H
15 #include "support/docstring.h"
17 namespace lyx {
19 class WordList {
20 public:
21 ///
22 WordList();
23 ///
24 ~WordList();
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);
35 private:
36 struct Impl;
37 Impl * d;
40 WordList & theWordList();
42 } // namespace lyx
44 #endif // WORDLIST_H