mozilla

Revision 200526 of NPPrintCallbackStruct

  • Revision slug: NPPrintCallbackStruct
  • Revision title: NPPrintCallbackStruct
  • Revision id: 200526
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment Copyedit.

Revision Content

{{wiki.template('Np-plugin-api')}}

Summary

Contains information required by the platformPrint field of the NPEmbedPrint during embedded mode printing on Unix systems.

This structure is only used on Unix.

Syntax

typedef struct
{
    int32  type;
    FILE*  fp;
} NPPrintCallbackStruct;

Fields

The data structure has the following fields:

type
Always contains NP_PRINT.
fp
Pointer to file to which the plug-in should write its Postscript data.

Description

Callback structures are used to pass platform-specific information. The NPPrintCallbackStruct structure contains the file pointer to which the plug-in should write its PostScript data. This information is required by the platformPrint field of the NPEmbedPrint structure during embedded mode printing.

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, so the browser can continue to write additional PostScript data to the file.

See Also

NPP_Print, NPEmbedPrint, NPSetWindowCallbackStruct, NPAnyCallbackStruct

Revision Source

<p>
{{wiki.template('Np-plugin-api')}}
</p>
<h3 name="Summary">Summary</h3>
<p>Contains information required by the <code>platformPrint</code> field of the <a href="en/NPEmbedPrint">NPEmbedPrint</a> during embedded mode printing on Unix systems.
</p>
<div class="note">This structure is only used on Unix.</div>
<h3 name="Syntax">Syntax</h3>
<pre>typedef struct
{
    int32  type;
    FILE*  fp;
} NPPrintCallbackStruct;
</pre> 
<h3 name="Fields">Fields</h3>
<p>The data structure has the following fields:
</p>
<dl><dt>type
</dt><dd>Always contains <code>NP_PRINT</code>.
</dd></dl>
<dl><dt>fp
</dt><dd>Pointer to file to which the plug-in should write its Postscript data.
</dd></dl>
<h3 name="Description">Description</h3>
<p>Callback structures are used to pass platform-specific information. The <code>NPPrintCallbackStruct</code> structure contains the file pointer to which the plug-in should write its PostScript data. This information is required by the <code>platformPrint</code> field of the <code><a href="en/NPEmbedPrint">NPEmbedPrint</a></code> structure during embedded mode printing.
</p><p>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, so 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/NPAnyCallbackStruct">NPAnyCallbackStruct</a>
</p>
Revert to this revision