- m_pageSetupData.ConvertToNative() ;
-
- // Display the Page Setup dialog.
- if (err == noErr)
- {
- err = PMSessionPageSetupDialog((PMPrintSession)m_pageSetupData.GetPrintData().m_macPrintSession,
- (PMPageFormat)m_pageSetupData.GetPrintData().m_macPageFormat,
- &accepted);
- if ((err == noErr) && !accepted)
- {
- err = kPMCancel; // user clicked Cancel button
- }
- }
-
- // If the user did not cancel, flatten and save the PageFormat object
- // with our document.
- if (err == noErr) {
- // err = FlattenAndSavePageFormat(m_pageSetupData.GetPrintData().m_macPageFormat);
- m_pageSetupData.ConvertFromNative() ;
- result = wxID_OK ;
- }