No bug - Os/2 support for print preview
git-svn-id: svn://10.0.0.236/trunk@108914 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
9425685ff8
commit
13bdbbbd8b
@ -295,6 +295,12 @@ nsDeviceContextOS2 :: FindScreen ( nsIScreen** outScreen )
|
||||
// Create a rendering context against our hdc for a printer
|
||||
nsresult nsDeviceContextOS2::CreateRenderingContext( nsIRenderingContext *&aContext)
|
||||
{
|
||||
#ifdef NS_PRINT_PREVIEW
|
||||
// Defer to Alt when there is one
|
||||
if (mAltDC && (mUseAltDC & kUseAltDCFor_CREATE_RC))
|
||||
return mAltDC->CreateRenderingContext(aContext);
|
||||
#endif
|
||||
|
||||
NS_ASSERTION( mPrintDC, "CreateRenderingContext for non-print DC");
|
||||
|
||||
nsIRenderingContext *pContext = new nsRenderingContextOS2;
|
||||
@ -757,6 +763,12 @@ NS_IMETHODIMP nsDeviceContextOS2 :: ConvertPixel(nscolor aColor, PRUint32 & aPix
|
||||
|
||||
NS_IMETHODIMP nsDeviceContextOS2 :: GetDeviceSurfaceDimensions(PRInt32 &aWidth, PRInt32 &aHeight)
|
||||
{
|
||||
#ifdef NS_PRINT_PREVIEW
|
||||
// Defer to Alt when there is one
|
||||
if (mAltDC && (mUseAltDC & kUseAltDCFor_SURFACE_DIM))
|
||||
return mAltDC->GetDeviceSurfaceDimensions(aWidth, aHeight);
|
||||
#endif
|
||||
|
||||
if ( mSpec )
|
||||
{
|
||||
// we have a printer device
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user