OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef PRINTING_BACKEND_CUPS_IPP_UTIL_H_ | |
6 #define PRINTING_BACKEND_CUPS_IPP_UTIL_H_ | |
7 | |
8 #include <vector> | |
9 | |
10 #include "base/strings/string_piece.h" | |
11 #include "printing/backend/cups_printer.h" | |
12 #include "printing/backend/print_backend.h" | |
13 | |
14 namespace printing { | |
15 | |
16 // Returns the default ColorModel for |printer|. | |
17 ColorModel DefaultColorModel(const CupsOptionProvider& printer); | |
18 | |
19 // Returns the set of supported ColorModels for |printer|. | |
20 std::vector<ColorModel> SupportedColorModels(const CupsOptionProvider& printer); | |
21 | |
22 // Returns the default paper setting for |printer|. | |
23 PrinterSemanticCapsAndDefaults::Paper DefaultPaper( | |
24 const CupsOptionProvider& printer); | |
25 | |
26 // Returns the list of papers supported by the |printer|. | |
27 std::vector<PrinterSemanticCapsAndDefaults::Paper> SupportedPapers( | |
28 const CupsOptionProvider& printer); | |
29 | |
30 // Retrieves the supported number of copies from |printer| and writes the | |
31 // extremeties of the range into |lower_bound| and |upper_bound| Values are set | |
Lei Zhang
2016/07/21 20:31:30
s/ /. /
skau
2016/07/21 23:33:10
Done.
| |
32 // to -1 if there is an error. | |
33 void CopiesRange(const CupsOptionProvider& printer, | |
34 int* lower_bound, | |
35 int* upper_bound); | |
36 | |
37 // Returns true if |printer| can do collation. | |
38 bool CollateCapable(const CupsOptionProvider& printer); | |
39 | |
40 // Returns true if |printer| has collation enabled by default. | |
41 bool CollateDefault(const CupsOptionProvider& printer); | |
42 | |
43 // Populates the |printer_info| object with attributes retrived using IPP from | |
44 // |printer|. | |
45 void CapsAndDefaultsFromPrinter(const CupsOptionProvider& printer, | |
46 PrinterSemanticCapsAndDefaults* printer_info); | |
47 | |
48 } // namespace printing | |
49 | |
50 #endif // PRINTING_BACKEND_CUPS_IPP_UTIL_H_ | |
OLD | NEW |