/////////////////////////////////////////////////////////////////////////////
-// Name: wx/mac/carbon/printdlg.h
+// Name: wx/osx/printdlg.h
// Purpose: wxPrintDialog, wxPageSetupDialog classes.
// Use generic, PostScript version if no
// platform-specific implementation.
#include "wx/cmndata.h"
#include "wx/printdlg.h"
#include "wx/prntbase.h"
-
+
/*
* wxMacPrintDialog
* The Mac dialog for printing
wxDC* m_printerDC;
bool m_destroyDC;
wxWindow* m_dialogParent;
-
+
private:
DECLARE_DYNAMIC_CLASS(wxPrintDialog)
};
class WXDLLIMPEXP_CORE wxMacPageSetupDialog: public wxPageSetupDialogBase
{
public:
- wxMacPageSetupDialog(wxWindow *parent, wxPageSetupData *data = NULL);
+ wxMacPageSetupDialog(wxWindow *parent, wxPageSetupDialogData *data = NULL);
virtual ~wxMacPageSetupDialog();
- virtual wxPageSetupData& GetPageSetupDialogData();
-
- bool Create(wxWindow *parent, wxPageSetupData *data = NULL);
+ virtual wxPageSetupDialogData& GetPageSetupDialogData();
+
+ bool Create(wxWindow *parent, wxPageSetupDialogData *data = NULL);
virtual int ShowModal();
-
+
private:
- wxPageSetupData m_pageSetupData;
+ wxPageSetupDialogData m_pageSetupData;
wxWindow* m_dialogParent;
-
+
private:
DECLARE_DYNAMIC_CLASS_NO_COPY(wxMacPageSetupDialog)
};
class WXDLLIMPEXP_CORE wxMacPageMarginsDialog : public wxDialog
{
public:
- wxMacPageMarginsDialog(wxFrame* parent, wxPageSetupData* data);
+ wxMacPageMarginsDialog(wxFrame* parent, wxPageSetupDialogData* data);
bool TransferToWindow();
bool TransferDataFromWindow();
- virtual wxPageSetupData& GetPageSetupDialogData() { return *m_pageSetupDialogData; }
+ virtual wxPageSetupDialogData& GetPageSetupDialogData() { return *m_pageSetupDialogData; }
private:
- wxPageSetupData* m_pageSetupDialogData;
-
+ wxPageSetupDialogData* m_pageSetupDialogData;
+
wxPoint m_MinMarginTopLeft;
wxPoint m_MinMarginBottomRight;
wxTextCtrl *m_LeftMargin;
wxTextCtrl *m_TopMargin;
wxTextCtrl *m_RightMargin;
wxTextCtrl *m_BottomMargin;
-
+
void GetMinMargins();
bool CheckValue(wxTextCtrl* textCtrl, int *value, int minValue, const wxString& name);
-
+
private:
DECLARE_DYNAMIC_CLASS_NO_COPY(wxMacPageMarginsDialog)
};