Back to index

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

#include <nsDeviceContextSpecFactoryG.h>

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

List of all members.

Public Member Functions

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

Protected Member Functions

virtual ~nsDeviceContextSpecFactoryGTK ()
 
Destructor dc 2/16/98

Detailed Description

Definition at line 44 of file nsDeviceContextSpecFactoryG.h.


Constructor & Destructor Documentation


Constructor dc 2/16/98

Definition at line 48 of file nsDeviceContextSpecFactoryG.cpp.

{
}


Destructor dc 2/16/98

Definition at line 56 of file nsDeviceContextSpecFactoryG.cpp.

{
}

Member Function Documentation

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


Get a device context specification dc 2/16/98

Implements nsIDeviceContextSpecFactory.

Definition at line 75 of file nsDeviceContextSpecFactoryG.cpp.

{
  nsresult rv;
  static NS_DEFINE_CID(kDeviceContextSpecCID, NS_DEVICE_CONTEXT_SPEC_CID);
  nsCOMPtr<nsIDeviceContextSpec> devSpec = do_CreateInstance(kDeviceContextSpecCID, &rv);
  if (NS_SUCCEEDED(rv))
  {
    rv = ((nsDeviceContextSpecGTK *)devSpec.get())->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 2/16/98

Implements nsIDeviceContextSpecFactory.

Definition at line 66 of file nsDeviceContextSpecFactoryG.cpp.

{
  return NS_OK;
}

Here is the caller graph for this function:


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