
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 isnullthe 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
isFramesetDocumentisFALSE, 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
nullif 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.
TRUEif in Print mode,FALSEotherwise.
TRUEif in PrintPreview mode,FALSEotherwise.
TRUEif the current document is a frameset document,FALSEotherwise.
TRUEif the current document is a frameset document and is selected,FALSEotherwise.
TRUEif an IFrame is selected,FALSEotherwise.
TRUEif a "range" is selected,FALSEotherwise.
| Written by:Ellen Evans | Comments, questions, complaints?
Bug 143387 |