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:
Tobias Taschner
2016-01-22 15:40:58 +01:00
parent 8d42890df4
commit 5ba67c67e4
144 changed files with 75 additions and 35011 deletions

View File

@@ -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