X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fispell.h;h=3aed4d5f41ef7270e29dc2879d2355d53bd8eac5;hb=b01a9dc187d9cd396a57463ad27511379dcdc9cd;hp=d201945c711958cbe734f538dc5ad8cba67921ac;hpb=92d522b7f1be6046adcac062c558bbf0bf021612;p=lyx.git diff --git a/src/ispell.h b/src/ispell.h index d201945c71..3aed4d5f41 100644 --- a/src/ispell.h +++ b/src/ispell.h @@ -1,10 +1,13 @@ // -*- C++ -*- /** * \file ispell.h - * Copyright 2002 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 unknown + * \author John Levon + * + * Full author contact details are available in file CREDITS. */ #ifndef SP_ISPELL_H @@ -12,21 +15,22 @@ #include "SpellBase.h" +#include "support/docstring.h" + #include #include -class BufferParams; namespace lyx { -namespace support { -class ForkedProcess; -} -} + +class BufferParams; + +namespace support { class ForkedProcess; } /// i/a spell process-based spellchecker class ISpell : public SpellBase { public: - ISpell(BufferParams const & params, string const & lang); + ISpell(BufferParams const & params, std::string const & lang); ~ISpell(); @@ -42,11 +46,11 @@ public: /// accept the given word temporarily virtual void accept(WordLangTuple const & word); - /// 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: /// read some data. Returns true on an error. Sets err_read @@ -69,9 +73,12 @@ private: char buf[BUFSIZ]; /// spell error - string error_; + docstring error_; - boost::scoped_ptr child_; + boost::scoped_ptr child_; + + /// iconv name of the encoding that is used to communicate with ispell + std::string encoding; // vileness below ... please FIXME /// str ??? @@ -81,4 +88,6 @@ private: }; +} // namespace lyx + #endif // ISPELL_H