Page number placeholder constant for use in <code>header</code> and <code>footer</code>. Value is <code><page></code>
Separator constant for use in <code>header</code> and <code>footer</code>. Value is <code>\t</code>
Formatted text to print in the footer of each page. <p>"left '\t' center '\t' right"</p> <p>left, center, right = <page> | #CDATA</p> <p>Header and footer are defined as three separate regions for arbitrary text or the page number placeholder <page> (<code>StyledTextPrintOptions.PAGE_TAG</code>). The three regions are left aligned, centered and right aligned. They are separated by a tab character (<code>StyledTextPrintOptions.SEPARATOR</code>).
Formatted text to print in the header of each page. <p>"left '\t' center '\t' right"</p> <p>left, center, right = <page> | #CDATA</p> <p>Header and footer are defined as three separate regions for arbitrary text or the page number placeholder <page> (<code>StyledTextPrintOptions.PAGE_TAG</code>). The three regions are left aligned, centered and right aligned. They are separated by a tab character (<code>StyledTextPrintOptions.SEPARATOR</code>).
Name of the print job.
Labels used for printing line numbers.
Print the line background color. Default value is <code>false</code>.
Print line numbers. Default value is <code>false</code>.
Print the text background color. Default value is <code>false</code>.
Print the font styles. Default value is <code>false</code>.
Print the text foreground color. Default value is <code>false</code>.
Use StyledTextPrintOptions to specify printing options for the StyledText.print(Printer, StyledTextPrintOptions) API. <p> The following example prints a right aligned page number in the footer, sets the job name to "Example" and prints line background colors but no other formatting: </p> <pre> StyledTextPrintOptions options = new StyledTextPrintOptions(); options.footer = "\t\t<page>"; options.jobName = "Example"; options.printLineBackground = true;
Runnable runnable = styledText.print(new Printer(), options); runnable.run(); </pre>
@see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
@since 2.1