home *** CD-ROM | disk | FTP | other *** search
/ ftp.swcp.com / ftp.swcp.com.zip / ftp.swcp.com / mac / mozilla-macos9-1.3.1.sea.bin / Mozilla1.3.1 / Chrome / comm.jar / content / communicator / printPageSetup.xul < prev    next >
Extensible Markup Language  |  2003-06-08  |  10KB  |  234 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.   Roland Mainz <roland.mainz@informatik.med.uni-giessen.de>
  26.   Asko Tontti <atontti@cc.hut.fi>
  27.   Rod Spears <rods@netscape.com>
  28.   Bill Law <law@netscape.com>
  29.  
  30. -->
  31.  
  32. <?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
  33. <?xml-stylesheet href="chrome://communicator/skin/printing.css" type="text/css"?>
  34. <!DOCTYPE dialog SYSTEM "chrome://communicator/locale/printPageSetup.dtd">
  35.  
  36. <dialog xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  37.   onload="onLoad();"
  38.   ondialogaccept="return onAccept();"
  39.   oncancel="return onCancel();"
  40.   title="&printSetup.title;"
  41.   persist="screenX screenY"
  42.   screenX="24" screenY="24">
  43.  
  44.   <script type="application/x-javascript" src="chrome://communicator/content/printPageSetup.js"/>
  45.   <script type="application/x-javascript" src="chrome://global/content/strres.js"/>
  46.  
  47.   <!-- Localizable strings manipulated at run-time. -->
  48.   <data id="marginUnits.inches">&marginUnits.inches;</data>
  49.   <data id="marginUnits.metric">&marginUnits.metric;</data>
  50.   <data id="customPrompt.title">&customPrompt.title;</data>
  51.   <data id="customPrompt.prompt">&customPrompt.prompt;</data>
  52.  
  53.   <tabbox>
  54.     <tabs>
  55.       <tab label="&basic.tab;"/>
  56.       <tab label="&advanced.tab;"/>
  57.     </tabs>
  58.     <tabpanels>
  59.       <tabpanel orient="vertical">
  60.         <groupbox>
  61.           <caption label="&formatGroup.label;"/>
  62.           <vbox>
  63.             <hbox align="center">
  64.               <label value="&orientation.label;"/>
  65.               <radiogroup id="orientation" oncommand="setOrientation()" tabindex="1">
  66.                 <hbox align="center">
  67.                   <radio id="portrait"  class="portrait-page"  label="&portrait;"/>
  68.                   <radio id="landscape" class="landscape-page" label="&landscape;"/>
  69.                 </hbox>
  70.               </radiogroup>
  71.             </hbox>
  72.             <separator/>
  73.             <hbox align="center">
  74.               <label value="&scale.label;"/>
  75.               <textbox id="scalingInput" size="4" onfocus="this.select()" oninput="checkDouble(this)" tabindex="1"/>
  76.               <label value="&scalePercent;"/>
  77.               <separator/>
  78.               <checkbox id="shrinkToFit" label="&shrinkToFit.label;" tabindex="1"
  79.                         oncommand="gDialog.scalingInput.disabled=gDialog.scalingLabel.disabled=this.checked"/>
  80.             </hbox>
  81.           </vbox>
  82.         </groupbox>
  83.         <groupbox>
  84.           <caption label="&optionsGroup.label;"/>
  85.           <checkbox id="printBG" label="&printBG.label;" tabindex="1"/>
  86.         </groupbox>
  87.       </tabpanel>
  88.       <tabpanel orient="vertical">
  89.         <groupbox>
  90.           <caption id="marginGroup" label="&marginGroup.label;"/>
  91.           <vbox>
  92.             <hbox align="center">
  93.               <spacer flex="1"/>
  94.               <label value="&marginTop.label;"/>
  95.               <textbox id="topInput" size="5" oninput="changeMargin(this)" onfocus="this.select()" tabindex="1"/>
  96.               <!-- This invisible label (with same content as the visible one!) is used
  97.                    to ensure that the <textbox> is centered above the page.  The same
  98.                    technique is deployed for the bottom/left/right input fields, below. -->
  99.               <label value="&marginTop.label;" style="visibility: hidden;"/>
  100.               <spacer flex="1"/>
  101.             </hbox>
  102.             <hbox>
  103.               <spacer flex="1"/>
  104.               <vbox>
  105.                 <spacer flex="1"/>
  106.                 <label value="&marginLeft.label;"/>
  107.                 <textbox id="leftInput" size="5" oninput="changeMargin(this)" onfocus="this.select()" tabindex="1"/>
  108.                 <label value="&marginLeft.label;" style="visibility: hidden;"/>
  109.                 <spacer flex="1"/>
  110.               </vbox>
  111.               <!-- The "margin page" draws a simulated printout page with dashed lines
  112.                    for the margins.  The height/width style attributes of the marginTop,
  113.                    marginBottom, marginLeft, and marginRight elements are set by
  114.                    the JS code dynamically based on the user input. -->
  115.               <vbox id="marginPage" style="height:29.7mm;">
  116.                 <box id="marginTop" style="height:0.05in;"/>
  117.                 <hbox flex="1">
  118.                   <box id="marginLeft" style="width:0.025in;"/>
  119.                   <box style="border: 1px; border-style: dashed; border-color: gray;" flex="1"/>
  120.                   <box id="marginRight" style="width:0.025in;"/>
  121.                 </hbox>
  122.                 <box id="marginBottom" style="height:0.05in;"/>
  123.               </vbox>
  124.               <vbox>
  125.                 <spacer flex="1"/>
  126.                 <label value="&marginRight.label;"/>
  127.                 <textbox id="rightInput" size="5" oninput="changeMargin(this)" onfocus="this.select()" tabindex="1"/>
  128.                 <label value="&marginRight.label;" style="visibility: hidden;"/>
  129.                 <spacer flex="1"/>
  130.               </vbox>
  131.               <spacer flex="1"/>
  132.             </hbox>
  133.             <hbox align="center">
  134.               <spacer flex="1"/>
  135.               <label value="&marginBottom.label;"/>
  136.               <textbox id="bottomInput" size="5" oninput="changeMargin(this)" onfocus="this.select()" tabindex="1"/>
  137.               <label value="&marginBottom.label;" style="visibility: hidden;"/>
  138.               <spacer flex="1"/>
  139.             </hbox>
  140.           </vbox>
  141.         </groupbox>
  142.         <groupbox>
  143.           <caption id="headersAndFooters" label="&headerFooter.label;"/>
  144.           <hbox>
  145.             <vbox>
  146.               <menulist id="hLeftOption" oncommand="customize(this)" tabindex="2">
  147.                 <menupopup>
  148.                   <menuitem value="0" label="&hfBlank;"/>
  149.                   <menuitem value="1" label="&hfTitle;"/>
  150.                   <menuitem value="2" label="&hfURL;"/>
  151.                   <menuitem value="3" label="&hfDateAndTime;"/>
  152.                   <menuitem value="4" label="&hfPage;"/>
  153.                   <menuitem value="5" label="&hfPageAndTotal;"/>
  154.                   <menuitem value="6" label="&hfCustom;"/>
  155.                 </menupopup>
  156.               </menulist>
  157.               <vbox align="center">
  158.                 <label value="&hfLeft.label;"/>
  159.               </vbox>
  160.               <menulist id="fLeftOption" oncommand="customize(this)" tabindex="3">
  161.                 <menupopup>
  162.                   <menuitem value="0" label="&hfBlank;"/>
  163.                   <menuitem value="1" label="&hfTitle;"/>
  164.                   <menuitem value="2" label="&hfURL;"/>
  165.                   <menuitem value="3" label="&hfDateAndTime;"/>
  166.                   <menuitem value="4" label="&hfPage;"/>
  167.                   <menuitem value="5" label="&hfPageAndTotal;"/>
  168.                   <menuitem value="6" label="&hfCustom;"/>
  169.                 </menupopup>
  170.               </menulist>
  171.             </vbox>
  172.             <vbox>
  173.               <menulist id="hCenterOption" oncommand="customize(this)" tabindex="2">
  174.                 <menupopup>
  175.                   <menuitem value="0" label="&hfBlank;"/>
  176.                   <menuitem value="1" label="&hfTitle;"/>
  177.                   <menuitem value="2" label="&hfURL;"/>
  178.                   <menuitem value="3" label="&hfDateAndTime;"/>
  179.                   <menuitem value="4" label="&hfPage;"/>
  180.                   <menuitem value="5" label="&hfPageAndTotal;"/>
  181.                   <menuitem value="6" label="&hfCustom;"/>
  182.                 </menupopup>
  183.               </menulist>
  184.               <vbox align="center">
  185.                 <label value="&hfCenter.label;"/>
  186.               </vbox>
  187.               <menulist id="fCenterOption" oncommand="customize(this)" tabindex="3">
  188.                 <menupopup>
  189.                   <menuitem value="0" label="&hfBlank;"/>
  190.                   <menuitem value="1" label="&hfTitle;"/>
  191.                   <menuitem value="2" label="&hfURL;"/>
  192.                   <menuitem value="3" label="&hfDateAndTime;"/>
  193.                   <menuitem value="4" label="&hfPage;"/>
  194.                   <menuitem value="5" label="&hfPageAndTotal;"/>
  195.                   <menuitem value="6" label="&hfCustom;"/>
  196.                 </menupopup>
  197.               </menulist>
  198.             </vbox>
  199.             <vbox>
  200.               <menulist id="hRightOption" oncommand="customize(this)" tabindex="2">
  201.                 <menupopup>
  202.                   <menuitem value="0" label="&hfBlank;"/>
  203.                   <menuitem value="1" label="&hfTitle;"/>
  204.                   <menuitem value="2" label="&hfURL;"/>
  205.                   <menuitem value="3" label="&hfDateAndTime;"/>
  206.                   <menuitem value="4" label="&hfPage;"/>
  207.                   <menuitem value="5" label="&hfPageAndTotal;"/>
  208.                   <menuitem value="6" label="&hfCustom;"/>
  209.                 </menupopup>
  210.               </menulist>
  211.               <vbox align="center">
  212.                 <label value="&hfRight.label;"/>
  213.               </vbox>
  214.               <menulist id="fRightOption" oncommand="customize(this)" tabindex="3">
  215.                 <menupopup>
  216.                   <menuitem value="0" label="&hfBlank;"/>
  217.                   <menuitem value="1" label="&hfTitle;"/>
  218.                   <menuitem value="2" label="&hfURL;"/>
  219.                   <menuitem value="3" label="&hfDateAndTime;"/>
  220.                   <menuitem value="4" label="&hfPage;"/>
  221.                   <menuitem value="5" label="&hfPageAndTotal;"/>
  222.                   <menuitem value="6" label="&hfCustom;"/>
  223.                 </menupopup>
  224.               </menulist>
  225.             </vbox>
  226.           </hbox>
  227.         </groupbox>
  228.       </tabpanel>
  229.     </tabpanels>
  230.   </tabbox>
  231.   <separator/>
  232. </dialog>
  233.  
  234.