*
* \author Edwin Leuven
*
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
*/
#include <config.h>
-
-#include "xformsBC.h"
#include "FormSpellchecker.h"
-#include "ControlSpellchecker.h"
#include "forms/form_spellchecker.h"
-#include "forms_gettext.h"
+#include "controllers/ControlSpellchecker.h"
+
#include "Tooltips.h"
#include "xforms_helpers.h"
-#include "support/lstrings.h"
+#include "xformsBC.h"
+
+#include "support/tostr.h"
+
+#include "lyx_forms.h"
-#include FORMS_H_LOCATION
+using std::string;
-using std::endl;
+namespace lyx {
+namespace frontend {
-typedef FormCB<ControlSpellchecker, FormDB<FD_spellchecker> > base_class;
+typedef FormController<ControlSpellchecker, FormView<FD_spellchecker> > base_class;
-FormSpellchecker::FormSpellchecker()
- : base_class(_("Spellchecker"))
+FormSpellchecker::FormSpellchecker(Dialog & parent)
+ : base_class(parent, _("Spell-check document"))
{}
// callback for double click in browser
fl_set_browser_dblclick_callback(dialog_->browser_suggestions,
- C_FormBaseInputCB, 2);
+ C_FormDialogView_InputCB, 2);
// do not allow setting of slider by the mouse
fl_deactivate_object(dialog_->slider_progress);
}
+void FormSpellchecker::update()
+{
+ controller().check();
+}
+
+
void FormSpellchecker::partialUpdate(int s)
{
ControlSpellchecker::State const state =
return ButtonPolicy::SMI_VALID;
}
+
+} // namespace frontend
+} // namespace lyx