home *** CD-ROM | disk | FTP | other *** search
-
- /*
- File: JobFormatModeLibrary.c
-
- Contains: This file contains handy job format mode sample routines.
-
- Version: Quickdraw GX 1.1
-
- Written by: Dave Hersey
-
- Copyright: © 1994-1995 by Apple Computer, Inc., all rights reserved.
-
- File Ownership:
-
- DRI: Dave Hersey
-
- Other Contact: Ron Voss
-
- Technology: QuickDraw GX
-
- Change History (most recent first):
-
- <1> 6/6/95 DH First checked in.
- */
-
- #include "JobFormatModeLibrary.h"
-
-
- /* Wrappers for JobFormatModeQuery() */
-
-
- /****************************************************************************************
-
- GetJobFormatLineConstraint
-
- function :
- Returns position constraint table for direct mode line drawing
- parameters :
- the job and optional handle to hold the position constraint table
-
- ****************************************************************************************/
- gxPositionConstraintTableHdl GetJobFormatLineConstraint(gxJob theJob, gxPositionConstraintTableHdl hPositionConstraintTable) {
-
- GXJobFormatModeQuery(theJob, gxGetJobFormatLineConstraintQuery, NULL, &hPositionConstraintTable);
-
- return hPositionConstraintTable;
- }
-
-
- /****************************************************************************************
-
- GetJobFormatFonts
-
- function :
- Returns font table for direct mode
- parameters :
- the job and optional handle to hold the font table
-
- ****************************************************************************************/
- gxFontTableHdl GetJobFormatFonts(gxJob theJob, gxFontTableHdl hFontTable) {
-
- GXJobFormatModeQuery(theJob, gxGetJobFormatFontsQuery, NULL, &hFontTable);
-
- return hFontTable;
- }
-
-
- /****************************************************************************************
-
- GetJobFormatFontCommonStyles
-
- function :
- Returns style name table for direct mode
- parameters :
- the job and optional handle to hold the style name table
-
- ****************************************************************************************/
- gxStyleNameTableHdl GetJobFormatFontCommonStyles(gxJob theJob, gxFont theFont, gxStyleNameTableHdl hStyleTable) {
-
- GXJobFormatModeQuery(theJob, gxGetJobFormatFontCommonStylesQuery, theFont, &hStyleTable);
-
- return hStyleTable;
- }
-
-
- /****************************************************************************************
-
- GetJobFormatFontConstraint
-
- function :
- Returns position constraint table for direct mode fonts
- parameters :
- the job and optional handle to hold the position constraint table
-
- ****************************************************************************************/
- gxPositionConstraintTableHdl GetJobFormatFontConstraint(gxJob theJob, gxFont theFont, gxPositionConstraintTableHdl hPositionConstraintTable) {
-
- GXJobFormatModeQuery(theJob, gxGetJobFormatFontConstraintQuery, theFont, &hPositionConstraintTable);
-
- return hPositionConstraintTable;
- }
-
-
- /****************************************************************************************
-
- SetStyleJobFormatCommonStyle
-
- function :
- Returns the style with the additional font style information set
- parameters :
- the job and a style with the font and size values set
-
- ****************************************************************************************/
- gxStyle SetStyleJobFormatCommonStyle(gxJob theJob, Str255 theStyleName, gxStyle theStyle) {
-
- GXJobFormatModeQuery(theJob, gxSetStyleJobFormatCommonStyleQuery, theStyleName, theStyle);
-
- return theStyle;
- }
-