From d95f91b9c51aa417455e5655375d062319b0caf2 Mon Sep 17 00:00:00 2001 From: "sfraser%netscape.com" Date: Thu, 14 Sep 2006 06:00:00 +0000 Subject: [PATCH] Fix bug 42817 -- overlay a Page Setup menu item for Mac, which displays the page setup dialog. r=jag/hwaara, sr=sspitzer/blake --- suite/browser/navigator.js | 9 +++++++-- suite/browser/navigatorOverlay.xul | 3 ++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/suite/browser/navigator.js b/suite/browser/navigator.js index 9fffd24d070..20582bc0b48 100644 --- a/suite/browser/navigator.js +++ b/suite/browser/navigator.js @@ -852,13 +852,18 @@ function BrowserPrintPreview() // implement me } +function BrowserPrintSetup() +{ + goPageSetup(); // from utilityOverlay.js +} + function BrowserPrint() { // using _content.print() until printing becomes scriptable on docShell try { _content.print(); } catch (e) { - // Pressing cancel is expressed as an NS_ERROR_FAILURE return value, + // Pressing cancel is expressed as an NS_ERROR_ABORT return value, // causing an exception to be thrown which we catch here. // Unfortunately this will also consume helpful failures, so add a // dump(e); // if you need to debug @@ -1065,7 +1070,7 @@ function hiddenWindowStartup() window.focus(); // Disable menus which are not appropriate - var disabledItems = ['cmd_close', 'Browser:SendPage', 'Browser:EditPage', /*'Browser:PrintSetup', 'Browser:PrintPreview',*/ + var disabledItems = ['cmd_close', 'Browser:SendPage', 'Browser:EditPage', 'Browser:PrintSetup', /*'Browser:PrintPreview',*/ 'Browser:Print', 'canGoBack', 'canGoForward', 'Browser:Home', 'Browser:AddBookmark', 'cmd_undo', 'cmd_redo', 'cmd_cut', 'cmd_copy','cmd_paste', 'cmd_delete', 'cmd_selectAll']; for (id in disabledItems) { diff --git a/suite/browser/navigatorOverlay.xul b/suite/browser/navigatorOverlay.xul index 35a9a902a9e..f339977f461 100644 --- a/suite/browser/navigatorOverlay.xul +++ b/suite/browser/navigatorOverlay.xul @@ -106,12 +106,12 @@ + @@ -187,6 +187,7 @@ +