#include "gettext.h"
#include "PrinterParams.h"
-#include "support/tostr.h"
+#include "support/convert.h"
+#include "support/filefilterlist.h"
#include "support/filetools.h"
-#include "support/globbing.h"
-
-using lyx::support::ChangeExtension;
-using lyx::support::FileFilterList;
using std::string;
+namespace lyx {
+
+using support::ChangeExtension;
+using support::FileFilterList;
+
+namespace frontend {
+
+
ControlPrint::ControlPrint(Dialog & parent)
: Dialog::Controller(parent),
params_(0)
{
return browseRelFile(in_name, kernel().buffer().filePath(),
_("Print to file"),
- FileFilterList("PostScript files (*.ps)"),
+ FileFilterList(_("PostScript files (*.ps)")),
true);
}
if (!pp.all_pages && pp.from_page) {
command += lyxrc.print_pagerange_flag + ' ';
- command += tostr(pp.from_page);
+ command += convert<string>(pp.from_page);
if (pp.to_page) {
// we have a range "from-to"
command += '-'
- + tostr(pp.to_page);
+ + convert<string>(pp.to_page);
}
command += ' ';
}
command += lyxrc.print_copies_flag;
}
command += ' '
- + tostr(pp.count_copies)
+ + convert<string>(pp.count_copies)
+ ' ';
}
pp.file_name;
string const data = target + " " + target_name + " " + command;
- kernel().dispatch(FuncRequest(LFUN_PRINT, data));
+ kernel().dispatch(FuncRequest(getLfun(), data));
}
+
+} // namespace frontend
+} // namespace lyx