Mozilla.com

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

NPEmbedPrint

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

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

Summary

Substructure of NPPrint that contains platform-specific information used during embedded mode printing.

Syntax

typedef struct _NPEmbedPrint
{
    NPWindow window;
    void*    platformPrint;  /* Platform-specific */
} NPEmbedPrint;

Fields

The data structure has the following fields:

window
The NPWindow the plug-in should use for printing.
platformPrint
Additional platform-specific printing information.

Description

The NPP_Print function passes a pointer to an NPPrint object (previously allocated by the browser) to the plug-in. The NPEmbedPrint structure is used when the mode field of NPPrint is set to NP_EMBED.

Unix

The plug-in location and size in the NPWindow are in page coordinates (720/ inch), but the printer requires point coordinates (72/inch).

Page last modified 17:48, 25 Apr 2006 by Pmash

Tags:

Files (0)