home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-09-30 | 1.0 KB | 46 lines | [TEXT/MMCC] |
- // CFileAndFindDoc.h -- document class
- // Created 01/01/95 12:01 PM by AppMaker
-
- #pragma once
-
- #include <LSingleDoc.h>
- #include "oofpp.hpp"
-
- // Define the creator type and file type for your application:
- #define kSignature 'FnF1'
- #define kFileType 'OOCT'
-
- class dbConnect;
- class CdbArticles;
-
- class CListArticles;
-
- //----------
- class CFileAndFindDoc : public LSingleDoc, public dbDocHelper {
- public:
- CFileAndFindDoc (LCommander *inSuper);
- virtual ~CFileAndFindDoc();
-
- virtual void newFile();
- virtual void openFile (FSSpec *inFileSpec);
- virtual void DoPrint();
-
- virtual Boolean ObeyCommand (CommandT inCommand,
- void *ioParam = nil);
- virtual void FindCommandStatus (CommandT inCommand,
- Boolean &outEnabled,
- Boolean &outUsesMark,
- Char16 &outMark,
- Str255 outName);
-
- protected:
-
- private:
- void CompleteOpenFile(FSSpec *inFileSpec);
- void MakeDatabaseObjects();
-
- // OOFILE members
- dbConnect *mData; // owned
- CdbArticles *mArticles; // owned
- };
-