gfx/src/os2/nsDeviceContextSpecFactoryO.cpp,1.11 | . | Disk File |
Skipping to line 59 | . | |
} |
. |
} |
|
. |
|
//XXX this method needs to do what the API says... |
. |
//XXX this method needs to do what the API says... |
|
. |
|
NS_IMETHODIMP nsDeviceContextSpecFactoryOS2 :: CreateDeviceContextSpec(nsIWidg
et *aWidget, |
. |
NS_IMETHODIMP nsDeviceContextSpecFactoryOS2 :: CreateDeviceContextSpec(nsIWidg
et *aWidget, |
 
|
. |
nsIPrin
tSettings* aPrintSettings, |
nsIDevi
ceContextSpec *&aNewSpec, |
. |
nsIDevi
ceContextSpec *&aNewSpec, |
PRBool
aQuiet) |
. |
PRBool
aQuiet) |
{ |
. |
{ |
nsresult rv; |
. |
nsresult rv; |
static NS_DEFINE_CID(kDeviceContextSpecCID, NS_DEVICE_CONTEXT_SPEC_CID); |
. |
static NS_DEFINE_CID(kDeviceContextSpecCID, NS_DEVICE_CONTEXT_SPEC_CID); |
Skipping to line 71 | . | |
|
. |
|
if (NS_SUCCEEDED(rv)) { |
. |
if (NS_SUCCEEDED(rv)) { |
rv = ((nsDeviceContextSpecOS2 *)devSpec.get())->Init(aQuiet);
|
. |
rv = ((nsDeviceContextSpecOS2 *)devSpec.get())->Init(aPrintSettings, aQuiet
); |
if (NS_SUCCEEDED(rv)) { |
. |
if (NS_SUCCEEDED(rv)) { |
aNewSpec = devSpec; |
. |
aNewSpec = devSpec; |
NS_ADDREF(aNewSpec); |
. |
NS_ADDREF(aNewSpec); |
} |
. |
} |
} |
. |
} |