1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/toolkit/components/printing/content/printdialog.xul Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,126 @@ 1.4 +<?xml version="1.0"?> 1.5 + 1.6 +<!-- This Source Code Form is subject to the terms of the Mozilla Public 1.7 + - License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> 1.9 + 1.10 +<?xml-stylesheet href="chrome://global/skin/" type="text/css"?> 1.11 +<!DOCTYPE dialog SYSTEM "chrome://global/locale/printdialog.dtd"> 1.12 + 1.13 +<dialog xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 1.14 + onload="onLoad();" 1.15 + ondialogaccept="return onAccept();" 1.16 + oncancel="return onCancel();" 1.17 + buttoniconaccept="print" 1.18 + title="&printDialog.title;" 1.19 + persist="screenX screenY" 1.20 + screenX="24" screenY="24"> 1.21 + 1.22 + <script type="application/javascript" src="chrome://global/content/printdialog.js"/> 1.23 + 1.24 + <stringbundle id="printingBundle" src="chrome://global/locale/printing.properties"/> 1.25 + 1.26 + <groupbox> 1.27 + <caption label="&printer.label;"/> 1.28 + 1.29 + <grid> 1.30 + <columns> 1.31 + <column/> 1.32 + <column flex="1"/> 1.33 + <column/> 1.34 + </columns> 1.35 + 1.36 + <rows> 1.37 + <row align="center"> 1.38 + <hbox align="center" pack="end"> 1.39 + <label id="printerLabel" 1.40 + value="&printerInput.label;" 1.41 + accesskey="&printerInput.accesskey;" 1.42 + control="printerList"/> 1.43 + </hbox> 1.44 + <menulist id="printerList" flex="1" type="description" oncommand="setPrinterDefaultsForSelectedPrinter();"/> 1.45 + <button id="properties" 1.46 + label="&propertiesButton.label;" 1.47 + accesskey="&propertiesButton.accesskey;" 1.48 + icon="properties" 1.49 + oncommand="displayPropertiesDialog();"/> 1.50 + </row> 1.51 + <row align="center"> 1.52 + <hbox align="center" pack="end"> 1.53 + <label id="descTextLabel" control="descText" value="&descText.label;"/> 1.54 + </hbox> 1.55 + <label id="descText"/> 1.56 + <checkbox id="fileCheck" 1.57 + checked="false" 1.58 + label="&fileCheck.label;" 1.59 + accesskey="&fileCheck.accesskey;" 1.60 + pack="end"/> 1.61 + </row> 1.62 + </rows> 1.63 + </grid> 1.64 + </groupbox> 1.65 + 1.66 + <hbox> 1.67 + <groupbox flex="1"> 1.68 + <caption label="&printrangeGroup.label;"/> 1.69 + 1.70 + <radiogroup id="printrangeGroup"> 1.71 + <radio id="allpagesRadio" 1.72 + label="&allpagesRadio.label;" 1.73 + accesskey="&allpagesRadio.accesskey;" 1.74 + oncommand="doPrintRange(0)"/> 1.75 + <hbox align="center"> 1.76 + <radio id="rangeRadio" 1.77 + label="&rangeRadio.label;" 1.78 + accesskey="&rangeRadio.accesskey;" 1.79 + oncommand="doPrintRange(1)"/> 1.80 + <label id="frompageLabel" 1.81 + control="frompageInput" 1.82 + value="&frompageInput.label;" 1.83 + accesskey="&frompageInput.accesskey;"/> 1.84 + <textbox id="frompageInput" style="width:5em;" onkeyup="checkInteger(this)"/> 1.85 + <label id="topageLabel" 1.86 + control="topageInput" 1.87 + value="&topageInput.label;" 1.88 + accesskey="&topageInput.accesskey;"/> 1.89 + <textbox id="topageInput" style="width:5em;" onkeyup="checkInteger(this)"/> 1.90 + </hbox> 1.91 + <radio id="selectionRadio" 1.92 + label="&selectionRadio.label;" 1.93 + accesskey="&selectionRadio.accesskey;" 1.94 + oncommand="doPrintRange(2)"/> 1.95 + </radiogroup> 1.96 + </groupbox> 1.97 + 1.98 + <groupbox flex="1"> 1.99 + <caption label="&copies.label;"/> 1.100 + <hbox align="center"> 1.101 + <label control="numCopiesInput" 1.102 + value="&numCopies.label;" 1.103 + accesskey="&numCopies.accesskey;"/> 1.104 + <textbox id="numCopiesInput" style="width:5em;" onkeyup="checkInteger(this)"/> 1.105 + </hbox> 1.106 + </groupbox> 1.107 + </hbox> 1.108 + 1.109 + <groupbox flex="1"> 1.110 + <caption label="&printframeGroup.label;" id="printframeGroupLabel"/> 1.111 + <radiogroup id="printframeGroup"> 1.112 + <radio id="aslaidoutRadio" 1.113 + label="&aslaidoutRadio.label;" 1.114 + accesskey="&aslaidoutRadio.accesskey;"/> 1.115 + <radio id="selectedframeRadio" 1.116 + label="&selectedframeRadio.label;" 1.117 + accesskey="&selectedframeRadio.accesskey;"/> 1.118 + <radio id="eachframesepRadio" 1.119 + label="&eachframesepRadio.label;" 1.120 + accesskey="&eachframesepRadio.accesskey;"/> 1.121 + </radiogroup> 1.122 + </groupbox> 1.123 + 1.124 + <!-- used to store titles and labels --> 1.125 + <data style="display:none;" id="printButton" label="&printButton.label;"/> 1.126 + <data style="display:none;" id="fpDialog" label="&fpDialog.title;"/> 1.127 + 1.128 +</dialog> 1.129 +