MDN may have intermittent access issues April 18 13:00 - April 19 01:00 UTC. See whistlepig.mozilla.org for all notifications.

mozilla

Revision 200867 of NPPrint

  • Revision slug: NPPrint
  • Revision title: NPPrint
  • Revision id: 200867
  • Created:
  • Creator: Pmash
  • Is current revision? No
  • Comment migration
Tags: 

Revision Content

{{wiki.template('Np-plugin-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/<code> structure are valid only for the duration of the NPP_Print call.

See Also

NPP_Print, NPFullPrint, NPEmbedPrint

Revision Source

<p>
</p><p>
{{wiki.template('Np-plugin-api')}}
</p>
<h3 name="Summary">Summary</h3>
<p>Contains information the plug-in needs to print itself in full-page or embedded mode.
</p>
<h3 name="Syntax">Syntax</h3>
<pre>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;
</pre>
<h3 name="Fields">Fields</h3>
<p>The data structure has the following fields:
</p>
<dl><dt>mode
</dt><dd>Determines whether plug-in prints in full-page or embedded mode. Values:
<ul><li> NP_FULL: Pointer to <a href="en/NPFullPrint">NPFullPrint</a> structure. Plug-in can optionally print in full-page mode. The fullPrint field of the union is valid. See <a href="en/NPFullPrint">NPFullPrint</a> and <a href="en/NPP_Print">NPP_Print</a>.
</li><li> NP_EMBED: Pointer to <a href="en/NPEmbedPrint">NPEmbedPrint</a> structure. Plug-in should print in embedded mode. The embedPrint field of the union is valid. See <a href="en/NPEmbedPrint">NPEmbedPrint</a>. 
</li></ul>
</dd></dl>
<h3 name="Description">Description</h3>
<p>The <a href="en/NPP_Print">NPP_Print</a> function passes a pointer to an <code>NPPrint</code> object (previously allocated by the browser) to the plug-in. The pointer and fields within the <code>NPPrint/&lt;code&gt; structure are valid only for the duration of the <a href="en/NPP_Print">NPP_Print</a> call.
</code></p>
<h3 name="See_Also">See Also</h3>
<p><a href="en/NPP_Print">NPP_Print</a>, <a href="en/NPFullPrint">NPFullPrint</a>, <a href="en/NPEmbedPrint">NPEmbedPrint</a>
</p>
Revert to this revision