Added silent parameter. r=mclusky sr=attinasi

This commit is contained in:
dcone%netscape.com 2001-04-04 14:55:26 +00:00
Родитель 115a7fc3ee
Коммит ef62ecc448
3 изменённых файлов: 17 добавлений и 0 удалений

Просмотреть файл

@ -134,6 +134,7 @@ interface nsIPrintOptions : nsISupports
attribute short howToEnableFrameUI; attribute short howToEnableFrameUI;
attribute short printFrameType; attribute short printFrameType;
attribute boolean isCancelled; attribute boolean isCancelled;
attribute boolean PrintSilent; /* print without putting up the dialog */
/* Additional XP Related */ /* Additional XP Related */

Просмотреть файл

@ -590,6 +590,21 @@ NS_IMETHODIMP nsPrintOptions::SetIsCancelled(PRBool aIsCancelled)
return NS_OK; 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 //-- Protected Methods
//----------------------------------------------------- //-----------------------------------------------------

Просмотреть файл

@ -63,6 +63,7 @@ protected:
PRInt16 mPrintFrameType; PRInt16 mPrintFrameType;
PRBool mHowToEnableFrameUI; PRBool mHowToEnableFrameUI;
PRBool mIsCancelled; PRBool mIsCancelled;
PRBool mPrintSilent;
PRInt32 mPrintPageDelay; PRInt32 mPrintPageDelay;
nsFont* mDefaultFont; nsFont* mDefaultFont;