X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fispell.h;h=e33d848cb7ee915587db37705882c6fc294d5228;hb=fd2124c83dfcfeaf33b64d1d33c8ceb8d9f5f9b9;hp=23a75eb6ce4fe95d93acfe578524d26925b95bf4;hpb=47c34c3afa59b030a4578c82fea46d926e0c0c66;p=lyx.git diff --git a/src/ispell.h b/src/ispell.h index 23a75eb6ce..e33d848cb7 100644 --- a/src/ispell.h +++ b/src/ispell.h @@ -1,10 +1,13 @@ // -*- C++ -*- /** * \file ispell.h - * Copyright 2002 the LyX Team - * Read the file COPYING + * This file is part of LyX, the document processor. + * Licence details can be found in the file COPYING. * * \author unknown + * \author John Levon + * + * Full author contact details are available in file CREDITS. */ #ifndef SP_ISPELL_H @@ -17,12 +20,16 @@ #include class BufferParams; +namespace lyx { +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(); @@ -38,11 +45,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 std::string const error(); private: /// read some data. Returns true on an error. Sets err_read @@ -65,9 +72,9 @@ private: char buf[BUFSIZ]; /// spell error - string error_; + std::string error_; - boost::scoped_ptr child_; + boost::scoped_ptr child_; // vileness below ... please FIXME /// str ???