// Author: Stefan Csomor
// Modified by:
// Created: 1998-01-01
-// RCS-ID: $Id: printdlg.cpp 58164 2009-01-17 08:46:00Z SC $
+// RCS-ID: $Id$
// Copyright: (c) Stefan Csomor
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
wxMacPrintDialog::~wxMacPrintDialog()
{
- if (m_destroyDC && m_printerDC)
+ if (m_destroyDC)
{
- delete m_printerDC;
- m_printerDC = NULL;
+ wxDELETE(m_printerDC);
}
}
IMPLEMENT_CLASS(wxMacPageSetupDialog, wxPageSetupDialogBase)
-wxMacPageSetupDialog::wxMacPageSetupDialog( wxWindow *p, wxPageSetupData *data )
+wxMacPageSetupDialog::wxMacPageSetupDialog( wxWindow *p, wxPageSetupDialogData *data )
: wxPageSetupDialogBase()
{
Create( p, data );
}
-bool wxMacPageSetupDialog::Create( wxWindow *p, wxPageSetupData *data )
+bool wxMacPageSetupDialog::Create( wxWindow *p, wxPageSetupDialogData *data )
{
m_dialogParent = p;
{
}
-wxPageSetupData& wxMacPageSetupDialog::GetPageSetupDialogData()
+wxPageSetupDialogData& wxMacPageSetupDialog::GetPageSetupDialogData()
{
return m_pageSetupData;
}
IMPLEMENT_CLASS(wxMacPageMarginsDialog, wxDialog)
-wxMacPageMarginsDialog::wxMacPageMarginsDialog(wxFrame *parent, wxPageSetupData *data) :
+wxMacPageMarginsDialog::wxMacPageMarginsDialog(wxFrame *parent, wxPageSetupDialogData *data) :
wxDialog(parent, wxID_ANY, wxString(wxT("Page Margins"))),
m_pageSetupDialogData(data)
{
m_LeftMargin->SetFocus();
return true;
}
-
+
bool wxMacPageMarginsDialog::TransferDataFromWindow()
{
wxPoint topLeft, bottomRight;
m_pageSetupDialogData->SetMarginBottomRight(bottomRight);
return true;
}
-
+
bool wxMacPageMarginsDialog::CheckValue(wxTextCtrl* textCtrl, int *value, int minValue, const wxString& name)
{
long lvalue;