2001-11-30 01:41:59 +03:00
|
|
|
<?xml version="1.0"?> <!-- -*- Mode: HTML -*- -->
|
|
|
|
|
|
|
|
<!--
|
|
|
|
The contents of this file are subject to the Netscape 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/NPL/
|
|
|
|
|
|
|
|
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 Netscape are
|
|
|
|
Copyright (C) 1998-1999 Netscape Communications Corporation. All
|
|
|
|
Rights Reserved.
|
|
|
|
|
|
|
|
Contributor(s):
|
|
|
|
Masaki Katakai <katakai@japan.sun.com>
|
|
|
|
Dan Rosen <dr@netscape.com>
|
|
|
|
Jessica Blanco <jblanco@us.ibm.com>
|
|
|
|
Asko Tontti <atontti@cc.hut.fi>
|
2002-02-20 01:47:35 +03:00
|
|
|
Roland Mainz <roland.mainz@informatik.med.uni-giessen.de>
|
2001-11-30 01:41:59 +03:00
|
|
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
<?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
|
|
|
|
<!DOCTYPE window SYSTEM "chrome://global/locale/printdialog.dtd">
|
|
|
|
|
|
|
|
<dialog xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
|
|
|
onload="onLoad();"
|
|
|
|
ondialogaccept="return onAccept();"
|
2002-05-07 16:03:37 +04:00
|
|
|
oncancel="return onCancel();"
|
2001-11-30 01:41:59 +03:00
|
|
|
title="&printDialog.title;"
|
|
|
|
persist="screenX screenY"
|
|
|
|
screenX="24" screenY="24">
|
|
|
|
|
|
|
|
<script type="application/x-javascript" src="chrome://global/content/printdialog.js"/>
|
|
|
|
<script type="application/x-javascript" src="chrome://global/content/strres.js"/>
|
|
|
|
|
|
|
|
<groupbox>
|
|
|
|
<caption label="&printer.label;"/>
|
|
|
|
|
|
|
|
<grid>
|
|
|
|
<columns>
|
|
|
|
<column/>
|
|
|
|
<column flex="1"/>
|
|
|
|
<column/>
|
|
|
|
</columns>
|
|
|
|
|
|
|
|
<rows>
|
|
|
|
<row align="center">
|
2002-01-01 15:58:53 +03:00
|
|
|
<hbox align="center" pack="end">
|
|
|
|
<label value="&printTo.label;"/>
|
|
|
|
</hbox>
|
|
|
|
<radiogroup id="destGroup" orient="horizontal">
|
|
|
|
<radio id="printerRadio" label="&printerRadio.label;" oncommand="if (!this.disabled) doEnablePrintToFile(false);"/>
|
|
|
|
<radio id="fileRadio" label="&fileRadio.label;" oncommand="if (!this.disabled) doEnablePrintToFile(true);"/>
|
|
|
|
</radiogroup>
|
|
|
|
</row>
|
|
|
|
<row align="center">
|
|
|
|
<hbox align="center" pack="end">
|
|
|
|
<label id="printerLabel" value="&printerInput.label;"/>
|
|
|
|
</hbox>
|
2002-02-20 01:47:35 +03:00
|
|
|
<menulist id="printerList" flex="1" oncommand="setPrinterDefaultsForSelectedPrinter();">
|
2001-11-30 01:41:59 +03:00
|
|
|
<menupopup/>
|
|
|
|
</menulist>
|
|
|
|
<button id="properties" label="&propertiesButton.label;" oncommand="displayPropertiesDialog();"/>
|
|
|
|
</row>
|
|
|
|
<row align="center">
|
2002-01-01 15:58:53 +03:00
|
|
|
<hbox align="center" pack="end">
|
|
|
|
<label id="fileLabel" control="fileInput" value="&fileInput.label;"/>
|
|
|
|
</hbox>
|
2001-11-30 01:41:59 +03:00
|
|
|
<textbox id="fileInput" flex="1" onblur="stripTrailingWhitespace(this)"/>
|
|
|
|
<button id="chooseFile" label="&chooseButton.label;" oncommand="onChooseFile()"/>
|
|
|
|
</row>
|
|
|
|
</rows>
|
|
|
|
|
|
|
|
</grid>
|
|
|
|
</groupbox>
|
|
|
|
|
|
|
|
<hbox>
|
|
|
|
<groupbox flex="1">
|
|
|
|
<caption label="&printrangeGroup.label;"/>
|
|
|
|
|
|
|
|
<radiogroup id="printrangeGroup">
|
2002-01-01 15:58:53 +03:00
|
|
|
<radio id="allpagesRadio" label="&allpagesRadio.label;" oncommand="doPrintRange(0)"/>
|
2001-11-30 01:41:59 +03:00
|
|
|
<hbox align="center">
|
2002-01-01 15:58:53 +03:00
|
|
|
<radio id="rangeRadio" label="&rangeRadio.label;" oncommand="doPrintRange(1)"/>
|
2001-11-30 01:41:59 +03:00
|
|
|
<label id="frompageLabel" control="frompageInput" value="&frompageInput.label;" />
|
2002-01-01 15:58:53 +03:00
|
|
|
<textbox id="frompageInput" style="width:5em;" onkeyup="checkInteger(this)"/>
|
2001-11-30 01:41:59 +03:00
|
|
|
<label id="topageLabel" control="topageInput" value="&topageInput.label;" />
|
2002-01-01 15:58:53 +03:00
|
|
|
<textbox id="topageInput" style="width:5em;" onkeyup="checkInteger(this)"/>
|
2001-11-30 01:41:59 +03:00
|
|
|
</hbox>
|
2002-02-20 01:47:35 +03:00
|
|
|
<radio id="selectionRadio" label="&selectionRadio.label;" oncommand="doPrintRange(2)"/>
|
2001-11-30 01:41:59 +03:00
|
|
|
</radiogroup>
|
|
|
|
</groupbox>
|
|
|
|
|
|
|
|
<groupbox flex="1">
|
|
|
|
<caption label="&copies.label;"/>
|
|
|
|
<hbox align="center">
|
|
|
|
<label control="numCopiesInput" value="&numCopies.label;"/>
|
2002-01-01 15:58:53 +03:00
|
|
|
<textbox id="numCopiesInput" style="width:5em;" onkeyup="checkInteger(this)"/>
|
2001-11-30 01:41:59 +03:00
|
|
|
</hbox>
|
|
|
|
</groupbox>
|
|
|
|
</hbox>
|
|
|
|
|
|
|
|
<groupbox flex="1">
|
|
|
|
<caption label="&printframeGroup.label;" id="printframeGroupLabel"/>
|
|
|
|
<radiogroup id="printframeGroup">
|
|
|
|
<radio id="aslaidoutRadio" label="&aslaidoutRadio.label;" />
|
|
|
|
<radio id="selectedframeRadio" label="&selectedframeRadio.label;" />
|
|
|
|
<radio id="eachframesepRadio" label="&eachframesepRadio.label;" />
|
|
|
|
</radiogroup>
|
|
|
|
</groupbox>
|
|
|
|
|
|
|
|
<!-- used to store titles and labels -->
|
|
|
|
<data style="display:none;" id="printButton" label="&printButton.label;"/>
|
|
|
|
<data style="display:none;" id="fpDialog" label="&fpDialog.title;"/>
|
|
|
|
|
|
|
|
</dialog>
|
|
|
|
|