blob: 5e7863eedb87e621447d0e2a593dbe0e162139e7 [file] [log] [blame]
[email protected]c48bee22011-03-29 02:36:261// 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.
4
5#include "printing/print_job_constants.h"
6
7namespace printing {
8
[email protected]718af822011-08-12 22:11:339// True if this is the first preview request.
10const char kIsFirstRequest[] = "isFirstRequest";
11
[email protected]a8851352011-07-13 20:16:2512// Unique ID sent along every preview request.
13const char kPreviewRequestID[] = "requestID";
14
[email protected]ff906742011-08-23 05:04:4615// Unique ID to identify a print preview UI.
16const char kPreviewUIAddr[] = "previewUIAddr";
17
[email protected]b579afd2011-07-13 00:01:2718// Print using cloud print: true if selected, false if not.
19const char kSettingCloudPrintId[] = "cloudPrintID";
20
[email protected]c97e5e82011-04-05 18:50:2321// Print job setting 'collate'.
22const char kSettingCollate[] = "collate";
23
[email protected]c48bee22011-03-29 02:36:2624// Print out color: true for color, false for grayscale.
25const char kSettingColor[] = "color";
26
[email protected]7a9b03e32011-08-23 19:56:1827// Key that specifies the height of the content area of the page.
28const char kSettingContentHeight[] = "contentHeight";
29
30// Key that specifies the width of the content area of the page.
31const char kSettingContentWidth[] = "contentWidth";
32
[email protected]c97e5e82011-04-05 18:50:2333// Number of copies.
34const char kSettingCopies[] = "copies";
35
[email protected]7a9b03e32011-08-23 19:56:1836// Key that specifies if the default margins have been selected or not.
37// True if selected, false if not.
38const char kSettingDefaultMarginsSelected[] = "defaultMarginsSelected";
39
[email protected]987e51f92011-05-04 21:10:1540// Device name: Unique printer identifier.
41const char kSettingDeviceName[] = "deviceName";
42
[email protected]826e63a162011-04-20 18:00:4543// Print job duplex mode.
44const char kSettingDuplexMode[] = "duplex";
45
[email protected]55b23a02011-08-17 23:09:3646// Option to print headers and Footers: true if selected, false if not.
47const char kSettingHeaderFooterEnabled[] = "headerFooterEnabled";
48
[email protected]151b4f242011-08-19 20:21:2849// Default character spacing for text while printing headers and footers.
50// (For CoreGraphics only).
51const int kSettingHeaderFooterCharacterSpacing = 0;
52
[email protected]55b23a02011-08-17 23:09:3653// Default font family name for printing the headers and footers.
54const char kSettingHeaderFooterFontFamilyName[] = "sans";
55
56// Default font name for printing the headers and footers.
57const char kSettingHeaderFooterFontName[] = "Helvetica";
58
59// Default font size for printing the headers and footers.
60const int kSettingHeaderFooterFontSize = 8;
61
62// Number of horizontal regions for headers and footers.
63const float kSettingHeaderFooterHorizontalRegions = 3;
64
65// Interstice or gap between different header footer components.
66// Hardcoded to 0.25cm = 1/10" = 7.2points.
67const float kSettingHeaderFooterInterstice = 7.2f;
68
69// Key that specifies the date of the page that will be printed in the headers
70// and footers.
71const char kSettingHeaderFooterDate[] = "date";
72
73// Key that specifies the title of the page that will be printed in the headers
74// and footers.
75const char kSettingHeaderFooterTitle[] = "title";
76
77// Key that specifies the URL of the page that will be printed in the headers
78// and footers.
79const char kSettingHeaderFooterURL[] = "url";
80
[email protected]c48bee22011-03-29 02:36:2681// Page orientation: true for landscape, false for portrait.
82const char kSettingLandscape[] = "landscape";
83
[email protected]7a9b03e32011-08-23 19:56:1884// Key that specifies the bottom margin of the page.
85const char kSettingMarginBottom[] = "marginBottom";
86
87// Key that specifies the left margin of the page.
88const char kSettingMarginLeft[] = "marginLeft";
89
90// Key that specifies the right margin of the page.
91const char kSettingMarginRight[] = "marginRight";
92
93// Key that specifies the top margin of the page.
94const char kSettingMarginTop[] = "marginTop";
95
96// Key that specifies the array of custom margins as set by the user.
97const char kSettingMargins[] = "margins";
98
[email protected]06cb23882011-04-23 01:58:2299// A page range.
100const char kSettingPageRange[] = "pageRange";
101
102// The first page of a page range. (1-based)
103const char kSettingPageRangeFrom[] = "from";
104
105// The last page of a page range. (1-based)
106const char kSettingPageRangeTo[] = "to";
107
[email protected]f803c932011-03-30 16:40:12108// Printer name.
109const char kSettingPrinterName[] = "printerName";
110
[email protected]b73bb80b2011-04-20 01:58:39111// Print to PDF option: true if selected, false if not.
112const char kSettingPrintToPDF[] = "printToPDF";
113
[email protected]ff906742011-08-23 05:04:46114// Indices used to represent first preview page and complete preview document.
[email protected]fd0b503402011-07-26 09:01:33115const int FIRST_PAGE_INDEX = 0;
116const int COMPLETE_PREVIEW_DOCUMENT_INDEX = -1;
[email protected]fd0b503402011-07-26 09:01:33117
[email protected]c48bee22011-03-29 02:36:26118} // namespace printing