#include "wx/link.h"
wxFORCE_LINK_THIS_MODULE(gtk_print)
-#if wxUSE_LIBGNOMEPRINT
-#include "wx/gtk/gnome/gprint.h"
-#endif
-
#include "wx/gtk/private/object.h"
// Useful to convert angles from/to Rad to/from Deg.
//----------------------------------------------------------------------------
// wxGtkPrintModule
// Initialized when starting the app : if it successfully load the gtk-print framework,
-// it uses it. If not, it falls back to gnome print (see /gtk/gnome/gprint.cpp) then
-// to postscript if gnomeprint is not available.
+// it uses it. If not, it falls back to Postscript.
//----------------------------------------------------------------------------
class wxGtkPrintModule: public wxModule
public:
wxGtkPrintModule()
{
-#if wxUSE_LIBGNOMEPRINT
- // This module must be initialized AFTER gnomeprint's one
- AddDependency(wxCLASSINFO(wxGnomePrintModule));
-#endif
}
bool OnInit();
void OnExit() {}
void* wxGtkPrinterDCImpl::GetCairoContext() const
{
- return (void*) cairo_reference( m_cairo );
+ return m_cairo;
}
void* wxGtkPrinterDCImpl::GetHandle() const