/* FormPrint.C
* FormPrint Interface Class Implementation
* This file is part of
- * ======================================================
+ * ======================================================
*
* LyX, The Document Processor
*
from = print_from_->get_text();
to = print_to_->get_value_as_int();
}
-
+
PrinterParams::Target t(PrinterParams::PRINTER);
if (printto_file_->get_active()) t = PrinterParams::FILE;
-
+
// we really should use the return value here I think.
if (!printBuffer(lv_->buffer(),
PrinterParams(t,
copies_unsorted_->get_active(),
copies_count_->get_value_as_int())))
{
- WriteAlert(_("Error:"),
+ Alert::alert(_("Error:"),
_("Unable to print"),
_("Check that your parameters are correct"));
}
case PrinterParams::ODD:
print_odd_->set_active(true);
break;
-
+
case PrinterParams::EVEN:
print_even_->set_active(true);
break;
-
+
case PrinterParams::ALL:
default:
print_all_->set_active(true);
break;
}
-
+
// hmmm... maybe a bit weird but maybe not
// we might just be remembering the last
// time this was printed.