2008-02-25 01:56:53 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
|
|
|
* \file WordList.h
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* \author Stefan Schimanski
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef WORDLIST_H
|
|
|
|
#define WORDLIST_H
|
|
|
|
|
|
|
|
#include "support/docstring.h"
|
|
|
|
|
2009-12-18 14:48:56 +00:00
|
|
|
#include "Language.h"
|
|
|
|
|
2008-02-25 01:56:53 +00:00
|
|
|
namespace lyx {
|
|
|
|
|
|
|
|
class WordList {
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
WordList();
|
|
|
|
///
|
|
|
|
~WordList();
|
|
|
|
|
|
|
|
///
|
|
|
|
docstring const & word(size_t idx) const;
|
|
|
|
///
|
|
|
|
size_t size() const;
|
|
|
|
///
|
|
|
|
void insert(docstring const & w);
|
2008-02-26 13:07:59 +00:00
|
|
|
///
|
|
|
|
void remove(docstring const & w);
|
2011-10-15 13:38:52 +00:00
|
|
|
///
|
|
|
|
static void cleanupWordLists();
|
|
|
|
|
2008-02-25 01:56:53 +00:00
|
|
|
private:
|
2008-02-25 08:54:51 +00:00
|
|
|
struct Impl;
|
2008-02-25 01:56:53 +00:00
|
|
|
Impl * d;
|
|
|
|
};
|
|
|
|
|
2009-12-18 14:48:56 +00:00
|
|
|
WordList * theWordList(Language const & lang);
|
2008-02-26 13:07:59 +00:00
|
|
|
|
2008-02-25 01:56:53 +00:00
|
|
|
} // namespace lyx
|
|
|
|
|
|
|
|
#endif // WORDLIST_H
|