Important for all Apple Printing and Graphics Developers:
The information in this Technical Q & A is still relevant up to and including
Mac OS 7.6
with QuickDraw GX 1.1.5. Beginning with the release of Mac OS 8.0,
however, Apple plans to deliver a system which incorporates QuickDraw GX
graphics and typography only. QuickDraw GX printer drivers and GX printing
extensions will not be supported in Mac OS 8.0 or in future Mac OS releases. Apple's
goal is to simplify the user experience of printing by unifying the Macintosh
graphic and printing architectures and standardizing on the classic Printing
Manager.
For details on Apple's official announcement, refer to
</dev/technotes/gxchange.html>
|
Q:
From my application, I need to create a new papertype object on the fly and set the
format object for a specific page to use that papertype . I see that there is
a GXGetFormatPaperType call but no GXSetFormatPaperType call. Since each page
that my user creates could need its own papertype , I need some way to set
up the paper type and then set the page size for each page to that new
paper type. How do I do this?
A:
You are correct: there is no GX API that lets you set the paper type
format. However, you can achieve this functionality by following these steps:
- Call
GXNewPaperType to set up the new paper type that your user has created on the fly.
- Call
GXGetFormatPaperType to get the currently set paper type.
- Call
GXCopyPaperType to place the new paper type in instead of the old paper type.
- Call
GXChangedFormat to let GX know that the format has changed.
|