зеркало из https://github.com/mozilla/pjs.git
Changed BeginDocument API call.. added parameter. r=rods sr=attinasi
This commit is contained in:
Родитель
25a75ba995
Коммит
775b629f96
|
@ -405,7 +405,7 @@ public:
|
|||
* app regarding pagination progress and aborting print operations?
|
||||
* @return error status
|
||||
*/
|
||||
NS_IMETHOD BeginDocument(void) = 0;
|
||||
NS_IMETHOD BeginDocument(PRUnichar * aTitle) = 0;
|
||||
|
||||
/**
|
||||
* Inform the output device that output of a document is ending.
|
||||
|
|
|
@ -426,7 +426,7 @@ NS_IMETHODIMP nsDeviceContextBeOS::GetDeviceContextFor(nsIDeviceContextSpec *aDe
|
|||
return rv;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsDeviceContextBeOS::BeginDocument(void)
|
||||
NS_IMETHODIMP nsDeviceContextBeOS::BeginDocument(PRUnichar * aTitle)
|
||||
{
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
|
@ -67,7 +67,7 @@ public:
|
|||
NS_IMETHOD GetDeviceContextFor(nsIDeviceContextSpec *aDevice,
|
||||
nsIDeviceContext *&aContext);
|
||||
|
||||
NS_IMETHOD BeginDocument(void);
|
||||
NS_IMETHOD BeginDocument(PRUnichar * aTitle);
|
||||
NS_IMETHOD EndDocument(void);
|
||||
|
||||
NS_IMETHOD BeginPage(void);
|
||||
|
|
|
@ -519,7 +519,7 @@ NS_IMETHODIMP nsDeviceContextGTK::GetDeviceContextFor(nsIDeviceContextSpec *aDev
|
|||
return rv;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsDeviceContextGTK::BeginDocument(void)
|
||||
NS_IMETHODIMP nsDeviceContextGTK::BeginDocument(PRUnichar * aTitle)
|
||||
{
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
|
@ -69,7 +69,7 @@ public:
|
|||
NS_IMETHOD GetDeviceContextFor(nsIDeviceContextSpec *aDevice,
|
||||
nsIDeviceContext *&aContext);
|
||||
|
||||
NS_IMETHOD BeginDocument(void);
|
||||
NS_IMETHOD BeginDocument(PRUnichar * aTitle);
|
||||
NS_IMETHOD EndDocument(void);
|
||||
|
||||
NS_IMETHOD BeginPage(void);
|
||||
|
|
|
@ -723,7 +723,7 @@ NS_IMETHODIMP nsDeviceContextMac::GetDeviceContextFor(nsIDeviceContextSpec *aDev
|
|||
* See documentation in nsIDeviceContext.h
|
||||
* @update 12/9/98 dwc
|
||||
*/
|
||||
NS_IMETHODIMP nsDeviceContextMac::BeginDocument(void)
|
||||
NS_IMETHODIMP nsDeviceContextMac::BeginDocument(PRUnichar * aTitle)
|
||||
{
|
||||
#if !TARGET_CARBON
|
||||
GrafPtr thePort;
|
||||
|
|
|
@ -65,7 +65,7 @@ public:
|
|||
NS_IMETHOD GetDeviceContextFor(nsIDeviceContextSpec *aDevice,
|
||||
nsIDeviceContext *&aContext);
|
||||
|
||||
NS_IMETHOD BeginDocument(void);
|
||||
NS_IMETHOD BeginDocument(PRUnichar * aTitle);
|
||||
NS_IMETHOD EndDocument(void);
|
||||
|
||||
NS_IMETHOD BeginPage(void);
|
||||
|
|
|
@ -596,7 +596,7 @@ NS_IMETHODIMP nsDeviceContextMotif::GetDeviceContextFor(nsIDeviceContextSpec *aD
|
|||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsDeviceContextMotif::BeginDocument(void)
|
||||
NS_IMETHODIMP nsDeviceContextMotif::BeginDocument(PRUnichar * aTitle)
|
||||
{
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
|
@ -85,7 +85,7 @@ public:
|
|||
NS_IMETHOD GetDeviceContextFor(nsIDeviceContextSpec *aDevice,
|
||||
nsIDeviceContext *&aContext);
|
||||
|
||||
NS_IMETHOD BeginDocument(void);
|
||||
NS_IMETHOD BeginDocument(PRUnichar * aTitle);
|
||||
NS_IMETHOD EndDocument(void);
|
||||
|
||||
NS_IMETHOD BeginPage(void);
|
||||
|
|
|
@ -168,7 +168,7 @@ nsresult nsDeviceContextOS2::Init( nsNativeDeviceContext aContext,
|
|||
// We need to begin a document now, because the client is entitled at
|
||||
// this point to do stuff like create fonts, which required the PS to
|
||||
// be associated with a DC which has been DEVESC_STARTDOC'd.
|
||||
BeginDocument();
|
||||
BeginDocument(nsnull);
|
||||
#endif
|
||||
|
||||
return NS_OK;
|
||||
|
@ -928,7 +928,7 @@ nsresult nsDeviceContextOS2::CreateFontAliasTable()
|
|||
}
|
||||
|
||||
// Printing ------------------------------------------------------------------
|
||||
nsresult nsDeviceContextOS2::BeginDocument()
|
||||
nsresult nsDeviceContextOS2::BeginDocument(PRUnichar * aTitle)
|
||||
{
|
||||
NS_ASSERTION(mPrintDC, "BeginDocument for non-print DC");
|
||||
if( mPrintState == nsPrintState_ePreBeginDoc)
|
||||
|
|
|
@ -70,7 +70,7 @@ public:
|
|||
NS_IMETHOD GetDeviceContextFor(nsIDeviceContextSpec *aDevice,
|
||||
nsIDeviceContext *&aContext);
|
||||
|
||||
NS_IMETHOD BeginDocument(void);
|
||||
NS_IMETHOD BeginDocument(PRUnichar * aTitle);
|
||||
NS_IMETHOD EndDocument(void);
|
||||
|
||||
NS_IMETHOD BeginPage(void);
|
||||
|
|
|
@ -636,7 +636,7 @@ int nsDeviceContextPh::prefChanged(const char *aPref, void *aClosure)
|
|||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP nsDeviceContextPh :: BeginDocument(void)
|
||||
NS_IMETHODIMP nsDeviceContextPh :: BeginDocument(PRUnichar * aTitle)
|
||||
{
|
||||
nsresult ret_code = NS_ERROR_FAILURE;
|
||||
int err;
|
||||
|
|
|
@ -68,7 +68,7 @@ public:
|
|||
NS_IMETHOD GetDeviceContextFor(nsIDeviceContextSpec *aDevice,
|
||||
nsIDeviceContext *&aContext);
|
||||
|
||||
NS_IMETHOD BeginDocument(void);
|
||||
NS_IMETHOD BeginDocument(PRUnichar * aTitle);
|
||||
NS_IMETHOD EndDocument(void);
|
||||
|
||||
NS_IMETHOD BeginPage(void);
|
||||
|
|
|
@ -304,7 +304,7 @@ NS_IMETHODIMP nsDeviceContextPS::GetDeviceContextFor(nsIDeviceContextSpec *aDevi
|
|||
* See documentation in nsIDeviceContext.h
|
||||
* @update 12/21/98 dwc
|
||||
*/
|
||||
NS_IMETHODIMP nsDeviceContextPS::BeginDocument(void)
|
||||
NS_IMETHODIMP nsDeviceContextPS::BeginDocument(PRUnichar * aTitle)
|
||||
{
|
||||
nsIDeviceContextSpecPS *psSpec;
|
||||
nsresult res = NS_OK;
|
||||
|
|
|
@ -75,7 +75,7 @@ public:
|
|||
NS_IMETHOD GetSystemAttribute(nsSystemAttrID anID, SystemAttrStruct * aInfo) const;
|
||||
NS_IMETHOD GetMetricsFor(const nsFont& aFont, nsIFontMetrics*& aMetrics);
|
||||
NS_IMETHOD GetMetricsFor(const nsFont& aFont, nsIAtom* aLangGroup, nsIFontMetrics*& aMetrics);
|
||||
NS_IMETHOD BeginDocument(void);
|
||||
NS_IMETHOD BeginDocument(PRUnichar * aTitle);
|
||||
NS_IMETHOD EndDocument(void);
|
||||
NS_IMETHOD BeginPage(void);
|
||||
NS_IMETHOD EndPage(void);
|
||||
|
|
|
@ -828,7 +828,7 @@ NS_IMETHODIMP nsDeviceContextWin :: GetDeviceContextFor(nsIDeviceContextSpec *aD
|
|||
return ((nsDeviceContextWin *)aContext)->Init(dc, this);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsDeviceContextWin :: BeginDocument(void)
|
||||
NS_IMETHODIMP nsDeviceContextWin :: BeginDocument(PRUnichar * aTitle)
|
||||
{
|
||||
nsresult rv = NS_OK;
|
||||
|
||||
|
|
|
@ -69,7 +69,7 @@ public:
|
|||
NS_IMETHOD GetDeviceContextFor(nsIDeviceContextSpec *aDevice,
|
||||
nsIDeviceContext *&aContext);
|
||||
|
||||
NS_IMETHOD BeginDocument(void);
|
||||
NS_IMETHOD BeginDocument(PRUnichar * aTitle);
|
||||
NS_IMETHOD EndDocument(void);
|
||||
|
||||
NS_IMETHOD BeginPage(void);
|
||||
|
|
|
@ -395,7 +395,7 @@ NS_IMETHODIMP nsDeviceContextXlib::GetDeviceContextFor(nsIDeviceContextSpec *aDe
|
|||
return rv;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsDeviceContextXlib::BeginDocument(void)
|
||||
NS_IMETHODIMP nsDeviceContextXlib::BeginDocument(PRUnichar * aTitle)
|
||||
{
|
||||
PR_LOG(DeviceContextXlibLM, PR_LOG_DEBUG, ("nsDeviceContextXlib::BeginDocument()\n"));
|
||||
return NS_OK;
|
||||
|
|
|
@ -58,7 +58,7 @@ public:
|
|||
NS_IMETHOD GetDeviceContextFor(nsIDeviceContextSpec *aDevice,
|
||||
nsIDeviceContext *&aContext);
|
||||
|
||||
NS_IMETHOD BeginDocument(void);
|
||||
NS_IMETHOD BeginDocument(PRUnichar * aTitle);
|
||||
NS_IMETHOD EndDocument(void);
|
||||
|
||||
NS_IMETHOD BeginPage(void);
|
||||
|
|
|
@ -343,11 +343,11 @@ NS_IMETHODIMP nsDeviceContextXP::GetDeviceContextFor(nsIDeviceContextSpec *aDevi
|
|||
/** ---------------------------------------------------
|
||||
* See documentation in nsIDeviceContext.h
|
||||
*/
|
||||
NS_IMETHODIMP nsDeviceContextXP::BeginDocument(void)
|
||||
NS_IMETHODIMP nsDeviceContextXP::BeginDocument(PRUnichar * aTitle)
|
||||
{
|
||||
nsresult rv = NS_OK;
|
||||
if (mPrintContext != nsnull) {
|
||||
rv = mPrintContext->BeginDocument();
|
||||
rv = mPrintContext->BeginDocument(aTitle);
|
||||
}
|
||||
return rv;
|
||||
}
|
||||
|
|
|
@ -71,7 +71,7 @@ public:
|
|||
|
||||
NS_IMETHOD GetDeviceContextFor(nsIDeviceContextSpec *aDevice,nsIDeviceContext *&aContext);
|
||||
NS_IMETHOD GetSystemAttribute(nsSystemAttrID anID, SystemAttrStruct * aInfo) const;
|
||||
NS_IMETHOD BeginDocument(void);
|
||||
NS_IMETHOD BeginDocument(PRUnichar * aTitle);
|
||||
NS_IMETHOD EndDocument(void);
|
||||
NS_IMETHOD BeginPage(void);
|
||||
NS_IMETHOD EndPage(void);
|
||||
|
|
Загрузка…
Ссылка в новой задаче