#include "ispell.h"
#include "WordLangTuple.h"
#include "gettext.h"
+#include "bufferparams.h"
#include "support/forkedcall.h"
#include "support/lstrings.h"
#endif
#include <sys/time.h>
+using namespace lyx::support;
+
#ifndef CXX_GLOBAL_CSTD
using std::strcpy;
using std::strlen;
namespace {
-class LaunchIspell : public ForkedProcess {
+class LaunchIspell : public lyx::support::ForkedProcess {
public:
///
LaunchIspell(BufferParams const & p, string const & l,
int * in, int * out, int * err)
: params(p), lang(l), pipein(in), pipeout(out), pipeerr(err) {}
///
- virtual ForkedProcess * clone() const {
+ virtual lyx::support::ForkedProcess * clone() const {
return new LaunchIspell(*this);
}
///
child_.reset(li);
if (li->start() == -1) {
error_ = _("Could not create an ispell process.\nYou may not have "
- " the right languages installed.");
+ "the right languages installed.");
child_.reset(0);
return;
}
bool error = select(err_read);
if (error) {
- error_ = _("Could not communicate with the spell-checker program");
+ error_ = _("Could not communicate with the spell-checker program.");
return UNKNOWN;
}