Compile with printarch off

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50373 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2007-11-30 19:59:43 +00:00
parent 488194403e
commit 6b4f4d4731
2 changed files with 9 additions and 0 deletions

View File

@@ -125,7 +125,9 @@ public:
virtual wxDCImpl* CreateMemoryDC( wxMemoryDC *owner, wxBitmap &bitmap ) = 0; virtual wxDCImpl* CreateMemoryDC( wxMemoryDC *owner, wxBitmap &bitmap ) = 0;
virtual wxDCImpl* CreateMemoryDC( wxMemoryDC *owner, wxDC *dc ) = 0; virtual wxDCImpl* CreateMemoryDC( wxMemoryDC *owner, wxDC *dc ) = 0;
virtual wxDCImpl* CreateScreenDC( wxScreenDC *owner ) = 0; virtual wxDCImpl* CreateScreenDC( wxScreenDC *owner ) = 0;
#if wxUSE_PRINTING_ARCHITECTURE
virtual wxDCImpl* CreatePrinterDC( wxPrinterDC *owner, const wxPrintData &data ) = 0; virtual wxDCImpl* CreatePrinterDC( wxPrinterDC *owner, const wxPrintData &data ) = 0;
#endif
static void SetDCFactory( wxDCFactory *factory ); static void SetDCFactory( wxDCFactory *factory );
static wxDCFactory *GetFactory(); static wxDCFactory *GetFactory();
@@ -152,7 +154,9 @@ public:
virtual wxDCImpl* CreateMemoryDC( wxMemoryDC *owner, wxBitmap &bitmap ); virtual wxDCImpl* CreateMemoryDC( wxMemoryDC *owner, wxBitmap &bitmap );
virtual wxDCImpl* CreateMemoryDC( wxMemoryDC *owner, wxDC *dc ); virtual wxDCImpl* CreateMemoryDC( wxMemoryDC *owner, wxDC *dc );
virtual wxDCImpl* CreateScreenDC( wxScreenDC *owner ); virtual wxDCImpl* CreateScreenDC( wxScreenDC *owner );
#if wxUSE_PRINTING_ARCHITECTURE
virtual wxDCImpl* CreatePrinterDC( wxPrinterDC *owner, const wxPrintData &data ); virtual wxDCImpl* CreatePrinterDC( wxPrinterDC *owner, const wxPrintData &data );
#endif
}; };
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------

View File

@@ -136,11 +136,13 @@ wxDCImpl* wxNativeDCFactory::CreateScreenDC( wxScreenDC *owner )
return new wxScreenDCImpl( owner ); return new wxScreenDCImpl( owner );
} }
#if wxUSE_PRINTING_ARCHITECTURE
wxDCImpl *wxNativeDCFactory::CreatePrinterDC( wxPrinterDC *owner, const wxPrintData &data ) wxDCImpl *wxNativeDCFactory::CreatePrinterDC( wxPrinterDC *owner, const wxPrintData &data )
{ {
wxPrintFactory *factory = wxPrintFactory::GetFactory(); wxPrintFactory *factory = wxPrintFactory::GetFactory();
return factory->CreatePrinterDCImpl( owner, data ); return factory->CreatePrinterDCImpl( owner, data );
} }
#endif
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// wxWindowDC // wxWindowDC
@@ -257,6 +259,8 @@ wxScreenDC::wxScreenDC()
// wxPrinterDC // wxPrinterDC
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
#if wxUSE_PRINTING_ARCHITECTURE
IMPLEMENT_DYNAMIC_CLASS(wxPrinterDC, wxDC) IMPLEMENT_DYNAMIC_CLASS(wxPrinterDC, wxDC)
wxPrinterDC::wxPrinterDC() wxPrinterDC::wxPrinterDC()
@@ -286,6 +290,7 @@ int wxPrinterDC::GetResolution()
return GetImpl()->GetResolution(); return GetImpl()->GetResolution();
} }
#endif
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// wxDCImpl // wxDCImpl