Mercurial > projects > dwt-win
diff dwt/custom/StyledTextPrintOptions.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 | a5afe31f5cdd |
children | 36f5cb12e1a2 |
line wrap: on
line diff
--- a/dwt/custom/StyledTextPrintOptions.d Sat Apr 26 10:01:48 2008 +0200 +++ b/dwt/custom/StyledTextPrintOptions.d Mon May 05 00:12:38 2008 +0200 @@ -1,4 +1,4 @@ -/******************************************************************************* +/******************************************************************************* * Copyright (c) 2000, 2006 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 @@ -12,6 +12,8 @@ *******************************************************************************/ module dwt.custom.StyledTextPrintOptions; +import dwt.dwthelper.utils; + /** * Use StyledTextPrintOptions to specify printing options for the * StyledText.print(Printer, StyledTextPrintOptions) API. @@ -36,12 +38,12 @@ * Page number placeholder constant for use in <code>header</code> * and <code>footer</code>. Value is <code><page></code> */ - public static final char[] PAGE_TAG = "<page>"; + public static final String PAGE_TAG = "<page>"; /** * Separator constant for use in <code>header</code> and * <code>footer</code>. Value is <code>\t</code> */ - public static final char[] SEPARATOR = "\t"; + public static final String SEPARATOR = "\t"; /** * Formatted text to print in the header of each page. * <p>"left '\t' center '\t' right"</p> @@ -52,7 +54,7 @@ * left aligned, centered and right aligned. They are separated by a tab * character (<code>StyledTextPrintOptions.SEPARATOR</code>). */ - public char[] header = null; + public String header = null; /** * Formatted text to print in the footer of each page. * <p>"left '\t' center '\t' right"</p> @@ -63,11 +65,11 @@ * left aligned, centered and right aligned. They are separated by a tab * character (<code>StyledTextPrintOptions.SEPARATOR</code>). */ - public char[] footer = null; + public String footer = null; /** * Name of the print job. */ - public char[] jobName = null; + public String jobName = null; /** * Print the text foreground color. Default value is <code>false</code>.