/**
* \file FormMinipage.C
- * Copyright 2000-2001 The LyX Team.
- * See the file COPYING.
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
- * \author Jürgen Vigna, jug@sad.it
+ * \author Jürgen Vigna
+ *
+ * Full author contact details are available in file CREDITS
*/
#include <config.h>
#include "xformsBC.h"
#include "ControlMinipage.h"
#include "FormMinipage.h"
-#include "form_minipage.h"
+#include "forms/form_minipage.h"
#include "support/lstrings.h"
#include "helper_funcs.h"
#include "debug.h"
#include "xforms_helpers.h"
+#include FORMS_H_LOCATION
-typedef FormCB<ControlMinipage, FormDB<FD_form_minipage> > base_class;
+typedef FormCB<ControlMinipage, FormDB<FD_minipage> > base_class;
-FormMinipage::FormMinipage(ControlMinipage & c)
- : base_class(c, _("Minipage Options"))
+FormMinipage::FormMinipage()
+ : base_class(_("Minipage Options"))
{}
void FormMinipage::build()
{
- dialog_.reset(build_minipage());
+ dialog_.reset(build_minipage(this));
// Allow the base class to control messages
setMessageWidget(dialog_->text_warning);
// disallow senseless data
// warnings if input is senseless
if (ob == dialog_->input_width) {
- string const input = getStringFromInput(dialog_->input_width);
+ string const input = getString(dialog_->input_width);
bool const invalid = !isValidLength(input) && !isStrDbl(input);
if (invalid) {
postWarning(_("Invalid Length!"));