mirror of
https://github.com/rn10950/RetroZilla.git
synced 2024-11-10 01:40:17 +01:00
253 lines
11 KiB
Plaintext
253 lines
11 KiB
Plaintext
|
<?xml version="1.0"?> <!-- -*- Mode: HTML -*- -->
|
||
|
|
||
|
<!-- ***** BEGIN LICENSE BLOCK *****
|
||
|
Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||
|
|
||
|
The contents of this file are subject to the Mozilla Public License Version
|
||
|
1.1 (the "License"); you may not use this file except in compliance with
|
||
|
the License. You may obtain a copy of the License at
|
||
|
http://www.mozilla.org/MPL/
|
||
|
|
||
|
Software distributed under the License is distributed on an "AS IS" basis,
|
||
|
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||
|
for the specific language governing rights and limitations under the
|
||
|
License.
|
||
|
|
||
|
The Original Code is Mozilla Communicator client code, released
|
||
|
March 31, 1998.
|
||
|
|
||
|
The Initial Developer of the Original Code is
|
||
|
Netscape Communications Corporation.
|
||
|
Portions created by the Initial Developer are Copyright (C) 1998-1999
|
||
|
the Initial Developer. All Rights Reserved.
|
||
|
|
||
|
Contributor(s):
|
||
|
Masaki Katakai <katakai@japan.sun.com>
|
||
|
Dan Rosen <dr@netscape.com>
|
||
|
Roland Mainz <roland.mainz@informatik.med.uni-giessen.de>
|
||
|
Asko Tontti <atontti@cc.hut.fi>
|
||
|
Rod Spears <rods@netscape.com>
|
||
|
Bill Law <law@netscape.com>
|
||
|
|
||
|
Alternatively, the contents of this file may be used under the terms of
|
||
|
either the GNU General Public License Version 2 or later (the "GPL"), or
|
||
|
the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||
|
in which case the provisions of the GPL or the LGPL are applicable instead
|
||
|
of those above. If you wish to allow use of your version of this file only
|
||
|
under the terms of either the GPL or the LGPL, and not to allow others to
|
||
|
use your version of this file under the terms of the MPL, indicate your
|
||
|
decision by deleting the provisions above and replace them with the notice
|
||
|
and other provisions required by the GPL or the LGPL. If you do not delete
|
||
|
the provisions above, a recipient may use your version of this file under
|
||
|
the terms of any one of the MPL, the GPL or the LGPL.
|
||
|
|
||
|
***** END LICENSE BLOCK ***** -->
|
||
|
|
||
|
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
|
||
|
<?xml-stylesheet href="chrome://global/skin/printPageSetup.css" type="text/css"?>
|
||
|
<!DOCTYPE dialog SYSTEM "chrome://global/locale/printPageSetup.dtd">
|
||
|
|
||
|
<dialog xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||
|
onload="onLoad();"
|
||
|
ondialogaccept="return onAccept();"
|
||
|
oncancel="return onCancel();"
|
||
|
title="&printSetup.title;"
|
||
|
persist="screenX screenY"
|
||
|
screenX="24" screenY="24">
|
||
|
|
||
|
<script type="application/x-javascript" src="chrome://global/content/printPageSetup.js"/>
|
||
|
|
||
|
<!-- Localizable strings manipulated at run-time. -->
|
||
|
<data id="marginUnits.inches">&marginUnits.inches;</data>
|
||
|
<data id="marginUnits.metric">&marginUnits.metric;</data>
|
||
|
<data id="customPrompt.title">&customPrompt.title;</data>
|
||
|
<data id="customPrompt.prompt">&customPrompt.prompt;</data>
|
||
|
|
||
|
<tabbox>
|
||
|
<tabs>
|
||
|
<tab label="&basic.tab;"/>
|
||
|
<tab label="&advanced.tab;"/>
|
||
|
</tabs>
|
||
|
<tabpanels>
|
||
|
<tabpanel orient="vertical">
|
||
|
<groupbox>
|
||
|
<caption label="&formatGroup.label;"/>
|
||
|
<vbox>
|
||
|
<hbox align="center">
|
||
|
<label control="orientation" value="&orientation.label;"/>
|
||
|
<radiogroup id="orientation" oncommand="setOrientation()">
|
||
|
<hbox align="center">
|
||
|
<radio id="portrait" class="portrait-page" label="&portrait;"/>
|
||
|
<radio id="landscape" class="landscape-page" label="&landscape;"/>
|
||
|
</hbox>
|
||
|
</radiogroup>
|
||
|
</hbox>
|
||
|
<separator/>
|
||
|
<hbox align="center">
|
||
|
<label control="scalingInput" value="&scale.label;"/>
|
||
|
<textbox id="scalingInput" size="4" onfocus="this.select()" oninput="checkDouble(this)"/>
|
||
|
<label value="&scalePercent;"/>
|
||
|
<separator/>
|
||
|
<checkbox id="shrinkToFit" label="&shrinkToFit.label;"
|
||
|
oncommand="gDialog.scalingInput.disabled=gDialog.scalingLabel.disabled=this.checked"/>
|
||
|
</hbox>
|
||
|
</vbox>
|
||
|
</groupbox>
|
||
|
<groupbox>
|
||
|
<caption label="&optionsGroup.label;"/>
|
||
|
<checkbox id="printBG" label="&printBG.label;"/>
|
||
|
</groupbox>
|
||
|
</tabpanel>
|
||
|
<tabpanel orient="vertical">
|
||
|
<groupbox>
|
||
|
<caption id="marginGroup" label="&marginGroup.label;"/>
|
||
|
<vbox>
|
||
|
<hbox align="center">
|
||
|
<spacer flex="1"/>
|
||
|
<label control="topInput" value="&marginTop.label;"/>
|
||
|
<textbox id="topInput" size="5" oninput="changeMargin(this)" onfocus="this.select()"/>
|
||
|
<!-- This invisible label (with same content as the visible one!) is used
|
||
|
to ensure that the <textbox> is centered above the page. The same
|
||
|
technique is deployed for the bottom/left/right input fields, below. -->
|
||
|
<label value="&marginTop.label;" style="visibility: hidden;"/>
|
||
|
<spacer flex="1"/>
|
||
|
</hbox>
|
||
|
<hbox dir="ltr">
|
||
|
<spacer flex="1"/>
|
||
|
<vbox>
|
||
|
<spacer flex="1"/>
|
||
|
<label control="leftInput" value="&marginLeft.label;"/>
|
||
|
<textbox id="leftInput" size="5" oninput="changeMargin(this)" onfocus="this.select()"/>
|
||
|
<label value="&marginLeft.label;" style="visibility: hidden;"/>
|
||
|
<spacer flex="1"/>
|
||
|
</vbox>
|
||
|
<!-- The "margin page" draws a simulated printout page with dashed lines
|
||
|
for the margins. The height/width style attributes of the marginTop,
|
||
|
marginBottom, marginLeft, and marginRight elements are set by
|
||
|
the JS code dynamically based on the user input. -->
|
||
|
<vbox id="marginPage" style="height:29.7mm;">
|
||
|
<box id="marginTop" style="height:0.05in;"/>
|
||
|
<hbox flex="1" dir="ltr">
|
||
|
<box id="marginLeft" style="width:0.025in;"/>
|
||
|
<box style="border: 1px; border-style: dashed; border-color: gray;" flex="1"/>
|
||
|
<box id="marginRight" style="width:0.025in;"/>
|
||
|
</hbox>
|
||
|
<box id="marginBottom" style="height:0.05in;"/>
|
||
|
</vbox>
|
||
|
<vbox>
|
||
|
<spacer flex="1"/>
|
||
|
<label control="rightInput" value="&marginRight.label;"/>
|
||
|
<textbox id="rightInput" size="5" oninput="changeMargin(this)" onfocus="this.select()"/>
|
||
|
<label value="&marginRight.label;" style="visibility: hidden;"/>
|
||
|
<spacer flex="1"/>
|
||
|
</vbox>
|
||
|
<spacer flex="1"/>
|
||
|
</hbox>
|
||
|
<hbox align="center">
|
||
|
<spacer flex="1"/>
|
||
|
<label control="bottomInput" value="&marginBottom.label;"/>
|
||
|
<textbox id="bottomInput" size="5" oninput="changeMargin(this)" onfocus="this.select()"/>
|
||
|
<label value="&marginBottom.label;" style="visibility: hidden;"/>
|
||
|
<spacer flex="1"/>
|
||
|
</hbox>
|
||
|
</vbox>
|
||
|
</groupbox>
|
||
|
<groupbox>
|
||
|
<caption id="headersAndFooters" label="&headerFooter.label;"/>
|
||
|
<grid>
|
||
|
<columns>
|
||
|
<column/>
|
||
|
<column/>
|
||
|
<column/>
|
||
|
</columns>
|
||
|
<rows>
|
||
|
<row dir="ltr">
|
||
|
<menulist id="hLeftOption" oncommand="customize(this)" tooltiptext="&headerLeft.tip;">
|
||
|
<menupopup>
|
||
|
<menuitem value="0" label="&hfBlank;"/>
|
||
|
<menuitem value="1" label="&hfTitle;"/>
|
||
|
<menuitem value="2" label="&hfURL;"/>
|
||
|
<menuitem value="3" label="&hfDateAndTime;"/>
|
||
|
<menuitem value="4" label="&hfPage;"/>
|
||
|
<menuitem value="5" label="&hfPageAndTotal;"/>
|
||
|
<menuitem value="6" label="&hfCustom;"/>
|
||
|
</menupopup>
|
||
|
</menulist>
|
||
|
<menulist id="hCenterOption" oncommand="customize(this)" tooltiptext="&headerCenter.tip;">
|
||
|
<menupopup>
|
||
|
<menuitem value="0" label="&hfBlank;"/>
|
||
|
<menuitem value="1" label="&hfTitle;"/>
|
||
|
<menuitem value="2" label="&hfURL;"/>
|
||
|
<menuitem value="3" label="&hfDateAndTime;"/>
|
||
|
<menuitem value="4" label="&hfPage;"/>
|
||
|
<menuitem value="5" label="&hfPageAndTotal;"/>
|
||
|
<menuitem value="6" label="&hfCustom;"/>
|
||
|
</menupopup>
|
||
|
</menulist>
|
||
|
<menulist id="hRightOption" oncommand="customize(this)" tooltiptext="&headerRight.tip;">
|
||
|
<menupopup>
|
||
|
<menuitem value="0" label="&hfBlank;"/>
|
||
|
<menuitem value="1" label="&hfTitle;"/>
|
||
|
<menuitem value="2" label="&hfURL;"/>
|
||
|
<menuitem value="3" label="&hfDateAndTime;"/>
|
||
|
<menuitem value="4" label="&hfPage;"/>
|
||
|
<menuitem value="5" label="&hfPageAndTotal;"/>
|
||
|
<menuitem value="6" label="&hfCustom;"/>
|
||
|
</menupopup>
|
||
|
</menulist>
|
||
|
</row>
|
||
|
<row dir="ltr">
|
||
|
<vbox align="center">
|
||
|
<label value="&hfLeft.label;"/>
|
||
|
</vbox>
|
||
|
<vbox align="center">
|
||
|
<label value="&hfCenter.label;"/>
|
||
|
</vbox>
|
||
|
<vbox align="center">
|
||
|
<label value="&hfRight.label;"/>
|
||
|
</vbox>
|
||
|
</row>
|
||
|
<row dir="ltr">
|
||
|
<menulist id="fLeftOption" oncommand="customize(this)" tooltiptext="&footerLeft.tip;">
|
||
|
<menupopup>
|
||
|
<menuitem value="0" label="&hfBlank;"/>
|
||
|
<menuitem value="1" label="&hfTitle;"/>
|
||
|
<menuitem value="2" label="&hfURL;"/>
|
||
|
<menuitem value="3" label="&hfDateAndTime;"/>
|
||
|
<menuitem value="4" label="&hfPage;"/>
|
||
|
<menuitem value="5" label="&hfPageAndTotal;"/>
|
||
|
<menuitem value="6" label="&hfCustom;"/>
|
||
|
</menupopup>
|
||
|
</menulist>
|
||
|
<menulist id="fCenterOption" oncommand="customize(this)" tooltiptext="&footerCenter.tip;">
|
||
|
<menupopup>
|
||
|
<menuitem value="0" label="&hfBlank;"/>
|
||
|
<menuitem value="1" label="&hfTitle;"/>
|
||
|
<menuitem value="2" label="&hfURL;"/>
|
||
|
<menuitem value="3" label="&hfDateAndTime;"/>
|
||
|
<menuitem value="4" label="&hfPage;"/>
|
||
|
<menuitem value="5" label="&hfPageAndTotal;"/>
|
||
|
<menuitem value="6" label="&hfCustom;"/>
|
||
|
</menupopup>
|
||
|
</menulist>
|
||
|
<menulist id="fRightOption" oncommand="customize(this)" tooltiptext="&footerRight.tip;">
|
||
|
<menupopup>
|
||
|
<menuitem value="0" label="&hfBlank;"/>
|
||
|
<menuitem value="1" label="&hfTitle;"/>
|
||
|
<menuitem value="2" label="&hfURL;"/>
|
||
|
<menuitem value="3" label="&hfDateAndTime;"/>
|
||
|
<menuitem value="4" label="&hfPage;"/>
|
||
|
<menuitem value="5" label="&hfPageAndTotal;"/>
|
||
|
<menuitem value="6" label="&hfCustom;"/>
|
||
|
</menupopup>
|
||
|
</menulist>
|
||
|
</row>
|
||
|
</rows>
|
||
|
</grid>
|
||
|
</groupbox>
|
||
|
</tabpanel>
|
||
|
</tabpanels>
|
||
|
</tabbox>
|
||
|
</dialog>
|
||
|
|