home *** CD-ROM | disk | FTP | other *** search
/ AppleScript - The Beta Release / AppleScript - The Beta Release.iso / Development Tools / Sample Applications / MenuScripter 1.0d4.1 / MenuScripter Source / MSUtils.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-11-24  |  1.7 KB  |  82 lines  |  [TEXT/MPS ]

  1. /*
  2.     MSUtils.h
  3.     
  4.     Version 1.0d4
  5.     
  6.     Copyright © Apple Computer UK Ltd. 1992
  7.     
  8.     All rights reserved.
  9.     
  10.     Produced by : UK Developer Technical Support
  11.     AppleLink   : UK.DTS
  12. */
  13.  
  14. #ifndef __MSUTILS__
  15. #define __MSUTILS__
  16.  
  17. #include <Types.h>
  18. #include <QuickDraw.h>
  19. #include <Packages.h>
  20. #include <GestaltEqu.h>
  21. #include <Editions.h>
  22. #include <Printing.h>
  23.  
  24. #ifndef __MSGLOBALS__
  25. #include "MSGlobals.h"
  26. #endif
  27.  
  28. pascal Boolean GestaltAvailable();
  29.  
  30. pascal Boolean CheckEnvironment();
  31.  
  32. pascal void ShowError(Str255 theError,
  33.                       long   theErrorCode);
  34.  
  35. pascal Boolean FeatureIsImplemented(OSType theFeature,
  36.                                     short  theTestBit);
  37.  
  38. pascal void GetTempFileName(DPtr   aDoc,
  39.                             Str255 newString);
  40.  
  41. pascal Boolean Ours(WindowPtr aWindow);
  42.  
  43. pascal void SetShortMenus();
  44.  
  45. pascal void SetLongMenus();
  46.  
  47. pascal void SetStyleMenu(DPtr theDoc);
  48.  
  49. pascal void SetFontMenu(DPtr theDoc);
  50.  
  51. pascal void SetEditMenu(DPtr theDoc);
  52.  
  53. pascal void AdornDefaultButton(DialogPtr theDialog, short theItem);
  54.  
  55. pascal void DrawDefaultOutline(DialogPtr theDialog, short theItem);
  56.  
  57. pascal void RetrieveText(DialogPtr aDialog,
  58.                                                short     anItem,
  59.                                                Str255    aString);
  60.  
  61. pascal void SetText( DialogPtr aDialog,
  62.                                          short     itemNo,
  63.                                          Str255    theString);
  64.  
  65. pascal void GetRectOfDialogItem(DialogPtr theDialog, short theItem, Rect *theRect);
  66.  
  67. /*changed for 7.0 and Outline Fonts*/
  68.  
  69. pascal void SetSizeMenu(DPtr theDoc);
  70.  
  71. pascal long LesserOf(long A, long B);
  72.  
  73. pascal long GreaterOf(long A, long B);
  74.         
  75. pascal Boolean DoPageSetup(DPtr theDoc);
  76.  
  77. pascal Boolean CtrlKeyPressed(const EventRecord *theEvent);
  78.  
  79. pascal Boolean OptionKeyPressed(const EventRecord *theEvent);
  80.  
  81. #endif
  82.