Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
1 <?xml version="1.0"?>
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/. -->
7 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
8 <!DOCTYPE dialog SYSTEM "chrome://global/locale/printjoboptions.dtd">
10 <dialog xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
11 onload="onLoad();"
12 ondialogaccept="return onAccept();"
13 title="&printJobOptions.title;"
14 persist="screenX screenY"
15 screenX="24" screenY="24">
17 <script type="application/javascript" src="chrome://global/content/printjoboptions.js"/>
19 <stringbundle id="printBundle" src="chrome://global/locale/printPageSetup.properties"/>
21 <grid>
22 <columns>
23 <column/>
24 <column flex="1"/>
25 </columns>
27 <rows>
28 <row id="jobTitleGroup">
29 <hbox align="center" pack="end">
30 <label id="jobTitleLabel"
31 value="&jobTitleInput.label;"
32 accesskey="&jobTitleInput.accesskey;"
33 control="jobTitleInput"/>
34 </hbox>
35 <textbox id="jobTitleInput" flex="1"/>
36 </row>
38 <row id="paperGroup">
39 <hbox align="center" pack="end">
40 <label id="paperLabel"
41 value="&paperInput.label;"
42 accesskey="&paperInput.accesskey;"
43 control="paperList"/>
44 </hbox>
45 <menulist id="paperList" flex="1">
46 <menupopup/>
47 </menulist>
48 </row>
50 <row id="plexGroup">
51 <hbox align="center" pack="end">
52 <label id="plexLabel"
53 value="&plexInput.label;"
54 accesskey="&plexInput.accesskey;"
55 control="plexList"/>
56 </hbox>
57 <menulist id="plexList" flex="1">
58 <menupopup/>
59 </menulist>
60 </row>
62 <row id="resolutionGroup">
63 <hbox align="center" pack="end">
64 <label id="resolutionLabel"
65 value="&resolutionInput.label;"
66 accesskey="&resolutionInput.accesskey;"
67 control="resolutionList"/>
68 </hbox>
69 <menulist id="resolutionList" flex="1">
70 <menupopup/>
71 </menulist>
72 </row>
74 <row id="colorspaceGroup">
75 <hbox align="center" pack="end">
76 <label id="colorspaceLabel"
77 value="&colorspaceInput.label;"
78 accesskey="&colorspaceInput.accesskey;"
79 control="colorspaceList"/>
80 </hbox>
81 <menulist id="colorspaceList" flex="1">
82 <menupopup/>
83 </menulist>
84 </row>
86 <row id="cmdGroup">
87 <label id="cmdLabel"
88 value="&cmdInput.label;"
89 accesskey="&cmdInput.accesskey;"
90 control="cmdInput"/>
91 <textbox id="cmdInput" flex="1"/>
92 </row>
94 <row id="colorGroup">
95 <hbox align="center" pack="end">
96 <label control="colorRadioGroup" value="&colorGroup.label;"/>
97 </hbox>
98 <radiogroup id="colorRadioGroup" orient="horizontal">
99 <radio id="grayRadio"
100 label="&grayRadio.label;"
101 accesskey="&grayRadio.accesskey;"/>
102 <radio id="colorRadio"
103 label="&colorRadio.label;"
104 accesskey="&colorRadio.accesskey;"/>
105 </radiogroup>
106 </row>
108 <row id="fontsGroup">
109 <hbox align="center" pack="end">
110 <label value="&fontsGroup.label;"/>
111 </hbox>
112 <checkbox id="downloadFonts"
113 label="&downloadFonts.label;"
114 accesskey="&downloadFonts.accesskey;"/>
115 </row>
116 </rows>
117 </grid>
119 <grid>
120 <columns>
121 <column/>
122 </columns>
123 <rows>
124 <row>
125 <groupbox flex="1">
126 <caption label="&edgeMarginInput.label;"/>
127 <hbox>
128 <hbox align="center">
129 <label id="topLabel"
130 value="&topInput.label;"
131 accesskey="&topInput.accesskey;"
132 control="topInput"/>
133 <textbox id="topInput" style="width:5em;" onkeyup="checkDouble(this, 0.5)"/>
134 </hbox>
135 <hbox align="center">
136 <label id="bottomLabel"
137 value="&bottomInput.label;"
138 accesskey="&bottomInput.accesskey;"
139 control="bottomInput"/>
140 <textbox id="bottomInput" style="width:5em;" onkeyup="checkDouble(this, 0.5)"/>
141 </hbox>
142 <hbox align="center">
143 <label id="leftLabel"
144 value="&leftInput.label;"
145 accesskey="&leftInput.accesskey;"
146 control="leftInput"/>
147 <textbox id="leftInput" style="width:5em;" onkeyup="checkDouble(this, 0.5)"/>
148 </hbox>
149 <hbox align="center">
150 <label id="rightLabel"
151 value="&rightInput.label;"
152 accesskey="&rightInput.accesskey;"
153 control="rightInput"/>
154 <textbox id="rightInput" style="width:5em;" onkeyup="checkDouble(this, 0.5)"/>
155 </hbox>
156 </hbox>
157 </groupbox>
158 </row>
160 </rows>
161 </grid>
163 </dialog>