]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/prntbase.cpp
Made wxPageSetupDialog a pimpl implementation.
[wxWidgets.git] / src / common / prntbase.cpp
index e1f655959fc44ec0c1b7051880f9e9430bd80357..6bf627c9675faf33882eb5fc93dd661f73f773da 100644 (file)
@@ -171,8 +171,12 @@ bool wxNativePrintFactory::HasPrintSetupDialog()
 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
@@ -242,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
 //----------------------------------------------------------------------------