]> git.lyx.org Git - lyx.git/blobdiff - src/sp_ispell.h
redraw fix 1.
[lyx.git] / src / sp_ispell.h
index 43436a0b7fe57edaf8d7e15dfc96f0ff4e9ddbf8..949aaf4221f9ccf2c74b935131e578e2e86185af 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef SP_ISPELL_H
 #define SP_ISPELL_H
 
+#include <cstdio>
+
 #include "sp_base.h"
 
 class BufferParams;
@@ -8,74 +10,60 @@ class BufferParams;
 
 class ISpell : public SpellBase
 {
-  public:
-
-    enum ActualSpellChecker {
+public:
+       ///
+       enum ActualSpellChecker {
                ASC_ISPELL,
                ASC_ASPELL
-    };
-    
-    ISpell();
-    
-    ISpell(BufferParams const & params, string const & lang);
-    
-    ~ISpell();
-
-
-    /// initialize spell checker
-    void initialize(BufferParams const & params, string const & lang);
-
-    bool alive();
-
-    /// clean up after error
-    void cleanUp();
-
-    /// check word
-    enum spellStatus check(string const & word);
-
-    /// close spellchecker
-    void close();
-
-    void insert(string const & word);
-
-    void accept(string const & word);
-
-    /// store replacement
-    void store(string const & mis, string const & cor);
-     
-    void sigchldhandler(pid_t pid, int *status);
+       };
+       ///
+       ISpell();
+       ///
+       ISpell(BufferParams const & params, string const & lang);
+       ///
+       ~ISpell();
+
+       /// initialize spell checker
+       void initialize(BufferParams const & params, string const & lang);
+       ///
+       bool alive();
+       /// clean up after error
+       void cleanUp();
+       /// check word
+       enum spellStatus check(string const & word);
+       /// close spellchecker
+       void close();
+       ///
+       void insert(string const & word);
+       ///
+       void accept(string const & word);
+       /// store replacement
+       void store(string const & mis, string const & cor);
+       ///
+       char const * nextMiss();
+       ///
+       char const * error();
+
+private:
+       ///
+       ActualSpellChecker actual_spell_checker;
+       /// instream to communicate with ispell
+       FILE * in;
+       /// outstream to communicate with ispell
+       FILE * out;
+       /// spell error
+       char const * error_;
+       /// ?
+       int isp_fd;
+       ///
+       char * str;
+       ///
+       spellStatus flag;
+       ///
+       char * b;
+       ///
+       char * e;
 
-    char const * nextMiss();
-
-    char const * error();
-   
-  private:
-
-    ActualSpellChecker actual_spell_checker;   
-
-    /// instream to communicate with ispell
-    FILE * in;
-
-    /// outstream to communicate with ispell
-    FILE * out;
-
-    /// spell error
-    char const * error_;
-
-    /// ?
-    int isp_fd;
-
-    ///
-    char * str;
-    ///
-    spellStatus flag;
-    ///
-    char * b;
-    ///
-    char * e;
-   
 };
-   
-#endif
-
 
+#endif