X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fispell.h;h=3aed4d5f41ef7270e29dc2879d2355d53bd8eac5;hb=ba62665f966508db5a4de6864f4aa7374c5a5356;hp=ae14e337d4916b988380f6814d114919e49956c2;hpb=44cd0fc9a1687cc63911c7f98d978594458e7813;p=lyx.git diff --git a/src/ispell.h b/src/ispell.h index ae14e337d4..3aed4d5f41 100644 --- a/src/ispell.h +++ b/src/ispell.h @@ -15,16 +15,17 @@ #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 { @@ -45,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 std::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 std::string const error(); + virtual docstring const error(); private: /// read some data. Returns true on an error. Sets err_read @@ -72,9 +73,12 @@ private: char buf[BUFSIZ]; /// spell error - std::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 ??? @@ -84,4 +88,6 @@ private: }; +} // namespace lyx + #endif // ISPELL_H