]> git.lyx.org Git - lyx.git/blobdiff - src/WordList.h
Style
[lyx.git] / src / WordList.h
index 263c4d40da60b99e7cf9f2d0ed1b1b5778b06617..2afd6cb050c9bb9cc103230c1fd08c7cd5fd86ae 100644 (file)
 
 #include "support/docstring.h"
 
+#include <memory>
+
 namespace lyx {
 
 class WordList {
 public:
        ///
        WordList();
-       ///
-       ~WordList();
-
        ///
        docstring const & word(size_t idx) const;
        ///
        size_t size() const;
        ///
        void insert(docstring const & w);
+       ///
+       void remove(docstring const & w);
 
 private:
        struct Impl;
-       Impl * d;
+       std::unique_ptr<Impl> d;
 };
 
+WordList & theWordList(std::string const & lang);
+
 } // namespace lyx
 
 #endif // WORDLIST_H