corrected #ifdef TARGET_CARBON to #if TARGET_CARBON
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12113 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -766,7 +766,7 @@ void wxPrintData::ConvertFromNative()
|
|||||||
#ifdef __WXMAC__
|
#ifdef __WXMAC__
|
||||||
void wxPrintData::ConvertToNative()
|
void wxPrintData::ConvertToNative()
|
||||||
{
|
{
|
||||||
#ifdef TARGET_CARBON
|
#if TARGET_CARBON
|
||||||
#else
|
#else
|
||||||
(**m_macPrintInfo).prJob.iCopies = m_printNoCopies;
|
(**m_macPrintInfo).prJob.iCopies = m_printNoCopies;
|
||||||
#endif
|
#endif
|
||||||
@@ -774,7 +774,7 @@ void wxPrintData::ConvertToNative()
|
|||||||
|
|
||||||
void wxPrintData::ConvertFromNative()
|
void wxPrintData::ConvertFromNative()
|
||||||
{
|
{
|
||||||
#ifdef TARGET_CARBON
|
#if TARGET_CARBON
|
||||||
#else
|
#else
|
||||||
m_printNoCopies = (**m_macPrintInfo).prJob.iCopies;
|
m_printNoCopies = (**m_macPrintInfo).prJob.iCopies;
|
||||||
#endif
|
#endif
|
||||||
@@ -784,7 +784,7 @@ void wxPrintData::ConvertFromNative()
|
|||||||
void wxPrintData::operator=(const wxPrintData& data)
|
void wxPrintData::operator=(const wxPrintData& data)
|
||||||
{
|
{
|
||||||
#ifdef __WXMAC__
|
#ifdef __WXMAC__
|
||||||
#ifdef TARGET_CARBON
|
#if TARGET_CARBON
|
||||||
#else
|
#else
|
||||||
m_macPrintInfo = data.m_macPrintInfo;
|
m_macPrintInfo = data.m_macPrintInfo;
|
||||||
HandToHand( (Handle*) &m_macPrintInfo );
|
HandToHand( (Handle*) &m_macPrintInfo );
|
||||||
@@ -1086,7 +1086,7 @@ void wxPrintDialogData::SetOwnerWindow(wxWindow* win)
|
|||||||
#ifdef __WXMAC__
|
#ifdef __WXMAC__
|
||||||
void wxPrintDialogData::ConvertToNative()
|
void wxPrintDialogData::ConvertToNative()
|
||||||
{
|
{
|
||||||
#ifdef TARGET_CARBON
|
#if TARGET_CARBON
|
||||||
#else
|
#else
|
||||||
(**m_printData.m_macPrintInfo).prJob.iFstPage = m_printFromPage;
|
(**m_printData.m_macPrintInfo).prJob.iFstPage = m_printFromPage;
|
||||||
(**m_printData.m_macPrintInfo).prJob.iLstPage = m_printToPage;
|
(**m_printData.m_macPrintInfo).prJob.iLstPage = m_printToPage;
|
||||||
@@ -1096,7 +1096,7 @@ void wxPrintDialogData::ConvertToNative()
|
|||||||
|
|
||||||
void wxPrintDialogData::ConvertFromNative()
|
void wxPrintDialogData::ConvertFromNative()
|
||||||
{
|
{
|
||||||
#ifdef TARGET_CARBON
|
#if TARGET_CARBON
|
||||||
#else
|
#else
|
||||||
m_printData.ConvertFromNative();
|
m_printData.ConvertFromNative();
|
||||||
m_printFromPage = (**m_printData.m_macPrintInfo).prJob.iFstPage;
|
m_printFromPage = (**m_printData.m_macPrintInfo).prJob.iFstPage;
|
||||||
@@ -1411,7 +1411,7 @@ void wxPageSetupDialogData::ConvertToNative()
|
|||||||
{
|
{
|
||||||
m_printData.ConvertToNative();
|
m_printData.ConvertToNative();
|
||||||
// on mac the paper rect has a negative top left corner, because the page rect (printable area) is at 0,0
|
// on mac the paper rect has a negative top left corner, because the page rect (printable area) is at 0,0
|
||||||
#ifdef TARGET_CARBON
|
#if TARGET_CARBON
|
||||||
#else
|
#else
|
||||||
(**m_printData.m_macPrintInfo).rPaper.left = int( ((double) m_minMarginTopLeft.x)*mm2pt );
|
(**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.m_macPrintInfo).rPaper.top = int( ((double) m_minMarginTopLeft.y)*mm2pt );
|
||||||
@@ -1430,7 +1430,7 @@ void wxPageSetupDialogData::ConvertFromNative()
|
|||||||
{
|
{
|
||||||
m_printData.ConvertFromNative ();
|
m_printData.ConvertFromNative ();
|
||||||
|
|
||||||
#ifdef TARGET_CARBON
|
#if TARGET_CARBON
|
||||||
#else
|
#else
|
||||||
m_paperSize.x = ((double) (**m_printData.m_macPrintInfo).rPaper.right - (**m_printData.m_macPrintInfo).rPaper.left ) * pt2mm;
|
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;
|
m_paperSize.y = ((double) (**m_printData.m_macPrintInfo).rPaper.bottom - (**m_printData.m_macPrintInfo).rPaper.top ) * pt2mm;
|
||||||
|
Reference in New Issue
Block a user