home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / source / luschsrc.sit / document.h < prev    next >
Text File  |  1990-05-23  |  1KB  |  44 lines

  1. /********************************************************************************
  2.  *    document.h
  3.  *
  4.  *    File Management Header
  5.  *
  6.  *    Written by Paco Xander Nathan
  7.  *    ⌐1990, Motorola Inc.  Public domain source code.
  8.  ********************************************************************************/
  9.  
  10. #define _H_document
  11.  
  12.  
  13. #include <FileMgr.h>
  14. #include <StdFilePkg.h>
  15.  
  16.  
  17. #define LUCH_TAG    'LƒCH'
  18.  
  19.  
  20. typedef enum {
  21.     fmNew = 1, fmOpen, fmClose, fmSpace1, 
  22.     fmSave, fmSaveAs, fmRevert, fmSpace2,
  23.     fmSetUp, fmPrint, fmSpace3, 
  24.     fmQuit
  25. } fmItems;
  26.  
  27.  
  28. /* External Function Prototypes
  29.  */
  30. #ifdef PROTOTYPES
  31. Boolean DocReadFile (StringPtr fileName, WORD vRefNum);
  32. Boolean DocWriteFile (StringPtr fileName, WORD vRefNum);
  33. Boolean DocOpenFile (WindowPtr theWindow, StringPtr fileName, WORD vRefNum);
  34. Boolean DocSaveFile (WindowPtr theWindow, StringPtr fileName, WORD vRefNum);
  35.  
  36. void DocNew (WindowPtr theWindow);
  37. void DocOpen (WindowPtr theWindow);
  38. Boolean DocClose (WindowPtr theWindow);
  39. Boolean DocSave (WindowPtr theWindow);
  40. Boolean DocSaveAs (WindowPtr theWindow);
  41. void DocRevert (WindowPtr theWindow);
  42. void DocMenu (WORD theItem);
  43. #endif
  44.