]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/motif/dcprint.h
avoid GCC warning about type-punned pointer breaking strict aliasing rules
[wxWidgets.git] / include / wx / motif / dcprint.h
index 61e593c15e8578dde6ef9c21c543579a0a4b7f9d..4980bf3938e4f4c44752818abe18da2d211db60a 100644 (file)
 #ifndef _WX_DCPRINT_H_
 #define _WX_DCPRINT_H_
 
-#include "wx/dc.h"
+#include "wx/motif/dc.h"
 
-class WXDLLEXPORT wxPrinterDC: public wxDC
+class WXDLLEXPORT wxPrinterDC : public wxMotifDCImpl
 {
 public:
-    DECLARE_CLASS(wxPrinterDC)
-
     // Create a printer DC
-    wxPrinterDC(const wxString& driver, const wxString& device, const wxString& output, bool interactive = true, int orientation = wxPORTRAIT);
+    wxPrinterDCImpl(const wxString& driver, const wxString& device,
+                    const wxString& output,
+                    bool interactive = true,
+                    int orientation = wxPORTRAIT);
+    virtual ~wxPrinterDC();
+
+    wxRect GetPaperRect();
 
-    ~wxPrinterDC();
+    DECLARE_CLASS(wxPrinterDCImpl)
 };
 
-#endif
-// _WX_DCPRINT_H_
+#endif // _WX_DCPRINT_H_