From 00a683294294f81384be348b19afac545b599353 Mon Sep 17 00:00:00 2001 From: "chanial%noos.fr" Date: Wed, 29 Oct 2003 08:01:27 +0000 Subject: [PATCH] - Rewrite the way we handle print preview so that it can be used in any XUL app. This is achieved by adding a new "public" method to PrintUtils: PrintUtils.printPreview(enterPPCallback, exitPPCallback) where the optional callback functions are called just before entering and after exiting PP mode - disable all short keys in PP mode except ctrl-W and fix bug 178485 and bug 215277. Now clicking the close window icon actually closes the window. - global vars gPrintSettingsAreGlobal, gSavePrintSettings, gPrintSettings, gOldCloseHandler, gInPrintPreviewMode, gWebProgress are removed. - A lot of cleanup. git-svn-id: svn://10.0.0.236/trunk@148474 18797224-902f-48f8-a5cc-f745e15eee43 --- .../browser/base/content/browser-menubar.inc | 4 +- .../browser/base/content/browser-scripts.inc | 1 + mozilla/browser/base/content/browser-sets.inc | 10 +- mozilla/browser/base/content/browser.js | 265 +----------------- .../browser/base/content/utilityOverlay.js | 20 -- .../components/bookmarks/content/bookmarks.js | 12 + .../printing/content/printPreviewBindings.xml | 52 +--- .../printing/content/printPreviewProgress.js | 26 +- .../components/printing/content/printUtils.js | 146 +++++++++- 9 files changed, 192 insertions(+), 344 deletions(-) diff --git a/mozilla/browser/base/content/browser-menubar.inc b/mozilla/browser/base/content/browser-menubar.inc index c48259120d4..066b49a6f6b 100644 --- a/mozilla/browser/base/content/browser-menubar.inc +++ b/mozilla/browser/base/content/browser-menubar.inc @@ -19,8 +19,8 @@ #endif - - + + #ifndef XP_MACOSX diff --git a/mozilla/browser/base/content/browser-scripts.inc b/mozilla/browser/base/content/browser-scripts.inc index fd7d05fa676..c53c8232c58 100644 --- a/mozilla/browser/base/content/browser-scripts.inc +++ b/mozilla/browser/base/content/browser-scripts.inc @@ -1,6 +1,7 @@