fix #10895. Get printing to sort of work for mail/news. more bugs (and fixes) to come. this is far from complete.

This commit is contained in:
sspitzer%netscape.com 1999-08-25 23:58:31 +00:00
Родитель 1feb14b092
Коммит 40a867c7c5
3 изменённых файлов: 13 добавлений и 2 удалений

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

@ -49,9 +49,20 @@ NS_IMETHODIMP nsObserverBase::NotifyWebShell(
if(NS_FAILED(rv =docLoader->GetContentViewerContainer(aDocumentID, &cvc)))
goto done;
/* sspitzer: this was necessary to get printing of mail to work (sort of)
*/
NS_ASSERTION(cvc,"GetContentViewerContainer didn't fail, but cvc is null");
if (!cvc) {
goto done;
}
if(NS_FAILED( rv = cvc->QueryInterface(kIWebShellServicesIID, (void**)&wss)))
goto done;
if (!wss) {
goto done;
}
#ifndef DONT_INFORM_WEBSHELL
// ask the webshellservice to load the URL
if(NS_FAILED( rv = wss->SetRendering(PR_FALSE) ))

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

@ -49,7 +49,7 @@ Rights Reserved.
<!ENTITY getSelectedCmd.label ".Get Selected Messages">
<!ENTITY getFlaggedCmd.label ".Get Flagged Messages">
<!ENTITY printPreviewCmd.label ".Print Preview">
<!ENTITY printCmd.label ".Print">
<!ENTITY printCmd.label "Print">
<!ENTITY closeCmd.label "Close">
<!-- Edit Menu -->

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

@ -49,7 +49,7 @@ Rights Reserved.
<!ENTITY getSelectedCmd.label ".Get Selected Messages">
<!ENTITY getFlaggedCmd.label ".Get Flagged Messages">
<!ENTITY printPreviewCmd.label ".Print Preview">
<!ENTITY printCmd.label ".Print">
<!ENTITY printCmd.label "Print">
<!ENTITY closeCmd.label "Close">
<!-- Edit Menu -->