#pragma hdrstop
#endif
-#include "wx/gtk/gnome/gprint.h"
-
#if wxUSE_LIBGNOMEPRINT
+#include "wx/gtk/gnome/gprint.h"
+
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/dcmemory.h"
static const double RAD2DEG = 180.0 / M_PI;
-#include "wx/html/forcelnk.h"
-FORCE_LINK_ME(gnome_print)
+#include "wx/link.h"
+wxFORCE_LINK_THIS_MODULE(gnome_print)
//----------------------------------------------------------------------------
// wxGnomePrintLibrary
{
gs_lgp->gnome_print_job_close( job );
g_object_unref (job);
- sm_lastError = wxPRINTER_ERROR;
+ if (sm_lastError != wxPRINTER_CANCELLED)
+ sm_lastError = wxPRINTER_ERROR;
return false;
}
m_signX = 1; // default x-axis left to right
m_signY = -1; // default y-axis bottom up -> top down
-
+
GetSize( NULL, &m_deviceOffsetY );
}
m_currentGreen = 0;
m_signX = 1; // default x-axis left to right
- m_signY = -1; // default y-axis bottom up -> top down
-
+ m_signY = -1; // default y-axis bottom up -> top down
+
GetSize( NULL, &m_deviceOffsetY );
}
m_previewPrintout->SetPPIPrinter(wxGnomePrintDC::GetResolution(), wxGnomePrintDC::GetResolution());
wxSize sizeDevUnits(paper->GetSizeDeviceUnits());
-
+
// TODO: get better resolution information from wxGnomePrintDC, if possible.
sizeDevUnits.x = (wxCoord)((float)sizeDevUnits.x * wxGnomePrintDC::GetResolution() / 72.0);