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