зеркало из https://github.com/mozilla/pjs.git
b=118889 r=rods sr=sfraser Fixed app. so printSettings dialogs will work
This commit is contained in:
Родитель
8be098f38d
Коммит
aac677d01d
|
@ -86,8 +86,11 @@ nsPrintOptionsX::~nsPrintOptionsX()
|
|||
/** ---------------------------------------------------
|
||||
*/
|
||||
NS_IMETHODIMP
|
||||
nsPrintOptionsX::ShowNativeDialog(void)
|
||||
nsPrintOptionsX::ShowPrintSetupDialog(nsIPrintSettings *aThePrintSettings)
|
||||
{
|
||||
|
||||
ReadPrefs();
|
||||
|
||||
NS_ASSERTION(mPageFormat != kPMNoPageFormat, "No page format");
|
||||
if (mPageFormat == kPMNoPageFormat)
|
||||
return NS_ERROR_NOT_INITIALIZED;
|
||||
|
@ -104,6 +107,8 @@ nsPrintOptionsX::ShowNativeDialog(void)
|
|||
status = ::PMPageSetupDialog(mPageFormat, &accepted);
|
||||
|
||||
::PMEnd();
|
||||
|
||||
WritePrefs();
|
||||
|
||||
if (status != noErr)
|
||||
return NS_ERROR_FAILURE;
|
||||
|
|
|
@ -55,7 +55,7 @@ public:
|
|||
nsPrintOptionsX();
|
||||
virtual ~nsPrintOptionsX();
|
||||
|
||||
NS_IMETHOD ShowNativeDialog(void);
|
||||
NS_IMETHOD ShowPrintSetupDialog(nsIPrintSettings *aThePrintSettings);
|
||||
|
||||
NS_IMETHOD ReadPrefs(void);
|
||||
NS_IMETHOD WritePrefs(void);
|
||||
|
|
Загрузка…
Ссылка в новой задаче