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:
@@ -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
|
||||
//----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user