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 #include <string> | |
11 | |
10 namespace printing { | 12 namespace printing { |
11 | 13 |
12 PRINTING_EXPORT extern const char kIsFirstRequest[]; | 14 PRINTING_EXPORT extern const char kIsFirstRequest[]; |
13 PRINTING_EXPORT extern const char kPreviewRequestID[]; | 15 PRINTING_EXPORT extern const char kPreviewRequestID[]; |
14 PRINTING_EXPORT extern const char kPreviewUIAddr[]; | 16 PRINTING_EXPORT extern const char kPreviewUIAddr[]; |
15 PRINTING_EXPORT extern const char kSettingCloudPrintId[]; | 17 PRINTING_EXPORT extern const char kSettingCloudPrintId[]; |
16 PRINTING_EXPORT extern const char kSettingCloudPrintDialog[]; | 18 PRINTING_EXPORT extern const char kSettingCloudPrintDialog[]; |
17 PRINTING_EXPORT extern const char kSettingCollate[]; | 19 PRINTING_EXPORT extern const char kSettingCollate[]; |
18 PRINTING_EXPORT extern const char kSettingColor[]; | 20 PRINTING_EXPORT extern const char kSettingColor[]; |
19 PRINTING_EXPORT extern const char kSettingContentHeight[]; | 21 PRINTING_EXPORT extern const char kSettingContentHeight[]; |
(...skipping 21 matching lines...) Expand all Loading... | |
41 PRINTING_EXPORT extern const char kSettingMargins[]; | 43 PRINTING_EXPORT extern const char kSettingMargins[]; |
42 PRINTING_EXPORT extern const char kSettingPageRange[]; | 44 PRINTING_EXPORT extern const char kSettingPageRange[]; |
43 PRINTING_EXPORT extern const char kSettingPageRangeFrom[]; | 45 PRINTING_EXPORT extern const char kSettingPageRangeFrom[]; |
44 PRINTING_EXPORT extern const char kSettingPageRangeTo[]; | 46 PRINTING_EXPORT extern const char kSettingPageRangeTo[]; |
45 PRINTING_EXPORT extern const char kSettingPrinterName[]; | 47 PRINTING_EXPORT extern const char kSettingPrinterName[]; |
46 PRINTING_EXPORT extern const char kSettingPrintToPDF[]; | 48 PRINTING_EXPORT extern const char kSettingPrintToPDF[]; |
47 | 49 |
48 PRINTING_EXPORT extern const int FIRST_PAGE_INDEX; | 50 PRINTING_EXPORT extern const int FIRST_PAGE_INDEX; |
49 PRINTING_EXPORT extern const int COMPLETE_PREVIEW_DOCUMENT_INDEX; | 51 PRINTING_EXPORT extern const int COMPLETE_PREVIEW_DOCUMENT_INDEX; |
50 | 52 |
53 #if defined (USE_CUPS) | |
54 // Printer color models | |
55 PRINTING_EXPORT extern const char kBlack[]; | |
56 PRINTING_EXPORT extern const char kCMYK[]; | |
57 PRINTING_EXPORT extern const char kKCMY[]; | |
58 PRINTING_EXPORT extern const char kCMY_K[]; | |
59 PRINTING_EXPORT extern const char kCMY[]; | |
60 PRINTING_EXPORT extern const char kColor[]; | |
61 PRINTING_EXPORT extern const char kGray[]; | |
62 PRINTING_EXPORT extern const char kGrayscale[]; | |
63 PRINTING_EXPORT extern const char kGreyscale[]; | |
64 PRINTING_EXPORT extern const char kMonochrome[]; | |
65 PRINTING_EXPORT extern const char kNormal[]; | |
66 PRINTING_EXPORT extern const char kNormalGray[]; | |
67 PRINTING_EXPORT extern const char kRGB[]; | |
68 PRINTING_EXPORT extern const char kRGBA[]; | |
69 PRINTING_EXPORT extern const char kRGB16[]; | |
70 #endif | |
71 | |
51 // Print job duplex mode values. | 72 // Print job duplex mode values. |
52 enum DuplexMode { | 73 enum DuplexMode { |
53 UNKNOWN_DUPLEX_MODE = -1, | 74 UNKNOWN_DUPLEX_MODE = -1, |
54 SIMPLEX, | 75 SIMPLEX, |
55 LONG_EDGE, | 76 LONG_EDGE, |
56 SHORT_EDGE, | 77 SHORT_EDGE, |
57 }; | 78 }; |
58 | 79 |
59 // Specifies the horizontal alignment of the headers and footers. | 80 // Specifies the horizontal alignment of the headers and footers. |
60 enum HorizontalHeaderFooterPosition { | 81 enum HorizontalHeaderFooterPosition { |
61 LEFT, | 82 LEFT, |
62 CENTER, | 83 CENTER, |
63 RIGHT | 84 RIGHT |
64 }; | 85 }; |
65 | 86 |
66 // Specifies the vertical alignment of the Headers and Footers. | 87 // Specifies the vertical alignment of the Headers and Footers. |
67 enum VerticalHeaderFooterPosition { | 88 enum VerticalHeaderFooterPosition { |
68 TOP, | 89 TOP, |
69 BOTTOM | 90 BOTTOM |
70 }; | 91 }; |
71 | 92 |
72 // Print job color mode values. | 93 // Print job color mode values. |
73 enum ColorMode { | 94 enum ColorModels { |
74 GRAY = 1, | 95 UNKNOWN_COLOR_MODEL, |
96 GRAY, | |
75 COLOR, | 97 COLOR, |
76 CMYK, | 98 CMYK, |
99 CMY, | |
100 KCMY, | |
101 CMY_K, // CMY_K represents CMY+K. | |
102 BLACK, | |
103 RGB, | |
104 RGB16, | |
105 RGBA, | |
106 COLORMODE_COLOR, // Used in samsung printer ppds. | |
107 COLORMODE_MONOCHROME, // Used in samsung printer ppds. | |
108 HP_COLOR_COLOR, // Used in HP color printer ppds. | |
109 HP_COLOR_BLACK, // Used in HP color printer ppds. | |
110 PRINTOUTMODE_NORMAL, // Used in foomatic ppds. | |
111 PRINTOUTMODE_NORMAL_GRAY, // Used in foomatic ppds. | |
112 PROCESSCOLORMODEL_CMYK, // Used in canon printer ppds. | |
113 PROCESSCOLORMODEL_GREYSCALE, // Used in canon printer ppds. | |
114 PROCESSCOLORMODEL_RGB, // Used in canon printer ppds | |
77 }; | 115 }; |
78 | 116 |
117 #if defined (USE_CUPS) | |
118 // Get the color model setting name and value for the |color_mode|. | |
vandebo (ex-Chrome)
2011/10/11 19:11:42
These aren't constants... Is there a better place
kmadhusu
2011/10/11 21:36:03
Moved to print_settings.h & .cc
| |
119 PRINTING_EXPORT void GetColorModelForMode(int color_mode, | |
120 std::string* color_setting_name, | |
121 std::string* color_value); | |
122 #endif | |
123 | |
124 // Returns true if color model is selected. | |
125 PRINTING_EXPORT bool isColorModelSelected(int model); | |
126 | |
79 } // namespace printing | 127 } // namespace printing |
80 | 128 |
81 #endif // PRINTING_PRINT_JOB_CONSTANTS_H_ | 129 #endif // PRINTING_PRINT_JOB_CONSTANTS_H_ |
OLD | NEW |