Source/SVEditUtils.h

/*
    File:       SVEditUtils.h
 
    Contains:   
 
    Written by: Original version by Jon Lansdell and Nigel Humphreys.
                            3.1 updates by Greg Sutton. 
 
    Copyright:  Copyright ©1995-1999 by Apple Computer, Inc., All Rights Reserved.
 
                You may incorporate this Apple sample source code into your program(s) without
                restriction. This Apple sample source code has been provided "AS IS" and the
                responsibility for its operation is yours. You are not permitted to redistribute
                this Apple sample source code as "Apple sample source code" after having made
                changes. If you're going to re-distribute the source, we require that you make
                it clear in the source that the code was descended from Apple sample source
                code, but that you've made changes.
 
    Change History (most recent first):
                7/19/1999   Karl Groethe    Updated for Metrowerks Codewarror Pro 2.1
                
 
*/
 
#ifndef __SVEDITUTILS__
#define __SVEDITUTILS__
 
#include <Types.h>
#include <Quickdraw.h>
#include <Packages.h>
#include <GestaltEqu.h>
#include <Editions.h>
#include <Printing.h>
 
#ifndef __SVEDITGLOBALS__
#include "SVEditGlobals.h"
#endif
 
pascal Boolean GestaltAvailable();
 
pascal Boolean CheckEnvironment();
 
pascal void ShowError(Str255 theError,
                      long   theErrorCode);
 
pascal Boolean FeatureIsImplemented(OSType theFeature,
                                    short  theTestBit);
 
pascal void GetTempFileName(DPtr   aDoc,
                            Str255 newString);
 
pascal Boolean Ours(WindowPtr aWindow);
 
pascal void SetShortMenus();
 
pascal void SetLongMenus();
 
pascal void SetStyleMenu(DPtr theDoc);
 
pascal void SetFontMenu(DPtr theDoc);
 
pascal void SetEditMenu(DPtr theDoc);
 
pascal void AdornDefaultButton(DialogPtr theDialog, short theItem);
 
pascal void DrawDefaultOutline(DialogPtr theDialog, short theItem);
 
pascal void RetrieveText(DialogPtr aDialog,
                                               short     anItem,
                                               Str255    aString);
 
pascal void SetText( DialogPtr aDialog,
                                         short     itemNo,
                                         Str255    theString);
 
pascal void GetRectOfDialogItem(DialogPtr theDialog, short theItem, Rect *theRect);
 
/*changed for 7.0 and Outline Fonts*/
 
pascal void SetSizeMenu(DPtr theDoc);
 
pascal long LesserOf(long A, long B);
 
pascal long GreaterOf(long A, long B);
        
pascal Boolean DoPageSetup(DPtr theDoc);
 
pascal Boolean CtrlKeyPressed(const EventRecord *theEvent);
 
pascal Boolean OptionKeyPressed(const EventRecord *theEvent);
 
pascal short        NumToolboxTraps(void);
pascal TrapType GetTrapType(short theTrap);
pascal Boolean  TrapAvailable(short theTrap);
 
#endif