home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / Developer University / DU Projects / Sample / Sources / Part.h < prev    next >
Encoding:
Text File  |  1996-08-22  |  1.1 KB  |  37 lines  |  [TEXT/CWIE]

  1. //    Release Version:    $ ODF 2 $
  2. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  3.  
  4. #ifndef PART_H
  5. #define PART_H
  6.  
  7. //=======================================================================
  8. // ----- Framework Includes -----
  9. #ifndef FWPART_H
  10. #include "FWPart.h"            // FW_CPart
  11. #endif
  12.  
  13. //=======================================================================
  14. class FW_CPresentation;
  15.  
  16. //=======================================================================
  17. class CSamplePart : public FW_CPart {
  18. public:
  19.     FW_DECLARE_AUTO(CSamplePart)
  20.                             CSamplePart(ODPart* odPart);
  21.     virtual                 ~CSamplePart();
  22. // overrides
  23. protected:
  24.     virtual void             Initialize(Environment* ev, 
  25.                                 ODStorageUnit* storageUnit, 
  26.                                 FW_Boolean fromStorage);
  27.     virtual FW_CContent*     NewPartContent(Environment* ev);
  28.     virtual FW_CFrame*        NewFrame(Environment* ev,
  29.                                 ODFrame* odFrame,
  30.                                 FW_CPresentation* presentation,
  31.                                 FW_Boolean fromStorage);
  32.     virtual FW_Handled        DoAbout(Environment* ev);
  33. };
  34.  
  35. //=======================================================================
  36. #endif
  37.