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.
5 #ifndef PRINTING_PRINT_JOB_CONSTANTS_H_
6 #define PRINTING_PRINT_JOB_CONSTANTS_H_
8 #include "build/build_config.h"
9 #include "printing/printing_export.h"
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 kSettingMarginBottom
[];
36 PRINTING_EXPORT
extern const char kSettingMarginLeft
[];
37 PRINTING_EXPORT
extern const char kSettingMarginRight
[];
38 PRINTING_EXPORT
extern const char kSettingMarginTop
[];
39 PRINTING_EXPORT
extern const char kSettingMarginsCustom
[];
40 PRINTING_EXPORT
extern const char kSettingMarginsType
[];
41 PRINTING_EXPORT
extern const char kSettingPreviewPageCount
[];
42 PRINTING_EXPORT
extern const char kSettingPageRange
[];
43 PRINTING_EXPORT
extern const char kSettingPageRangeFrom
[];
44 PRINTING_EXPORT
extern const char kSettingPageRangeTo
[];
45 PRINTING_EXPORT
extern const char kSettingPageWidth
[];
46 PRINTING_EXPORT
extern const char kSettingPageHeight
[];
47 PRINTING_EXPORT
extern const char kSettingPreviewModifiable
[];
48 PRINTING_EXPORT
extern const char kSettingPrintToPDF
[];
49 PRINTING_EXPORT
extern const char kSettingPrintWithPrivet
[];
50 PRINTING_EXPORT
extern const char kSettingPrintableAreaHeight
[];
51 PRINTING_EXPORT
extern const char kSettingPrintableAreaWidth
[];
52 PRINTING_EXPORT
extern const char kSettingPrintableAreaX
[];
53 PRINTING_EXPORT
extern const char kSettingPrintableAreaY
[];
54 PRINTING_EXPORT
extern const char kSettingPrinterDescription
[];
55 PRINTING_EXPORT
extern const char kSettingPrinterName
[];
56 PRINTING_EXPORT
extern const char kSettingPrinterOptions
[];
57 PRINTING_EXPORT
extern const char kSettingTicket
[];
58 PRINTING_EXPORT
extern const char kSettingShouldPrintBackgrounds
[];
59 PRINTING_EXPORT
extern const char kSettingShouldPrintSelectionOnly
[];
61 PRINTING_EXPORT
extern const int FIRST_PAGE_INDEX
;
62 PRINTING_EXPORT
extern const int COMPLETE_PREVIEW_DOCUMENT_INDEX
;
63 PRINTING_EXPORT
extern const char kSettingOpenPDFInPreview
[];
65 #if defined (USE_CUPS)
66 // Printer color models
67 PRINTING_EXPORT
extern const char kBlack
[];
68 PRINTING_EXPORT
extern const char kCMYK
[];
69 PRINTING_EXPORT
extern const char kKCMY
[];
70 PRINTING_EXPORT
extern const char kCMY_K
[];
71 PRINTING_EXPORT
extern const char kCMY
[];
72 PRINTING_EXPORT
extern const char kColor
[];
73 PRINTING_EXPORT
extern const char kGray
[];
74 PRINTING_EXPORT
extern const char kGrayscale
[];
75 PRINTING_EXPORT
extern const char kGreyscale
[];
76 PRINTING_EXPORT
extern const char kMonochrome
[];
77 PRINTING_EXPORT
extern const char kNormal
[];
78 PRINTING_EXPORT
extern const char kNormalGray
[];
79 PRINTING_EXPORT
extern const char kRGB
[];
80 PRINTING_EXPORT
extern const char kRGBA
[];
81 PRINTING_EXPORT
extern const char kRGB16
[];
84 // Print job duplex mode values.
86 UNKNOWN_DUPLEX_MODE
= -1,
92 // Specifies the horizontal alignment of the headers and footers.
93 enum HorizontalHeaderFooterPosition
{
99 // Specifies the vertical alignment of the Headers and Footers.
100 enum VerticalHeaderFooterPosition
{
105 // Print job color mode values.
113 CMY_K
, // CMY_K represents CMY+K.
119 COLORMODE_COLOR
, // Used in samsung printer ppds.
120 COLORMODE_MONOCHROME
, // Used in samsung printer ppds.
121 HP_COLOR_COLOR
, // Used in HP color printer ppds.
122 HP_COLOR_BLACK
, // Used in HP color printer ppds.
123 PRINTOUTMODE_NORMAL
, // Used in foomatic ppds.
124 PRINTOUTMODE_NORMAL_GRAY
, // Used in foomatic ppds.
125 PROCESSCOLORMODEL_CMYK
, // Used in canon printer ppds.
126 PROCESSCOLORMODEL_GREYSCALE
, // Used in canon printer ppds.
127 PROCESSCOLORMODEL_RGB
, // Used in canon printer ppds
130 // What kind of margins to use.
132 DEFAULT_MARGINS
, // Default varies depending on headers being enabled or not
134 PRINTABLE_AREA_MARGINS
,
136 MARGIN_TYPE_LAST
= CUSTOM_MARGINS
139 } // namespace printing
141 #endif // PRINTING_PRINT_JOB_CONSTANTS_H_