diff dwt/custom/StyledTextPrintOptions.d @ 41:6337764516f1

Sync dwt/custom with dwt-linux (took copy of complete folder)
author Frank Benoit <benoit@tionex.de>
date Tue, 07 Oct 2008 16:29:55 +0200
parents 380af2bdd8e5
children
line wrap: on
line diff
--- a/dwt/custom/StyledTextPrintOptions.d	Tue Oct 07 14:41:31 2008 +0200
+++ b/dwt/custom/StyledTextPrintOptions.d	Tue Oct 07 16:29:55 2008 +0200
@@ -1,5 +1,5 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2006 IBM Corporation and others.
+/*******************************************************************************
+ * Copyright (c) 2000, 2008 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
  * which accompanies this distribution, and is available at
@@ -7,8 +7,12 @@
  *
  * Contributors:
  *     IBM Corporation - initial API and implementation
+ * Port to the D programming language:
+ *     Frank Benoit <benoit@tionex.de>
  *******************************************************************************/
-module dwt.custom;
+module dwt.custom.StyledTextPrintOptions;
+
+import dwt.dwthelper.utils;
 
 /**
  * Use StyledTextPrintOptions to specify printing options for the
@@ -20,13 +24,16 @@
  * </p>
  * <pre>
  * StyledTextPrintOptions options = new StyledTextPrintOptions();
- * options.footer = "\t\t&lt;page&gt;"; 
+ * options.footer = "\t\t&lt;page&gt;";
  * options.jobName = "Example";
  * options.printLineBackground = true;
- * 
- * Runnable runnable = styledText.print(new Printer(), options); 
+ *
+ * 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
  */
 public class StyledTextPrintOptions {
@@ -46,7 +53,7 @@
      * <p>left, center, right = &lt;page&gt; | #CDATA</p>
      * <p>Header and footer are defined as three separate regions for arbitrary
      * text or the page number placeholder &lt;page&gt;
-     * (<code>StyledTextPrintOptions.PAGE_TAG</code>). The three regions are 
+     * (<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>).
      */
@@ -57,7 +64,7 @@
      * <p>left, center, right = &lt;page&gt; | #CDATA</p>
      * <p>Header and footer are defined as three separate regions for arbitrary
      * text or the page number placeholder &lt;page&gt;
-     * (<code>StyledTextPrintOptions.PAGE_TAG</code>). The three regions are 
+     * (<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>).
      */
@@ -66,7 +73,7 @@
      * Name of the print job.
      */
     public String jobName = null;
-    
+
     /**
      * Print the text foreground color. Default value is <code>false</code>.
      */
@@ -83,19 +90,19 @@
      * Print the line background color. Default value is <code>false</code>.
      */
     public bool printLineBackground = false;
-    
+
     /**
      * Print line numbers. Default value is <code>false</code>.
-     * 
+     *
      * @since 3.3
      */
     public bool printLineNumbers = false;
-    
+
     /**
      * Labels used for printing line numbers.
      * 
      * @since 3.4
      */
     public String[] lineLabels = null;
-    
+
 }