Search completed in 1.20 seconds.
6 results for "np_full":
Drawing and Event Handling - Plugins
refreshing. NPN_InvalidateRegion: Invalidate a region in a windowless plug-in before repainting or refreshing. Printing the Plug-in The browser calls the NPP_Print method to ask the plug-in instance to print itself. void NPP_Print(NPP instance, NPPrint *printInfo); The instance parameter represents the current plug-in. The PrintInfo parameter determines the print mode. It is set to either
NP_FULL to indicate full-page plug-in printing, or NP_EMBED if this is an embedded plug-in printed as part of the window in which it is embedded. An embedded plug-in shares printing with the browser. The plug-in prints the part of the page it occupies, and the browser handles the rest of the printing process, including displaying print dialog boxes, getting the printer device context, and, of course, ...
...f the _NPFullPrint substructure of the NPPrint structure. The browser displays the necessary print dialog boxes and calls NPP_Print again. This time, PrintInfo->mode should be set to NP_EMBED. A full-page plug-in handles the print dialog boxes and printing process as it sees fit. In this case, before the browser displays any print dialog boxes, NPP_Print is called with PrintInfo->mode equal to
NP_FULL. On Mac OS, full-page printing requires that the field PrintInfo contain a standard Mac OS THPrint (see Printing.h). Of course, NPP_Print is also called with PrintInfo->mode equal to NP_EMBED when the instance is embedded. In this case, platformPrint->embedPrint.window contains the window in which the plug-in should print. On MS Windows, note that the coordinates for the window rectangle are i...
NPFullPrint - Archive of obsolete content
fault printer. false: Display print dialogs so user can choose printer, other options. platformPrint Platform-specific printing information. Mac OS: THPrint MS Windows: Printer's device context Description The NPP_Print function passes the plug-in a pointer to an NPPrint object (previously allocated by the browser). The NPFullPrint structure is used when the mode field of NPPrint is set to
NP_Full. The pluginPrinted field of this structure determines whether the plug-in prints in full-page mode or not. If you want the plug-in to take complete control of the printing process, it should print the full page and set the field pluginPrinted to true before returning. If you want an embedded plug-in to simply render its area of the page, set pluginPrinted to false and return immediately; the brow...
NPP_New - Archive of obsolete content
Parameters The function has the following parameters: pluginType Pointer to the MIME type for new plug-in instance. instance Contains instance-specific private data for the plug-in and the browser. This data is stored in instance->pdata. mode Display mode of plug-in. Values: NP_EMBED: (1) Instance was created by an EMBED tag and shares the browser window with other content.
NP_FULL: (2) Instance was created by a separate file and is the primary content in the window. argc Number of HTML arguments in the EMBED tag for an embedded plug-in; determines the number of attributes in the argn and argv arrays. argn[] Array of attribute names passed to the plug-in from the EMBED tag. argv[] Array of attribute values passed to the plug-in from the EMBED tag. sav...
NPP_SetWindow - Archive of obsolete content
awable. Before setting the window parameter to point to a new window, it is a good idea to compare the information about the new window to the previous window (if one existed) to account for any changes. For windowless plugins, NPP_SetWindow is called with a clipRect of 0,0,0,0 to signal that the plugin is not visible. NOTE: NPP_SetWindow is useful only for embedded (NP_EMBED) or full-screen (
NP_FULL) plug-ins, which are drawn into windows. It is irrelevant for hidden plug-ins. See Also NPP_HandleEvent, NPWindow, NP_Port ...
NPPrint - Archive of obsolete content
<< 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 th...
Initialization and Destruction - Plugins
plug-in, which could potentially allow the plug-in to respond to data streams of different types with different interfaces and behavior. The instance parameter represents an NPP object, created by the browser. You can store the instance-specific private data in its pdata field (instance->pdata). The mode parameter identifies the display mode in which the plug-in was invoked, either NP_EMBED or
NP_FULL. NP_EMBED means that the instance was created by an EMBED and shares the browser window with other content.
NP_FULL means that the instance was created by a separate file and is the primary content in the window. The next three parameters pass parameters from the embed element that called the plug-in. The argc parameter is the number of HTML arguments in the element. It determines the numbe...