Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
nsIDeviceContextSpecFactory Class Reference

#include <nsIDeviceContextSpecFactory.h>

Inheritance diagram for nsIDeviceContextSpecFactory:
Inheritance graph
Collaboration diagram for nsIDeviceContextSpecFactory:
Collaboration graph

List of all members.

Public Member Functions

NS_IMETHOD Init (void)=0
 Initialize the device context spec factory.
NS_IMETHOD CreateDeviceContextSpec (nsIWidget *aWidget, nsIPrintSettings *aPrintSettings, nsIDeviceContextSpec *&aNewSpec, PRBool aIsPrintPreview)=0
 Get a device context specification.

Detailed Description

Definition at line 51 of file nsIDeviceContextSpecFactory.h.

Member Function Documentation

NS_IMETHOD nsIDeviceContextSpecFactory::CreateDeviceContextSpec ( nsIWidget aWidget,
nsIPrintSettings aPrintSettings,
nsIDeviceContextSpec *&  aNewSpec,
PRBool  aIsPrintPreview 
) [pure virtual]

Get a device context specification.

Typically, this means getting information about a printer. A previously returned device context spec can be passed in and used as a starting point for getting a new spec (or simply returning the old spec again).

aWidget..this is a widget a dialog can be hosted in
aNewSpecout parameter for device context spec returned. the aOldSpec may be returned if the object is recyclable.
aIsPrintPreviewif PR_TRUE, creating Spec for PrintPreview
error status

Implemented in nsDeviceContextSpecFactoryQt, nsDeviceContextSpecFactoryWin, nsDeviceContextSpecFactoryOS2, nsDeviceContextSpecFactoryXlib, nsDeviceContextSpecFactoryBeOS, nsDeviceContextSpecFactoryGTK, nsDeviceContextSpecFactoryMac, and nsDeviceContextSpecFactoryPh.

The documentation for this class was generated from the following file: