Netscape DevEdge

Skip to: [content] [navigation]

TOC PREV NEXT

plug-ins!


NPPrintCallbackStruct


Used on Unix only.

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

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

See Also

NPP_Print, NPEmbedPrint, NPSetWindowCallbackStruct, NPAnyCallbackStruct
 


Netscape Communications
http://developer.netscape.com
TOC PREV NEXT
A+R