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"
|
2023-11-10 12:14:34 +00:00
|
|
|
#include "support/mute_warning.h"
|
2008-02-25 01:56:53 +00:00
|
|
|
|
2016-06-02 19:38:15 +00:00
|
|
|
#include <memory>
|
|
|
|
|
2008-02-25 01:56:53 +00:00
|
|
|
namespace lyx {
|
|
|
|
|
|
|
|
class WordList {
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
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
|
|
|
|
2008-02-25 01:56:53 +00:00
|
|
|
private:
|
2008-02-25 08:54:51 +00:00
|
|
|
struct Impl;
|
2016-06-02 19:38:15 +00:00
|
|
|
std::unique_ptr<Impl> d;
|
2008-02-25 01:56:53 +00:00
|
|
|
};
|
|
|
|
|
2023-11-08 17:07:14 +00:00
|
|
|
LYX_BEGIN_MUTE_GCC_WARNING(dangling-reference)
|
2016-12-31 14:22:07 +00:00
|
|
|
WordList & theWordList(std::string const & lang);
|
2023-11-08 17:07:14 +00:00
|
|
|
LYX_END_MUTE_GCC_WARNING
|
2008-02-26 13:07:59 +00:00
|
|
|
|
2008-02-25 01:56:53 +00:00
|
|
|
} // namespace lyx
|
|
|
|
|
|
|
|
#endif // WORDLIST_H
|