]> git.lyx.org Git - lyx.git/blobdiff - src/aspell.C
layout file converter for layout files in old format
[lyx.git] / src / aspell.C
index 507437c6339e1d1dc6f7b2703977a4db45b05537..be2dc6ae981734d7c9b29c37948c21142ffca9fc 100644 (file)
@@ -11,8 +11,6 @@
 
 #include <config.h>
 
-#ifdef USE_ASPELL
-
 #include "debug.h"
 
 #include <aspell.h>
@@ -75,7 +73,7 @@ void ASpell::addSpeller(string const & lang)
 
 ASpell::Result ASpell::check(WordLangTuple const & word)
 {
-       Result res = UNKNOWN;
+       Result res = UNKNOWN_WORD;
 
        Spellers::iterator it = spellers_.find(word.lang_code());
        if (it == spellers_.end()) {
@@ -99,9 +97,9 @@ ASpell::Result ASpell::check(WordLangTuple const & word)
                BOOST_ASSERT(sugs != 0);
                els = aspell_word_list_elements(sugs);
                if (aspell_word_list_empty(sugs))
-                       res = UNKNOWN;
+                       res = UNKNOWN_WORD;
                else
-                       res = MISSED;
+                       res = SUGGESTED_WORDS;
        }
        return res;
 }
@@ -144,5 +142,3 @@ string const ASpell::error()
 
        return (err ? err : "");
 }
-
-#endif // USE_ASPELL