Search completed in 1.22 seconds.
15 results for "npp_print":
NPP_Print - Archive of obsolete content
Archive › Plugins › Reference › NPP Print
<< Gecko Plugin API Reference << Plug-in Side Plug-in API Summary Requests a platform-specific print operation for an embedded or full-screen plug-in. Syntax #include <npapi.h> void NPP_Print(NPP instance, NPPrint* PrintInfo); Parameters The function has the following parameters: instance Pointer to the current plug-in instance. Must be embedded or full-screen. printInfo Pointer to NPPrint structure. Description NPP_Print is called when the user requests printing for a web page that contains a visible plug-in (either embedded or full-page). It uses the print mode set in the NPPrint structure in its printInfo parameter to determine whether the plug-in should print as an embedded plug-in or as a full-page plug-in. An embedded plug-in shares printing with the browser; th...
Drawing and Event Handling - Plugins
Plugins › Guide › Drawing and Event Handling
g Plug-ins This section describes the methods and processes you use in drawing both windowed and windowless plug-ins. Processes that apply to only one of these plug-in types are described in the following sections. The plug-in uses these methods to draw plug-ins and to handle events: Plug-in methods, called by the browser: NPP_HandleEvent: Deliver a platform-specific event to the instance. NPP_Print: Request a platform-specific print operation for the instance. NPP_SetWindow: Set the window in which a plug-in draws. Browser-side methods, called by the plug-in: NPN_ForceRedraw: Force a paint message to a windowless plug-in. NPN_InvalidateRect: Invalidate an area in a windowless plug-in before repainting or refreshing. NPN_InvalidateRegion: Invalidate a region in a windowless plug-in b...
...: Set the window in which a plug-in draws. Browser-side methods, called by the plug-in: NPN_ForceRedraw: Force a paint message to a windowless plug-in. NPN_InvalidateRect: Invalidate an area in a windowless plug-in before repainting or 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-i...
...e rest of the printing process, including displaying print dialog boxes, getting the printer device context, and, of course, printing the rest of the page. An embedded plug-in can set the pluginPrinted field in its PrintInfo parameter to false (the default). This is a field of 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 c...
...In this case, platformPrint->embedPrint.window contains the window in which the plug-in should print. ...
NPFullPrint - Archive of obsolete content
Archive › Plugins › Reference › NPFullPrint
false: (Default) Plug-in renders its area of the page only (for embedded plug-in). printOne Not currently in use. Should always be false. true: Print single copy of page to the default 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...
...inPrinted field of this structure determines whether the plug-in prints in full-page mode or not. ...
...n full-page mode or not. ...
NPEmbedPrint - Archive of obsolete content
Archive › Plugins › Reference › NPEmbedPrint
mode printing. Syntax typedef struct _NPEmbedPrint { NPWindow window; void* platformPrint; /* Platform-specific */ } NPEmbedPrint; Fields The data structure has the following fields: window The NPWindow the plug-in should use for printing. platformPrint Additional platform-specific printing information. Mac OS: THPrint Unix: Pointer to a NPPrintCallbackStruct. ...
...ckStruct. Description The NPP_Print function passes a pointer to an NPPrint object (previously allocated by the browser) to the plug-in. The NPEmbedPrint structure is used when the mode field of NPPrint is set to NP_EMBED. Unix The plug-in location and size in the NPWindow are in page coordinates (720/ inch), but the printer requires point coordinates (72/inch). ...
Index - Archive of obsolete content
Archive › Index
PAPI, Plugins Allows the browser to query the plug-in for information. 3681 NPP_HandleEvent NPAPI, Plugins Delivers a platform-specific window event to the instance. 3682 NPP_New NPAPI, Plugins Creates a new instance of a plug-in. 3683 NPP_NewStream NPAPI, Plugins Notifies a plug-in instance of a new data stream. 3684 NPP_Print NPAPI, Plugins Requests a platform-specific print operation for an embedded or full-screen plug-in. 3685 NPP_SetValue NPAPI, Plugins Implemented by plugins. This call is used to inform plugins of variable information controlled by the browser. 3686 NPP_SetWindow NPAPI, Plugins Tells the plug-in when a window is created, moved, sized, or destroye...
Index of archived content - Archive of obsolete content
Archive › Index of archived content
NPN_SetValue NPN_SetValueForURL NPN_Status NPN_UTF8FromIdentifier NPN_UserAgent NPN_Version NPN_Write NPObject NPP NPPVariable NPP_Destroy NPP_DestroyStream NPP_GetValue NPP_HandleEvent NPP_New NPP_NewStream NPP_Print NPP_SetValue NPP_SetWindow NPP_StreamAsFile NPP_URLNotify NPP_Write NPP_WriteReady NPPrint NPPrintCallbackStruct NPRect NPRegion NPSavedData NPSetWindowCallbackStruct NPStream NPString NPUTF8 NPVariant ...
NPAnyCallbackStruct - Archive of obsolete content
Archive › Plugins › Reference › NPAnyCallbackStruct
ints to an NPAnyCallbackStruct. ...
NPPrint - Archive of obsolete content
Archive › Plugins › Reference › NPPrint
t; /* 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_P...
NPPrintCallbackStruct - Archive of obsolete content
Archive › Plugins › Reference › NPPrintCallbackStruct
cript data. ...
NPAPI plug-in side API - Archive of obsolete content
Archive › Plugins › Reference › Plug-in side
ames of all of these methods begin with NPP_ to indicate that they are implemented by the plug-in and called by the browser. ...
NPAPI plugin reference - Archive of obsolete content
Archive › Plugins › Reference
stroy Deletes a specific instance of a plug-in. NPP_DestroyStream Tells the plug-in that a stream is about to be closed or destroyed. NPP_GetValue Allows the browser to query the plug-in for information. NPP_HandleEvent Delivers a platform-specific window event to the instance. NPP_New Creates a new instance of a plug-in. NPP_NewStream Notifies a plug-in instance of a new data stream. NPP_Print Requests a platform-specific print operation for an embedded or full-screen plug-in. NPP_SetValue Implemented by plugins. This call is used to inform plugins of variable information controlled by the browser. NPP_SetWindow Tells the plug-in when a window is created, moved, sized, or destroyed. NPP_StreamAsFile Provides a local file name for the data from a stream. NPP_URLNotify Notifies ...
Plug-in Development Overview - Gecko Plugin API Reference
Gecko Plugin API Reference › Plug-in Development Overview
llowing Netscape methods to draw itself: NPN_ForceRedraw: Force a paint message for windowless plug-ins. NPN_InvalidateRect: Invalidate an area in a windowless plug-in before repainting or refreshing. NPN_InvalidateRegion: Invalidate an area in a windowless plug-in before repainting or refreshing. The browser calls these Plug-in methods: NPP_GetValue: Query the plug-in for information. NPP_Print: Request a platform-specific print operation for the instance. NPP_SetValue: Set the browser information. NPP_SetWindow: Set the window in which a plug-in draws. NPP_HandleEvent: Deliver a platform-specific event to the instance. The plug-in can call these Netscape methods to query and set information: NPN_GetValue: Get the browser information. NPN_SetValue: Set plug-in the browser infor...
Plug-in Development Overview - Plugins
Plugins › Guide › Plug-in Development Overview
llowing Netscape methods to draw itself: NPN_ForceRedraw: Force a paint message for windowless plug-ins. NPN_InvalidateRect: Invalidate an area in a windowless plug-in before repainting or refreshing. NPN_InvalidateRegion: Invalidate an area in a windowless plug-in before repainting or refreshing. The browser calls these Plug-in methods: NPP_GetValue: Query the plug-in for information. NPP_Print: Request a platform-specific print operation for the instance. NPP_SetValue: Set the browser information. NPP_SetWindow: Set the window in which a plug-in draws. NPP_HandleEvent: Deliver a platform-specific event to the instance. The plug-in can call these Netscape methods to query and set information: NPN_GetValue: Get the browser information. NPN_SetValue: Set plug-in the browser infor...
Plug-in Side Plug-in API - Plugins
Plugins › Guide › Plug-in Side Plug-in API
S). NPP_GetValue Allows the browser to query the plug-in for information. NP_GetValue Allows the browser to query the plug-in for information. NPP_HandleEvent Delivers a platform-specific window event to the instance. NP_Initialize Provides global initialization for a plug-in. NPP_New Creates a new instance of a plug-in. NPP_NewStream Notifies a plug-in instance of a new data stream. NPP_Print Requests a platform-specific print operation for an embedded or full-screen plug-in. NPP_SetValue Sets information about the plug-in. NPP_SetWindow Tells the plug-in when a window is created, moved, sized, or destroyed. NP_Shutdown Provides global deinitialization for a plug-in. NPP_StreamAsFile Provides a local file name for the data from a stream. NPP_URLNotify Notifies the instance ...
Gecko Plugin API Reference - Plugins
Plugins › Guide
mes of all of these methods begin with NPP_ to indicate that they are implemented by the plug-in and called by the browser. For an overview of how these two sides of the plug-in API interact, see the How Plug-ins Work and Overview of Plug-in Structure sections in the introduction. NPP_Destroy NPP_DestroyStream NPP_GetValue NP_GetValue NPP_HandleEvent NP_Initialize NPP_New NPP_NewStream NPP_Print NPP_SetValue NPP_SetWindow NP_Shutdown NPP_StreamAsFile NPP_URLNotify NPP_Write NPP_WriteReady Browser Side Plug-in API This chapter describes methods in the plug-in API that are available from the browser. The names of all of these methods begin with NPN_ to indicate that they are implemented by the browser and called by the plug-in. For an overview of how these two sides of the plug...