]> git.lyx.org Git - lyx.git/blobdiff - src/ispell.C
More 'standard conformant blurb' nonsense.
[lyx.git] / src / ispell.C
index ee75bf507c6748e6eebaf4778136737e2ea4c785..419623033be8fc3549d6092dbe05fb0a5eec2b70 100644 (file)
@@ -17,6 +17,7 @@
 #include "ispell.h"
 #include "WordLangTuple.h"
 #include "gettext.h"
+#include "bufferparams.h"
 
 #include "support/forkedcall.h"
 #include "support/lstrings.h"
@@ -27,6 +28,8 @@
 #endif
 #include <sys/time.h>
 
+using namespace lyx::support;
+
 #ifndef CXX_GLOBAL_CSTD
 using std::strcpy;
 using std::strlen;
@@ -39,14 +42,14 @@ using std::max;
 
 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);
        }
        ///
@@ -235,7 +238,7 @@ ISpell::ISpell(BufferParams const & params, string const & lang)
        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;
        }
@@ -365,7 +368,7 @@ enum ISpell::Result ISpell::check(WordLangTuple const & word)
        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;
        }