mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
1f53de6592
* Move suggestion searching out of check() and onto suggest(). * Cleanup a bit AspellChecker * Begin Hunspell support (not tested and does not link yet) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30824 a592a061-630c-0410-9148-cb99ea01b6c8
44 lines
783 B
C++
44 lines
783 B
C++
// -*- C++ -*-
|
|
/**
|
|
* \file HunspellChecker.h
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author Abdelrazak Younes
|
|
*
|
|
* Full author contact details are available in file CREDITS.
|
|
*/
|
|
|
|
#ifndef LYX_HUNSPELL_H
|
|
#define LYX_HUNSPELL_H
|
|
|
|
#include "SpellChecker.h"
|
|
|
|
namespace lyx {
|
|
|
|
|
|
class HunspellChecker : public SpellChecker
|
|
{
|
|
public:
|
|
HunspellChecker();
|
|
~HunspellChecker();
|
|
|
|
/// SpellChecker inherited methods.
|
|
///@{
|
|
enum Result check(WordLangTuple const &);
|
|
void suggest(WordLangTuple const &, docstring_list &);
|
|
void insert(WordLangTuple const &);
|
|
void accept(WordLangTuple const &);
|
|
docstring const error();
|
|
///@}
|
|
|
|
private:
|
|
struct Private;
|
|
Private * d;
|
|
};
|
|
|
|
|
|
} // namespace lyx
|
|
|
|
#endif // LYX_Hunspell_H
|