support for collate

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@58882 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2009-02-13 16:05:12 +00:00
parent fdcd74bfd4
commit c7969d8feb

View File

@@ -142,6 +142,7 @@ bool wxMacCarbonPrintData::TransferFrom( const wxPrintData &data )
}
PMSetCopies( m_macPrintSettings , data.GetNoCopies() , false ) ;
PMSetCollate(m_macPrintSettings, data.GetCollate());
if ( data.IsOrientationReversed() )
PMSetOrientation( m_macPageFormat , ( data.GetOrientation() == wxLANDSCAPE ) ?
kPMReverseLandscape : kPMReversePortrait , false ) ;
@@ -216,7 +217,9 @@ bool wxMacCarbonPrintData::TransferTo( wxPrintData &data )
}
}
// collate cannot be set
Boolean collate;
if (PMGetCollate(m_macPrintSettings, &collate) == noErr)
data.SetCollate(collate);
#if 0
{
wxMacCFStringHolder name ;