2 * \file PrinterParams.C
3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
8 * Full author contact details are available in file CREDITS.
13 #include "PrinterParams.h"
15 #include "support/lstrings.h"
17 #include <boost/assert.hpp>
20 PrinterParams::PrinterParams(Target t,
40 sorted_copies(sorted),
41 reverse_order(reverse)
47 PrinterParams::PrinterParams(PrinterParams const & pp)
49 printer_name(pp.printer_name),
50 file_name(pp.file_name),
51 all_pages(pp.all_pages),
52 from_page(pp.from_page),
54 odd_pages(pp.odd_pages),
55 even_pages(pp.even_pages),
56 count_copies(pp.count_copies),
57 sorted_copies(pp.sorted_copies),
58 reverse_order(pp.reverse_order)
64 void PrinterParams::testInvariant() const
66 #ifdef ENABLE_ASSERTIONS
69 //BOOST_ASSERT(!printer_name.empty());
72 BOOST_ASSERT(!file_name.empty());