+2001-10-22 Juergen Vigna <jug@sad.it>
+
+ * sp_pspell.h (class PSpell): add alive function needed in the
+ controller to see if the spellchecker could be started.
+
2001-10-22 Juergen Vigna <jug@sad.it>
* buffer.C (insertStringAsLines): modify the font for inserting
+2001-10-22 Juergen Vigna <jug@sad.it>
+
+ * ControlSpellchecker.C (clearParams): use the error_ message of the
+ speller_ if available when the spellchecker died.
+ (setParams): remove double error message display.
+
2001-10-15 Angus Leeming <a.leeming@ic.ac.uk>
* ControlMinipage.[Ch] (getUnits): moved to helper_funcs.
}
if (speller_->error() != 0) {
+#if 0
message_ = speller_->error();
// show error message
view().partialUpdate(2);
+#endif
clearParams();
return;
}
message_ = _("Spellchecking completed! ") + message_;
} else {
+ message_ = speller_->error();
speller_->cleanUp();
- message_ = _("The spell checker has died for some reason.\n"
- "Maybe it has been killed.");
+ if (message_.empty())
+ message_ = _("The spell checker has died for some reason.\n"
+ "Maybe it has been killed.");
// make sure that the dialog is not launched
emergency_exit_ = true;
/// initialize spell checker
void initialize(BufferParams const & params, string const & lang);
- bool alive() { return true; }
+ bool alive() { return alive_; }
/// clean up after error
void cleanUp();
spellStatus flag;
const char * error_;
-
+
+ bool alive_;
};
#endif
PSpell::PSpell()
- : sc(0), els(0), spell_error_object(0), flag(ISP_UNKNOWN)
+ : sc(0), els(0), spell_error_object(0), flag(ISP_UNKNOWN),
+ alive_(false)
{
}
PSpell::PSpell(BufferParams const & params, string const & lang)
- : sc(0), els(0), spell_error_object(0), flag(ISP_UNKNOWN)
+ : sc(0), els(0), spell_error_object(0), flag(ISP_UNKNOWN),
+ alive_(false)
{
initialize(params, lang);
}
error_ = 0;
sc = to_pspell_manager(spell_error_object);
spell_error_object = 0;
+ alive_ = true;
}
}