зеркало из https://github.com/mozilla/gecko-dev.git
Added silent parameter. r=mclusky sr=attinasi
This commit is contained in:
Родитель
9626919edb
Коммит
d15c0b1930
|
@ -134,6 +134,7 @@ interface nsIPrintOptions : nsISupports
|
|||
attribute short howToEnableFrameUI;
|
||||
attribute short printFrameType;
|
||||
attribute boolean isCancelled;
|
||||
attribute boolean PrintSilent; /* print without putting up the dialog */
|
||||
|
||||
|
||||
/* Additional XP Related */
|
||||
|
|
|
@ -590,6 +590,21 @@ NS_IMETHODIMP nsPrintOptions::SetIsCancelled(PRBool aIsCancelled)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
/* attribute long isCancelled; */
|
||||
NS_IMETHODIMP nsPrintOptions::GetPrintSilent(PRBool *aPrintSilent)
|
||||
{
|
||||
NS_ENSURE_ARG_POINTER(aPrintSilent);
|
||||
*aPrintSilent = mPrintSilent;
|
||||
return NS_OK;
|
||||
}
|
||||
NS_IMETHODIMP nsPrintOptions::SetPrintSilent(PRBool aPrintSilent)
|
||||
{
|
||||
mPrintSilent = aPrintSilent;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------------------
|
||||
//-- Protected Methods
|
||||
//-----------------------------------------------------
|
||||
|
|
|
@ -63,6 +63,7 @@ protected:
|
|||
PRInt16 mPrintFrameType;
|
||||
PRBool mHowToEnableFrameUI;
|
||||
PRBool mIsCancelled;
|
||||
PRBool mPrintSilent;
|
||||
PRInt32 mPrintPageDelay;
|
||||
|
||||
nsFont* mDefaultFont;
|
||||
|
|
Загрузка…
Ссылка в новой задаче