X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FPrinterParams.h;h=c31ec1a7418f41bc5d5296347db762050dd00402;hb=37d42d45f3f4a5d3e916a080af50b37ae4a9d118;hp=8ce49bf5db20ccda8b30023ee0e66a33bcb561fe;hpb=4fb18536e9db6c72df397fcdd4ecfbed7ed4052c;p=lyx.git diff --git a/src/PrinterParams.h b/src/PrinterParams.h index 8ce49bf5db..c31ec1a741 100644 --- a/src/PrinterParams.h +++ b/src/PrinterParams.h @@ -15,14 +15,15 @@ #include "lyxrc.h" /** - This struct contains (or should contain) all the parameters required for - printing a buffer. Some work still needs to be done on this struct and + This class contains (or should contain) all the parameters required for + printing a buffer. Some work still needs to be done on this class and printing handling in general to make it nice and full-featured. The main things I'd like to add now is the ability to print a read-only document with different orientation, papersize or single/duplex state than the document's settings. ARRae 20000423 */ -struct PrinterParams { +class PrinterParams { +public: /// enum Target { /// @@ -33,9 +34,9 @@ struct PrinterParams { /// Target target; /// - string printer_name; + std::string printer_name; /// - string file_name; + std::string file_name; /// bool all_pages; /** Print a page range. Both from_page and to_page used to be strings @@ -76,8 +77,8 @@ struct PrinterParams { void testInvariant() const; /// PrinterParams(Target t = PRINTER, - string const & pname = lyxrc.printer, - string const & fname = string(), + std::string const & pname = lyxrc.printer, + std::string const & fname = std::string(), bool all = true, unsigned int from = 1, unsigned int to = 0,