X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FAspellChecker.h;h=74ffb7036bd093862aab2a07f36e813fb7306358;hb=74059f6b5600c92166e66e9b6b78eda2b7b93331;hp=78d233b238271118db781ad04c2d5bac217b9a7f;hpb=2bab03e55745ce41f8455dcd3b6ac8d3a8f9613c;p=lyx.git diff --git a/src/AspellChecker.h b/src/AspellChecker.h index 78d233b238..74ffb7036b 100644 --- a/src/AspellChecker.h +++ b/src/AspellChecker.h @@ -15,56 +15,31 @@ #include "SpellChecker.h" -#include -#include - -struct AspellSpeller; -struct AspellStringEnumeration; -struct AspellCanHaveError; -struct AspellConfig; - namespace lyx { - class AspellChecker : public SpellChecker { public: AspellChecker(); ~AspellChecker(); - /// check the given word and return the result + /// \name SpellChecker inherited methods + //@{ enum Result check(WordLangTuple const &); - - /// insert the given word into the personal dictionary + void suggest(WordLangTuple const &, docstring_list &); + void stem(WordLangTuple const &, docstring_list &) {} void insert(WordLangTuple const &); - - /// accept the given word temporarily + void remove(WordLangTuple const &); void accept(WordLangTuple const &); - - /// return the next near miss after a SUGGESTED_WORDS result - docstring const nextMiss(); - - /// give an error message on messy exit + bool hasDictionary(Language const * lang) const; + int numDictionaries() const; docstring const error(); + void advanceChangeNumber(); + //@} private: - /// add a speller of the given language - void addSpeller(std::string const & lang); - - struct Speller { - AspellSpeller * speller; - AspellConfig * config; - }; - - typedef std::map Spellers; - - /// the spellers - Spellers spellers_; - - /// FIXME - AspellStringEnumeration * els; - /// FIXME - AspellCanHaveError * spell_error_object; + struct Private; + Private * d; };