]> git.saurik.com Git - wxWidgets.git/commitdiff
Compile with printarch off
authorRobert Roebling <robert@roebling.de>
Fri, 30 Nov 2007 19:59:43 +0000 (19:59 +0000)
committerRobert Roebling <robert@roebling.de>
Fri, 30 Nov 2007 19:59:43 +0000 (19:59 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50373 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/dc.h
src/common/dcbase.cpp

index 6a86ae856d649a0467df65b22c0bd221b59835cf..225b1fbeaa91e62579eecc8e6d8b1aa7c50c5bd6 100644 (file)
@@ -125,7 +125,9 @@ public:
     virtual wxDCImpl* CreateMemoryDC( wxMemoryDC *owner, wxBitmap &bitmap ) = 0;
     virtual wxDCImpl* CreateMemoryDC( wxMemoryDC *owner, wxDC *dc ) = 0;
     virtual wxDCImpl* CreateScreenDC( wxScreenDC *owner ) = 0;
+#if wxUSE_PRINTING_ARCHITECTURE
     virtual wxDCImpl* CreatePrinterDC( wxPrinterDC *owner, const wxPrintData &data  ) = 0;
+#endif
     
     static void SetDCFactory( wxDCFactory *factory );
     static wxDCFactory *GetFactory();
@@ -152,7 +154,9 @@ public:
     virtual wxDCImpl* CreateMemoryDC( wxMemoryDC *owner, wxBitmap &bitmap );
     virtual wxDCImpl* CreateMemoryDC( wxMemoryDC *owner, wxDC *dc );
     virtual wxDCImpl* CreateScreenDC( wxScreenDC *owner );
+#if wxUSE_PRINTING_ARCHITECTURE
     virtual wxDCImpl* CreatePrinterDC( wxPrinterDC *owner, const wxPrintData &data  );
+#endif
 };
 
 //-----------------------------------------------------------------------------
index 07353fba7435c1002e811eee09b99f0889521470..9ef2b86534f491cf350728bc2cfb236fad5cd6cb 100644 (file)
@@ -136,11 +136,13 @@ wxDCImpl* wxNativeDCFactory::CreateScreenDC( wxScreenDC *owner )
     return new wxScreenDCImpl( owner );
 }
 
+#if wxUSE_PRINTING_ARCHITECTURE
 wxDCImpl *wxNativeDCFactory::CreatePrinterDC( wxPrinterDC *owner, const wxPrintData &data )
 {
     wxPrintFactory *factory = wxPrintFactory::GetFactory();
     return factory->CreatePrinterDCImpl( owner, data );
 }
+#endif
 
 //-----------------------------------------------------------------------------
 // wxWindowDC
@@ -257,6 +259,8 @@ wxScreenDC::wxScreenDC()
 // wxPrinterDC
 //-----------------------------------------------------------------------------
 
+#if wxUSE_PRINTING_ARCHITECTURE
+
 IMPLEMENT_DYNAMIC_CLASS(wxPrinterDC, wxDC)
 
 wxPrinterDC::wxPrinterDC()
@@ -286,6 +290,7 @@ int wxPrinterDC::GetResolution()
     return GetImpl()->GetResolution();
 }
 
+#endif
 
 //-----------------------------------------------------------------------------
 // wxDCImpl