]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/prntbase.cpp
Fix wxCocoa build by including the relevant headers for the __WXOSX__ case.
[wxWidgets.git] / src / common / prntbase.cpp
index 9ca0f726c392fba4714366f257ac27d2a97d5ef5..112f818218391c69017265aa23bc196437999155 100644 (file)
@@ -205,6 +205,21 @@ wxDialog *wxNativePrintFactory::CreatePrintSetupDialog( wxWindow *parent,
 #endif
 }
 
+#if wxUSE_NEW_DC
+
+wxImplDC* wxNativePrintFactory::CreatePrinterImplDC( wxPrinterDC *owner, const wxPrintData& data )
+{
+#if defined(__WXMSW__) && !defined(__WXUNIVERSAL__)
+    return new wxWindowsPrinterDCImpl( owner, data );
+#elif defined(__WXMAC__)
+    return new wxMacPrinterDCImpl( owner, data );
+#else
+    return new wxPostScriptImplDC( owner, data );
+#endif
+}
+
+#else
+
 wxDC* wxNativePrintFactory::CreatePrinterDC( const wxPrintData& data )
 {
 #if defined(__WXMSW__) && !defined(__WXUNIVERSAL__)
@@ -216,6 +231,8 @@ wxDC* wxNativePrintFactory::CreatePrinterDC( const wxPrintData& data )
 #endif
 }
 
+#endif
+
 bool wxNativePrintFactory::HasOwnPrintToFile()
 {
     // Only relevant for PostScript and here the