Mercurial > projects > dwt-linux
diff dwt/printing/PrinterData.d @ 238:380bad9f6852
reverted char[] to String
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 05 May 2008 00:42:55 +0200 |
parents | f2e04420fd6c |
children | ce446666f5a2 |
line wrap: on
line diff
--- a/dwt/printing/PrinterData.d Sat Apr 26 10:01:30 2008 +0200 +++ b/dwt/printing/PrinterData.d Mon May 05 00:42:55 2008 +0200 @@ -12,6 +12,8 @@ *******************************************************************************/ module dwt.printing.PrinterData; +import dwt.dwthelper.utils; + import dwt.graphics.DeviceData; @@ -46,14 +48,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: @@ -89,7 +91,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. @@ -153,7 +155,7 @@ * @see #driver * @see #name */ - public this(char[] driver, char[] name) { + public this(String driver, String name) { this.driver = driver; this.name = name; } @@ -164,7 +166,7 @@ * * @return a string representation of the receiver */ - public override char[] toString() { + public override String toString() { return Format( "PrinterData {{driver = {}, name = {}}", driver, name ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } }