]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/mac/classic/printdlg.h
Wine fixes
[wxWidgets.git] / include / wx / mac / classic / printdlg.h
index 3fc28c3d03ecf83667e9a15a8cfac7eab876e6ba..2bb57e93bc07ca0a45eefd743abda89d0b4d9195 100644 (file)
@@ -31,7 +31,7 @@ class WXDLLEXPORT wxPrintDialog: public wxDialog
   wxPrintDialog();
     wxPrintDialog(wxWindow *parent, wxPrintDialogData* data = NULL);
   wxPrintDialog(wxWindow *parent, wxPrintData* data );
   wxPrintDialog();
     wxPrintDialog(wxWindow *parent, wxPrintDialogData* data = NULL);
   wxPrintDialog(wxWindow *parent, wxPrintData* data );
-  ~wxPrintDialog();
+  virtual ~wxPrintDialog();
 
     bool Create(wxWindow *parent, wxPrintDialogData* data = NULL);
   virtual int ShowModal();
 
     bool Create(wxWindow *parent, wxPrintDialogData* data = NULL);
   virtual int ShowModal();
@@ -54,16 +54,48 @@ class WXDLLEXPORT wxPageSetupDialog: public wxDialog
  public:
   wxPageSetupDialog();
   wxPageSetupDialog(wxWindow *parent, wxPageSetupData *data = NULL);
  public:
   wxPageSetupDialog();
   wxPageSetupDialog(wxWindow *parent, wxPageSetupData *data = NULL);
-  ~wxPageSetupDialog();
+  virtual ~wxPageSetupDialog();
 
   bool Create(wxWindow *parent, wxPageSetupData *data = NULL);
   virtual int ShowModal();
 
 
   bool Create(wxWindow *parent, wxPageSetupData *data = NULL);
   virtual int ShowModal();
 
-  inline wxPageSetupData& GetPageSetupData() { return m_pageSetupData; }
+  virtual wxPageSetupData& GetPageSetupDialogData() { return m_pageSetupData; }
  private:
   wxPageSetupData   m_pageSetupData;
   wxWindow*         m_dialogParent;
 };
 
  private:
   wxPageSetupData   m_pageSetupData;
   wxWindow*         m_dialogParent;
 };
 
-#endif
-    // _WX_PRINTDLG_H_
+
+/*
+* wxMacPageMarginsDialog
+* A Mac dialog for setting the page margins separately from page setup since
+* (native) wxMacPageSetupDialog doesn't let you set margins.
+*/
+
+class WXDLLEXPORT wxMacPageMarginsDialog : public wxDialog
+{
+public:
+    wxMacPageMarginsDialog(wxFrame* parent, wxPageSetupData* data);
+    bool TransferToWindow();
+    bool TransferDataFromWindow();
+    virtual wxPageSetupData& GetPageSetupDialogData() { return *m_pageSetupDialogData; }
+
+private:
+    wxPageSetupData* 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)
+};
+
+
+#endif    // _WX_PRINTDLG_H_