Bug 127699 Disable UI for zoom, print, and landscape/postscript on Unix

patch by Roland.Mainz@informatik.med.uni-giessen.de r=bzbarsky sr=attinasi a=asa
This commit is contained in:
timeless%mac.com 2006-07-29 05:34:57 +00:00
Родитель 1671165b52
Коммит 5c8692ef0d
1 изменённых файлов: 10 добавлений и 2 удалений

Просмотреть файл

@ -148,9 +148,17 @@
this.mScaleTextBox.value = normalizedScale;
// XXX TEMPORARY
// XXX Until bug 119491 is fixed we will hide the ``Print...'' button
// XXX Until bug 119491 ("Cleanup global vars in PostScript and Xprint
// modules") is fixed we will hide the ``Print...'' button
// XXX the scaling widgets, and the orientation widgets on unices.
if (navigator.appVersion.indexOf("X11") != -1)
var canPrint = true;
try
{
var prefs = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch);
canPrint = prefs.getBoolPref("print.whileInPrintPreview");
} catch(e) {}
if (!canPrint)
{
// hide print button
this.mPrintButton.setAttribute("hidden", "true");