- GtkPrintContext *m_gpc;
- static int ms_resolution;
-
- wxCoord DeviceToLogicalX(wxCoord x) const
- {
- int addValue = 0;
- if (m_signX == -1) addValue = m_deviceOffsetX - m_deviceOriginX; // right to left
- else addValue = m_deviceOriginX;// left to right
- return (wxCoord) ((double)(x - addValue) * m_signX + m_logicalOriginX);
- }
- wxCoord DeviceToLogicalXRel(wxCoord x) const
- {
- return x;
- }
- wxCoord DeviceToLogicalY(wxCoord y) const
- {
- int addValue = 0;
- if (m_signY == -1) addValue = m_deviceOffsetY - m_deviceOriginY; // bottom to up
- else addValue = m_deviceOriginY;// up to bottom
- return (wxCoord) ((double)(y - addValue) * m_signY + m_logicalOriginY);
- }
- wxCoord DeviceToLogicalYRel(wxCoord y) const
- {
- return y;
- }
- wxCoord LogicalToDeviceX(wxCoord x) const
- {
- int addValue = 0;
- if (m_signX == -1) addValue = m_deviceOffsetX - m_deviceOriginX; // right to left
- else addValue = m_deviceOriginX;// left to right
- return (wxCoord) ((double)(x - m_logicalOriginX) * m_signX + addValue);
- }
- wxCoord LogicalToDeviceXRel(wxCoord x) const
- {
- return x;
- }
- wxCoord LogicalToDeviceY(wxCoord y) const
- {
- int addValue = 0;
- if (m_signY == -1) addValue = m_deviceOffsetY - m_deviceOriginY; // bottom to up
- else addValue = m_deviceOriginY;// up to bottom
- return (wxCoord) ((double)(y - m_logicalOriginY) * m_signY + addValue);
- }
- wxCoord LogicalToDeviceYRel(wxCoord y) const
- {
- return y;
- }
-
- DECLARE_DYNAMIC_CLASS(wxGtkPrintDC)
- DECLARE_NO_COPY_CLASS(wxGtkPrintDC)