]> git.lyx.org Git - lyx.git/blobdiff - src/PrinterParams.h
mathed31.diff
[lyx.git] / src / PrinterParams.h
index 670c32ae2207af39fa39191781a7b5d3bbb25995..61e96f6807fa7d1bf99a6012b99dd50982714ed9 100644 (file)
@@ -84,47 +84,6 @@ struct PrinterParams {
        // Override document settings for duplex.
        // bool duplex;
 
-       ///
-       PrinterParams(Target const & t = PRINTER,
-                     string const & pname = lyxrc.printer,
-                     string const & fname = string(),
-                     WhichPages const wp = ALL,
-                     string const & from = string(),
-                     int const & to = 0,
-                     bool const reversed = false,
-                     bool const unsorted = false,
-                     int const & num_copies = 1)
-               : target(t),
-                 printer_name(pname),
-                 file_name(fname),
-                 which_pages(wp),
-                 from_page(from),
-                 to_page(to),
-                 reverse_order(reversed),
-                 unsorted_copies(unsorted),
-                 count_copies(num_copies)
-               {
-                       testInvariant();
-               }
-       ///
-       PrinterParams(PrinterParams const & pp)
-               : target(pp.target),
-                 printer_name(pp.printer_name),
-                 file_name(pp.file_name),
-                 which_pages(pp.which_pages),
-                 from_page(pp.from_page),
-                 to_page(pp.to_page),
-                 reverse_order(pp.reverse_order),
-                 unsorted_copies(pp.unsorted_copies),
-                 count_copies(pp.count_copies)
-               {
-                       testInvariant();
-               }
-
-// do we need these?
-//     friend bool operator==(PrinterParams const &, PrinterParams const &);
-//     friend bool operator<(PrinterParams const &, PrinterParams const &);
-
        /** Test that all the fields contain valid entries.  It's unlikely
            that the internal code will get this wrong (at least for the
            xforms code anyway) however new ports and external scripts
@@ -164,6 +123,43 @@ struct PrinterParams {
                        }
 #endif
                }
+
+       ///
+       PrinterParams(Target const & t = PRINTER,
+                     string const & pname = lyxrc.printer,
+                     string const & fname = string(),
+                     WhichPages const wp = ALL,
+                     string const & from = string(),
+                     int const & to = 0,
+                     bool const reversed = false,
+                     bool const unsorted = false,
+                     int const & num_copies = 1)
+               : target(t),
+                 printer_name(pname),
+                 file_name(fname),
+                 which_pages(wp),
+                 from_page(from),
+                 to_page(to),
+                 reverse_order(reversed),
+                 unsorted_copies(unsorted),
+                 count_copies(num_copies)
+               {
+                       testInvariant();
+               }
+       ///
+       PrinterParams(PrinterParams const & pp)
+               : target(pp.target),
+                 printer_name(pp.printer_name),
+                 file_name(pp.file_name),
+                 which_pages(pp.which_pages),
+                 from_page(pp.from_page),
+                 to_page(pp.to_page),
+                 reverse_order(pp.reverse_order),
+                 unsorted_copies(pp.unsorted_copies),
+                 count_copies(pp.count_copies)
+               {
+                       testInvariant();
+               }
 };
 
 #endif