*
* \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 "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;
typedef FormCB<ControlSpellchecker, FormDB<FD_spellchecker> > base_class;
FormSpellchecker::FormSpellchecker()
- : base_class(_("Spellchecker"))
+ : base_class(_("Spell-check Document"))
{}
dialog_.reset(build_spellchecker(this));
// Manage the buttons
- bc().setCancel(dialog_->button_close);
+ bcview().setCancel(dialog_->button_close);
// disable for read-only documents
- bc().addReadOnly(dialog_->button_replace);
+ bcview().addReadOnly(dialog_->button_replace);
// trigger an input event for cut&paste with middle mouse button.
setPrehandler(dialog_->input_replacement);