Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Protected Member Functions
nsDeviceContextSpecFactoryMac Class Reference

#include <nsDeviceContextSpecFactoryM.h>

Inheritance diagram for nsDeviceContextSpecFactoryMac:
Inheritance graph
[legend]
Collaboration diagram for nsDeviceContextSpecFactoryMac:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 nsDeviceContextSpecFactoryMac ()
 
Constructor dc 12/02/98
NS_DECL_ISUPPORTS NS_IMETHOD Init (void)
 
Initialize the device context spec factory dc 12/02/98
NS_IMETHOD CreateDeviceContextSpec (nsIWidget *aWidget, nsIPrintSettings *aPrintSettings, nsIDeviceContextSpec *&aNewSpec, PRBool aIsPrintPreview)
 
Get a device context specification dc 12/02/98

Protected Member Functions

 ~nsDeviceContextSpecFactoryMac ()
 
Destructor dc 12/02/98

Detailed Description

Definition at line 44 of file nsDeviceContextSpecFactoryM.h.


Constructor & Destructor Documentation


Constructor dc 12/02/98

Definition at line 50 of file nsDeviceContextSpecFactoryM.cpp.

{
}


Destructor dc 12/02/98

Definition at line 58 of file nsDeviceContextSpecFactoryM.cpp.

{
}

Member Function Documentation

NS_IMETHODIMP nsDeviceContextSpecFactoryMac::CreateDeviceContextSpec ( nsIWidget aWidget,
nsIPrintSettings aPrintSettings,
nsIDeviceContextSpec *&  aNewSpec,
PRBool  aIsPrintPreview 
) [virtual]


Get a device context specification dc 12/02/98

Implements nsIDeviceContextSpecFactory.

Definition at line 77 of file nsDeviceContextSpecFactoryM.cpp.

{

    nsresult rv;
    static NS_DEFINE_CID(kDeviceContextSpecCID, NS_DEVICE_CONTEXT_SPEC_CID);
    nsCOMPtr<nsIDeviceContextSpec> devSpec = do_CreateInstance(kDeviceContextSpecCID,&rv);
    if (NS_SUCCEEDED(rv)) {
      nsCOMPtr<nsIPrintingContext> printingContext = do_QueryInterface(devSpec,&rv);
      if (NS_SUCCEEDED(rv)) {
        rv = printingContext->Init(aPrintSettings,aIsPrintPreview);
        if (NS_SUCCEEDED(rv)) {
          aNewSpec = devSpec;
          NS_ADDREF(aNewSpec);
        }
      }
    }
  return rv;
}

Here is the call graph for this function:


Initialize the device context spec factory dc 12/02/98

Implements nsIDeviceContextSpecFactory.

Definition at line 68 of file nsDeviceContextSpecFactoryM.cpp.

{
    return NS_OK;
}

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