home *** CD-ROM | disk | FTP | other *** search
/ PC World 2003 May / PCWorld_2003-05_cd.bin / Komunik / phoenix / chrome / toolkit.jar / content / global / printdialog.xul < prev    next >
Extensible Markup Language  |  2002-09-01  |  5KB  |  127 lines

  1. <?xml version="1.0"?> <!-- -*- Mode: HTML -*- -->
  2.  
  3. <!--
  4. The contents of this file are subject to the Netscape Public
  5. License Version 1.1 (the "License"); you may not use this file
  6. except in compliance with the License. You may obtain a copy of
  7. the License at http://www.mozilla.org/NPL/
  8.  
  9. Software distributed under the License is distributed on an "AS
  10. IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  11. implied. See the License for the specific language governing
  12. rights and limitations under the License.
  13.  
  14. The Original Code is Mozilla Communicator client code, released
  15. March 31, 1998.
  16.  
  17. The Initial Developer of the Original Code is Netscape
  18. Communications Corporation. Portions created by Netscape are
  19. Copyright (C) 1998-1999 Netscape Communications Corporation. All
  20. Rights Reserved.
  21.  
  22. Contributor(s):
  23.   Masaki Katakai <katakai@japan.sun.com>
  24.   Dan Rosen <dr@netscape.com>
  25.   Jessica Blanco <jblanco@us.ibm.com>
  26.   Asko Tontti <atontti@cc.hut.fi>
  27.   Roland Mainz <roland.mainz@informatik.med.uni-giessen.de>
  28.  
  29. -->
  30.  
  31. <?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
  32. <!DOCTYPE dialog SYSTEM "chrome://global/locale/printdialog.dtd">
  33.  
  34. <dialog xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  35.   onload="onLoad();"
  36.   ondialogaccept="return onAccept();"
  37.   oncancel="return onCancel();"
  38.   title="&printDialog.title;"
  39.   persist="screenX screenY"
  40.   screenX="24" screenY="24">
  41.  
  42.   <script type="application/x-javascript" src="chrome://global/content/printdialog.js"/>
  43.   <script type="application/x-javascript" src="chrome://global/content/strres.js"/>
  44.  
  45.   <groupbox>
  46.     <caption label="&printer.label;"/>
  47.  
  48.     <grid>
  49.       <columns>
  50.         <column/>
  51.         <column flex="1"/>
  52.         <column/>
  53.       </columns>
  54.  
  55.       <rows>
  56.         <row align="center">
  57.           <hbox align="center" pack="end">
  58.             <label value="&printTo.label;"/>
  59.           </hbox>
  60.           <radiogroup id="destGroup" orient="horizontal">
  61.             <radio id="printerRadio" label="&printerRadio.label;" oncommand="if (!this.disabled) doEnablePrintToFile(false);"/>
  62.             <radio id="fileRadio" label="&fileRadio.label;" oncommand="if (!this.disabled) doEnablePrintToFile(true);"/>
  63.           </radiogroup>
  64.         </row>
  65.         <row align="center">
  66.           <hbox align="center" pack="end">
  67.             <label id="printerLabel" value="&printerInput.label;"/>
  68.           </hbox>
  69.           <menulist id="printerList" flex="1" oncommand="setPrinterDefaultsForSelectedPrinter();">
  70.             <menupopup/>
  71.           </menulist>
  72.           <button id="properties" label="&propertiesButton.label;" oncommand="displayPropertiesDialog();"/>
  73.         </row>
  74.         <row align="center">
  75.           <hbox align="center" pack="end">
  76.             <label id="fileLabel" control="fileInput" value="&fileInput.label;"/>
  77.           </hbox>
  78.           <textbox id="fileInput" flex="1" onblur="stripTrailingWhitespace(this)"/>
  79.           <button id="chooseFile" label="&chooseButton.label;" oncommand="onChooseFile()"/>
  80.         </row>
  81.       </rows>
  82.  
  83.     </grid>
  84.   </groupbox>
  85.  
  86.   <hbox>
  87.     <groupbox flex="1">
  88.       <caption label="&printrangeGroup.label;"/>
  89.  
  90.       <radiogroup id="printrangeGroup">
  91.         <radio id="allpagesRadio" label="&allpagesRadio.label;" oncommand="doPrintRange(0)"/>
  92.         <hbox align="center">
  93.           <radio id="rangeRadio" label="&rangeRadio.label;" oncommand="doPrintRange(1)"/>
  94.           <label id="frompageLabel" control="frompageInput" value="&frompageInput.label;" />
  95.           <textbox id="frompageInput" style="width:5em;" onkeyup="checkInteger(this)"/>
  96.           <label id="topageLabel" control="topageInput" value="&topageInput.label;" />
  97.           <textbox id="topageInput" style="width:5em;" onkeyup="checkInteger(this)"/>
  98.         </hbox>
  99.         <radio id="selectionRadio" label="&selectionRadio.label;" oncommand="doPrintRange(2)"/>
  100.       </radiogroup>
  101.     </groupbox>
  102.  
  103.     <groupbox flex="1">
  104.       <caption label="&copies.label;"/>
  105.       <hbox align="center">
  106.         <label control="numCopiesInput" value="&numCopies.label;"/>  
  107.         <textbox id="numCopiesInput" style="width:5em;" onkeyup="checkInteger(this)"/>
  108.       </hbox>
  109.     </groupbox>
  110.   </hbox>
  111.  
  112.   <groupbox flex="1">
  113.     <caption label="&printframeGroup.label;" id="printframeGroupLabel"/>
  114.     <radiogroup id="printframeGroup">
  115.       <radio id="aslaidoutRadio" label="&aslaidoutRadio.label;" />
  116.       <radio id="selectedframeRadio" label="&selectedframeRadio.label;" />
  117.       <radio id="eachframesepRadio" label="&eachframesepRadio.label;" />
  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.  
  127.