NPPrint

Unsere Freiwilligen haben diesen Artikel noch nicht in Deutsch übersetzt. Machen Sie mit und helfen Sie, das zu erledigen!

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

Summary

Contains information the plug-in needs to print itself in full-page or embedded mode.

Syntax

typedef struct _NPPrint
{
    uint16 mode;   /* NP_FULL or NP_EMBED */
    union
    {
        NPFullPrint fullPrint;   /* if mode is NP_FULL */
        NPEmbedPrint embedPrint; /* if mode is NP_EMBED */
    } print;
} NPPrint;

Fields

The data structure has the following fields:

mode
Determines whether plug-in prints in full-page or embedded mode. Values:
  • NP_FULL: Pointer to NPFullPrint structure. Plug-in can optionally print in full-page mode. The fullPrint field of the union is valid. See NPFullPrint and NPP_Print.
  • NP_EMBED: Pointer to NPEmbedPrint structure. Plug-in should print in embedded mode. The embedPrint field of the union is valid. See NPEmbedPrint.

Description

The NPP_Print function passes a pointer to an NPPrint object (previously allocated by the browser) to the plug-in. The pointer and fields within the NPPrint structure are valid only for the duration of the NPP_Print call.

See Also

NPP_Print, NPFullPrint, NPEmbedPrint

Schlagwörter des Dokuments und Mitwirkende

Schlagwörter:
Mitwirkende an dieser Seite: Pmash, Nickolay
Zuletzt aktualisiert von: Nickolay,