* \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 "support/tostr.h"
-#include FORMS_H_LOCATION
+#include "lyx_forms.h"
+
+using std::string;
+
+namespace lyx {
-typedef FormCB<ControlPrint, FormDB<FD_print> > base_class;
+using support::strToInt;
-FormPrint::FormPrint()
- : base_class(_("Print Document"))
+namespace frontend {
+
+typedef FormController<ControlPrint, FormView<FD_print> > base_class;
+
+FormPrint::FormPrint(Dialog & parent)
+ : base_class(parent, _("Print Document"))
{}
if (ob == dialog_->button_browse) {
// Get the filename from the dialog
string const in_name = getString(dialog_->input_file);
- string const out_name = controller().Browse(in_name);
+ string const out_name = controller().browse(in_name);
// Save the filename to the dialog
if (out_name != in_name && !out_name.empty()) {
return activate;
}
+
+} // namespace frontend
+} // namespace lyx