Moved deletion of wxPrintFacory to module.

Added wxWidgets 2.4 backward comp methods
   to wxPrintData which make use of the
   PostScript native print data if used.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30334 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2004-11-07 10:11:48 +00:00
parent bcac1ec21b
commit 0ab2de15cb
3 changed files with 197 additions and 1 deletions

View File

@@ -246,6 +246,23 @@ wxPrintNativeDataBase::wxPrintNativeDataBase()
m_ref = 1;
}
//----------------------------------------------------------------------------
// wxPrintFactoryModule
//----------------------------------------------------------------------------
class wxPrintFactoryModule: public wxModule
{
public:
wxPrintFactoryModule() {}
bool OnInit() { return true; }
void OnExit() { wxPrintFactory::SetPrintFactory( NULL ); }
private:
DECLARE_DYNAMIC_CLASS(wxPrintFactoryModule)
};
IMPLEMENT_DYNAMIC_CLASS(wxPrintFactoryModule, wxModule)
//----------------------------------------------------------------------------
// wxPrinterBase
//----------------------------------------------------------------------------