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 / Talker / Sources / Part.h < prev    next >
Encoding:
Text File  |  1996-08-22  |  1.7 KB  |  57 lines  |  [TEXT/CWIE]

  1. //========================================================================================
  2. //    Release Version:    $ ODF 2 $
  3. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  4. //========================================================================================
  5.  
  6. #ifndef PART_H
  7. #define PART_H
  8.  
  9. //=======================================================================
  10. #ifndef DEFINES_K
  11. #include "Defines.k"
  12. #endif
  13.  
  14. // ----- Framework Includes -----
  15. #ifndef FWPART_H
  16. #include "FWPart.h"            // FW_CPart
  17. #endif
  18.  
  19. // ----- Foundation Layer -----
  20. #ifndef FWSTDDEF_H
  21. #include <FWStdDef.h>        // ?
  22. #endif
  23.  
  24. //=======================================================================
  25. const ODValueType    kAppleTEXTScrap = "Apple:OSType:Scrap:TEXT";
  26. const ODValueType    kAppleTEXTfile     = "Apple:OSType:FileType:TEXT";
  27.  
  28. //=======================================================================
  29. class FW_CPresentation;
  30. class CTalkerContent;
  31.  
  32. //=======================================================================
  33. class CTalkerPart : public FW_CPart {
  34. public:
  35.     FW_DECLARE_AUTO(CTalkerPart)
  36.                         CTalkerPart(ODPart* odPart);
  37.     virtual             ~CTalkerPart();
  38. // overrides
  39. protected:
  40.     virtual FW_CContent* NewPartContent(Environment* ev);
  41.     virtual void         Initialize(Environment* ev, 
  42.                                  ODStorageUnit* storageUnit, 
  43.                                  FW_Boolean fromStorage);
  44.     virtual FW_CFrame*    NewFrame(Environment* ev,
  45.                                  ODFrame* odFrame,
  46.                                  FW_CPresentation* presentation,
  47.                                  FW_Boolean fromStorage);
  48.     virtual FW_Handled    DoAbout(Environment* ev);
  49. // new members
  50. private:
  51.     FW_CPresentation*    fPresentation;
  52.     CTalkerContent*        fPartContent;
  53. };
  54.  
  55. //=======================================================================
  56. #endif
  57.