// Author: Stefan Csomor
// Modified by:
// Created: 1998-01-01
-// RCS-ID: $Id$
// Copyright: (c) Stefan Csomor
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#include "wx/osx/private/print.h"
#include "wx/osx/private.h"
#include "wx/statline.h"
+#include "wx/modalhook.h"
int wxMacPrintDialog::ShowModal()
{
+ WX_HOOK_MODAL_DIALOG();
+
m_printDialogData.GetPrintData().ConvertToNative();
((wxOSXPrintData*)m_printDialogData.GetPrintData().GetNativeData())->TransferFrom( &m_printDialogData );
OSErr err = noErr;
Boolean accepted;
wxOSXPrintData* nativeData = (wxOSXPrintData*)m_printDialogData.GetPrintData().GetNativeData();
+ wxDialog::OSXBeginModalDialog();
err = PMSessionPrintDialog(nativeData->GetPrintSession(), nativeData->GetPrintSettings(),
nativeData->GetPageFormat(), &accepted );
+ wxDialog::OSXEndModalDialog();
if ((err == noErr) && !accepted)
{
int wxMacPageSetupDialog::ShowModal()
{
+ WX_HOOK_MODAL_DIALOG();
+
m_pageSetupData.GetPrintData().ConvertToNative();
wxOSXPrintData* nativeData = (wxOSXPrintData*)m_pageSetupData.GetPrintData().GetNativeData();
nativeData->TransferFrom( &m_pageSetupData );
OSErr err = noErr;
Boolean accepted;
+ wxDialog::OSXBeginModalDialog();
err = PMSessionPageSetupDialog( nativeData->GetPrintSession(), nativeData->GetPageFormat(),
&accepted );
+ wxDialog::OSXEndModalDialog();
if ((err == noErr) && !accepted)
{