#include "wx/object.h"
#include "wx/printdlg.h"
+#include "wx/mac/printdlg.h"
#include "wx/dcprint.h"
#include "wx/msgdlg.h"
#include "wx/mac/private/print.h"
// Use generic page setup dialog: use your own native one if one exists.
IMPLEMENT_DYNAMIC_CLASS(wxMacPrintDialog, wxPrintDialogBase)
-IMPLEMENT_CLASS(wxPageSetupDialog, wxDialog)
wxMacPrintDialog::wxMacPrintDialog()
{
}
/*
-* wxPageSetupDialog
+* wxMacPageSetupDialog
*/
-wxPageSetupDialog::wxPageSetupDialog():
-wxDialog()
-{
- m_dialogParent = NULL;
-}
+IMPLEMENT_CLASS(wxMacPageSetupDialog, wxPageSetupDialogBase)
-wxPageSetupDialog::wxPageSetupDialog(wxWindow *p, wxPageSetupData *data):
-wxDialog()
+wxMacPageSetupDialog::wxMacPageSetupDialog(wxWindow *p, wxPageSetupDialogData *data) :
+wxPageSetupDialogBase()
{
Create(p, data);
}
-bool wxPageSetupDialog::Create(wxWindow *p, wxPageSetupData *data)
+bool wxMacPageSetupDialog::Create(wxWindow *p, wxPageSetupDialogData *data)
{
m_dialogParent = p;
return TRUE;
}
-wxPageSetupDialog::~wxPageSetupDialog()
+wxMacPageSetupDialog::~wxMacPageSetupDialog()
{
}
-int wxPageSetupDialog::ShowModal()
+wxPageSetupData& wxMacPageSetupDialog::GetPageSetupDialogData()
+{
+ return m_pageSetupData;
+}
+
+int wxMacPageSetupDialog::ShowModal()
{
- m_pageSetupData.ConvertToNative() ;
- int result = m_pageSetupData.GetPrintData().m_nativePrintData->ShowPageSetupDialog() ;
+ m_pageSetupData.ConvertToNative();
+
+ int result = m_pageSetupData.GetPrintData().m_nativePrintData->ShowPageSetupDialog();
+
if (result == wxID_OK )
- m_pageSetupData.ConvertFromNative() ;
+ m_pageSetupData.ConvertFromNative();
- return result ;
+ return result;
}