]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormPrint.C
Change glob() API to accept a dir parameter.
[lyx.git] / src / frontends / xforms / FormPrint.C
index 77141b5fc79f473faa697f55cd60721c77d56093..48d38d464bd744ae796e8e2e474b7644365250a4 100644 (file)
 
 #include <config.h>
 
-#include "xformsBC.h"
-#include "ControlPrint.h"
 #include "FormPrint.h"
+#include "ControlPrint.h"
 #include "forms/form_print.h"
+
+#include "input_validators.h"
 #include "Tooltips.h"
+#include "xforms_helpers.h"
+#include "xformsBC.h"
 
 #include "PrinterParams.h"
 
-#include "input_validators.h"
-#include "xforms_helpers.h"
+#include "support/lstrings.h"
+#include "support/tostr.h"
 
 #include "lyx_forms.h"
-#include "support/tostr.h"
-#include "support/lstrings.h"
 
-using namespace lyx::support;
+using std::string;
+
+namespace lyx {
 
-typedef FormCB<ControlPrint, FormDB<FD_print> > base_class;
+using support::strToInt;
 
+namespace frontend {
 
-FormPrint::FormPrint()
-       : base_class(_("Print Document"))
+typedef FormController<ControlPrint, FormView<FD_print> > base_class;
+
+FormPrint::FormPrint(Dialog & parent)
+       : base_class(parent, _("Print Document"))
 {}
 
 
@@ -182,7 +188,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()) {
@@ -250,3 +256,6 @@ ButtonPolicy::SMInput FormPrint::input(FL_OBJECT * ob, long)
 
        return activate;
 }
+
+} // namespace frontend
+} // namespace lyx