X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fispell.h;h=0fe77a15bc261f46b60e92dfdb897675b36b5d71;hb=d2574b7d8e2716d3d3aea92df6576bd01c421a6c;hp=d8a3c9ca138951a08b45ef8fe2b1d53d153ae287;hpb=0be0fcfd5907d448cd51addf83ed7032719a0692;p=lyx.git diff --git a/src/ispell.h b/src/ispell.h index d8a3c9ca13..0fe77a15bc 100644 --- a/src/ispell.h +++ b/src/ispell.h @@ -15,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(); @@ -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 string const nextMiss(); + /// return the next near miss after a SUGGESTED_WORDS result + virtual std::string 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 @@ -72,9 +73,9 @@ private: char buf[BUFSIZ]; /// spell error - string error_; + docstring error_; - boost::scoped_ptr child_; + boost::scoped_ptr child_; // vileness below ... please FIXME /// str ??? @@ -84,4 +85,6 @@ private: }; +} // namespace lyx + #endif // ISPELL_H