OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef PRINTING_PRINT_JOB_CONSTANTS_H_ | 5 #ifndef PRINTING_PRINT_JOB_CONSTANTS_H_ |
6 #define PRINTING_PRINT_JOB_CONSTANTS_H_ | 6 #define PRINTING_PRINT_JOB_CONSTANTS_H_ |
7 | 7 |
8 #include "printing/printing_export.h" | 8 #include "printing/printing_export.h" |
9 | 9 |
10 namespace printing { | 10 namespace printing { |
(...skipping 30 matching lines...) Expand all Loading... | |
41 PRINTING_EXPORT extern const char kSettingMargins[]; | 41 PRINTING_EXPORT extern const char kSettingMargins[]; |
42 PRINTING_EXPORT extern const char kSettingPageRange[]; | 42 PRINTING_EXPORT extern const char kSettingPageRange[]; |
43 PRINTING_EXPORT extern const char kSettingPageRangeFrom[]; | 43 PRINTING_EXPORT extern const char kSettingPageRangeFrom[]; |
44 PRINTING_EXPORT extern const char kSettingPageRangeTo[]; | 44 PRINTING_EXPORT extern const char kSettingPageRangeTo[]; |
45 PRINTING_EXPORT extern const char kSettingPrinterName[]; | 45 PRINTING_EXPORT extern const char kSettingPrinterName[]; |
46 PRINTING_EXPORT extern const char kSettingPrintToPDF[]; | 46 PRINTING_EXPORT extern const char kSettingPrintToPDF[]; |
47 | 47 |
48 PRINTING_EXPORT extern const int FIRST_PAGE_INDEX; | 48 PRINTING_EXPORT extern const int FIRST_PAGE_INDEX; |
49 PRINTING_EXPORT extern const int COMPLETE_PREVIEW_DOCUMENT_INDEX; | 49 PRINTING_EXPORT extern const int COMPLETE_PREVIEW_DOCUMENT_INDEX; |
50 | 50 |
51 #if defined (USE_CUPS) | |
52 // Printer color models | |
53 PRINTING_EXPORT extern const char kBlack[]; | |
54 PRINTING_EXPORT extern const char kCMYK[]; | |
55 PRINTING_EXPORT extern const char kKCMY[]; | |
56 PRINTING_EXPORT extern const char kCMY_K[]; | |
57 PRINTING_EXPORT extern const char kCMY[]; | |
58 PRINTING_EXPORT extern const char kColor[]; | |
59 PRINTING_EXPORT extern const char kGray[]; | |
60 PRINTING_EXPORT extern const char kGrayscale[]; | |
61 PRINTING_EXPORT extern const char kGreyscale[]; | |
62 PRINTING_EXPORT extern const char kMonochrome[]; | |
63 PRINTING_EXPORT extern const char kNormal[]; | |
64 PRINTING_EXPORT extern const char kNormalGray[]; | |
65 PRINTING_EXPORT extern const char kRGB[]; | |
66 PRINTING_EXPORT extern const char kRGBA[]; | |
67 PRINTING_EXPORT extern const char kRGB16[]; | |
68 #endif | |
69 | |
51 // Print job duplex mode values. | 70 // Print job duplex mode values. |
52 enum DuplexMode { | 71 enum DuplexMode { |
53 UNKNOWN_DUPLEX_MODE = -1, | 72 UNKNOWN_DUPLEX_MODE = -1, |
54 SIMPLEX, | 73 SIMPLEX, |
55 LONG_EDGE, | 74 LONG_EDGE, |
56 SHORT_EDGE, | 75 SHORT_EDGE, |
57 }; | 76 }; |
58 | 77 |
59 // Specifies the horizontal alignment of the headers and footers. | 78 // Specifies the horizontal alignment of the headers and footers. |
60 enum HorizontalHeaderFooterPosition { | 79 enum HorizontalHeaderFooterPosition { |
61 LEFT, | 80 LEFT, |
62 CENTER, | 81 CENTER, |
63 RIGHT | 82 RIGHT |
64 }; | 83 }; |
65 | 84 |
66 // Specifies the vertical alignment of the Headers and Footers. | 85 // Specifies the vertical alignment of the Headers and Footers. |
67 enum VerticalHeaderFooterPosition { | 86 enum VerticalHeaderFooterPosition { |
68 TOP, | 87 TOP, |
69 BOTTOM | 88 BOTTOM |
70 }; | 89 }; |
71 | 90 |
72 // Print job color mode values. | 91 // Print job color mode values. |
73 enum ColorMode { | 92 enum ColorMode { |
vandebo (ex-Chrome)
2011/10/07 18:23:30
Maybe this should be named ColorModels now?
kmadhusu
2011/10/10 23:34:26
Done.
| |
74 GRAY = 1, | 93 GRAY = 1, |
75 COLOR, | 94 COLOR, |
76 CMYK, | 95 CMYK, |
96 CMY, | |
97 KCMY, | |
98 CMY_K, // CMY_K represents CMY+K. | |
99 BLACK, | |
100 RGB, | |
101 RGB16, | |
102 RGBA, | |
103 COLORMODE_COLOR, // Used in samsung printer ppds. | |
104 COLORMODE_MONOCHROME, // Used in samsung printer ppds. | |
105 HP_COLOR_COLOR, // Used in HP color printer ppds. | |
106 HP_COLOR_BLACK, // Used in HP color printer ppds. | |
107 PRINTOUTMODE_NORMAL, // Used in foomatic ppds. | |
108 PRINTOUTMODE_NORMAL_GRAY, // Used in foomatic ppds. | |
109 PROCESSCOLORMODEL_CMYK, // Used in canon printer ppds. | |
110 PROCESSCOLORMODEL_GREYSCALE, // Used in canon printer ppds. | |
111 PROCESSCOLORMODEL_RGB, // Used in canon printer ppds | |
77 }; | 112 }; |
78 | 113 |
79 } // namespace printing | 114 } // namespace printing |
80 | 115 |
81 #endif // PRINTING_PRINT_JOB_CONSTANTS_H_ | 116 #endif // PRINTING_PRINT_JOB_CONSTANTS_H_ |
OLD | NEW |