home *** CD-ROM | disk | FTP | other *** search
- /*
- MSUtils.h
-
- Version 1.0d4
-
- Copyright © Apple Computer UK Ltd. 1992
-
- All rights reserved.
-
- Produced by : UK Developer Technical Support
- AppleLink : UK.DTS
- */
-
- #ifndef __MSUTILS__
- #define __MSUTILS__
-
- #include <Types.h>
- #include <QuickDraw.h>
- #include <Packages.h>
- #include <GestaltEqu.h>
- #include <Editions.h>
- #include <Printing.h>
-
- #ifndef __MSGLOBALS__
- #include "MSGlobals.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);
-
- #endif
-