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 / printPageSetup.xul < prev    next >
Extensible Markup Language  |  2004-11-25  |  10KB  |  232 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://global/skin/" type="text/css"?>
  33. <?xml-stylesheet href="chrome://global/skin/printPageSetup.css" type="text/css"?>
  34. <!DOCTYPE dialog SYSTEM "chrome://global/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://global/content/printPageSetup.js"/>
  45.  
  46.   <!-- Localizable strings manipulated at run-time. -->
  47.   <data id="marginUnits.inches">&marginUnits.inches;</data>
  48.   <data id="marginUnits.metric">&marginUnits.metric;</data>
  49.   <data id="customPrompt.title">&customPrompt.title;</data>
  50.   <data id="customPrompt.prompt">&customPrompt.prompt;</data>
  51.  
  52.   <tabbox>
  53.     <tabs>
  54.       <tab label="&basic.tab;"/>
  55.       <tab label="&advanced.tab;"/>
  56.     </tabs>
  57.     <tabpanels>
  58.       <tabpanel orient="vertical">
  59.         <groupbox>
  60.           <caption label="&formatGroup.label;"/>
  61.           <vbox>
  62.             <hbox align="center">
  63.               <label value="&orientation.label;"/>
  64.               <radiogroup id="orientation" oncommand="setOrientation()" tabindex="1">
  65.                 <hbox align="center">
  66.                   <radio id="portrait"  class="portrait-page"  label="&portrait;"/>
  67.                   <radio id="landscape" class="landscape-page" label="&landscape;"/>
  68.                 </hbox>
  69.               </radiogroup>
  70.             </hbox>
  71.             <separator/>
  72.             <hbox align="center">
  73.               <label value="&scale.label;"/>
  74.               <textbox id="scalingInput" size="4" onfocus="this.select()" oninput="checkDouble(this)" tabindex="1"/>
  75.               <label value="&scalePercent;"/>
  76.               <separator/>
  77.               <checkbox id="shrinkToFit" label="&shrinkToFit.label;" tabindex="1"
  78.                         oncommand="gDialog.scalingInput.disabled=gDialog.scalingLabel.disabled=this.checked"/>
  79.             </hbox>
  80.           </vbox>
  81.         </groupbox>
  82.         <groupbox>
  83.           <caption label="&optionsGroup.label;"/>
  84.           <checkbox id="printBG" label="&printBG.label;" tabindex="1"/>
  85.         </groupbox>
  86.       </tabpanel>
  87.       <tabpanel orient="vertical">
  88.         <groupbox>
  89.           <caption id="marginGroup" label="&marginGroup.label;"/>
  90.           <vbox>
  91.             <hbox align="center">
  92.               <spacer flex="1"/>
  93.               <label value="&marginTop.label;"/>
  94.               <textbox id="topInput" size="5" oninput="changeMargin(this)" onfocus="this.select()" tabindex="1"/>
  95.               <!-- This invisible label (with same content as the visible one!) is used
  96.                    to ensure that the <textbox> is centered above the page.  The same
  97.                    technique is deployed for the bottom/left/right input fields, below. -->
  98.               <label value="&marginTop.label;" style="visibility: hidden;"/>
  99.               <spacer flex="1"/>
  100.             </hbox>
  101.             <hbox dir="ltr">
  102.               <spacer flex="1"/>
  103.               <vbox>
  104.                 <spacer flex="1"/>
  105.                 <label value="&marginLeft.label;"/>
  106.                 <textbox id="leftInput" size="5" oninput="changeMargin(this)" onfocus="this.select()" tabindex="1"/>
  107.                 <label value="&marginLeft.label;" style="visibility: hidden;"/>
  108.                 <spacer flex="1"/>
  109.               </vbox>
  110.               <!-- The "margin page" draws a simulated printout page with dashed lines
  111.                    for the margins.  The height/width style attributes of the marginTop,
  112.                    marginBottom, marginLeft, and marginRight elements are set by
  113.                    the JS code dynamically based on the user input. -->
  114.               <vbox id="marginPage" style="height:29.7mm;">
  115.                 <box id="marginTop" style="height:0.05in;"/>
  116.                 <hbox flex="1" dir="ltr">
  117.                   <box id="marginLeft" style="width:0.025in;"/>
  118.                   <box style="border: 1px; border-style: dashed; border-color: gray;" flex="1"/>
  119.                   <box id="marginRight" style="width:0.025in;"/>
  120.                 </hbox>
  121.                 <box id="marginBottom" style="height:0.05in;"/>
  122.               </vbox>
  123.               <vbox>
  124.                 <spacer flex="1"/>
  125.                 <label value="&marginRight.label;"/>
  126.                 <textbox id="rightInput" size="5" oninput="changeMargin(this)" onfocus="this.select()" tabindex="1"/>
  127.                 <label value="&marginRight.label;" style="visibility: hidden;"/>
  128.                 <spacer flex="1"/>
  129.               </vbox>
  130.               <spacer flex="1"/>
  131.             </hbox>
  132.             <hbox align="center">
  133.               <spacer flex="1"/>
  134.               <label value="&marginBottom.label;"/>
  135.               <textbox id="bottomInput" size="5" oninput="changeMargin(this)" onfocus="this.select()" tabindex="1"/>
  136.               <label value="&marginBottom.label;" style="visibility: hidden;"/>
  137.               <spacer flex="1"/>
  138.             </hbox>
  139.           </vbox>
  140.         </groupbox>
  141.         <groupbox>
  142.           <caption id="headersAndFooters" label="&headerFooter.label;"/>
  143.           <hbox dir="ltr">
  144.             <vbox>
  145.               <menulist id="hLeftOption" oncommand="customize(this)" tabindex="2">
  146.                 <menupopup>
  147.                   <menuitem value="0" label="&hfBlank;"/>
  148.                   <menuitem value="1" label="&hfTitle;"/>
  149.                   <menuitem value="2" label="&hfURL;"/>
  150.                   <menuitem value="3" label="&hfDateAndTime;"/>
  151.                   <menuitem value="4" label="&hfPage;"/>
  152.                   <menuitem value="5" label="&hfPageAndTotal;"/>
  153.                   <menuitem value="6" label="&hfCustom;"/>
  154.                 </menupopup>
  155.               </menulist>
  156.               <vbox align="center">
  157.                 <label value="&hfLeft.label;"/>
  158.               </vbox>
  159.               <menulist id="fLeftOption" oncommand="customize(this)" tabindex="3">
  160.                 <menupopup>
  161.                   <menuitem value="0" label="&hfBlank;"/>
  162.                   <menuitem value="1" label="&hfTitle;"/>
  163.                   <menuitem value="2" label="&hfURL;"/>
  164.                   <menuitem value="3" label="&hfDateAndTime;"/>
  165.                   <menuitem value="4" label="&hfPage;"/>
  166.                   <menuitem value="5" label="&hfPageAndTotal;"/>
  167.                   <menuitem value="6" label="&hfCustom;"/>
  168.                 </menupopup>
  169.               </menulist>
  170.             </vbox>
  171.             <vbox>
  172.               <menulist id="hCenterOption" oncommand="customize(this)" tabindex="2">
  173.                 <menupopup>
  174.                   <menuitem value="0" label="&hfBlank;"/>
  175.                   <menuitem value="1" label="&hfTitle;"/>
  176.                   <menuitem value="2" label="&hfURL;"/>
  177.                   <menuitem value="3" label="&hfDateAndTime;"/>
  178.                   <menuitem value="4" label="&hfPage;"/>
  179.                   <menuitem value="5" label="&hfPageAndTotal;"/>
  180.                   <menuitem value="6" label="&hfCustom;"/>
  181.                 </menupopup>
  182.               </menulist>
  183.               <vbox align="center">
  184.                 <label value="&hfCenter.label;"/>
  185.               </vbox>
  186.               <menulist id="fCenterOption" oncommand="customize(this)" tabindex="3">
  187.                 <menupopup>
  188.                   <menuitem value="0" label="&hfBlank;"/>
  189.                   <menuitem value="1" label="&hfTitle;"/>
  190.                   <menuitem value="2" label="&hfURL;"/>
  191.                   <menuitem value="3" label="&hfDateAndTime;"/>
  192.                   <menuitem value="4" label="&hfPage;"/>
  193.                   <menuitem value="5" label="&hfPageAndTotal;"/>
  194.                   <menuitem value="6" label="&hfCustom;"/>
  195.                 </menupopup>
  196.               </menulist>
  197.             </vbox>
  198.             <vbox>
  199.               <menulist id="hRightOption" oncommand="customize(this)" tabindex="2">
  200.                 <menupopup>
  201.                   <menuitem value="0" label="&hfBlank;"/>
  202.                   <menuitem value="1" label="&hfTitle;"/>
  203.                   <menuitem value="2" label="&hfURL;"/>
  204.                   <menuitem value="3" label="&hfDateAndTime;"/>
  205.                   <menuitem value="4" label="&hfPage;"/>
  206.                   <menuitem value="5" label="&hfPageAndTotal;"/>
  207.                   <menuitem value="6" label="&hfCustom;"/>
  208.                 </menupopup>
  209.               </menulist>
  210.               <vbox align="center">
  211.                 <label value="&hfRight.label;"/>
  212.               </vbox>
  213.               <menulist id="fRightOption" oncommand="customize(this)" tabindex="3">
  214.                 <menupopup>
  215.                   <menuitem value="0" label="&hfBlank;"/>
  216.                   <menuitem value="1" label="&hfTitle;"/>
  217.                   <menuitem value="2" label="&hfURL;"/>
  218.                   <menuitem value="3" label="&hfDateAndTime;"/>
  219.                   <menuitem value="4" label="&hfPage;"/>
  220.                   <menuitem value="5" label="&hfPageAndTotal;"/>
  221.                   <menuitem value="6" label="&hfCustom;"/>
  222.                 </menupopup>
  223.               </menulist>
  224.             </vbox>
  225.           </hbox>
  226.         </groupbox>
  227.       </tabpanel>
  228.     </tabpanels>
  229.   </tabbox>
  230. </dialog>
  231.  
  232.