mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
2b0841b0c9
It was not nice to other build systems to define that in configure.ac.
47 lines
804 B
C++
47 lines
804 B
C++
// -*- 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"
|
|
#include "support/mute_warning.h"
|
|
|
|
#include <memory>
|
|
|
|
namespace lyx {
|
|
|
|
class WordList {
|
|
public:
|
|
///
|
|
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;
|
|
std::unique_ptr<Impl> d;
|
|
};
|
|
|
|
LYX_BEGIN_MUTE_GCC_WARNING(dangling-reference)
|
|
WordList & theWordList(std::string const & lang);
|
|
LYX_END_MUTE_GCC_WARNING
|
|
|
|
} // namespace lyx
|
|
|
|
#endif // WORDLIST_H
|