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