261 */ |
261 */ |
262 private int pageIndex = -1; |
262 private int pageIndex = -1; |
263 |
263 |
264 // The following Strings are maintained for backward-compatibility with |
264 // The following Strings are maintained for backward-compatibility with |
265 // Properties based print control. |
265 // Properties based print control. |
266 private final static String DEST_PROP = "awt.print.destination"; |
266 private static final String DEST_PROP = "awt.print.destination"; |
267 private final static String PRINTER = "printer"; |
267 private static final String PRINTER = "printer"; |
268 private final static String FILE = "file"; |
268 private static final String FILE = "file"; |
269 |
269 |
270 private final static String PRINTER_PROP = "awt.print.printer"; |
270 private static final String PRINTER_PROP = "awt.print.printer"; |
271 |
271 |
272 private final static String FILENAME_PROP = "awt.print.fileName"; |
272 private static final String FILENAME_PROP = "awt.print.fileName"; |
273 |
273 |
274 private final static String NUMCOPIES_PROP = "awt.print.numCopies"; |
274 private static final String NUMCOPIES_PROP = "awt.print.numCopies"; |
275 |
275 |
276 private final static String OPTIONS_PROP = "awt.print.options"; |
276 private static final String OPTIONS_PROP = "awt.print.options"; |
277 |
277 |
278 private final static String ORIENT_PROP = "awt.print.orientation"; |
278 private static final String ORIENT_PROP = "awt.print.orientation"; |
279 private final static String PORTRAIT = "portrait"; |
279 private static final String PORTRAIT = "portrait"; |
280 private final static String LANDSCAPE = "landscape"; |
280 private static final String LANDSCAPE = "landscape"; |
281 |
281 |
282 private final static String PAPERSIZE_PROP = "awt.print.paperSize"; |
282 private static final String PAPERSIZE_PROP = "awt.print.paperSize"; |
283 private final static String LETTER = "letter"; |
283 private static final String LETTER = "letter"; |
284 private final static String LEGAL = "legal"; |
284 private static final String LEGAL = "legal"; |
285 private final static String EXECUTIVE = "executive"; |
285 private static final String EXECUTIVE = "executive"; |
286 private final static String A4 = "a4"; |
286 private static final String A4 = "a4"; |
287 |
287 |
288 private Properties props; |
288 private Properties props; |
289 |
289 |
290 private String options = ""; // REMIND: needs implementation |
290 private String options = ""; // REMIND: needs implementation |
291 |
291 |