2 <!-- -*- Mode: HTML -*- -->
4 <!-- This Source Code Form is subject to the terms of the Mozilla Public
5 - License, v. 2.0. If a copy of the MPL was not distributed with this
6 - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
9 xmlns=
"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
10 xmlns:
html=
"http://www.w3.org/1999/xhtml"
12 oncancel=
"return onCancel();"
13 data-l10n-id=
"print-setup"
15 persist=
"screenX screenY"
19 <dialog id=
"printPageSetupDialog">
21 <html:link rel=
"stylesheet" href=
"chrome://global/skin/global.css" />
24 href=
"chrome://global/skin/in-content/common.css"
28 href=
"chrome://global/skin/printPageSetup.css"
31 <html:link rel=
"localization" href=
"toolkit/printing/printDialogs.ftl" />
34 <script src=
"chrome://global/content/globalOverlay.js" />
35 <script src=
"chrome://global/content/editMenuOverlay.js" />
36 <script src=
"chrome://global/content/printPageSetup.js" />
40 <tab data-l10n-id=
"basic-tab" />
41 <tab data-l10n-id=
"advanced-tab" />
47 ><label data-l10n-id=
"format-group-label"
49 <vbox class=
"groupbox-body">
51 <label control=
"orientation" data-l10n-id=
"orientation-label" />
52 <radiogroup id=
"orientation" oncommand=
"setOrientation()">
57 data-l10n-id=
"portrait"
61 class=
"landscape-page"
62 data-l10n-id=
"landscape"
69 <label control=
"scalingInput" data-l10n-id=
"scale" />
73 oninput=
"checkDouble(this)"
75 <label data-l10n-id=
"scale-percent" />
79 data-l10n-id=
"shrink-to-fit"
80 oncommand=
"gDialog.scalingInput.disabled = gDialog.scalingLabel.disabled = this.checked"
87 ><label data-l10n-id=
"options-group-label"
92 data-l10n-id=
"print-bg"
99 ><label id=
"marginGroup" data-l10n-id=
"margin-group-label"
101 <vbox class=
"groupbox-body">
102 <hbox align=
"center">
104 <label control=
"topInput" data-l10n-id=
"margin-top" />
108 oninput=
"changeMargin(this)"
110 <!-- This invisible label (with same content as the visible one!) is used
111 to ensure that the <input> is centered above the page. The same
112 technique is deployed for the bottom/left/right input fields, below. -->
114 data-l10n-id=
"margin-top-invisible"
115 style=
"visibility: hidden"
123 <label control=
"leftInput" data-l10n-id=
"margin-left" />
127 oninput=
"changeMargin(this)"
130 data-l10n-id=
"margin-left-invisible"
131 style=
"visibility: hidden"
135 <!-- The "margin page" draws a simulated printout page with dashed lines
136 for the margins. The height/width style attributes of the marginTop,
137 marginBottom, marginLeft, and marginRight elements are set by
138 the JS code dynamically based on the user input. -->
139 <vbox id=
"marginPage" style=
"height: 29.7mm">
140 <box id=
"marginTop" style=
"height: 0.05in" />
141 <hbox flex=
"1" dir=
"ltr">
142 <box id=
"marginLeft" style=
"width: 0.025in" />
146 border-style: dashed;
151 <box id=
"marginRight" style=
"width: 0.025in" />
153 <box id=
"marginBottom" style=
"height: 0.05in" />
157 <label control=
"rightInput" data-l10n-id=
"margin-right" />
161 oninput=
"changeMargin(this)"
164 data-l10n-id=
"margin-right-invisible"
165 style=
"visibility: hidden"
171 <hbox align=
"center">
173 <label control=
"bottomInput" data-l10n-id=
"margin-bottom" />
177 oninput=
"changeMargin(this)"
180 data-l10n-id=
"margin-bottom-invisible"
181 style=
"visibility: hidden"
189 ><label data-l10n-id=
"header-footer-label"
191 <box id=
"header-footer-grid" class=
"groupbox-body" dir=
"ltr">
194 oncommand=
"customize(this)"
195 data-l10n-id=
"header-left-tip"
198 <menuitem value=
"0" data-l10n-id=
"hf-blank" />
199 <menuitem value=
"1" data-l10n-id=
"hf-title" />
200 <menuitem value=
"2" data-l10n-id=
"hf-url" />
201 <menuitem value=
"3" data-l10n-id=
"hf-date-and-time" />
202 <menuitem value=
"4" data-l10n-id=
"hf-page" />
203 <menuitem value=
"5" data-l10n-id=
"hf-page-and-total" />
204 <menuitem value=
"6" data-l10n-id=
"hf-custom" />
209 oncommand=
"customize(this)"
210 data-l10n-id=
"header-center-tip"
213 <menuitem value=
"0" data-l10n-id=
"hf-blank" />
214 <menuitem value=
"1" data-l10n-id=
"hf-title" />
215 <menuitem value=
"2" data-l10n-id=
"hf-url" />
216 <menuitem value=
"3" data-l10n-id=
"hf-date-and-time" />
217 <menuitem value=
"4" data-l10n-id=
"hf-page" />
218 <menuitem value=
"5" data-l10n-id=
"hf-page-and-total" />
219 <menuitem value=
"6" data-l10n-id=
"hf-custom" />
224 oncommand=
"customize(this)"
225 data-l10n-id=
"header-right-tip"
228 <menuitem value=
"0" data-l10n-id=
"hf-blank" />
229 <menuitem value=
"1" data-l10n-id=
"hf-title" />
230 <menuitem value=
"2" data-l10n-id=
"hf-url" />
231 <menuitem value=
"3" data-l10n-id=
"hf-date-and-time" />
232 <menuitem value=
"4" data-l10n-id=
"hf-page" />
233 <menuitem value=
"5" data-l10n-id=
"hf-page-and-total" />
234 <menuitem value=
"6" data-l10n-id=
"hf-custom" />
237 <vbox align=
"center">
238 <label data-l10n-id=
"hf-left-label" />
240 <vbox align=
"center">
241 <label data-l10n-id=
"hf-center-label" />
243 <vbox align=
"center">
244 <label data-l10n-id=
"hf-right-label" />
248 oncommand=
"customize(this)"
249 data-l10n-id=
"footer-left-tip"
252 <menuitem value=
"0" data-l10n-id=
"hf-blank" />
253 <menuitem value=
"1" data-l10n-id=
"hf-title" />
254 <menuitem value=
"2" data-l10n-id=
"hf-url" />
255 <menuitem value=
"3" data-l10n-id=
"hf-date-and-time" />
256 <menuitem value=
"4" data-l10n-id=
"hf-page" />
257 <menuitem value=
"5" data-l10n-id=
"hf-page-and-total" />
258 <menuitem value=
"6" data-l10n-id=
"hf-custom" />
263 oncommand=
"customize(this)"
264 data-l10n-id=
"footer-center-tip"
267 <menuitem value=
"0" data-l10n-id=
"hf-blank" />
268 <menuitem value=
"1" data-l10n-id=
"hf-title" />
269 <menuitem value=
"2" data-l10n-id=
"hf-url" />
270 <menuitem value=
"3" data-l10n-id=
"hf-date-and-time" />
271 <menuitem value=
"4" data-l10n-id=
"hf-page" />
272 <menuitem value=
"5" data-l10n-id=
"hf-page-and-total" />
273 <menuitem value=
"6" data-l10n-id=
"hf-custom" />
278 oncommand=
"customize(this)"
279 data-l10n-id=
"footer-right-tip"
282 <menuitem value=
"0" data-l10n-id=
"hf-blank" />
283 <menuitem value=
"1" data-l10n-id=
"hf-title" />
284 <menuitem value=
"2" data-l10n-id=
"hf-url" />
285 <menuitem value=
"3" data-l10n-id=
"hf-date-and-time" />
286 <menuitem value=
"4" data-l10n-id=
"hf-page" />
287 <menuitem value=
"5" data-l10n-id=
"hf-page-and-total" />
288 <menuitem value=
"6" data-l10n-id=
"hf-custom" />