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 kPreviewInitiatorHostId
[];
16 PRINTING_EXPORT
extern const char kPreviewInitiatorRoutingId
[];
17 PRINTING_EXPORT
extern const char kPreviewUIID
[];
18 PRINTING_EXPORT
extern const char kSettingCapabilities
[];
19 PRINTING_EXPORT
extern const char kSettingCloudPrintId
[];
20 PRINTING_EXPORT
extern const char kSettingCloudPrintDialog
[];
21 PRINTING_EXPORT
extern const char kSettingCollate
[];
22 PRINTING_EXPORT
extern const char kSettingColor
[];
23 PRINTING_EXPORT
extern const char kSettingSetColorAsDefault
[];
24 PRINTING_EXPORT
extern const char kSettingContentHeight
[];
25 PRINTING_EXPORT
extern const char kSettingContentWidth
[];
26 PRINTING_EXPORT
extern const char kSettingCopies
[];
27 PRINTING_EXPORT
extern const char kSettingDeviceName
[];
28 PRINTING_EXPORT
extern const char kSettingDisableScaling
[];
29 PRINTING_EXPORT
extern const char kSettingDuplexMode
[];
30 PRINTING_EXPORT
extern const char kSettingFitToPageEnabled
[];
31 PRINTING_EXPORT
extern const char kSettingGenerateDraftData
[];
32 PRINTING_EXPORT
extern const char kSettingHeaderFooterEnabled
[];
33 PRINTING_EXPORT
extern const float kSettingHeaderFooterInterstice
;
34 PRINTING_EXPORT
extern const char kSettingHeaderFooterDate
[];
35 PRINTING_EXPORT
extern const char kSettingHeaderFooterTitle
[];
36 PRINTING_EXPORT
extern const char kSettingHeaderFooterURL
[];
37 PRINTING_EXPORT
extern const char kSettingLandscape
[];
38 PRINTING_EXPORT
extern const char kSettingMediaSize
[];
39 PRINTING_EXPORT
extern const char kSettingMediaSizeHeightMicrons
[];
40 PRINTING_EXPORT
extern const char kSettingMediaSizeWidthMicrons
[];
41 PRINTING_EXPORT
extern const char kSettingMediaSizeVendorId
[];
42 PRINTING_EXPORT
extern const char kSettingMediaSizeIsDefault
[];
43 PRINTING_EXPORT
extern const char kSettingMarginBottom
[];
44 PRINTING_EXPORT
extern const char kSettingMarginLeft
[];
45 PRINTING_EXPORT
extern const char kSettingMarginRight
[];
46 PRINTING_EXPORT
extern const char kSettingMarginTop
[];
47 PRINTING_EXPORT
extern const char kSettingMarginsCustom
[];
48 PRINTING_EXPORT
extern const char kSettingMarginsType
[];
49 PRINTING_EXPORT
extern const char kSettingPreviewPageCount
[];
50 PRINTING_EXPORT
extern const char kSettingPageRange
[];
51 PRINTING_EXPORT
extern const char kSettingPageRangeFrom
[];
52 PRINTING_EXPORT
extern const char kSettingPageRangeTo
[];
53 PRINTING_EXPORT
extern const char kSettingPageWidth
[];
54 PRINTING_EXPORT
extern const char kSettingPageHeight
[];
55 PRINTING_EXPORT
extern const char kSettingPreviewModifiable
[];
56 PRINTING_EXPORT
extern const char kSettingPrintToPDF
[];
57 PRINTING_EXPORT
extern const char kSettingPrintWithPrivet
[];
58 PRINTING_EXPORT
extern const char kSettingPrintableAreaHeight
[];
59 PRINTING_EXPORT
extern const char kSettingPrintableAreaWidth
[];
60 PRINTING_EXPORT
extern const char kSettingPrintableAreaX
[];
61 PRINTING_EXPORT
extern const char kSettingPrintableAreaY
[];
62 PRINTING_EXPORT
extern const char kSettingPrinterDescription
[];
63 PRINTING_EXPORT
extern const char kSettingPrinterName
[];
64 PRINTING_EXPORT
extern const char kSettingPrinterOptions
[];
65 PRINTING_EXPORT
extern const char kSettingTicket
[];
66 PRINTING_EXPORT
extern const char kSettingShouldPrintBackgrounds
[];
67 PRINTING_EXPORT
extern const char kSettingShouldPrintSelectionOnly
[];
68 PRINTING_EXPORT
extern const char kSettingShowSystemDialog
[];
70 PRINTING_EXPORT
extern const int FIRST_PAGE_INDEX
;
71 PRINTING_EXPORT
extern const int COMPLETE_PREVIEW_DOCUMENT_INDEX
;
72 PRINTING_EXPORT
extern const char kSettingOpenPDFInPreview
[];
74 #if defined (USE_CUPS)
75 // Printer color models
76 PRINTING_EXPORT
extern const char kBlack
[];
77 PRINTING_EXPORT
extern const char kCMYK
[];
78 PRINTING_EXPORT
extern const char kKCMY
[];
79 PRINTING_EXPORT
extern const char kCMY_K
[];
80 PRINTING_EXPORT
extern const char kCMY
[];
81 PRINTING_EXPORT
extern const char kColor
[];
82 PRINTING_EXPORT
extern const char kGray
[];
83 PRINTING_EXPORT
extern const char kGrayscale
[];
84 PRINTING_EXPORT
extern const char kGreyscale
[];
85 PRINTING_EXPORT
extern const char kMonochrome
[];
86 PRINTING_EXPORT
extern const char kNormal
[];
87 PRINTING_EXPORT
extern const char kNormalGray
[];
88 PRINTING_EXPORT
extern const char kRGB
[];
89 PRINTING_EXPORT
extern const char kRGBA
[];
90 PRINTING_EXPORT
extern const char kRGB16
[];
93 // Print job duplex mode values.
95 UNKNOWN_DUPLEX_MODE
= -1,
101 // Specifies the horizontal alignment of the headers and footers.
102 enum HorizontalHeaderFooterPosition
{
108 // Specifies the vertical alignment of the Headers and Footers.
109 enum VerticalHeaderFooterPosition
{
114 // Print job color mode values.
122 CMY_K
, // CMY_K represents CMY+K.
128 COLORMODE_COLOR
, // Used in samsung printer ppds.
129 COLORMODE_MONOCHROME
, // Used in samsung printer ppds.
130 HP_COLOR_COLOR
, // Used in HP color printer ppds.
131 HP_COLOR_BLACK
, // Used in HP color printer ppds.
132 PRINTOUTMODE_NORMAL
, // Used in foomatic ppds.
133 PRINTOUTMODE_NORMAL_GRAY
, // Used in foomatic ppds.
134 PROCESSCOLORMODEL_CMYK
, // Used in canon printer ppds.
135 PROCESSCOLORMODEL_GREYSCALE
, // Used in canon printer ppds.
136 PROCESSCOLORMODEL_RGB
, // Used in canon printer ppds
139 // What kind of margins to use.
141 DEFAULT_MARGINS
, // Default varies depending on headers being enabled or not
143 PRINTABLE_AREA_MARGINS
,
145 MARGIN_TYPE_LAST
= CUSTOM_MARGINS
148 } // namespace printing
150 #endif // PRINTING_PRINT_JOB_CONSTANTS_H_