toolkit/components/printing/content/printdialog.xul

branch
TOR_BUG_9701
changeset 14
925c144e1f1f
equal deleted inserted replaced
-1:000000000000 0:d35858029ef4
1 <?xml version="1.0"?>
2
3 <!-- This Source Code Form is subject to the terms of the Mozilla Public
4 - License, v. 2.0. If a copy of the MPL was not distributed with this
5 - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
6
7 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
8 <!DOCTYPE dialog SYSTEM "chrome://global/locale/printdialog.dtd">
9
10 <dialog xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
11 onload="onLoad();"
12 ondialogaccept="return onAccept();"
13 oncancel="return onCancel();"
14 buttoniconaccept="print"
15 title="&printDialog.title;"
16 persist="screenX screenY"
17 screenX="24" screenY="24">
18
19 <script type="application/javascript" src="chrome://global/content/printdialog.js"/>
20
21 <stringbundle id="printingBundle" src="chrome://global/locale/printing.properties"/>
22
23 <groupbox>
24 <caption label="&printer.label;"/>
25
26 <grid>
27 <columns>
28 <column/>
29 <column flex="1"/>
30 <column/>
31 </columns>
32
33 <rows>
34 <row align="center">
35 <hbox align="center" pack="end">
36 <label id="printerLabel"
37 value="&printerInput.label;"
38 accesskey="&printerInput.accesskey;"
39 control="printerList"/>
40 </hbox>
41 <menulist id="printerList" flex="1" type="description" oncommand="setPrinterDefaultsForSelectedPrinter();"/>
42 <button id="properties"
43 label="&propertiesButton.label;"
44 accesskey="&propertiesButton.accesskey;"
45 icon="properties"
46 oncommand="displayPropertiesDialog();"/>
47 </row>
48 <row align="center">
49 <hbox align="center" pack="end">
50 <label id="descTextLabel" control="descText" value="&descText.label;"/>
51 </hbox>
52 <label id="descText"/>
53 <checkbox id="fileCheck"
54 checked="false"
55 label="&fileCheck.label;"
56 accesskey="&fileCheck.accesskey;"
57 pack="end"/>
58 </row>
59 </rows>
60 </grid>
61 </groupbox>
62
63 <hbox>
64 <groupbox flex="1">
65 <caption label="&printrangeGroup.label;"/>
66
67 <radiogroup id="printrangeGroup">
68 <radio id="allpagesRadio"
69 label="&allpagesRadio.label;"
70 accesskey="&allpagesRadio.accesskey;"
71 oncommand="doPrintRange(0)"/>
72 <hbox align="center">
73 <radio id="rangeRadio"
74 label="&rangeRadio.label;"
75 accesskey="&rangeRadio.accesskey;"
76 oncommand="doPrintRange(1)"/>
77 <label id="frompageLabel"
78 control="frompageInput"
79 value="&frompageInput.label;"
80 accesskey="&frompageInput.accesskey;"/>
81 <textbox id="frompageInput" style="width:5em;" onkeyup="checkInteger(this)"/>
82 <label id="topageLabel"
83 control="topageInput"
84 value="&topageInput.label;"
85 accesskey="&topageInput.accesskey;"/>
86 <textbox id="topageInput" style="width:5em;" onkeyup="checkInteger(this)"/>
87 </hbox>
88 <radio id="selectionRadio"
89 label="&selectionRadio.label;"
90 accesskey="&selectionRadio.accesskey;"
91 oncommand="doPrintRange(2)"/>
92 </radiogroup>
93 </groupbox>
94
95 <groupbox flex="1">
96 <caption label="&copies.label;"/>
97 <hbox align="center">
98 <label control="numCopiesInput"
99 value="&numCopies.label;"
100 accesskey="&numCopies.accesskey;"/>
101 <textbox id="numCopiesInput" style="width:5em;" onkeyup="checkInteger(this)"/>
102 </hbox>
103 </groupbox>
104 </hbox>
105
106 <groupbox flex="1">
107 <caption label="&printframeGroup.label;" id="printframeGroupLabel"/>
108 <radiogroup id="printframeGroup">
109 <radio id="aslaidoutRadio"
110 label="&aslaidoutRadio.label;"
111 accesskey="&aslaidoutRadio.accesskey;"/>
112 <radio id="selectedframeRadio"
113 label="&selectedframeRadio.label;"
114 accesskey="&selectedframeRadio.accesskey;"/>
115 <radio id="eachframesepRadio"
116 label="&eachframesepRadio.label;"
117 accesskey="&eachframesepRadio.accesskey;"/>
118 </radiogroup>
119 </groupbox>
120
121 <!-- used to store titles and labels -->
122 <data style="display:none;" id="printButton" label="&printButton.label;"/>
123 <data style="display:none;" id="fpDialog" label="&fpDialog.title;"/>
124
125 </dialog>
126

mercurial