home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Tools / Languages / Harvest C 1.3 / Source Code / CHarvestDoc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-06-20  |  2.0 KB  |  77 lines  |  [TEXT/ALFA]

  1. /****
  2.  * CHarvestDoc.h
  3.  *
  4.  *    Document class for a typical application.
  5.  *
  6.  ****/
  7.  
  8. #define    _H_CHarvestDoc            /* Include this file only once */
  9. #include <CDocument.h>
  10. #include <CApplication.h>
  11. #include <Processes.h>
  12.  
  13. class CHarvestPane;
  14. class CList;
  15. class CHarvestOptions;
  16. class CDataFile;
  17. class CWarningsArray;
  18.  
  19. struct CHarvestDoc : CDocument {
  20.     public:
  21.     CHarvestPane *itsTable;
  22.     CHarvestOptions *itsOptions;
  23.     CWarningsArray *itsWarnings;
  24.     CList    *itsSourceFiles;
  25.     OSType    itsSignature;
  26.     unsigned long itsPartition;
  27.     short itsSizeFlags;
  28.     long StdAppVol;
  29.     short StdAppDir;
  30.     Str255 StdAppName;
  31.     char *itsPrefix;
  32.  
  33.     virtual ProcessSerialNumber RunApp(void);
  34.     virtual void AddLibraryFileHFS(Str63 aName,short aVolNum,long aDirID);
  35.     virtual void AddResourceFileHFS(Str63 aName,short aVolNum,long aDirID);
  36.     virtual void AddSourceFileHFS(Str63 aName,short aVolNum,long aDirID);
  37.     virtual void AddResourceFile(SFReply *theFile);
  38.     virtual void AddSourceFile(SFReply *theFile);
  39.     virtual void AddLibFile(SFReply *theFile);
  40.     virtual Boolean BringUpToDate(void);
  41.     virtual Boolean PickAppName(void);
  42.     virtual Boolean CheckLink(void);
  43.     virtual Boolean DoLink(void);
  44.     virtual Boolean Link(void);
  45.     virtual void Clean(void);
  46.  
  47.                                     /** Construction/Destruction **/
  48.     
  49.     void        IHarvestDoc(CApplication *aSupervisor, Boolean printable);
  50.     void        Dispose(void);
  51.     
  52.     void        DoOptions(CHarvestOptions *);
  53.     void        DoWarnings(CHarvestOptions *,CWarningsArray *theWarnings);
  54.     void        DoSetProjectInfo(void);
  55.     void        DoCommand(long theCommand);
  56.     Handle            WriteToHandle(void);
  57.     void        ReadFromHandle(Handle);
  58.  
  59.     void        UpdateMenus(void);
  60.     
  61.     void        ResetGopher(void);
  62.     
  63.     void        Activate(void);
  64.  
  65.     void        NewFile(void);
  66.     void        FSNewFile(char *,short,long);
  67.     void        FSOpenFile(char *,short,long);
  68.     void        OpenFile(SFReply *macSFReply);
  69.     void        BuildWindow(Handle theData);
  70.     
  71.                                     /** Filing **/
  72.     Boolean        DoSave(void);
  73.     Boolean        DoSaveAs(SFReply *macSFReply);
  74.     void        DoRevert(void);
  75.     Boolean        Close(Boolean);
  76.     int FindFile(char *,short,long);
  77. };