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>
22 PrinterParams::PrinterParams(Target t,
42 sorted_copies(sorted),
43 reverse_order(reverse)
49 PrinterParams::PrinterParams(PrinterParams const & pp)
51 printer_name(pp.printer_name),
52 file_name(pp.file_name),
53 all_pages(pp.all_pages),
54 from_page(pp.from_page),
56 odd_pages(pp.odd_pages),
57 even_pages(pp.even_pages),
58 count_copies(pp.count_copies),
59 sorted_copies(pp.sorted_copies),
60 reverse_order(pp.reverse_order)
66 void PrinterParams::testInvariant() const
68 #ifdef ENABLE_ASSERTIONS
71 //BOOST_ASSERT(!printer_name.empty());
74 BOOST_ASSERT(!file_name.empty());