1 11 package org.eclipse.swt.printing; 12 13 14 import org.eclipse.swt.graphics.*; 15 16 32 33 public final class PrinterData extends DeviceData { 34 35 43 public String driver; 45 46 51 public String name; 52 53 64 public int scope = ALL_PAGES; 65 66 70 public int startPage = 0; 71 72 76 public int endPage = 0; 77 78 81 public boolean printToFile = false; 82 83 87 public String fileName; 88 89 95 public int copyCount = 1; 96 97 103 public boolean collate = false; 104 105 109 public static final int ALL_PAGES = 0; 110 111 116 public static final int PAGE_RANGE = 1; 117 118 122 public static final int SELECTION = 2; 123 124 130 byte [] otherData; 131 132 138 public PrinterData() { 139 } 140 141 151 public PrinterData(String driver, String name) { 152 this.driver = driver; 153 this.name = name; 154 } 155 156 162 public String toString() { 163 return "PrinterData {" + "driver = " + driver + ", name = " + name + "}"; } 165 } 166 | Popular Tags |