Mercurial > projects > dwt-win
diff dwt/printing/PrinterData.d @ 212:ab60f3309436
reverted the char[] to String and use the an alias.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 05 May 2008 00:12:38 +0200 |
parents | 8491a1efab40 |
children | 36f5cb12e1a2 |
line wrap: on
line diff
--- a/dwt/printing/PrinterData.d Sat Apr 26 10:01:48 2008 +0200 +++ b/dwt/printing/PrinterData.d Mon May 05 00:12:38 2008 +0200 @@ -16,6 +16,7 @@ import dwt.graphics.DeviceData; import tango.text.convert.Format; +import dwt.dwthelper.utils; /** * Instances of this class are descriptions of a print job @@ -45,14 +46,14 @@ * On GTK+, this is the backend type name (eg. GtkPrintBackendCups). */ // TODO: note that this api is not finalized for GTK+ - public char[] driver; + public String driver; /** * the name of the printer * On Windows systems, this is the name of the 'device'. * On Mac OSX, X/Window systems, and GTK+, this is the printer's 'name'. */ - public char[] name; + public String name; /** * the scope of the print job, expressed as one of the following values: @@ -88,7 +89,7 @@ * the name of the file to print to if printToFile is true. * Note that this field is ignored if printToFile is false. */ - public char[] fileName; + public String fileName; /** * the number of copies to print. @@ -152,7 +153,7 @@ * @see #driver * @see #name */ - public this(char[] driver, char[] name) { + public this(String driver, String name) { this.driver = driver; this.name = name; } @@ -163,7 +164,7 @@ * * @return a string representation of the receiver */ - public char[] toString() { + public String toString() { return Format("PrinterData {{driver = {}, name = {}}", driver, name ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } }