NPAnyCallbackStruct

  • Revision slug: NPAnyCallbackStruct
  • Revision title: NPAnyCallbackStruct
  • Revision id: 90513
  • Created:
  • Creator: Pmash
  • Is current revision? No
  • Comment migration

Revision Content

{{ Np-plugin-api() }}

Summary

Used on Unix only

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

NPP_Print, NPEmbedPrint, NPSetWindowCallbackStruct, NPPrintCallbackStruct

Revision Source

<p>
{{ Np-plugin-api() }}
</p>
<h3 name="Summary">Summary</h3>
<div class="note">Used on Unix only</div>
<p>Contains information required during embedded mode printing.
</p>
<h3 name="Syntax">Syntax</h3>
<pre>typedef struct
{
    int32 type;
} NPAnyCallbackStruct;
</pre> <h3 name="Fields">Fields</h3>
<p>The data structure has the following field:
</p>
<dl><dt>type
</dt><dd>Always contains NP_PRINT.
</dd></dl>
<h3 name="Description">Description</h3>
<p>Callback structures are used to pass platform-specific information. The <code>NPAnyCallbackStruct</code> structure contains information required by the platformPrint field of the <a href="en/NPEmbedPrint">NPEmbedPrint</a> structure during embedded mode printing.
</p><p>During printing in embedded mode, the platformPrint field of the <a href="en/NPEmbedPrint">NPEmbedPrint</a> 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 name="See_Also">See Also</h3>
<p><a href="en/NPP_Print">NPP_Print</a>, <a href="en/NPEmbedPrint">NPEmbedPrint</a>, <a href="en/NPSetWindowCallbackStruct">NPSetWindowCallbackStruct</a>, <a href="en/NPPrintCallbackStruct">NPPrintCallbackStruct</a>
</p>
Revert to this revision