git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12113
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#ifdef __WXMAC__
void wxPrintData::ConvertToNative()
{
#ifdef __WXMAC__
void wxPrintData::ConvertToNative()
{
#else
(**m_macPrintInfo).prJob.iCopies = m_printNoCopies;
#endif
#else
(**m_macPrintInfo).prJob.iCopies = m_printNoCopies;
#endif
void wxPrintData::ConvertFromNative()
{
void wxPrintData::ConvertFromNative()
{
#else
m_printNoCopies = (**m_macPrintInfo).prJob.iCopies;
#endif
#else
m_printNoCopies = (**m_macPrintInfo).prJob.iCopies;
#endif
void wxPrintData::operator=(const wxPrintData& data)
{
#ifdef __WXMAC__
void wxPrintData::operator=(const wxPrintData& data)
{
#ifdef __WXMAC__
#else
m_macPrintInfo = data.m_macPrintInfo;
HandToHand( (Handle*) &m_macPrintInfo );
#else
m_macPrintInfo = data.m_macPrintInfo;
HandToHand( (Handle*) &m_macPrintInfo );
#ifdef __WXMAC__
void wxPrintDialogData::ConvertToNative()
{
#ifdef __WXMAC__
void wxPrintDialogData::ConvertToNative()
{
#else
(**m_printData.m_macPrintInfo).prJob.iFstPage = m_printFromPage;
(**m_printData.m_macPrintInfo).prJob.iLstPage = m_printToPage;
#else
(**m_printData.m_macPrintInfo).prJob.iFstPage = m_printFromPage;
(**m_printData.m_macPrintInfo).prJob.iLstPage = m_printToPage;
void wxPrintDialogData::ConvertFromNative()
{
void wxPrintDialogData::ConvertFromNative()
{
#else
m_printData.ConvertFromNative();
m_printFromPage = (**m_printData.m_macPrintInfo).prJob.iFstPage;
#else
m_printData.ConvertFromNative();
m_printFromPage = (**m_printData.m_macPrintInfo).prJob.iFstPage;
{
m_printData.ConvertToNative();
// on mac the paper rect has a negative top left corner, because the page rect (printable area) is at 0,0
{
m_printData.ConvertToNative();
// on mac the paper rect has a negative top left corner, because the page rect (printable area) is at 0,0
#else
(**m_printData.m_macPrintInfo).rPaper.left = int( ((double) m_minMarginTopLeft.x)*mm2pt );
(**m_printData.m_macPrintInfo).rPaper.top = int( ((double) m_minMarginTopLeft.y)*mm2pt );
#else
(**m_printData.m_macPrintInfo).rPaper.left = int( ((double) m_minMarginTopLeft.x)*mm2pt );
(**m_printData.m_macPrintInfo).rPaper.top = int( ((double) m_minMarginTopLeft.y)*mm2pt );
{
m_printData.ConvertFromNative ();
{
m_printData.ConvertFromNative ();
#else
m_paperSize.x = ((double) (**m_printData.m_macPrintInfo).rPaper.right - (**m_printData.m_macPrintInfo).rPaper.left ) * pt2mm;
m_paperSize.y = ((double) (**m_printData.m_macPrintInfo).rPaper.bottom - (**m_printData.m_macPrintInfo).rPaper.top ) * pt2mm;
#else
m_paperSize.x = ((double) (**m_printData.m_macPrintInfo).rPaper.right - (**m_printData.m_macPrintInfo).rPaper.left ) * pt2mm;
m_paperSize.y = ((double) (**m_printData.m_macPrintInfo).rPaper.bottom - (**m_printData.m_macPrintInfo).rPaper.top ) * pt2mm;