[email protected] | c48bee2 | 2011-03-29 02:36:26 | [diff] [blame] | 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 |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef PRINTING_PRINT_JOB_CONSTANTS_H_ |
| 6 | #define PRINTING_PRINT_JOB_CONSTANTS_H_ |
| 7 | |
[email protected] | 69f5b1e6 | 2011-09-01 06:34:04 | [diff] [blame] | 8 | #include "printing/printing_export.h" |
| 9 | |
[email protected] | c48bee2 | 2011-03-29 02:36:26 | [diff] [blame] | 10 | namespace printing { |
| 11 | |
[email protected] | 69f5b1e6 | 2011-09-01 06:34:04 | [diff] [blame] | 12 | PRINTING_EXPORT extern const char kIsFirstRequest[]; |
| 13 | PRINTING_EXPORT extern const char kPreviewRequestID[]; |
| 14 | PRINTING_EXPORT extern const char kPreviewUIAddr[]; |
| 15 | PRINTING_EXPORT extern const char kSettingCloudPrintId[]; |
[email protected] | f0be15bd | 2011-09-28 20:50:04 | [diff] [blame] | 16 | PRINTING_EXPORT extern const char kSettingCloudPrintDialog[]; |
[email protected] | 69f5b1e6 | 2011-09-01 06:34:04 | [diff] [blame] | 17 | PRINTING_EXPORT extern const char kSettingCollate[]; |
| 18 | PRINTING_EXPORT extern const char kSettingColor[]; |
| 19 | PRINTING_EXPORT extern const char kSettingContentHeight[]; |
| 20 | PRINTING_EXPORT extern const char kSettingContentWidth[]; |
| 21 | PRINTING_EXPORT extern const char kSettingCopies[]; |
[email protected] | 69f5b1e6 | 2011-09-01 06:34:04 | [diff] [blame] | 22 | PRINTING_EXPORT extern const char kSettingDeviceName[]; |
| 23 | PRINTING_EXPORT extern const char kSettingDuplexMode[]; |
| 24 | PRINTING_EXPORT extern const char kSettingGenerateDraftData[]; |
| 25 | PRINTING_EXPORT extern const char kSettingHeaderFooterEnabled[]; |
| 26 | PRINTING_EXPORT extern const int kSettingHeaderFooterCharacterSpacing; |
| 27 | PRINTING_EXPORT extern const char kSettingHeaderFooterFontFamilyName[]; |
| 28 | PRINTING_EXPORT extern const char kSettingHeaderFooterFontName[]; |
| 29 | PRINTING_EXPORT extern const int kSettingHeaderFooterFontSize; |
| 30 | PRINTING_EXPORT extern const float kSettingHeaderFooterHorizontalRegions; |
| 31 | PRINTING_EXPORT extern const float kSettingHeaderFooterInterstice; |
| 32 | PRINTING_EXPORT extern const char kSettingHeaderFooterDate[]; |
| 33 | PRINTING_EXPORT extern const char kSettingHeaderFooterTitle[]; |
| 34 | PRINTING_EXPORT extern const char kSettingHeaderFooterURL[]; |
| 35 | PRINTING_EXPORT extern const char kSettingLandscape[]; |
| 36 | PRINTING_EXPORT extern const char kSettingMarginBottom[]; |
| 37 | PRINTING_EXPORT extern const char kSettingMarginLeft[]; |
| 38 | PRINTING_EXPORT extern const char kSettingMarginRight[]; |
| 39 | PRINTING_EXPORT extern const char kSettingMarginTop[]; |
[email protected] | 6a7fdfd | 2011-10-13 09:05:42 | [diff] [blame] | 40 | PRINTING_EXPORT extern const char kSettingMarginsCustom[]; |
| 41 | PRINTING_EXPORT extern const char kSettingMarginsType[]; |
[email protected] | 69f5b1e6 | 2011-09-01 06:34:04 | [diff] [blame] | 42 | PRINTING_EXPORT extern const char kSettingPageRange[]; |
| 43 | PRINTING_EXPORT extern const char kSettingPageRangeFrom[]; |
| 44 | PRINTING_EXPORT extern const char kSettingPageRangeTo[]; |
[email protected] | d75a0317e | 2011-10-17 20:20:40 | [diff] [blame] | 45 | PRINTING_EXPORT extern const char kSettingPreviewModifiable[]; |
[email protected] | 69f5b1e6 | 2011-09-01 06:34:04 | [diff] [blame] | 46 | PRINTING_EXPORT extern const char kSettingPrinterName[]; |
| 47 | PRINTING_EXPORT extern const char kSettingPrintToPDF[]; |
[email protected] | c48bee2 | 2011-03-29 02:36:26 | [diff] [blame] | 48 | |
[email protected] | 69f5b1e6 | 2011-09-01 06:34:04 | [diff] [blame] | 49 | PRINTING_EXPORT extern const int FIRST_PAGE_INDEX; |
| 50 | PRINTING_EXPORT extern const int COMPLETE_PREVIEW_DOCUMENT_INDEX; |
[email protected] | fd0b50340 | 2011-07-26 09:01:33 | [diff] [blame] | 51 | |
[email protected] | 63313ae | 2011-10-13 00:40:39 | [diff] [blame] | 52 | #if defined (USE_CUPS) |
| 53 | // Printer color models |
| 54 | PRINTING_EXPORT extern const char kBlack[]; |
| 55 | PRINTING_EXPORT extern const char kCMYK[]; |
| 56 | PRINTING_EXPORT extern const char kKCMY[]; |
| 57 | PRINTING_EXPORT extern const char kCMY_K[]; |
| 58 | PRINTING_EXPORT extern const char kCMY[]; |
| 59 | PRINTING_EXPORT extern const char kColor[]; |
| 60 | PRINTING_EXPORT extern const char kGray[]; |
| 61 | PRINTING_EXPORT extern const char kGrayscale[]; |
| 62 | PRINTING_EXPORT extern const char kGreyscale[]; |
| 63 | PRINTING_EXPORT extern const char kMonochrome[]; |
| 64 | PRINTING_EXPORT extern const char kNormal[]; |
| 65 | PRINTING_EXPORT extern const char kNormalGray[]; |
| 66 | PRINTING_EXPORT extern const char kRGB[]; |
| 67 | PRINTING_EXPORT extern const char kRGBA[]; |
| 68 | PRINTING_EXPORT extern const char kRGB16[]; |
| 69 | #endif |
| 70 | |
[email protected] | a44b0c14 | 2011-04-26 15:46:10 | [diff] [blame] | 71 | // Print job duplex mode values. |
| 72 | enum DuplexMode { |
[email protected] | dc8373d | 2011-09-08 21:32:35 | [diff] [blame] | 73 | UNKNOWN_DUPLEX_MODE = -1, |
[email protected] | a44b0c14 | 2011-04-26 15:46:10 | [diff] [blame] | 74 | SIMPLEX, |
| 75 | LONG_EDGE, |
| 76 | SHORT_EDGE, |
| 77 | }; |
| 78 | |
[email protected] | 55b23a0 | 2011-08-17 23:09:36 | [diff] [blame] | 79 | // Specifies the horizontal alignment of the headers and footers. |
| 80 | enum HorizontalHeaderFooterPosition { |
| 81 | LEFT, |
| 82 | CENTER, |
| 83 | RIGHT |
| 84 | }; |
| 85 | |
| 86 | // Specifies the vertical alignment of the Headers and Footers. |
| 87 | enum VerticalHeaderFooterPosition { |
| 88 | TOP, |
| 89 | BOTTOM |
| 90 | }; |
| 91 | |
[email protected] | f3256b0d8 | 2011-09-04 23:36:29 | [diff] [blame] | 92 | // Print job color mode values. |
[email protected] | 63313ae | 2011-10-13 00:40:39 | [diff] [blame] | 93 | enum ColorModels { |
| 94 | UNKNOWN_COLOR_MODEL, |
| 95 | GRAY, |
[email protected] | f3256b0d8 | 2011-09-04 23:36:29 | [diff] [blame] | 96 | COLOR, |
| 97 | CMYK, |
[email protected] | 63313ae | 2011-10-13 00:40:39 | [diff] [blame] | 98 | CMY, |
| 99 | KCMY, |
| 100 | CMY_K, // CMY_K represents CMY+K. |
| 101 | BLACK, |
[email protected] | a3ee735f | 2011-10-14 18:27:35 | [diff] [blame] | 102 | GRAYSCALE, |
[email protected] | 63313ae | 2011-10-13 00:40:39 | [diff] [blame] | 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 |
[email protected] | f3256b0d8 | 2011-09-04 23:36:29 | [diff] [blame] | 115 | }; |
| 116 | |
[email protected] | 6a7fdfd | 2011-10-13 09:05:42 | [diff] [blame] | 117 | // What kind of margins to use. |
| 118 | enum MarginType { |
| 119 | DEFAULT_MARGINS, // Default varies depending on headers being enabled or not |
| 120 | NO_MARGINS, |
[email protected] | 6a7fdfd | 2011-10-13 09:05:42 | [diff] [blame] | 121 | PRINTABLE_AREA_MARGINS, |
[email protected] | d903772 | 2011-11-02 04:40:44 | [diff] [blame^] | 122 | CUSTOM_MARGINS, |
[email protected] | 6a7fdfd | 2011-10-13 09:05:42 | [diff] [blame] | 123 | }; |
| 124 | |
[email protected] | c48bee2 | 2011-03-29 02:36:26 | [diff] [blame] | 125 | } // namespace printing |
| 126 | |
| 127 | #endif // PRINTING_PRINT_JOB_CONSTANTS_H_ |