comparison dwt/printing/Printer.d @ 119:d9893755f670

Ported dwt.printing.PrintDialog
author Jacob Carlborg <doob@me.com>
date Wed, 31 Dec 2008 16:07:41 +0100
parents cfa563df4fdd
children 7046ca5a6d77
comparison
equal deleted inserted replaced
118:10760eb00d08 119:d9893755f670
57 * @see PrinterData 57 * @see PrinterData
58 * @see PrintDialog 58 * @see PrintDialog
59 * @see <a href="http://www.eclipse.org/swt/snippets/#printing">Printing snippets</a> 59 * @see <a href="http://www.eclipse.org/swt/snippets/#printing">Printing snippets</a>
60 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> 60 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
61 */ 61 */
62 public final class Printer extends Device { 62 public final class Printer : Device {
63 PrinterData data; 63 PrinterData data;
64 NSPrinter printer; 64 NSPrinter printer;
65 NSPrintInfo printInfo; 65 NSPrintInfo printInfo;
66 NSPrintOperation operation; 66 NSPrintOperation operation;
67 NSView view; 67 NSView view;
68 NSWindow window; 68 NSWindow window;
69 bool isGCCreated; 69 bool isGCCreated;
70 70
71 static final String DRIVER = "Mac"; 71 static const String DRIVER = "Mac";
72 72
73 /** 73 /**
74 * Returns an array of <code>PrinterData</code> objects 74 * Returns an array of <code>PrinterData</code> objects
75 * representing all available printers. 75 * representing all available printers.
76 * 76 *