X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b4f4d3dd610a29a7be3c7a5f165520438d0328bb..8064223b7b1b3657363b7a635c381b9269d95e55:/src/mac/carbon/printdlg.cpp diff --git a/src/mac/carbon/printdlg.cpp b/src/mac/carbon/printdlg.cpp index 8e13503729..66d2adf22d 100644 --- a/src/mac/carbon/printdlg.cpp +++ b/src/mac/carbon/printdlg.cpp @@ -26,6 +26,7 @@ #include "wx/mac/printdlg.h" #include "wx/mac/private/print.h" +#include "wx/mac/private.h" #include "wx/statline.h" @@ -82,9 +83,12 @@ int wxMacPrintDialog::ShowModal() ((wxMacCarbonPrintData*)m_printDialogData.GetPrintData().GetNativeData())->TransferFrom( &m_printDialogData ); int result = wxID_CANCEL; + +#ifdef __LP64__ + // TODO use NSPrintPanel +#else OSErr err = noErr; Boolean accepted; - err = PMSessionPrintDialog( ((wxMacCarbonPrintData*)m_printDialogData.GetPrintData().GetNativeData())->m_macPrintSession, ((wxMacCarbonPrintData*)m_printDialogData.GetPrintData().GetNativeData())->m_macPrintSettings, @@ -116,7 +120,7 @@ int wxMacPrintDialog::ShowModal() m_printDialogData.GetPrintData().ConvertFromNative(); ((wxMacCarbonPrintData*)m_printDialogData.GetPrintData().GetNativeData())->TransferTo( &m_printDialogData ); } - +#endif return result; } @@ -158,6 +162,8 @@ int wxMacPageSetupDialog::ShowModal() ((wxMacCarbonPrintData*)m_pageSetupData.GetPrintData().GetNativeData())->TransferFrom( &m_pageSetupData ); int result = wxID_CANCEL; +#ifdef __LP64__ +#else OSErr err = noErr; Boolean accepted; @@ -194,7 +200,7 @@ int wxMacPageSetupDialog::ShowModal() m_pageSetupData.SetPaperSize( m_pageSetupData.GetPrintData().GetPaperSize() ); ((wxMacCarbonPrintData*)m_pageSetupData.GetPrintData().GetNativeData())->TransferTo( &m_pageSetupData ); } - +#endif return result; }