]> git.lyx.org Git - lyx.git/blobdiff - src/ispell.h
* support/qstring_helpers.h: erase ucs4_to_qstring() method.
[lyx.git] / src / ispell.h
index e33d848cb7ee915587db37705882c6fc294d5228..3aed4d5f41ef7270e29dc2879d2355d53bd8eac5 100644 (file)
 
 #include "SpellBase.h"
 
+#include "support/docstring.h"
+
 #include <boost/scoped_ptr.hpp>
 
 #include <cstdio>
 
-class BufferParams;
 namespace lyx {
-namespace support {
-class ForkedProcess;
-}
-}
+
+class BufferParams;
+
+namespace support { class ForkedProcess; }
 
 /// i/a spell process-based spellchecker
 class ISpell : public SpellBase {
@@ -46,10 +47,10 @@ public:
        virtual void accept(WordLangTuple const & word);
 
        /// return the next near miss after a SUGGESTED_WORDS result
-       virtual std::string const nextMiss();
+       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<support::ForkedProcess> child_;
 
-       boost::scoped_ptr<lyx::support::ForkedProcess> 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