]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormPrint.C
Introduce LFUN_PRINT.
[lyx.git] / src / frontends / xforms / FormPrint.C
index 72403ec779a6804309ab3ba4befa39b8eb7cc4ac..a3ea1756ea58d693198c918c3b353e46a50331ab 100644 (file)
 
 using lyx::support::strToInt;
 
+using std::string;
 
-typedef FormCB<ControlPrint, FormDB<FD_print> > base_class;
 
-FormPrint::FormPrint()
-       : base_class(_("Print Document"))
+typedef FormController<ControlPrint, FormView<FD_print> > base_class;
+
+FormPrint::FormPrint(Dialog & parent)
+       : base_class(parent, _("Print Document"))
 {}
 
 
@@ -183,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()) {