Further compile fixes.

Added module so that linking to GNOME printing
    code will install its wxPrintFactory.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30232 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2004-11-01 23:05:24 +00:00
parent f201b1e293
commit 58c30cd80c
4 changed files with 38 additions and 8 deletions

View File

@@ -7,8 +7,8 @@
// Licence: wxWindows Licence
/////////////////////////////////////////////////////////////////////////////
#ifdef __GNUG__
#pragma implementation "gprint.cpp"
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "gprint.h"
#endif
// For compilers that support precompilation, includes "wx/wx.h".
@@ -273,6 +273,7 @@ wxDC* wxGnomePrinter::PrintDialog( wxWindow *parent )
bool wxGnomePrinter::Setup( wxWindow *parent )
{
return false;
}
//-----------------------------------------------------------------------------
@@ -663,5 +664,19 @@ int wxGnomePrintDC::GetResolution()
return 72;
}
class wxGnomePrintModule: public wxModule
{
public:
wxGnomePrintModule() {}
bool OnInit() { wxPrintFactory::SetPrintFactory( new wxGnomePrintFactory ); return true; }
void OnExit() { }
private:
DECLARE_DYNAMIC_CLASS(wxGnomePrintModule)
};
IMPLEMENT_DYNAMIC_CLASS(wxGnomePrintModule, wxModule)
#endif
// wxUSE_LIBGNOMEPRINT