1 // Copyright (c) 2011 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 kPreviewUIAddr
[];
16 PRINTING_EXPORT
extern const char kSettingCloudPrintId
[];
17 PRINTING_EXPORT
extern const char kSettingCloudPrintDialog
[];
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
[];
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
[];
41 PRINTING_EXPORT
extern const char kSettingMarginsCustom
[];
42 PRINTING_EXPORT
extern const char kSettingMarginsType
[];
43 PRINTING_EXPORT
extern const char kSettingPageRange
[];
44 PRINTING_EXPORT
extern const char kSettingPageRangeFrom
[];
45 PRINTING_EXPORT
extern const char kSettingPageRangeTo
[];
46 PRINTING_EXPORT
extern const char kSettingPreviewModifiable
[];
47 PRINTING_EXPORT
extern const char kSettingPrinterName
[];
48 PRINTING_EXPORT
extern const char kSettingPrintToPDF
[];
50 PRINTING_EXPORT
extern const int FIRST_PAGE_INDEX
;
51 PRINTING_EXPORT
extern const int COMPLETE_PREVIEW_DOCUMENT_INDEX
;
53 #if defined(OS_MACOSX)
54 PRINTING_EXPORT
extern const char kSettingOpenPDFInPreview
[];
55 #endif // defined(OS_MACOSX)
57 #if defined (USE_CUPS)
58 // Printer color models
59 PRINTING_EXPORT
extern const char kBlack
[];
60 PRINTING_EXPORT
extern const char kCMYK
[];
61 PRINTING_EXPORT
extern const char kKCMY
[];
62 PRINTING_EXPORT
extern const char kCMY_K
[];
63 PRINTING_EXPORT
extern const char kCMY
[];
64 PRINTING_EXPORT
extern const char kColor
[];
65 PRINTING_EXPORT
extern const char kGray
[];
66 PRINTING_EXPORT
extern const char kGrayscale
[];
67 PRINTING_EXPORT
extern const char kGreyscale
[];
68 PRINTING_EXPORT
extern const char kMonochrome
[];
69 PRINTING_EXPORT
extern const char kNormal
[];
70 PRINTING_EXPORT
extern const char kNormalGray
[];
71 PRINTING_EXPORT
extern const char kRGB
[];
72 PRINTING_EXPORT
extern const char kRGBA
[];
73 PRINTING_EXPORT
extern const char kRGB16
[];
76 // Print job duplex mode values.
78 UNKNOWN_DUPLEX_MODE
= -1,
84 // Specifies the horizontal alignment of the headers and footers.
85 enum HorizontalHeaderFooterPosition
{
91 // Specifies the vertical alignment of the Headers and Footers.
92 enum VerticalHeaderFooterPosition
{
97 // Print job color mode values.
105 CMY_K
, // CMY_K represents CMY+K.
111 COLORMODE_COLOR
, // Used in samsung printer ppds.
112 COLORMODE_MONOCHROME
, // Used in samsung printer ppds.
113 HP_COLOR_COLOR
, // Used in HP color printer ppds.
114 HP_COLOR_BLACK
, // Used in HP color printer ppds.
115 PRINTOUTMODE_NORMAL
, // Used in foomatic ppds.
116 PRINTOUTMODE_NORMAL_GRAY
, // Used in foomatic ppds.
117 PROCESSCOLORMODEL_CMYK
, // Used in canon printer ppds.
118 PROCESSCOLORMODEL_GREYSCALE
, // Used in canon printer ppds.
119 PROCESSCOLORMODEL_RGB
, // Used in canon printer ppds
122 // What kind of margins to use.
124 DEFAULT_MARGINS
, // Default varies depending on headers being enabled or not
126 PRINTABLE_AREA_MARGINS
,
130 } // namespace printing
132 #endif // PRINTING_PRINT_JOB_CONSTANTS_H_