From 5f8de423f190bbb79a62f804151bc24824fa32d8 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 2 Feb 2018 04:16:08 -0500 Subject: Add m-esr52 at 52.6.0 --- .../printing/content/printPreviewBindings.xml | 415 +++++++++++++++++++++ 1 file changed, 415 insertions(+) create mode 100644 toolkit/components/printing/content/printPreviewBindings.xml (limited to 'toolkit/components/printing/content/printPreviewBindings.xml') diff --git a/toolkit/components/printing/content/printPreviewBindings.xml b/toolkit/components/printing/content/printPreviewBindings.xml new file mode 100644 index 000000000..182ecc199 --- /dev/null +++ b/toolkit/components/printing/content/printPreviewBindings.xml @@ -0,0 +1,415 @@ + + + + + + + +%printPreviewDTD; +]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + document.getAnonymousNodes(this)[0] + + + document.getAnonymousNodes(this)[5].childNodes[0] + + + document.getAnonymousNodes(this)[5].childNodes[2] + + + document.getAnonymousNodes(this)[9].firstChild + + + document.getAnonymousNodes(this)[10].firstChild + + + document.getAnonymousNodes(this)[12] + + + this.mOrientButtonsBox.childNodes[0] + + + this.mOrientButtonsBox.childNodes[1] + + + document.getAnonymousNodes(this)[14] + + + document.getAnonymousNodes(this)[15] + + + document.getAnonymousNodes(this)[17].firstChild + + + + + + + null + + + null + + + + + + document.getAnonymousElementByAttribute(this, "anonid", id); + let ltr = document.documentElement.matches(":root:-moz-locale-dir(ltr)"); + // Windows 7 doesn't support ⏮ and ⏭ by default, and fallback doesn't + // always work (bug 1343330). + let {AppConstants} = Components.utils.import("resource://gre/modules/AppConstants.jsm", {}); + let useCompatCharacters = AppConstants.isPlatformAndVersionAtMost("win", "6.1"); + let leftEnd = useCompatCharacters ? "⏪" : "⏮"; + let rightEnd = useCompatCharacters ? "⏩" : "⏭"; + $("navigateHome").label = ltr ? leftEnd : rightEnd; + $("navigatePrevious").label = ltr ? "◂" : "▸"; + $("navigateNext").label = ltr ? "▸" : "◂"; + $("navigateEnd").label = ltr ? rightEnd : leftEnd; + ]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + = 10) { + aValue /= 100.0; + } else { + if (this.mScaleCombobox.hasAttribute('lastValidInx')) { + this.mScaleCombobox.selectedIndex = this.mScaleCombobox.getAttribute('lastValidInx'); + } + return; + } + } + + this.setScaleCombobox(aValue); + this.mScaleCombobox.setAttribute('lastValidInx', this.mScaleCombobox.selectedIndex); + + if (settings.scaling != aValue || settings.shrinkToFit) + { + settings.shrinkToFit = false; + settings.scaling = aValue; + this.savePrintSettings(settings, settings.kInitSaveShrinkToFit | settings.kInitSaveScaling); + PrintUtils.printPreview(); + } + ]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3