Interface nsIPrintDialogServiceType

Service for opening native print dialogs provided by the operating system. (The widget code may customize the dialog.)

Hierarchy

Methods

  • Increases the reference count for this interface. The associated instance will not be deleted unless the reference count is returned to zero.

    Returns

    The resulting reference count.

    Returns number

  • Parameters

    • aIID: object
    • Optional aInstancePtr: object

    Returns any

  • A run time mechanism for interface discovery.

    Returns

    NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.

    aInstancePtr must not be null.

    Parameters

    • aIID: object

      [in] A requested interface IID

    • aInstancePtr: object

      [out] A pointer to an interface pointer to receive the result.

    Returns void

  • Decreases the reference count for this interface. Generally, if the reference count returns to zero, the associated instance is deleted.

    Returns

    The resulting reference count.

    Returns number

  • Initialize the service.

    Returns void

  • Show the page setup dialog. Note that there is no way to tell whether the user clicked OK or Cancel on the dialog.

    Parameters

    • aParent: mozIDOMWindowProxy

      A DOM window the dialog will be parented to.

    • aPrintSettings: nsIPrintSettings

    Returns void

  • Show the print dialog.

    Returns

    NS_OK if the print operation should proceed

    Returns

    NS_ERROR_ABORT if the user indicated not to proceed

    Returns

    a suitable error for failures to show the print dialog.

    Parameters

    • aParent: mozIDOMWindowProxy

      A DOM window the dialog will be parented to.

    • aHaveSelection: boolean

      A boolean indicating whether the document to be printed has some selected text, which is used to determine whether the "Print selection only" radio button is enabled in the print settings dialog.

    • aPrintSettings: nsIPrintSettings

    Returns void

Generated using TypeDoc