зеркало из https://github.com/mozilla/pjs.git
- fix two js warnings in printPreviewBindings.xml (redeclaration of var ifreq and total)
- remove useless class toolbarbutton-icon - rename class last-arrow to left-arrow and next-arrow to right-arrow
This commit is contained in:
Родитель
f7beb63cc6
Коммит
1616f2f4be
|
@ -59,9 +59,9 @@
|
|||
<xul:vbox align="center" pack="center">
|
||||
<xul:label value="&page.label;"/>
|
||||
</xul:vbox>
|
||||
<xul:toolbarbutton class="toolbarbutton-icon home-arrow"
|
||||
<xul:toolbarbutton class="home-arrow"
|
||||
oncommand="parentNode.navigate(0, 0, 'home');"/>
|
||||
<xul:toolbarbutton class="toolbarbutton-icon last-arrow"
|
||||
<xul:toolbarbutton class="left-arrow"
|
||||
oncommand="parentNode.navigate(-1, 0, 0);"/>
|
||||
<xul:hbox align="center" pack="center">
|
||||
<xul:textbox size="3" value="1" lastvalid="1"
|
||||
|
@ -70,9 +70,9 @@
|
|||
<xul:label value="&of.label;"/>
|
||||
<xul:label value="1"/>
|
||||
</xul:hbox>
|
||||
<xul:toolbarbutton class="toolbarbutton-icon next-arrow"
|
||||
<xul:toolbarbutton class="right-arrow"
|
||||
oncommand="parentNode.navigate(1, 0, 0);"/>
|
||||
<xul:toolbarbutton class="toolbarbutton-icon end-arrow"
|
||||
<xul:toolbarbutton class="end-arrow"
|
||||
oncommand="parentNode.navigate(0, 0, 'end');"/>
|
||||
|
||||
<xul:toolbarseparator class="toolbarseparator-primary"/>
|
||||
|
@ -243,6 +243,7 @@
|
|||
|
||||
var print = this._getWebBrowserPrint();
|
||||
var validInput = false;
|
||||
var total;
|
||||
|
||||
// we use only one of aHomeOrEnd, aDirection, or aPageNum
|
||||
if (aHomeOrEnd)
|
||||
|
@ -266,7 +267,7 @@
|
|||
{
|
||||
var textBoxStr = this.mPageTextBox.value;
|
||||
var newPageNum = parseInt(textBoxStr) + aDirection;
|
||||
var total = print.printPreviewNumPages;
|
||||
total = print.printPreviewNumPages;
|
||||
|
||||
// bounds check potentially user-entered number
|
||||
if (newPageNum > 0 && newPageNum <= total)
|
||||
|
@ -279,7 +280,7 @@
|
|||
}
|
||||
else
|
||||
{
|
||||
var total = print.printPreviewNumPages;
|
||||
total = print.printPreviewNumPages;
|
||||
|
||||
// bounds check potentially user-entered number
|
||||
if (aPageNum > 0 && aPageNum <= total)
|
||||
|
@ -388,7 +389,7 @@
|
|||
var webBrowserPrint;
|
||||
var domWin;
|
||||
try {
|
||||
var ifreq = _content.QueryInterface(Components.interfaces.nsIInterfaceRequestor);
|
||||
ifreq = _content.QueryInterface(Components.interfaces.nsIInterfaceRequestor);
|
||||
domWin = ifreq.QueryInterface(Components.interfaces.nsIDOMWindow);
|
||||
} catch (e) {
|
||||
// Pressing cancel is expressed as an NS_ERROR_ABORT return value,
|
||||
|
|
|
@ -1,86 +0,0 @@
|
|||
# ***** 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 the Mozilla Print Preview Toolbar.
|
||||
#
|
||||
# The Initial Developer of the Original Code is
|
||||
# Netscape Communications Corp.
|
||||
# Portions created by the Initial Developer are Copyright (C) 2002
|
||||
# the Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
# Samir Gehani <sgehani@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 ***** */
|
||||
|
||||
/* ..... page navigation ..... */
|
||||
|
||||
.home-arrow {
|
||||
list-style-image: url("chrome://global/skin/arrow/arrow-lft-sharp-end.gif");
|
||||
}
|
||||
|
||||
.end-arrow {
|
||||
list-style-image: url("chrome://global/skin/arrow/arrow-rit-sharp-end.gif");
|
||||
}
|
||||
|
||||
.last-arrow {
|
||||
list-style-image: url("chrome://global/skin/arrow/arrow-lft-sharp.gif");
|
||||
}
|
||||
|
||||
.next-arrow {
|
||||
list-style-image: url("chrome://global/skin/arrow/arrow-rit-sharp.gif");
|
||||
}
|
||||
|
||||
/* ...... scale in/decrement ..... */
|
||||
|
||||
.up-arrow {
|
||||
list-style-image: url("chrome://global/skin/arrow/arrow-up-sharp.gif");
|
||||
}
|
||||
|
||||
.down-arrow {
|
||||
list-style-image: url("chrome://global/skin/arrow/arrow-dn-sharp.gif");
|
||||
}
|
||||
|
||||
|
||||
/* ..... orientation ..... */
|
||||
|
||||
.toolbar-portrait-page {
|
||||
list-style-image: url("chrome://global/skin/Portrait-small.png");
|
||||
}
|
||||
|
||||
.toolbar-landscape-page {
|
||||
list-style-image: url("chrome://global/skin/Landscape-small.png");
|
||||
}
|
||||
|
||||
/* ::::: page setup dialog ::::: */
|
||||
|
||||
.portrait-page {
|
||||
list-style-image: url("chrome://global/skin/Portrait.png");
|
||||
}
|
||||
|
||||
.landscape-page {
|
||||
list-style-image: url("chrome://global/skin/Landscape.png");
|
||||
}
|
Загрузка…
Ссылка в новой задаче