#10183: patch to add wxOSX print job name
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56761 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
4f24cbbd3d
commit
e9e767f1d9
@ -120,7 +120,7 @@ wxNativePrinterDC* wxNativePrinterDC::Create(wxPrintData* data)
|
||||
return new wxMacCarbonPrinterDC(data) ;
|
||||
}
|
||||
|
||||
bool wxMacCarbonPrinterDC::StartDoc( wxPrinterDC* dc , const wxString& WXUNUSED(message) )
|
||||
bool wxMacCarbonPrinterDC::StartDoc( wxPrinterDC* dc , const wxString& message )
|
||||
{
|
||||
if ( m_err )
|
||||
return false ;
|
||||
@ -128,6 +128,11 @@ bool wxMacCarbonPrinterDC::StartDoc( wxPrinterDC* dc , const wxString& WXUNUSED
|
||||
wxPrinterDCImpl *impl = (wxPrinterDCImpl*) dc->GetImpl();
|
||||
wxMacCarbonPrintData *native = (wxMacCarbonPrintData*) impl->GetPrintData().GetNativeData() ;
|
||||
|
||||
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4
|
||||
if ( PMPrintSettingsSetJobName != NULL )
|
||||
PMPrintSettingsSetJobName(native->m_macPrintSettings, wxCFStringRef(message));
|
||||
#endif
|
||||
|
||||
m_err = PMSessionBeginCGDocumentNoDialog(native->m_macPrintSession,
|
||||
native->m_macPrintSettings,
|
||||
native->m_macPageFormat);
|
||||
|
Loading…
Reference in New Issue
Block a user