You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.
nsIWebBrowserPrint
This interface controls the printing of an embedded Gecko WebBrowser window/document. It is scriptable.
Prints the specified DOM window.
Syntax:
void nsIWebBrowserPrint::print( in nsIPrintSettings aThePrintSettings, in nsIWebProgressListener aWPListener)
Parameters:
nsresult :
Print Previews the specified DOM window.
Syntax:
void nsIWebBrowserPrint::printPreview( in nsIPrintSettings aThePrintSettings, in nsIDOMWindow aChildDOMWin, in nsIWebProgressListener aWPListener)
Parameters:
aThePrintSettings:
Printer settings for the print preview. If it isnull
the global PS will be used.
nsresult :
Navigates through the print preview of the specified DOM window.
Syntax:
void nsIWebBrowserPrint::printPreviewNavigate( in short aNavType, in long aPageNum)
Parameters:
nsresult :
Syntax:
void nsIWebBrowserPrint::cancel()
Parameters:
nsresult :
Returns an array of the names (Title or URL) of all documents and sub-documents. If the attribute
isFramesetDocument
isFALSE
, this will return a single item. If the attribute is set toTRUE,
it may return any number of items.Syntax:
void nsIWebBrowserPrint::enumerateDocumentNames( out PRUint32 aCount, [retval, array, size_is(aCount)] out wstring aResult)
Parameters:
nsresult :
Exits print preview mode and returns browser window to galley mode.
Syntax:
void nsIWebBrowserPrint::exitPrintPreview()
Parameters:
nsresult :
Gets a "global" PrintSettings object . If one doesn't exist, it is created. This is the object that is returned each time after that. The settings are initialized from the default printer.
Gets a pointer to the PrintSettings object that that was passed into either "print" or "print preview". This enables any consumers of the interface to have access to the "current" PrintSetting at later points in the execution.
Gets a pointer to the current child DOMWindow that is being print previewed. (FrameSet Frames) Returns
null
if parent document is not a frameset or the entire FrameSet document is being print previewed. This enables any consumers of the interface to have access to the "current" child DOMWindow at later points in the execution.
TRUE
if in Print mode,FALSE
otherwise.
TRUE
if in PrintPreview mode,FALSE
otherwise.
TRUE
if the current document is a frameset document,FALSE
otherwise.
TRUE
if the current document is a frameset document and is selected,FALSE
otherwise.
TRUE
if an IFrame is selected,FALSE
otherwise.
TRUE
if a "range" is selected,FALSE
otherwise.
Written by:Ellen Evans | Comments, questions, complaints?
Bug 143387 |