]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/prntbase.cpp
added GetIfActive() method returning non-NULL engine only if themes are not only...
[wxWidgets.git] / src / common / prntbase.cpp
index e0a3bbf3a599d9e45f32b8e2938172dc0118522f..6bf627c9675faf33882eb5fc93dd661f73f773da 100644 (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
 //----------------------------------------------------------------------------