removed carbon printing code

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20716 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2003-05-24 07:37:05 +00:00
parent 26b9b4e12a
commit 7052b16ded
2 changed files with 8 additions and 70 deletions

View File

@ -442,11 +442,12 @@ void UMAInsertMenuItem( MenuRef menu , const wxString& title , MenuItemIndex ite
// quickdraw
#if !TARGET_CARBON
int gPrOpenCounter = 0 ;
OSStatus UMAPrOpen(void *macPrintSession)
OSStatus UMAPrOpen()
{
#if !TARGET_CARBON
OSErr err = noErr ;
++gPrOpenCounter ;
if ( gPrOpenCounter == 1 )
@ -456,25 +457,10 @@ OSStatus UMAPrOpen(void *macPrintSession)
wxASSERT( err == noErr ) ;
}
return err ;
#else
OSStatus err = noErr ;
++gPrOpenCounter ;
if ( gPrOpenCounter == 1 )
{
#if PM_USE_SESSION_APIS
err = PMCreateSession((PMPrintSession *)macPrintSession) ;
#else
err = PMBegin() ;
#endif
wxASSERT( err == noErr ) ;
}
return err ;
#endif
}
OSStatus UMAPrClose(void *macPrintSession)
OSStatus UMAPrClose()
{
#if !TARGET_CARBON
OSErr err = noErr ;
wxASSERT( gPrOpenCounter >= 1 ) ;
if ( gPrOpenCounter == 1 )
@ -485,25 +471,8 @@ OSStatus UMAPrClose(void *macPrintSession)
}
--gPrOpenCounter ;
return err ;
#else
OSStatus err = noErr ;
wxASSERT( gPrOpenCounter >= 1 ) ;
if ( gPrOpenCounter == 1 )
{
#if PM_USE_SESSION_APIS
err = PMRelease(*(PMPrintSession *)macPrintSession) ;
*(PMPrintSession *)macPrintSession = kPMNoReference;
#else
err = PMEnd() ;
#endif
}
--gPrOpenCounter ;
return err ;
#endif
}
#if !TARGET_CARBON
pascal QDGlobalsPtr GetQDGlobalsPtr (void) ;
pascal QDGlobalsPtr GetQDGlobalsPtr (void)
{

View File

@ -442,11 +442,12 @@ void UMAInsertMenuItem( MenuRef menu , const wxString& title , MenuItemIndex ite
// quickdraw
#if !TARGET_CARBON
int gPrOpenCounter = 0 ;
OSStatus UMAPrOpen(void *macPrintSession)
OSStatus UMAPrOpen()
{
#if !TARGET_CARBON
OSErr err = noErr ;
++gPrOpenCounter ;
if ( gPrOpenCounter == 1 )
@ -456,25 +457,10 @@ OSStatus UMAPrOpen(void *macPrintSession)
wxASSERT( err == noErr ) ;
}
return err ;
#else
OSStatus err = noErr ;
++gPrOpenCounter ;
if ( gPrOpenCounter == 1 )
{
#if PM_USE_SESSION_APIS
err = PMCreateSession((PMPrintSession *)macPrintSession) ;
#else
err = PMBegin() ;
#endif
wxASSERT( err == noErr ) ;
}
return err ;
#endif
}
OSStatus UMAPrClose(void *macPrintSession)
OSStatus UMAPrClose()
{
#if !TARGET_CARBON
OSErr err = noErr ;
wxASSERT( gPrOpenCounter >= 1 ) ;
if ( gPrOpenCounter == 1 )
@ -485,25 +471,8 @@ OSStatus UMAPrClose(void *macPrintSession)
}
--gPrOpenCounter ;
return err ;
#else
OSStatus err = noErr ;
wxASSERT( gPrOpenCounter >= 1 ) ;
if ( gPrOpenCounter == 1 )
{
#if PM_USE_SESSION_APIS
err = PMRelease(*(PMPrintSession *)macPrintSession) ;
*(PMPrintSession *)macPrintSession = kPMNoReference;
#else
err = PMEnd() ;
#endif
}
--gPrOpenCounter ;
return err ;
#endif
}
#if !TARGET_CARBON
pascal QDGlobalsPtr GetQDGlobalsPtr (void) ;
pascal QDGlobalsPtr GetQDGlobalsPtr (void)
{