mozilla

Revision 90514 of NPAnyCallbackStruct

  • Revision slug: NPAnyCallbackStruct
  • Revision title: NPAnyCallbackStruct
  • Revision id: 90514
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment clean up; 14 words added, 9 words removed

Revision Content

{{ Np-plugin-api() }}

Summary

Note: This structure is only used on Unix platforms.

Contains information required during embedded mode printing.

Syntax

typedef struct
{
    int32 type;
} NPAnyCallbackStruct;

Fields

The data structure has the following field:

type
Always contains NP_PRINT.

Description

Callback structures are used to pass platform-specific information. The NPAnyCallbackStruct structure contains information required by the platformPrint field of the NPEmbedPrint structure during embedded mode printing.

During printing in embedded mode, the platformPrint field of the NPEmbedPrint structure points to an NPAnyCallbackStruct. This structure contains the file pointer to which the plug-in should write its PostScript data. At the time the plug-in is called, the browser has already opened the file and written PostScript for other parts of the page. When the plug-in is done, it should leave the file open, as the browser can continue to write additional PostScript data to the file.

See also

Revision Source

<p>{{ Np-plugin-api() }}</p>
<h3 id="Summary" name="Summary">Summary</h3>
<div class="note"><strong>Note:</strong> This structure is only used on Unix platforms.</div>
<p>Contains information required during embedded mode printing.</p>
<h3 id="Syntax" name="Syntax">Syntax</h3>
<pre>typedef struct
{
    int32 type;
} NPAnyCallbackStruct;
</pre>
<h3 id="Fields" name="Fields">Fields</h3>
<p>The data structure has the following field:</p>
<dl> <dt><code>type</code></dt> <dd>Always contains <code>NP_PRINT</code>.</dd>
</dl>
<h3 id="Description" name="Description">Description</h3>
<p>Callback structures are used to pass platform-specific information. The <code>NPAnyCallbackStruct</code> structure contains information required by the <code>platformPrint</code> field of the <code><a href="/en/NPEmbedPrint" title="en/NPEmbedPrint">NPEmbedPrint</a></code> structure during embedded mode printing.</p>
<p>During printing in embedded mode, the <code>platformPrint</code> field of the <code><a href="/en/NPEmbedPrint" title="en/NPEmbedPrint">NPEmbedPrint</a></code> structure points to an <code>NPAnyCallbackStruct</code>. This structure contains the file pointer to which the plug-in should write its PostScript data. At the time the plug-in is called, the browser has already opened the file and written PostScript for other parts of the page. When the plug-in is done, it should leave the file open, as the browser can continue to write additional PostScript data to the file.</p>
<h3 id="See_Also" name="See_Also">See also</h3>
<ul> <li><code><a href="/en/NPP_Print" title="en/NPP_Print">NPP_Print()</a><br> </code></li> <li><code><a href="/en/NPEmbedPrint" title="en/NPEmbedPrint">NPEmbedPrint</a><br> </code></li> <li><code><a href="/en/NPSetWindowCallbackStruct" title="en/NPSetWindowCallbackStruct">NPSetWindowCallbackStruct</a><br> </code></li> <li><code><a href="/en/NPPrintCallbackStruct" title="en/NPPrintCallbackStruct">NPPrintCallbackStruct</a> </code></li>
</ul>
Revert to this revision