Remove wxOSX/Carbon support.
Cocoa has been the default toolkit in wxWidgets for a long time. There is really no good reason to use Carbon in 2016 and this removes a lot of unused and unmaintained code.
This commit is contained in:
@@ -525,8 +525,6 @@ wxPrintNativeDataBase* wxOSXCreatePrintData()
|
||||
{
|
||||
#if wxOSX_USE_COCOA
|
||||
return new wxOSXCocoaPrintData();
|
||||
#elif wxOSX_USE_CARBON
|
||||
return new wxOSXCarbonPrintData();
|
||||
#else
|
||||
return NULL;
|
||||
#endif
|
||||
@@ -812,35 +810,4 @@ void wxMacPrintPreview::DetermineScaling(void)
|
||||
// end of print_osx.cpp
|
||||
//
|
||||
|
||||
#if wxOSX_USE_CARBON
|
||||
|
||||
wxIMPLEMENT_DYNAMIC_CLASS(wxOSXCarbonPrintData, wxOSXPrintData);
|
||||
|
||||
wxOSXCarbonPrintData::wxOSXCarbonPrintData()
|
||||
{
|
||||
if ( PMCreateSession( &m_macPrintSession ) == noErr )
|
||||
{
|
||||
if ( PMCreatePageFormat(&m_macPageFormat) == noErr )
|
||||
{
|
||||
PMSessionDefaultPageFormat(m_macPrintSession,
|
||||
m_macPageFormat);
|
||||
PMGetPageFormatPaper(m_macPageFormat, &m_macPaper);
|
||||
}
|
||||
|
||||
if ( PMCreatePrintSettings(&m_macPrintSettings) == noErr )
|
||||
{
|
||||
PMSessionDefaultPrintSettings(m_macPrintSession,
|
||||
m_macPrintSettings);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
wxOSXCarbonPrintData::~wxOSXCarbonPrintData()
|
||||
{
|
||||
(void)PMRelease(m_macPageFormat);
|
||||
(void)PMRelease(m_macPrintSettings);
|
||||
(void)PMRelease(m_macPrintSession);
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user