#ifndef _WX_PRINTDLG_H_
#define _WX_PRINTDLG_H_
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(__APPLE__)
#pragma interface "printdlg.h"
#endif
public:
wxPrintDialog();
- wxPrintDialog(wxWindow *parent, wxPrintData* data = NULL);
+ wxPrintDialog(wxWindow *parent, wxPrintDialogData* data = NULL);
+ wxPrintDialog(wxWindow *parent, wxPrintData* data );
~wxPrintDialog();
- bool Create(wxWindow *parent, wxPrintData* data = NULL);
+ bool Create(wxWindow *parent, wxPrintDialogData* data = NULL);
virtual int ShowModal();
- inline wxPrintData& GetPrintData() { return m_printData; }
+ wxPrintDialogData& GetPrintDialogData() { return m_printDialogData; }
+ wxPrintData& GetPrintData() { return m_printDialogData.GetPrintData(); }
virtual wxDC *GetPrintDC();
private:
- wxPrintData m_printData;
+ wxPrintDialogData m_printDialogData;
wxDC* m_printerDC;
+ bool m_destroyDC;
wxWindow* m_dialogParent;
};
{
DECLARE_DYNAMIC_CLASS(wxPageSetupDialog)
- private:
- wxPageSetupData m_pageSetupData;
- wxWindow* m_dialogParent;
public:
wxPageSetupDialog();
wxPageSetupDialog(wxWindow *parent, wxPageSetupData *data = NULL);
virtual int ShowModal();
inline wxPageSetupData& GetPageSetupData() { return m_pageSetupData; }
+ private:
+ wxPageSetupData m_pageSetupData;
+ wxWindow* m_dialogParent;
};
#endif