]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormPrint.C
Introduce LFUN_PRINT.
[lyx.git] / src / frontends / xforms / FormPrint.C
index 3da4346df45949b5073fc7bb2fee25b7f4fb95e2..a3ea1756ea58d693198c918c3b353e46a50331ab 100644 (file)
@@ -32,10 +32,10 @@ using lyx::support::strToInt;
 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"))
 {}
 
 
@@ -185,7 +185,7 @@ ButtonPolicy::SMInput FormPrint::input(FL_OBJECT * ob, long)
        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()) {