dom/src/base/nsGlobalWindow.cpp,1.464 | . | Disk File |
Skipping to line 121 | . | |
#include "nsPIWindowWatcher.h" |
. |
#include "nsPIWindowWatcher.h" |
#include "nsIContentViewer.h" |
. |
#include "nsIContentViewer.h" |
#include "nsISupportsPrimitives.h" |
. |
#include "nsISupportsPrimitives.h" |
#include "nsDOMClassInfo.h" |
. |
#include "nsDOMClassInfo.h" |
#include "nsIJSNativeInitializer.h" |
. |
#include "nsIJSNativeInitializer.h" |
  |
. |
#include "nsIPrintSettings.h" |
|
. |
|
#include "nsWindowRoot.h" |
. |
#include "nsWindowRoot.h" |
|
. |
|
// XXX An unfortunate dependency exists here (two XUL files). |
. |
// XXX An unfortunate dependency exists here (two XUL files). |
#include "nsIDOMXULDocument.h" |
. |
#include "nsIDOMXULDocument.h" |
Skipping to line 1959 | . | |
{ |
. |
{ |
nsCOMPtr<nsIWebNavigation> webNav(do_QueryInterface(mDocShell)); |
. |
nsCOMPtr<nsIWebNavigation> webNav(do_QueryInterface(mDocShell)); |
return webNav->Stop(nsIWebNavigation::STOP_ALL); |
. |
return webNav->Stop(nsIWebNavigation::STOP_ALL); |
} |
. |
} |
|
. |
|
nsresult GlobalWindowImpl::DoPrint(PRBool aDoPreview) |
. |
nsresult GlobalWindowImpl::DoPrint(nsIPrintSettings* aPrintSettings, |
  |
. |
PRBool aDoPreview, |
  |
. |
PRBool aCreateListener) |
{ |
. |
{ |
if (mDocShell) { |
. |
if (mDocShell) { |
nsCOMPtr<nsIContentViewer> viewer; |
. |
nsCOMPtr<nsIContentViewer> viewer; |
mDocShell->GetContentViewer(getter_AddRefs(viewer)); |
. |
mDocShell->GetContentViewer(getter_AddRefs(viewer)); |
if (viewer) { |
. |
if (viewer) { |
Skipping to line 1973 | . | |
if (viewerFile) { |
. |
if (viewerFile) { |
if (aDoPreview) { |
. |
if (aDoPreview) { |
return viewerFile->PrintPreview();
|
. |
return viewerFile->PrintPreview(aPrintSettings, nsnull, aCreateListe
ner); |
} else { |
. |
} else { |
return viewerFile->Print(PR_FALSE, nsnull);
|
. |
return viewerFile->Print(PR_FALSE, aPrintSettings, nsnull, aCreateLi
stener); |
} |
. |
} |
} |
. |
} |
} |
. |
} |
} |
. |
} |
return NS_OK; |
. |
return NS_OK; |
Skipping to line 1984 | . | |
|
. |
|
NS_IMETHODIMP GlobalWindowImpl::Print()
|
. |
NS_IMETHODIMP GlobalWindowImpl::Print(nsIPrintSettings* aPrintSettings, PRBool
aCreateListener) |
{ |
. |
{ |
return DoPrint(PR_FALSE); |
. |
return DoPrint(aPrintSettings, PR_FALSE, aCreateListener); |
} |
. |
} |
|
. |
|
NS_IMETHODIMP GlobalWindowImpl::PrintPreview()
|
. |
NS_IMETHODIMP GlobalWindowImpl::PrintPreview(nsIPrintSettings* aPrintSettings,
PRBool aCreateListener) |
{ |
. |
{ |
return DoPrint(PR_TRUE); |
. |
return DoPrint(aPrintSettings, PR_TRUE, aCreateListener); |
} |
. |
} |
|
. |
|
NS_IMETHODIMP GlobalWindowImpl::MoveTo(PRInt32 aXPos, PRInt32 aYPos) |
. |
NS_IMETHODIMP GlobalWindowImpl::MoveTo(PRInt32 aXPos, PRInt32 aYPos) |
{ |
. |
{ |
nsCOMPtr<nsIBaseWindow> treeOwnerAsWin; |
. |
nsCOMPtr<nsIBaseWindow> treeOwnerAsWin; |