/////////////////////////////////////////////////////////////////////////////
-// Name: printdlg.cpp
+// Name: src/mac/classic/printdlg.cpp
// Purpose: wxPrintDialog, wxPageSetupDialog
// Author: Stefan Csomor
// Modified by:
// Created: 1998-01-01
// RCS-ID: $Id$
// Copyright: (c) Stefan Csomor
-// Licence: wxWindows licence
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
-#pragma implementation "printdlg.h"
-#endif
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
-#include "wx/object.h"
#include "wx/printdlg.h"
-#include "wx/dcprint.h"
-#include "wx/msgdlg.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/object.h"
+ #include "wx/dcprint.h"
+ #include "wx/msgdlg.h"
+#endif
+
#include "wx/mac/private/print.h"
// Use generic page setup dialog: use your own native one if one exists.
-#if !USE_SHARED_LIBRARY
IMPLEMENT_DYNAMIC_CLASS(wxPrintDialog, wxDialog)
IMPLEMENT_CLASS(wxPageSetupDialog, wxDialog)
-#endif
wxPrintDialog::wxPrintDialog()
{
m_dialogParent = NULL;
m_printerDC = NULL;
- m_destroyDC = TRUE;
+ m_destroyDC = true;
}
wxPrintDialog::wxPrintDialog(wxWindow *p, wxPrintDialogData* data)
wxPrintDialogData data2;
if ( data )
data2 = *data;
-
+
Create(p, &data2);
}
{
m_dialogParent = p;
m_printerDC = NULL;
- m_destroyDC = TRUE;
-
+ m_destroyDC = true;
+
if ( data )
m_printDialogData = *data;
-
- return TRUE;
+
+ return true;
}
wxPrintDialog::~wxPrintDialog()
int result = m_printDialogData.GetPrintData().m_nativePrintData->ShowPrintDialog() ;
if ( result == wxID_OK )
m_printDialogData.ConvertFromNative() ;
-
+
return result ;
}
bool wxPageSetupDialog::Create(wxWindow *p, wxPageSetupData *data)
{
m_dialogParent = p;
-
+
if (data)
m_pageSetupData = (*data);
-
- return TRUE;
+
+ return true;
}
wxPageSetupDialog::~wxPageSetupDialog()
int result = m_pageSetupData.GetPrintData().m_nativePrintData->ShowPageSetupDialog() ;
if (result == wxID_OK )
m_pageSetupData.ConvertFromNative() ;
-
+
return result ;
}
-