ADC Home > Reference Library > Technical Q&As > Legacy Documents > Graphics & Imaging >

Legacy Documentclose button

Important: This document is part of the Legacy section of the ADC Reference Library. This information should not be used for new development.

Current information on this Reference Library topic can be found here:

Page Setup/Format Dialog Extensions


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: I want to create an extension for the Page Setup/Format dialog that performs "Flipping" functions. Is it feasible to create an extension for the Page Setup/Format Dialog?

A: There is nothing to prevent you from creating an extension that adds a panel to the Page Setup dialog. Most extensions add to the Print dialog because, in most cases, this is the proper place to add a panel so the functionality of the extension affects the entire output, and because what extensions typically do is best suited for the Print dialog. Print extensions typically add to the Print dialog; drivers and applications typically add to the Format dialog.

However, if you're trying to modify the Confidential extension so that it adds to the Page Setup dialog, you have a bit more work to do. In addition to changing the 'over' resource, the Forward_Job call, and the name of the override function, you have to make changes to the code that adds the tag to the collection item.

The override calls a routine called SetUpPrintPanel() to add a new CollectionItem to the Job to store the confidential stamp information.

Since you want to change the extension so that it adds to the Page Setup dialog, you have to change this routine so that it adds the Collection to the Job's default Format object. Similarly, you have to change theGetStamp() routine so that it gets. Finally, you have to repeat all of these steps to add the panel to the Custom Page Setup dialog.

There is also another way that you can test your PageSetup panel. It is possible for an application to add a PageSetup or CustomPageSetup override. There are examples (Experiment no.9 and Banana Jr.) on the QuickDraw GX SDK that demonstrate the latter. You might try adding your flipping code to one of these.

[Aug 01 1995]


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.