nsIWebBrowserPrint corresponds to the main interface
for printing an embedded Gecko web browser window/document
Print the specified DOM window
aThePrintSettings | - Printer Settings for the print job, if aThePrintSettings is null then the global PS will be used. |
aWPListener | - is updated during the print |
void |
Print Preview the specified DOM window
aThePrintSettings | - Printer Settings for the print preview, if aThePrintSettings is null then the global PS will be used. |
aChildDOMWin | - DOM Window to be print previewed. |
aWPListener | - is updated during the printpreview |
void |
Print Preview - Navigates within the window
aNavType | - navigation enum |
aPageNum | - page num to navigate to when aNavType = ePrintPreviewGoToPageNum |
void |
Cancels the current print
void |
Returns an array of the names of all documents names (Title or URL)
and sub-documents. This will return a single item if the attr “isFramesetDocument” is false
and may return any number of items is “isFramesetDocument” is true
aCount | - returns number of printers returned |
aResult | - returns array of names |
void |
This exists PrintPreview mode and returns browser window to galley mode
void |
Returns a “global” PrintSettings object
Creates a new the first time, if one doesn’t exist.
Then returns the same object each time after that.
Initializes the globalPrintSettings from the default printer
Returns 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
Returns 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
Returns whether it is in Print mode
Returns whether it is in Print Preview mode
This returns whether the current document is a frameset document
This returns whether the current document is a frameset document
This returns whether there is an IFrame selected
This returns whether there is a “range” selection
This returns the total number of pages for the Print Preview
PrintPreview Navigation Constants