home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Demos / Bowers Development / AppMaker 2.0b5 / Examples / PowerPlant / OOFILE / CFileAndFindDoc.h < prev    next >
Encoding:
Text File  |  1995-09-30  |  1.0 KB  |  46 lines  |  [TEXT/MMCC]

  1. // CFileAndFindDoc.h -- document class
  2. // Created 01/01/95 12:01 PM by AppMaker
  3.  
  4. #pragma once
  5.  
  6. #include <LSingleDoc.h>
  7. #include "oofpp.hpp"
  8.  
  9. // Define the creator type and file type for your application:
  10. #define kSignature        'FnF1'
  11. #define kFileType        'OOCT'
  12.  
  13. class dbConnect;
  14. class    CdbArticles;
  15.  
  16. class    CListArticles;
  17.  
  18. //----------
  19. class    CFileAndFindDoc : public LSingleDoc, public dbDocHelper {
  20. public:
  21.                         CFileAndFindDoc    (LCommander    *inSuper);
  22.     virtual                ~CFileAndFindDoc();
  23.  
  24.     virtual void        newFile();
  25.     virtual void        openFile    (FSSpec        *inFileSpec);
  26.     virtual void        DoPrint();
  27.  
  28.     virtual Boolean        ObeyCommand            (CommandT    inCommand,
  29.                                              void        *ioParam = nil);
  30.     virtual void        FindCommandStatus    (CommandT    inCommand,
  31.                                              Boolean    &outEnabled,
  32.                                              Boolean    &outUsesMark,
  33.                                              Char16        &outMark,
  34.                                              Str255        outName);
  35.  
  36. protected:
  37.  
  38. private:
  39. void CompleteOpenFile(FSSpec        *inFileSpec);
  40. void MakeDatabaseObjects();
  41.  
  42. // OOFILE members
  43. dbConnect        *mData;    // owned
  44. CdbArticles    *mArticles;    // owned
  45. };
  46.