wxDialog *wxNativePrintFactory::CreatePrintSetupDialog( wxWindow *parent, wxPrintData *data )
{
#if defined(__WXMSW__) && !defined(__WXUNIVERSAL__)
+ wxUnusedVar(parent);
+ wxUnusedVar(data);
return NULL;
#elif defined(__WXMAC__)
+ wxUnusedVar(parent);
+ wxUnusedVar(data);
return NULL;
#else
// Only here do we need to provide the print setup
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
//----------------------------------------------------------------------------