]> git.lyx.org Git - lyx.git/blobdiff - src/AspellChecker.h
Routines for calculating numerical labels for BibTeX citations.
[lyx.git] / src / AspellChecker.h
index 78d233b238271118db781ad04c2d5bac217b9a7f..61e904c31627b1488cb0f5db4ca19f6eccf01fd0 100644 (file)
 
 #include "SpellChecker.h"
 
-#include <map>
-#include <string>
-
-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
+       /// SpellChecker inherited methods.
+       ///@{
        enum Result check(WordLangTuple const &);
-
-       /// insert the given word into the personal dictionary
+       void suggest(WordLangTuple const &, docstring_list &);
        void insert(WordLangTuple const &);
-
-       /// accept the given word temporarily
        void accept(WordLangTuple const &);
-
-       /// return the next near miss after a SUGGESTED_WORDS result
-       docstring const nextMiss();
-
-       /// give an error message on messy exit
        docstring const error();
+       ///@}
 
 private:
-       /// add a speller of the given language
-       void addSpeller(std::string const & lang);
-
-       struct Speller {
-               AspellSpeller * speller;
-               AspellConfig * config;
-       };
-
-       typedef std::map<std::string, Speller> Spellers;
-
-       /// the spellers
-       Spellers spellers_;
-
-       /// FIXME
-       AspellStringEnumeration * els;
-       /// FIXME
-       AspellCanHaveError * spell_error_object;
+       struct Private;
+       Private * d;
 };