Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
Sources/MSGXPrinting.h
// MSGXPrinting.c |
// |
// Original version by Jon Lansdell and Nigel Humphreys. |
// 4.0 and 3.1 updates by Greg Sutton. |
// GX printing by Don Swatman |
// ©Apple Computer Inc 1996, all rights reserved. |
#ifndef __MSGXPRINTING__ |
#define __MSGXPRINTING__ |
#include "MSGlobals.h" |
// Start up and finish printing |
void InitGXIfPresent(void); |
void CleanUpGXIfPresent(void); |
// Make any patches to the menu |
short ConvertMenuActualToGXMenu ( short theItem ); |
// Get a QD rect for a print page |
void GetRectOfPage( DPtr theDoc, |
Rect *pageRect ); |
// Put up the GX Page Setup dialog |
Boolean DoGXPageSetup ( DPtr theDoc ); |
// Print a page |
OSErr GXPrintDocument ( DPtr theDoc, |
Boolean askUser ); |
void DuplicateStyleTERec( TEHandle hSourceTE, |
TEHandle *hDestTE, |
Rect *destRect, |
GrafPtr destPort ); |
void AdjustMenusForGXPrintDialogs(Boolean dialogGoingUp); |
void SetupGXEditMenuRec(gxEditMenuRecord *editMenuRec); |
OSErr PrintAShape(gxShape currentShape, long refCon); |
OSErr GXPrintLoop(DPtr theDoc); |
#endif |
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-01-14