mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 08:12:05 +00:00
don't implement nsIPrintingContext in cairo builds
This commit is contained in:
parent
3520a10e4d
commit
c3a0763e5f
@ -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)
|
||||
{
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user