Searched refs:printer (Results 1 - 25 of 27) sorted by relevance

12

/openjdk7/jdk/test/javax/print/attribute/
H A DSupportedPrintableAreas.java41 PrintService printer = PrintServiceLookup.lookupDefaultPrintService();
42 if (printer == null) {
47 printer = svc[0];
49 System.out.println("PrintService found : "+printer);
51 if (!printer.isAttributeCategorySupported(MediaPrintableArea.class)) {
54 Object value = printer.getSupportedAttributeValues(
61 value = printer.getSupportedAttributeValues(
67 Media media = (Media)printer.getDefaultAttributeValue(Media.class);
69 value = printer.getSupportedAttributeValues(
77 value = printer
[all...]
H A DServiceDialogTest.java33 * 2nd service (system default printer) and Test Printer.
34 * 3. Make sure "Postscript" printer is the default and make sure the
120 private String printer = null; field in class:TestPrintService
127 throw new IllegalArgumentException("null printer name");
129 printer = printerName;
135 return printer;
/openjdk7/jdk/src/windows/native/sun/windows/
H A DWPrinterJob.cpp98 // Copy printer name into passed-in buffer...
178 jstring printer) {
182 if (printer != NULL) {
184 printer,
186 JNU_ReleaseStringPlatformChars(env, printer, printerName);
189 // printerName - "Win NT/2K/XP: If NULL, it indicates the local printer
236 jstring printer,
242 printer, NULL);
251 /* Start by opening the printer */
253 JNU_ReleaseStringPlatformChars(env, printer, printerNam
176 Java_sun_print_Win32PrintServiceLookup_notifyFirstPrinterChange(JNIEnv *env, jobject peer, jstring printer) argument
234 Java_sun_print_Win32PrintService_getMediaPrintableArea(JNIEnv *env, jobject peer, jstring printer, jint papersize) argument
314 Java_sun_print_Win32PrintService_getAllMediaIDs(JNIEnv *env, jobject peer, jstring printer, jstring port) argument
362 Java_sun_print_Win32PrintService_getAllMediaTrays(JNIEnv *env, jobject peer, jstring printer, jstring port) argument
412 Java_sun_print_Win32PrintService_getAllMediaSizes(JNIEnv *env, jobject peer, jstring printer, jstring port) argument
463 getAllDCNames(JNIEnv *env, jobject peer, jstring printer, jstring port, unsigned int dc_id, unsigned int buf_len) argument
515 Java_sun_print_Win32PrintService_getAllMediaNames(JNIEnv *env, jobject peer, jstring printer, jstring port) argument
525 Java_sun_print_Win32PrintService_getAllMediaTrayNames(JNIEnv *env, jobject peer, jstring printer, jstring port) argument
535 Java_sun_print_Win32PrintService_getCopiesSupported(JNIEnv *env, jobject peer, jstring printer, jstring port) argument
571 Java_sun_print_Win32PrintService_getAllResolutions(JNIEnv *env, jobject peer, jstring printer, jstring port) argument
653 Java_sun_print_Win32PrintService_getPrinterPort(JNIEnv *env, jobject peer, jstring printer) argument
688 Java_sun_print_Win32PrintService_getCapabilities(JNIEnv *env, jobject peer, jstring printer, jstring port) argument
756 Java_sun_print_Win32PrintService_getDefaultSettings(JNIEnv *env, jobject peer, jstring printer, jstring port) argument
877 Java_sun_print_Win32PrintService_getJobStatus(JNIEnv *env, jobject peer, jstring printer, jint type) argument
969 Java_sun_print_Win32PrintJob_startPrintRawData(JNIEnv *env, jobject peer, jstring printer, jstring jobname) argument
[all...]
H A Dawt_PrintControl.h81 // This function determines whether the printer driver
82 // for the passed printer handle supports PRINTER_INFO
92 static WORD getNearestMatchingPaper(LPTSTR printer, LPTSTR port,
H A Dawt_PrintJob.cpp427 * If both are null, then there is no default printer.
475 /* The printer may have been changed, and we track that change,
476 * but then need to get a new DC for the current printer so that
482 LPTSTR printer = (LPTSTR)names+names->wDeviceOffset; local
484 HDC newDC = ::CreateDC(TEXT("WINSPOOL"), printer, NULL, NULL);
614 /* Start by opening the printer */
710 * Query the current or default printer to find all paper sizes it
713 * against the printer's capabilities.
721 * been created, use that. Else get a DC for the default printer
889 * We create a device context for the default printer
1030 GetPrinterPort(JNIEnv *env, LPTSTR printer) argument
1091 LPTSTR printer = lpdevnames+devnames->wDeviceOffset; local
[all...]
H A Dawt_PrintControl.cpp137 // printer name as "LPT1:" (even though this is actually a port
138 // name), we won't find the printer here.
178 // We failed to determine port name for the found printer.
195 // We still haven't found the printer, /* or we're using 95/98. */
196 // PRINTER_INFO_5 supports both printer name and port name, so
199 // remote printer names above (and remote printer port names are
200 // the same as remote printer names). On 95/98, PRINTER_ENUM_LOCAL
469 WORD AwtPrintControl::getNearestMatchingPaper(LPTSTR printer, LPTSTR port, argument
478 if ((printer
[all...]
/openjdk7/jdk/src/share/classes/java/awt/
H A DJobAttributes.java32 * destination, print dialog, file and printer names, page ranges, multiple
107 "file", "printer"
118 * specifying print to printer.
256 private String printer; field in class:JobAttributes
328 * @param printer the possibly <code>null</code> printer name
339 int[][] pageRanges, String printer, SidesType sides) {
349 setPrinter(printer);
388 printer = obj.printer;
335 JobAttributes(int copies, DefaultSelectionType defaultSelection, DestinationType destination, DialogType dialog, String fileName, int maxPage, int minPage, MultipleDocumentHandlingType multipleDocumentHandling, int[][] pageRanges, String printer, SidesType sides) argument
823 setPrinter(String printer) argument
[all...]
/openjdk7/jdk/src/solaris/native/sun/awt/
H A DCUPSfuncs.c202 jstring printer)
214 name = (*env)->GetStringUTFChars(env, printer, NULL);
222 (*env)->ReleaseStringUTFChars(env, printer, name);
318 jstring printer)
325 const char *name = (*env)->GetStringUTFChars(env, printer, NULL);
334 (*env)->ReleaseStringUTFChars(env, printer, name);
200 Java_sun_print_CUPSPrinter_getMedia(JNIEnv *env, jobject printObj, jstring printer) argument
316 Java_sun_print_CUPSPrinter_getPageSizes(JNIEnv *env, jobject printObj, jstring printer) argument
/openjdk7/jdk/src/solaris/classes/sun/print/
H A DCUPSPrinter.java58 private static synchronized native String[] getMedia(String printer); argument
59 private static synchronized native float[] getPageSizes(String printer); argument
71 private String printer; field in class:CUPSPrinter
91 throw new IllegalArgumentException("null printer name");
93 printer = printerName;
103 media = getMedia(printer);
105 // either PPD file is not found or printer is unknown
110 pageSizes = getPageSizes(printer);
234 * Get CUPS default printer using IPP.
263 "printer
[all...]
H A DUnixPrintService.java190 private String printer; field in class:UnixPrintService
199 throw new IllegalArgumentException("null printer name");
201 printer = name;
210 return printer;
215 name = new PrinterName(printer, null);
221 String command = "/usr/bin/lpstat -a " + printer;
225 if (results[0].startsWith(printer + " accepting requests")) {
228 else if (results[0].startsWith(printer)) {
232 int index = printer.length();
253 String command = "/usr/sbin/lpc status " + printer
[all...]
H A DUnixPrintServiceLookup.java70 private PrintService[] printServices; /* includes the default printer */
172 // start the printer listener thread
205 /* excludes the default printer */
206 String[] printers = null; // array of printer names
207 String[] printerURIs = null; //array of printer URIs
341 /* This checks for validity of the printer name before passing as
361 * printer, to ask for that printer rather than retrieving all printers.
390 /* fallback if nothing not having a printer at this point */
391 PrintService printer
[all...]
H A DUnixPrintJob.java833 private String[] printExecCmd(String printer, String options, argument
847 if (printer != null && !printer.equals("") && !printer.equals("lp")) {
873 execCmd[n++] = "-d" + printer;
892 execCmd[n++] = "-P" + printer;
926 // Inner class to run "privileged" to open the printer output stream.
938 * the printer then deleted. In the case that the file
992 * Spool to the printer.
H A DIPPPrintService.java83 private String printer; field in class:IPPPrintService
121 // printer attributes group
129 // gets the attributes for a printer
131 // gets the default printer
161 // CUPS does not supply printer-resolution attribute
179 {PrinterInfo.class, "printer-info"},
180 {PrinterIsAcceptingJobs.class, "printer-is-accepting-jobs"},
181 {PrinterLocation.class, "printer-location"},
182 {PrinterMakeAndModel.class, "printer-make-and-model"},
183 {PrinterMessageFromOperator.class, "printer
[all...]
/openjdk7/langtools/src/share/classes/com/sun/tools/javac/util/
H A DAbstractDiagnosticFormatter.java187 return printer.visit((Type)arg, l);
190 return printer.visit((Symbol)arg, l);
476 return printer;
479 public void setPrinter(Printer printer) { argument
480 this.printer = printer;
484 * An enhanced printer for formatting types/symbols used by
492 protected Printer printer = new Printer() { field in class:AbstractDiagnosticFormatter
H A DRichDiagnosticFormatter.java51 * the diagnostic is rendered using a standard formatter, whose type/symbol printer
78 /* type/symbol printer used by this formatter */
79 private RichPrinter printer; field in class:RichDiagnosticFormatter
128 * Sets the type/symbol printer used by this formatter.
129 * @param printer the rich printer to be set
131 protected void setRichPrinter(RichPrinter printer) { argument
132 this.printer = printer;
133 formatter.setPrinter(printer);
[all...]
/openjdk7/jdk/src/macosx/native/sun/awt/
H A DCPrinterJob.m61 static NSPrintInfo* createDefaultNSPrintInfo(JNIEnv* env, jstring printer)
64 if (printer != NULL)
66 NSPrinter* nsPrinter = [NSPrinter printerWithName:JNFJavaToNSString(env, printer)];
76 // to get values from the printer.
78 // the user selects a different printer - see radr://3657453. However, rather than
293 // <rdar://problem/4022422> NSPrinterInfo is not correctly set to the selected printer
294 // from the Java side of CPrinterJob. Has always assumed the default printer was the one we wanted.
300 NSPrinter *printer = [NSPrinter printerWithName:printerName];
301 if (printer == nil) return;
302 [dstPrintInfo setPrinter:printer];
[all...]
/openjdk7/hotspot/src/share/vm/opto/
H A DidealGraphPrinter.hpp127 static IdealGraphPrinter *printer();
H A DidealGraphPrinter.cpp75 IdealGraphPrinter *IdealGraphPrinter::printer() { function in class:IdealGraphPrinter
83 IdealGraphPrinter *printer = new IdealGraphPrinter(); local
84 compiler_thread->set_ideal_graph_printer(printer);
95 IdealGraphPrinter *printer = c->ideal_graph_printer(); local
96 if (printer) {
97 delete printer;
/openjdk7/jdk/src/windows/classes/sun/print/
H A DWin32PrintService.java116 // We support collation on 2D printer jobs, even if the driver can't.
187 private String printer; field in class:Win32PrintService
215 throw new IllegalArgumentException("null printer name");
217 printer = name;
235 return printer;
240 name = new PrinterName(printer, null);
335 int[] media = getAllMediaIDs(printer, getPort());
348 // Get all mediaSizes supported by the printer.
470 float[] prnArea = (defPaper != 0) ? getMediaPrintableArea(printer, defPaper) : null;
528 int[] mediaTr = getAllMediaTrays(printer, prnPor
[all...]
H A DWin32PrintServiceLookup.java54 private String[] printers; /* excludes the default printer */
55 private PrintService[] printServices; /* includes the default printer */
94 // start the printer listener thread
223 * Special case: If client is asking for a particular printer
340 private native long notifyFirstPrinterChange(String printer); argument
/openjdk7/jdk/src/share/demo/jfc/Font2DTest/
H A DFontPanel.java144 private PrinterJob printer = null; field in class:FontPanel
316 if ( printer == null ) {
317 printer = PrinterJob.getPrinterJob();
318 page = printer.defaultPage();
321 printer.setPrintable( fc, page );
323 if ( printer.printDialog() ) {
325 printer.print();
335 if ( printer == null ) {
336 printer = PrinterJob.getPrinterJob();
337 page = printer
[all...]
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/oops/
H A DOop.java200 OopPrinter printer = new OopPrinter(tty);
201 iterate(printer, true);
H A DObjectHeap.java398 HeapPrinter printer = new HeapPrinter(System.out);
399 iterate(printer);
/openjdk7/jdk/src/share/classes/sun/print/
H A DPSPrinterJob.java106 * A class which initiates and executes a PostScript printer job.
225 * The PostScript to pop a state off of the printer's
230 * The PostScript to push a state on to the printer's
253 * Use the top number on the stack to set the printer's
290 /* The temporary file to which we spool before sending to the printer */
649 // Inner class to run "privileged" to open the printer output stream.
659 * the printer then deleted. In the case that the file
711 * Spool to the printer.
1007 * print job to the printer's control language
1352 * Set the printer'
1536 printExecCmd(String printer, String options, boolean noJobSheet, String banner, int copies, String spoolFile) argument
[all...]
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/rngom/digested/
H A DDXMLPrinter.java562 DXMLPrinter printer = new DXMLPrinter(output);
563 printer.printDocument(grammar);

Completed in 82 milliseconds

12