< prev index next >

src/java.desktop/unix/classes/sun/print/CUPSPrinter.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 267,277 **** * Returns 2 values - index 0 is printer name, index 1 is the uri. */ static String[] getDefaultPrinter() { // Try to get user/lpoptions-defined printer name from CUPS // if not user-set, then go for server default destination ! String printerInfo[] = new String[2]; printerInfo[0] = getCupsDefaultPrinter(); if (printerInfo[0] != null) { printerInfo[1] = null; return printerInfo.clone(); --- 267,277 ---- * Returns 2 values - index 0 is printer name, index 1 is the uri. */ static String[] getDefaultPrinter() { // Try to get user/lpoptions-defined printer name from CUPS // if not user-set, then go for server default destination ! String[] printerInfo = new String[2]; printerInfo[0] = getCupsDefaultPrinter(); if (printerInfo[0] != null) { printerInfo[1] = null; return printerInfo.clone();
*** 296,306 **** if (os == null) { return null; } ! AttributeClass attCl[] = { AttributeClass.ATTRIBUTES_CHARSET, AttributeClass.ATTRIBUTES_NATURAL_LANGUAGE, new AttributeClass("requested-attributes", AttributeClass.TAG_URI, "printer-uri") --- 296,306 ---- if (os == null) { return null; } ! AttributeClass[] attCl = { AttributeClass.ATTRIBUTES_CHARSET, AttributeClass.ATTRIBUTES_NATURAL_LANGUAGE, new AttributeClass("requested-attributes", AttributeClass.TAG_URI, "printer-uri")
*** 395,405 **** if (os == null) { return null; } ! AttributeClass attCl[] = { AttributeClass.ATTRIBUTES_CHARSET, AttributeClass.ATTRIBUTES_NATURAL_LANGUAGE, new AttributeClass("requested-attributes", AttributeClass.TAG_KEYWORD, "printer-uri-supported") --- 395,405 ---- if (os == null) { return null; } ! AttributeClass[] attCl = { AttributeClass.ATTRIBUTES_CHARSET, AttributeClass.ATTRIBUTES_NATURAL_LANGUAGE, new AttributeClass("requested-attributes", AttributeClass.TAG_KEYWORD, "printer-uri-supported")
< prev index next >