+// -*- C++ -*-
/**
* \file aspell_local.h
- * Copyright 2001 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
* \author Kevin Atkinson
- * \author John Levon <levon@movementarian.org>
+ * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS.
*/
#ifndef LYX_ASPELL_H
#define LYX_ASPELL_H
+#include "SpellBase.h"
+
#include <map>
-#include "SpellBase.h"
-class AspellSpeller;
-class AspellStringEnumeration;
-class AspellCanHaveError;
-class AspellConfig;
+struct AspellSpeller;
+struct AspellStringEnumeration;
+struct AspellCanHaveError;
+struct AspellConfig;
+
+namespace lyx {
class BufferParams;
/**
* Initialise the spellchecker with the given buffer params and language.
*/
- ASpell(BufferParams const & params, string const & lang);
+ ASpell(BufferParams const & params, std::string const & lang);
virtual ~ASpell();
/// accept the given word temporarily
virtual void accept(WordLangTuple const &);
- /// return the next near miss after a MISSED result
- virtual string const nextMiss();
+ /// return the next near miss after a SUGGESTED_WORDS result
+ virtual docstring const nextMiss();
/// give an error message on messy exit
- virtual string const error();
+ virtual docstring const error();
private:
/// add a speller of the given language
- void addSpeller(string const & lang);
+ void addSpeller(std::string const & lang);
struct Speller {
AspellSpeller * speller;
AspellConfig * config;
};
- typedef std::map<string, struct Speller> Spellers;
+ typedef std::map<std::string, Speller> Spellers;
/// the spellers
Spellers spellers_;
AspellCanHaveError * spell_error_object;
};
-#endif // ASPELL_H
+
+} // namespace lyx
+
+#endif // LYX_ASPELL_H