Struct xpcom::interfaces::nsIWebBrowserPrint [] [src]

#[repr(C)]
pub struct nsIWebBrowserPrint { /* fields omitted */ }

interface nsIWebBrowserPrint : nsISupports

/**
 * nsIWebBrowserPrint corresponds to the main interface
 * for printing an embedded Gecko web browser window/document
 */

Methods

impl nsIWebBrowserPrint
[src]

[src]

Cast this nsIWebBrowserPrint to one of its base interfaces.

impl nsIWebBrowserPrint
[src]

PRINTPREVIEW_GOTO_PAGENUM: i64 = 0
/**
   * PrintPreview Navigation Constants
   */

PRINTPREVIEW_PREV_PAGE: i64 = 1

PRINTPREVIEW_NEXT_PAGE: i64 = 2

PRINTPREVIEW_HOME: i64 = 3

PRINTPREVIEW_END: i64 = 4

[src]

/**
   * 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
   */

readonly attribute nsIPrintSettings globalPrintSettings;

[src]

/**
   * 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
   */

readonly attribute nsIPrintSettings currentPrintSettings;

[src]

/**
   * 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
   */

readonly attribute mozIDOMWindowProxy currentChildDOMWindow;

[src]

/**
   * Returns whether it is in Print mode
   */

readonly attribute boolean doingPrint;

[src]

/**
   * Returns whether it is in Print Preview mode
   */

readonly attribute boolean doingPrintPreview;

[src]

/**
   * This returns whether the current document is a frameset document
   */

readonly attribute boolean isFramesetDocument;

[src]

/**
   * This returns whether the current document is a frameset document
   */

readonly attribute boolean isFramesetFrameSelected;

[src]

/**
   * This returns whether there is an IFrame selected
   */

readonly attribute boolean isIFrameSelected;

[src]

/**
   * This returns whether there is a "range" selection
   */

readonly attribute boolean isRangeSelection;

[src]

/**
   * This returns the total number of pages for the Print Preview
   */

readonly attribute long printPreviewNumPages;

[src]

/**
   * Print the specified DOM window
   *
   * @param aThePrintSettings - Printer Settings for the print job, if aThePrintSettings is null
   *                            then the global PS will be used.
   * @param aWPListener - is updated during the print
   * @return void
   */

void print (in nsIPrintSettings aThePrintSettings, in nsIWebProgressListener aWPListener);

[src]

/**
   * Print Preview the specified DOM window
   *
   * @param aThePrintSettings - Printer Settings for the print preview, if aThePrintSettings is null
   *                            then the global PS will be used.
   * @param aChildDOMWin - DOM Window to be print previewed.
   * @param aWPListener - is updated during the printpreview
   * @return void
   */

void printPreview (in nsIPrintSettings aThePrintSettings, in mozIDOMWindowProxy aChildDOMWin, in nsIWebProgressListener aWPListener);

[src]

/**
   * Print Preview - Navigates within the window
   *
   * @param aNavType - navigation enum
   * @param aPageNum - page num to navigate to when aNavType = ePrintPreviewGoToPageNum
   * @return void
   */

void printPreviewNavigate (in short aNavType, in long aPageNum);

[src]

/**
   * Cancels the current print
   * @return void
   */

void cancel ();

[src]

/**
   * 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
   *
   * @param  aCount - returns number of printers returned
   * @param  aResult - returns array of names
   * @return void
   */

void enumerateDocumentNames (out uint32_t aCount, [array, size_is (aCount), retval] out wstring aResult);

[src]

/**
   * This exists PrintPreview mode and returns browser window to galley mode
   * @return void
   */

void exitPrintPreview ();

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIWebBrowserPrint
[src]

IID: nsIID = nsID(3383309549, 65521, 18801, [191, 186, 108, 37, 173, 112, 225, 230])

[src]

Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more

impl RefCounted for nsIWebBrowserPrint
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIWebBrowserPrint
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.