[email protected] | 0e77a1d | 2012-03-20 03:10:20 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
[email protected] | c48bee2 | 2011-03-29 02:36:26 | [diff] [blame] | 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] | 97c29575 | 2011-11-17 00:44:37 | [diff] [blame] | 8 | #include "build/build_config.h" |
[email protected] | 69f5b1e6 | 2011-09-01 06:34:04 | [diff] [blame] | 9 | #include "printing/printing_export.h" |
| 10 | |
[email protected] | c48bee2 | 2011-03-29 02:36:26 | [diff] [blame] | 11 | namespace printing { |
| 12 | |
[email protected] | 69f5b1e6 | 2011-09-01 06:34:04 | [diff] [blame] | 13 | PRINTING_EXPORT extern const char kIsFirstRequest[]; |
| 14 | PRINTING_EXPORT extern const char kPreviewRequestID[]; |
[email protected] | 116d096 | 2012-08-24 23:22:28 | [diff] [blame] | 15 | PRINTING_EXPORT extern const char kPreviewUIID[]; |
[email protected] | 69f5b1e6 | 2011-09-01 06:34:04 | [diff] [blame] | 16 | PRINTING_EXPORT extern const char kSettingCloudPrintId[]; |
[email protected] | f0be15bd | 2011-09-28 20:50:04 | [diff] [blame] | 17 | PRINTING_EXPORT extern const char kSettingCloudPrintDialog[]; |
[email protected] | 69f5b1e6 | 2011-09-01 06:34:04 | [diff] [blame] | 18 | PRINTING_EXPORT extern const char kSettingCollate[]; |
| 19 | PRINTING_EXPORT extern const char kSettingColor[]; |
[email protected] | 0209b44 | 2012-07-18 00:38:05 | [diff] [blame] | 20 | PRINTING_EXPORT extern const char kSettingSetColorAsDefault[]; |
[email protected] | 69f5b1e6 | 2011-09-01 06:34:04 | [diff] [blame] | 21 | PRINTING_EXPORT extern const char kSettingContentHeight[]; |
| 22 | PRINTING_EXPORT extern const char kSettingContentWidth[]; |
| 23 | PRINTING_EXPORT extern const char kSettingCopies[]; |
[email protected] | 69f5b1e6 | 2011-09-01 06:34:04 | [diff] [blame] | 24 | PRINTING_EXPORT extern const char kSettingDeviceName[]; |
| 25 | PRINTING_EXPORT extern const char kSettingDuplexMode[]; |
[email protected] | 7a3439b | 2012-05-16 20:32:14 | [diff] [blame] | 26 | PRINTING_EXPORT extern const char kSettingFitToPageEnabled[]; |
[email protected] | 69f5b1e6 | 2011-09-01 06:34:04 | [diff] [blame] | 27 | PRINTING_EXPORT extern const char kSettingGenerateDraftData[]; |
| 28 | PRINTING_EXPORT extern const char kSettingHeaderFooterEnabled[]; |
[email protected] | 69f5b1e6 | 2011-09-01 06:34:04 | [diff] [blame] | 29 | PRINTING_EXPORT extern const float kSettingHeaderFooterInterstice; |
| 30 | PRINTING_EXPORT extern const char kSettingHeaderFooterDate[]; |
| 31 | PRINTING_EXPORT extern const char kSettingHeaderFooterTitle[]; |
| 32 | PRINTING_EXPORT extern const char kSettingHeaderFooterURL[]; |
| 33 | PRINTING_EXPORT extern const char kSettingLandscape[]; |
| 34 | PRINTING_EXPORT extern const char kSettingMarginBottom[]; |
| 35 | PRINTING_EXPORT extern const char kSettingMarginLeft[]; |
| 36 | PRINTING_EXPORT extern const char kSettingMarginRight[]; |
| 37 | PRINTING_EXPORT extern const char kSettingMarginTop[]; |
[email protected] | 6a7fdfd | 2011-10-13 09:05:42 | [diff] [blame] | 38 | PRINTING_EXPORT extern const char kSettingMarginsCustom[]; |
| 39 | PRINTING_EXPORT extern const char kSettingMarginsType[]; |
[email protected] | 69f5b1e6 | 2011-09-01 06:34:04 | [diff] [blame] | 40 | PRINTING_EXPORT extern const char kSettingPageRange[]; |
| 41 | PRINTING_EXPORT extern const char kSettingPageRangeFrom[]; |
| 42 | PRINTING_EXPORT extern const char kSettingPageRangeTo[]; |
[email protected] | d75a0317e | 2011-10-17 20:20:40 | [diff] [blame] | 43 | PRINTING_EXPORT extern const char kSettingPreviewModifiable[]; |
[email protected] | 0e77a1d | 2012-03-20 03:10:20 | [diff] [blame] | 44 | PRINTING_EXPORT extern const char kSettingPrintableAreaX[]; |
| 45 | PRINTING_EXPORT extern const char kSettingPrintableAreaY[]; |
| 46 | PRINTING_EXPORT extern const char kSettingPrintableAreaWidth[]; |
| 47 | PRINTING_EXPORT extern const char kSettingPrintableAreaHeight[]; |
[email protected] | 69f5b1e6 | 2011-09-01 06:34:04 | [diff] [blame] | 48 | PRINTING_EXPORT extern const char kSettingPrinterName[]; |
| 49 | PRINTING_EXPORT extern const char kSettingPrintToPDF[]; |
[email protected] | 19d1c2d | 2013-01-14 00:59:46 | [diff] [blame^] | 50 | PRINTING_EXPORT extern const char kSettingShouldPrintBackgrounds[]; |
[email protected] | c48bee2 | 2011-03-29 02:36:26 | [diff] [blame] | 51 | |
[email protected] | 69f5b1e6 | 2011-09-01 06:34:04 | [diff] [blame] | 52 | PRINTING_EXPORT extern const int FIRST_PAGE_INDEX; |
| 53 | PRINTING_EXPORT extern const int COMPLETE_PREVIEW_DOCUMENT_INDEX; |
[email protected] | fd0b50340 | 2011-07-26 09:01:33 | [diff] [blame] | 54 | |
[email protected] | 97c29575 | 2011-11-17 00:44:37 | [diff] [blame] | 55 | #if defined(OS_MACOSX) |
| 56 | PRINTING_EXPORT extern const char kSettingOpenPDFInPreview[]; |
| 57 | #endif // defined(OS_MACOSX) |
| 58 | |
[email protected] | 63313ae | 2011-10-13 00:40:39 | [diff] [blame] | 59 | #if defined (USE_CUPS) |
| 60 | // Printer color models |
| 61 | PRINTING_EXPORT extern const char kBlack[]; |
| 62 | PRINTING_EXPORT extern const char kCMYK[]; |
| 63 | PRINTING_EXPORT extern const char kKCMY[]; |
| 64 | PRINTING_EXPORT extern const char kCMY_K[]; |
| 65 | PRINTING_EXPORT extern const char kCMY[]; |
| 66 | PRINTING_EXPORT extern const char kColor[]; |
| 67 | PRINTING_EXPORT extern const char kGray[]; |
| 68 | PRINTING_EXPORT extern const char kGrayscale[]; |
| 69 | PRINTING_EXPORT extern const char kGreyscale[]; |
| 70 | PRINTING_EXPORT extern const char kMonochrome[]; |
| 71 | PRINTING_EXPORT extern const char kNormal[]; |
| 72 | PRINTING_EXPORT extern const char kNormalGray[]; |
| 73 | PRINTING_EXPORT extern const char kRGB[]; |
| 74 | PRINTING_EXPORT extern const char kRGBA[]; |
| 75 | PRINTING_EXPORT extern const char kRGB16[]; |
| 76 | #endif |
| 77 | |
[email protected] | a44b0c14 | 2011-04-26 15:46:10 | [diff] [blame] | 78 | // Print job duplex mode values. |
| 79 | enum DuplexMode { |
[email protected] | dc8373d | 2011-09-08 21:32:35 | [diff] [blame] | 80 | UNKNOWN_DUPLEX_MODE = -1, |
[email protected] | a44b0c14 | 2011-04-26 15:46:10 | [diff] [blame] | 81 | SIMPLEX, |
| 82 | LONG_EDGE, |
| 83 | SHORT_EDGE, |
| 84 | }; |
| 85 | |
[email protected] | 55b23a0 | 2011-08-17 23:09:36 | [diff] [blame] | 86 | // Specifies the horizontal alignment of the headers and footers. |
| 87 | enum HorizontalHeaderFooterPosition { |
| 88 | LEFT, |
| 89 | CENTER, |
| 90 | RIGHT |
| 91 | }; |
| 92 | |
| 93 | // Specifies the vertical alignment of the Headers and Footers. |
| 94 | enum VerticalHeaderFooterPosition { |
| 95 | TOP, |
| 96 | BOTTOM |
| 97 | }; |
| 98 | |
[email protected] | f3256b0d8 | 2011-09-04 23:36:29 | [diff] [blame] | 99 | // Print job color mode values. |
[email protected] | 63313ae | 2011-10-13 00:40:39 | [diff] [blame] | 100 | enum ColorModels { |
| 101 | UNKNOWN_COLOR_MODEL, |
| 102 | GRAY, |
[email protected] | f3256b0d8 | 2011-09-04 23:36:29 | [diff] [blame] | 103 | COLOR, |
| 104 | CMYK, |
[email protected] | 63313ae | 2011-10-13 00:40:39 | [diff] [blame] | 105 | CMY, |
| 106 | KCMY, |
| 107 | CMY_K, // CMY_K represents CMY+K. |
| 108 | BLACK, |
[email protected] | a3ee735f | 2011-10-14 18:27:35 | [diff] [blame] | 109 | GRAYSCALE, |
[email protected] | 63313ae | 2011-10-13 00:40:39 | [diff] [blame] | 110 | RGB, |
| 111 | RGB16, |
| 112 | RGBA, |
| 113 | COLORMODE_COLOR, // Used in samsung printer ppds. |
| 114 | COLORMODE_MONOCHROME, // Used in samsung printer ppds. |
[email protected] | 116d096 | 2012-08-24 23:22:28 | [diff] [blame] | 115 | HP_COLOR_COLOR, // Used in HP color printer ppds. |
| 116 | HP_COLOR_BLACK, // Used in HP color printer ppds. |
[email protected] | 63313ae | 2011-10-13 00:40:39 | [diff] [blame] | 117 | PRINTOUTMODE_NORMAL, // Used in foomatic ppds. |
| 118 | PRINTOUTMODE_NORMAL_GRAY, // Used in foomatic ppds. |
| 119 | PROCESSCOLORMODEL_CMYK, // Used in canon printer ppds. |
| 120 | PROCESSCOLORMODEL_GREYSCALE, // Used in canon printer ppds. |
| 121 | PROCESSCOLORMODEL_RGB, // Used in canon printer ppds |
[email protected] | f3256b0d8 | 2011-09-04 23:36:29 | [diff] [blame] | 122 | }; |
| 123 | |
[email protected] | 6a7fdfd | 2011-10-13 09:05:42 | [diff] [blame] | 124 | // What kind of margins to use. |
| 125 | enum MarginType { |
| 126 | DEFAULT_MARGINS, // Default varies depending on headers being enabled or not |
| 127 | NO_MARGINS, |
[email protected] | 6a7fdfd | 2011-10-13 09:05:42 | [diff] [blame] | 128 | PRINTABLE_AREA_MARGINS, |
[email protected] | d903772 | 2011-11-02 04:40:44 | [diff] [blame] | 129 | CUSTOM_MARGINS, |
[email protected] | 6a7fdfd | 2011-10-13 09:05:42 | [diff] [blame] | 130 | }; |
| 131 | |
[email protected] | c48bee2 | 2011-03-29 02:36:26 | [diff] [blame] | 132 | } // namespace printing |
| 133 | |
| 134 | #endif // PRINTING_PRINT_JOB_CONSTANTS_H_ |