NPPrintCallbackStruct

Nos bénévoles n'ont pas encore traduit cet article en Français. Aidez-nous à réaliser cette tâche !

« Gecko Plugin API Reference « Plug-in Side Plug-in API

Summary

Contains information required by the platformPrint field of the NPEmbedPrint structure 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 the 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

Étiquettes et contributeurs liés au document

Étiquettes :
Contributeurs ayant participé à cette page : Pmash, Sheppy
Dernière mise à jour par : Sheppy,