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>
25 PrinterParams::PrinterParams(Target t,
45 sorted_copies(sorted),
46 reverse_order(reverse)
52 PrinterParams::PrinterParams(PrinterParams const & pp)
54 printer_name(pp.printer_name),
55 file_name(pp.file_name),
56 all_pages(pp.all_pages),
57 from_page(pp.from_page),
59 odd_pages(pp.odd_pages),
60 even_pages(pp.even_pages),
61 count_copies(pp.count_copies),
62 sorted_copies(pp.sorted_copies),
63 reverse_order(pp.reverse_order)
69 void PrinterParams::testInvariant() const
71 #ifdef ENABLE_ASSERTIONS
74 //BOOST_ASSERT(!printer_name.empty());
77 BOOST_ASSERT(!file_name.empty());