Mercurial > projects > dwt-mac
diff dwt/printing/PrinterData.d @ 118:10760eb00d08
Ported dwt.printing.PrinterData
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Wed, 31 Dec 2008 15:51:54 +0100 |
parents | d8635bb48c7c |
children | 2e671fa40eec |
line wrap: on
line diff
--- a/dwt/printing/PrinterData.d Wed Dec 31 15:48:20 2008 +0100 +++ b/dwt/printing/PrinterData.d Wed Dec 31 15:51:54 2008 +0100 @@ -7,6 +7,9 @@ * * Contributors: * IBM Corporation - initial API and implementation + * + * Port to the D programming language: + * Jacob Carlborg <doob@me.com> *******************************************************************************/ module dwt.printing.PrinterData; @@ -34,7 +37,7 @@ * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> */ -public final class PrinterData extends DeviceData { +public final class PrinterData : DeviceData { /** * the printer driver @@ -65,7 +68,7 @@ * <dd>Print the current selection</dd> * </dl> */ - public int scope = ALL_PAGES; + public int scope_ = ALL_PAGES; /** * the start page of a page range, used when scope is PAGE_RANGE. @@ -143,7 +146,7 @@ * * @see Printer#getDefaultPrinterData */ - public PrinterData() { + public this() { } /** @@ -156,7 +159,7 @@ * @see #driver * @see #name */ - public PrinterData(String driver, String name) { + public this(String driver, String name) { this.driver = driver; this.name = name; } @@ -168,6 +171,6 @@ * @return a string representation of the receiver */ public String toString() { - return "PrinterData {" + "driver = " + driver + ", name = " + name + "}"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ + return "PrinterData {" ~ "driver = " ~ driver ~ ", name = " ~ name ~ "}"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } }