5252:321c2003745d | 5253:57276f763bf6 |
---|---|
19 | 19 |
20 import Globals | 20 import Globals |
21 | 21 |
22 | 22 |
23 _FilePrintJobs = [] | 23 _FilePrintJobs = [] |
24 | |
24 | 25 |
25 class FilePrinter(object): | 26 class FilePrinter(object): |
26 """ | 27 """ |
27 Class implementing methods for printing on *nix systems. | 28 Class implementing methods for printing on *nix systems. |
28 """ | 29 """ |
108 self.__fileName = "" | 109 self.__fileName = "" |
109 | 110 |
110 def _doPrintFile(self, printer, fileName, fileDeletePolicy, | 111 def _doPrintFile(self, printer, fileName, fileDeletePolicy, |
111 pageSelectPolicy, pageRange): | 112 pageSelectPolicy, pageRange): |
112 """ | 113 """ |
113 Protected method to print a file | 114 Protected method to print a file. |
114 | 115 |
115 @param printer reference to the printer to print to | 116 @param printer reference to the printer to print to |
116 @type QPrinter | 117 @type QPrinter |
117 @param fileName name (path) of the file to be printed | 118 @param fileName name (path) of the file to be printed |
118 @type str | 119 @type str |
571 """ | 572 """ |
572 fp = FilePrinter() | 573 fp = FilePrinter() |
573 if fp._doPrintFile(printer, fileName, fileDeletePolicy, pageSelectPolicy, | 574 if fp._doPrintFile(printer, fileName, fileDeletePolicy, pageSelectPolicy, |
574 pageRange): | 575 pageRange): |
575 _FilePrintJobs.append(fp) | 576 _FilePrintJobs.append(fp) |
576 |