/**
- * \file xforms/FormPrint.C
+ * \file FormPrint.C
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
* \author Allan Rae
* \author Angus Leeming
*
- * 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 "ControlPrint.h"
#include "FormPrint.h"
+#include "ControlPrint.h"
#include "forms/form_print.h"
-#include "Tooltips.h"
-
-#include "PrinterParams.h"
#include "input_validators.h"
+#include "Tooltips.h"
#include "xforms_helpers.h"
+#include "xformsBC.h"
+
+#include "PrinterParams.h"
#include "support/lstrings.h"
-#include FORMS_H_LOCATION
+#include "support/tostr.h"
+
+#include "lyx_forms.h"
+
+using lyx::support::strToInt;
+
+using std::string;
typedef FormCB<ControlPrint, FormDB<FD_print> > base_class;
FormPrint::FormPrint()
- : base_class(_("Print"))
+ : base_class(_("Print Document"))
{}
dialog_.reset(build_print(this));
// Manage the ok, apply and cancel/close buttons
- bc().setOK(dialog_->button_ok);
- bc().setApply(dialog_->button_apply);
- bc().setCancel(dialog_->button_close);
+ bcview().setOK(dialog_->button_ok);
+ bcview().setApply(dialog_->button_apply);
+ bcview().setCancel(dialog_->button_close);
// trigger an input event for cut&paste with middle mouse button.
setPrehandler(dialog_->input_printer);