added missing casts after removal of dependancy on mac headers

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13374 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Gilles Depeyrot
2002-01-04 21:51:02 +00:00
parent 6dcc2372e8
commit 962cbf2ee0
9 changed files with 346 additions and 346 deletions

View File

@@ -186,30 +186,32 @@ wxPrintData::wxPrintData()
PMPrintSession macPrintSession = kPMNoReference;
OSStatus err;
err = ::UMAPrOpen(&macPrintSession) ;
if ( err == noErr )
{
err = PMCreatePageFormat(&m_macPageFormat);
// Note that PMPageFormat is not session-specific, but calling
// PMSessionDefaultPageFormat assigns values specific to the printer
// associated with the current printing session.
if ((err == noErr) && (m_macPageFormat != kPMNoPageFormat))
{
err = PMSessionDefaultPageFormat(macPrintSession, m_macPageFormat);
}
err = PMCreatePrintSettings(&m_macPrintSettings);
// Note that PMPrintSettings is not session-specific, but calling
// PMSessionDefaultPrintSettings assigns values specific to the printer
// associated with the current printing session.
if ((err == noErr) && (m_macPrintSettings != kPMNoPrintSettings))
{
err = PMSessionDefaultPrintSettings(macPrintSession, m_macPrintSettings);
}
}
::UMAPrClose(&macPrintSession) ;
err = ::UMAPrOpen(&macPrintSession) ;
if ( err == noErr )
{
err = PMCreatePageFormat((PMPageFormat *)&m_macPageFormat);
// Note that PMPageFormat is not session-specific, but calling
// PMSessionDefaultPageFormat assigns values specific to the printer
// associated with the current printing session.
if ((err == noErr) && (m_macPageFormat != kPMNoPageFormat))
{
err = PMSessionDefaultPageFormat((PMPrintSession)macPrintSession,
(PMPageFormat)m_macPageFormat);
}
err = PMCreatePrintSettings((PMPrintSettings *)&m_macPrintSettings);
// Note that PMPrintSettings is not session-specific, but calling
// PMSessionDefaultPrintSettings assigns values specific to the printer
// associated with the current printing session.
if ((err == noErr) && (m_macPrintSettings != kPMNoPrintSettings))
{
err = PMSessionDefaultPrintSettings((PMPrintSession)macPrintSession,
(PMPrintSettings)m_macPrintSettings);
}
}
::UMAPrClose(&macPrintSession) ;
#endif
#else
m_macPrintInfo = (THPrint) NewHandleClear( sizeof( TPrint ) );