mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-29 07:23:51 +00:00
79716cbcd0
get less "noise" when debugging for memory leaks. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39865 a592a061-630c-0410-9148-cb99ea01b6c8
49 lines
742 B
C++
49 lines
742 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 "Language.h"
|
|
|
|
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);
|
|
///
|
|
static void cleanupWordLists();
|
|
|
|
private:
|
|
struct Impl;
|
|
Impl * d;
|
|
};
|
|
|
|
WordList * theWordList(Language const & lang);
|
|
|
|
} // namespace lyx
|
|
|
|
#endif // WORDLIST_H
|