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"
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
2008-02-26 13:07:59 +00:00
|
|
|
WordList & theWordList();
|
|
|
|
|
2008-02-25 01:56:53 +00:00
|
|
|
} // namespace lyx
|
|
|
|
|
|
|
|
#endif // WORDLIST_H
|