home *** CD-ROM | disk | FTP | other *** search
/ PC World 2005 July & August / PCWorld_2005-07-08_cd.bin / komunikace / netscape / nsb-install-8-0.exe / chrome / toolkit.jar / content / global / printdialog.xul < prev    next >
Extensible Markup Language  |  2004-11-25  |  4KB  |  99 lines

  1. <?xml version="1.0"?>
  2.  
  3. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  4. <!DOCTYPE dialog SYSTEM "chrome://global/locale/printdialog.dtd">
  5.  
  6. <dialog xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  7.   onload="onLoad();"
  8.   ondialogaccept="return onAccept();"
  9.   oncancel="return onCancel();"
  10.   title="&printDialog.title;"
  11.   persist="screenX screenY"
  12.   screenX="24" screenY="24">
  13.  
  14.   <script type="application/x-javascript" src="chrome://global/content/printdialog.js"/>
  15.   <script type="application/x-javascript" src="chrome://global/content/strres.js"/>
  16.  
  17.   <groupbox>
  18.     <caption label="&printer.label;"/>
  19.  
  20.     <grid>
  21.       <columns>
  22.         <column/>
  23.         <column flex="1"/>
  24.         <column/>
  25.       </columns>
  26.  
  27.       <rows>
  28.         <row align="center">
  29.           <hbox align="center" pack="end">
  30.             <label value="&printTo.label;"/>
  31.           </hbox>
  32.           <radiogroup id="destGroup" orient="horizontal">
  33.             <radio id="printerRadio" label="&printerRadio.label;" oncommand="if (!this.disabled) doEnablePrintToFile(false);"/>
  34.             <radio id="fileRadio" label="&fileRadio.label;" oncommand="if (!this.disabled) doEnablePrintToFile(true);"/>
  35.           </radiogroup>
  36.         </row>
  37.         <row align="center">
  38.           <hbox align="center" pack="end">
  39.             <label id="printerLabel" value="&printerInput.label;"/>
  40.           </hbox>
  41.           <menulist id="printerList" flex="1" oncommand="setPrinterDefaultsForSelectedPrinter();">
  42.             <menupopup/>
  43.           </menulist>
  44.           <button id="properties" label="&propertiesButton.label;" oncommand="displayPropertiesDialog();"/>
  45.         </row>
  46.         <row align="center">
  47.           <hbox align="center" pack="end">
  48.             <label id="fileLabel" control="fileInput" value="&fileInput.label;"/>
  49.           </hbox>
  50.           <textbox id="fileInput" flex="1" onblur="stripTrailingWhitespace(this)"/>
  51.           <button id="chooseFile" label="&chooseButton.label;" oncommand="onChooseFile()"/>
  52.         </row>
  53.       </rows>
  54.  
  55.     </grid>
  56.   </groupbox>
  57.  
  58.   <hbox>
  59.     <groupbox flex="1">
  60.       <caption label="&printrangeGroup.label;"/>
  61.  
  62.       <radiogroup id="printrangeGroup">
  63.         <radio id="allpagesRadio" label="&allpagesRadio.label;" oncommand="doPrintRange(0)"/>
  64.         <hbox align="center">
  65.           <radio id="rangeRadio" label="&rangeRadio.label;" oncommand="doPrintRange(1)"/>
  66.           <label id="frompageLabel" control="frompageInput" value="&frompageInput.label;" />
  67.           <textbox id="frompageInput" style="width:5em;" onkeyup="checkInteger(this)"/>
  68.           <label id="topageLabel" control="topageInput" value="&topageInput.label;" />
  69.           <textbox id="topageInput" style="width:5em;" onkeyup="checkInteger(this)"/>
  70.         </hbox>
  71.         <radio id="selectionRadio" label="&selectionRadio.label;" oncommand="doPrintRange(2)"/>
  72.       </radiogroup>
  73.     </groupbox>
  74.  
  75.     <groupbox flex="1">
  76.       <caption label="&copies.label;"/>
  77.       <hbox align="center">
  78.         <label control="numCopiesInput" value="&numCopies.label;"/>  
  79.         <textbox id="numCopiesInput" style="width:5em;" onkeyup="checkInteger(this)"/>
  80.       </hbox>
  81.     </groupbox>
  82.   </hbox>
  83.  
  84.   <groupbox flex="1">
  85.     <caption label="&printframeGroup.label;" id="printframeGroupLabel"/>
  86.     <radiogroup id="printframeGroup">
  87.       <radio id="aslaidoutRadio" label="&aslaidoutRadio.label;" />
  88.       <radio id="selectedframeRadio" label="&selectedframeRadio.label;" />
  89.       <radio id="eachframesepRadio" label="&eachframesepRadio.label;" />
  90.     </radiogroup>
  91.   </groupbox>
  92.  
  93.   <!-- used to store titles and labels -->
  94.   <data style="display:none;" id="printButton" label="&printButton.label;"/>
  95.   <data style="display:none;" id="fpDialog" label="&fpDialog.title;"/>
  96.  
  97. </dialog>
  98.  
  99.