174391: Make printing independant of editorshell. Fix from brade, r=me, sr=bryner, a=rjesup

This commit is contained in:
akkana%netscape.com 2002-10-15 20:31:47 +00:00
parent 40db78c9e3
commit 233e84b959
3 changed files with 5 additions and 9 deletions

View File

@ -2400,7 +2400,7 @@ var nsPrintCommand =
// In editor.js
FinishHTMLSource();
try {
window.editorShell.Print();
NSPrint();
} catch (e) {}
}
};

View File

@ -71,6 +71,7 @@
<script type="application/x-javascript" src="chrome://editor/content/publishprefs.js"/>
<script type="application/x-javascript" src="chrome://communicator/content/contentAreaDD.js"/>
<script type="application/x-javascript" src="chrome://communicator/content/contentAreaClick.js"/>
<script type="application/x-javascript" src="chrome://communicator/content/printing.js"/>
<script type="application/x-javascript" src="chrome://global/content/nsJSSupportsUtils.js"/>
<script type="application/x-javascript" src="chrome://global/content/nsJSComponentManager.js"/>
<script type="application/x-javascript" src="chrome://global/content/nsTransferable.js"/>

View File

@ -1143,14 +1143,9 @@ function DoCommandClose()
function DoCommandPrint()
{
if (gMsgCompose)
{
var editorShell = gMsgCompose.editorShell;
if (editorShell)
try {
editorShell.Print();
} catch(ex) {dump("#PRINT ERROR: " + ex + "\n");}
}
try {
NSPrint();
} catch(ex) {dump("#PRINT ERROR: " + ex + "\n");}
}
function DoCommandPreferences()