Mozilla.com

  1. MDC
  2. Main Page
  3. NPPrint
Table of contents
  1. 1. Summary
  2. 2. Syntax
  3. 3. Fields
  4. 4. Description
  5. 5. See Also

NPPrint

Table of contents
  1. 1. Summary
  2. 2. Syntax
  3. 3. Fields
  4. 4. Description
  5. 5. See Also

« Gecko Plugin API Reference « Plug-in Side Plug-in API

Summary

Contains information the plug-in needs to print itself in full-page or embedded mode.

Syntax

typedef struct _NPPrint
{
    uint16 mode;   /* NP_FULL or NP_EMBED */
    union
    {
        NPFullPrint fullPrint;   /* if mode is NP_FULL */
        NPEmbedPrint embedPrint; /* if mode is NP_EMBED */
    } print;
} NPPrint;

Fields

The data structure has the following fields:

mode
Determines whether plug-in prints in full-page or embedded mode. Values:
  • NP_FULL: Pointer to NPFullPrint structure. Plug-in can optionally print in full-page mode. The fullPrint field of the union is valid. See NPFullPrint and NPP_Print.
  • NP_EMBED: Pointer to NPEmbedPrint structure. Plug-in should print in embedded mode. The embedPrint field of the union is valid. See NPEmbedPrint.

Description

The NPP_Print function passes a pointer to an NPPrint object (previously allocated by the browser) to the plug-in. The pointer and fields within the NPPrint structure are valid only for the duration of the NPP_Print call.

Page last modified 20:58, 25 Apr 2006 by Nickolay

Tags:

Files (0)