chromeos: dbus: add Bluetooth properties support
[chromium-blink-merge.git] / printing / print_job_constants.cc
blobc671326aa244e434045894d0f4fa24e2f3665664
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 #include "printing/print_job_constants.h"
7 namespace printing {
9 // True if this is the first preview request.
10 const char kIsFirstRequest[] = "isFirstRequest";
12 // Unique ID sent along every preview request.
13 const char kPreviewRequestID[] = "requestID";
15 // Unique ID to identify a print preview UI.
16 const char kPreviewUIAddr[] = "previewUIAddr";
18 // Print using cloud print: true if selected, false if not.
19 const char kSettingCloudPrintId[] = "cloudPrintID";
21 // Print using cloud print dialog: true if selected, false if not.
22 const char kSettingCloudPrintDialog[] = "printWithCloudPrint";
24 // Print job setting 'collate'.
25 const char kSettingCollate[] = "collate";
27 // Print out color: true for color, false for grayscale.
28 const char kSettingColor[] = "color";
30 // Key that specifies the height of the content area of the page.
31 const char kSettingContentHeight[] = "contentHeight";
33 // Key that specifies the width of the content area of the page.
34 const char kSettingContentWidth[] = "contentWidth";
36 // Number of copies.
37 const char kSettingCopies[] = "copies";
39 // Device name: Unique printer identifier.
40 const char kSettingDeviceName[] = "deviceName";
42 // Print job duplex mode.
43 const char kSettingDuplexMode[] = "duplex";
45 // True, when a new set of draft preview data is required.
46 const char kSettingGenerateDraftData[] = "generateDraftData";
48 // Option to print headers and Footers: true if selected, false if not.
49 const char kSettingHeaderFooterEnabled[] = "headerFooterEnabled";
51 // Default character spacing for text while printing headers and footers.
52 // (For CoreGraphics only).
53 const int kSettingHeaderFooterCharacterSpacing = 0;
55 // Default font family name for printing the headers and footers.
56 const char kSettingHeaderFooterFontFamilyName[] = "sans";
58 // Default font name for printing the headers and footers.
59 const char kSettingHeaderFooterFontName[] = "Helvetica";
61 // Default font size for printing the headers and footers.
62 const int kSettingHeaderFooterFontSize = 8;
64 // Number of horizontal regions for headers and footers.
65 const float kSettingHeaderFooterHorizontalRegions = 3;
67 // Interstice or gap between different header footer components. Hardcoded to
68 // about 0.5cm, match the value in PrintSettings::SetPrinterPrintableArea.
69 const float kSettingHeaderFooterInterstice = 14.2f;
71 // Key that specifies the date of the page that will be printed in the headers
72 // and footers.
73 const char kSettingHeaderFooterDate[] = "date";
75 // Key that specifies the title of the page that will be printed in the headers
76 // and footers.
77 const char kSettingHeaderFooterTitle[] = "title";
79 // Key that specifies the URL of the page that will be printed in the headers
80 // and footers.
81 const char kSettingHeaderFooterURL[] = "url";
83 // Page orientation: true for landscape, false for portrait.
84 const char kSettingLandscape[] = "landscape";
86 // Key that specifies the bottom margin of the page.
87 const char kSettingMarginBottom[] = "marginBottom";
89 // Key that specifies the left margin of the page.
90 const char kSettingMarginLeft[] = "marginLeft";
92 // Key that specifies the right margin of the page.
93 const char kSettingMarginRight[] = "marginRight";
95 // Key that specifies the top margin of the page.
96 const char kSettingMarginTop[] = "marginTop";
98 // Key that specifies the dictionary of custom margins as set by the user.
99 const char kSettingMarginsCustom[] = "marginsCustom";
101 // Key that specifies the type of margins to use. Value is an int from the
102 // MarginType enum.
103 const char kSettingMarginsType[] = "marginsType";
105 // A page range.
106 const char kSettingPageRange[] = "pageRange";
108 // The first page of a page range. (1-based)
109 const char kSettingPageRangeFrom[] = "from";
111 // The last page of a page range. (1-based)
112 const char kSettingPageRangeTo[] = "to";
114 const char kSettingPreviewModifiable[] = "previewModifiable";
116 // Printer name.
117 const char kSettingPrinterName[] = "printerName";
119 // Print to PDF option: true if selected, false if not.
120 const char kSettingPrintToPDF[] = "printToPDF";
122 // Indices used to represent first preview page and complete preview document.
123 const int FIRST_PAGE_INDEX = 0;
124 const int COMPLETE_PREVIEW_DOCUMENT_INDEX = -1;
126 #if defined(OS_MACOSX)
127 const char kSettingOpenPDFInPreview[] = "OpenPDFInPreview";
128 #endif
130 #if defined (USE_CUPS)
131 const char kBlack[] = "Black";
132 const char kCMYK[] = "CMYK";
133 const char kKCMY[] = "KCMY";
134 const char kCMY_K[] = "CMY+K";
135 const char kCMY[] = "CMY";
136 const char kColor[] = "Color";
137 const char kGray[] = "Gray";
138 const char kGrayscale[] = "Grayscale";
139 const char kGreyscale[] = "Greyscale";
140 const char kMonochrome[] = "Monochrome";
141 const char kNormal[] = "Normal";
142 const char kNormalGray[] = "Normal.Gray";
143 const char kRGB[] = "RGB";
144 const char kRGBA[] = "RGBA";
145 const char kRGB16[] = "RGB16";
146 #endif
148 } // namespace printing