don't implement nsIPrintingContext in cairo builds

This commit is contained in:
pavlov%pavlov.net 2006-11-30 01:57:15 +00:00
parent 3520a10e4d
commit c3a0763e5f
2 changed files with 12 additions and 2 deletions

View File

@ -78,8 +78,11 @@ nsDeviceContextSpecX::~nsDeviceContextSpecX()
ClosePrintManager();
}
#ifdef MOZ_CAIRO_GFX
NS_IMPL_ISUPPORTS1(nsDeviceContextSpecX, nsIDeviceContextSpec)
#else
NS_IMPL_ISUPPORTS2(nsDeviceContextSpecX, nsIDeviceContextSpec, nsIPrintingContext)
#endif
/** -------------------------------------------------------
* Initialize the nsDeviceContextSpecMac
* @update dc 12/02/98
@ -122,6 +125,7 @@ NS_IMETHODIMP nsDeviceContextSpecX::ClosePrintManager()
return NS_OK;
}
#ifndef MOZ_CAIRO_GFX
NS_IMETHODIMP nsDeviceContextSpecX::BeginDocument(PRUnichar* aTitle,
PRUnichar* aPrintToFileName,
PRInt32 aStartPage,
@ -186,6 +190,7 @@ NS_IMETHODIMP nsDeviceContextSpecX::EndPage()
return NS_ERROR_ABORT;
return NS_OK;
}
#endif
NS_IMETHODIMP nsDeviceContextSpecX::GetPrinterResolution(double* aResolution)
{

View File

@ -45,7 +45,10 @@
#include <PMApplication.h>
class nsDeviceContextSpecX : public nsIDeviceContextSpec, public nsIPrintingContext
class nsDeviceContextSpecX : public nsIDeviceContextSpec
#ifndef MOZ_CAIRO_GFX
, public nsIPrintingContext
#endif
{
public:
/**
@ -87,6 +90,7 @@ public:
*/
NS_IMETHOD ClosePrintManager();
#ifndef MOZ_CAIRO_GFX
NS_IMETHOD BeginDocument(PRUnichar* aTitle,
PRUnichar* aPrintToFileName,
PRInt32 aStartPage,
@ -99,6 +103,7 @@ public:
NS_IMETHOD BeginPage();
NS_IMETHOD EndPage();
#endif
NS_IMETHOD GetPrinterResolution(double* aResolution);