using std::string;
-typedef FormCB<ControlPrint, FormDB<FD_print> > base_class;
+typedef FormController<ControlPrint, FormView<FD_print> > base_class;
-FormPrint::FormPrint()
- : base_class(_("Print Document"))
+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()) {