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 / Data / Sources / Part.h < prev    next >
Encoding:
Text File  |  1996-08-22  |  1.8 KB  |  60 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 CDataContent;
  31.  
  32. //=======================================================================
  33. class CDataPart : public FW_CPart {
  34. public:
  35.     FW_DECLARE_AUTO(CDataPart)
  36.     
  37.                         CDataPart(ODPart* odPart);
  38.     virtual             ~CDataPart();
  39. // new members
  40.     virtual void         MyInvalidatePresentation(Environment* ev, FW_CRect& rect);
  41. // overrides
  42. protected:
  43.     virtual FW_CContent* NewPartContent(Environment* ev);
  44.     virtual void         Initialize(Environment* ev, 
  45.                                     ODStorageUnit* storageUnit, 
  46.                                     FW_Boolean fromStorage);
  47.     virtual FW_CFrame*    NewFrame(Environment* ev,
  48.                                  ODFrame* odFrame,
  49.                                  FW_CPresentation* presentation,
  50.                                  FW_Boolean fromStorage);
  51.     virtual FW_Handled    DoAbout(Environment* ev);
  52. // new members
  53. private:
  54.     FW_CPresentation*    fPresentation;
  55.     CDataContent*        fPartContent;
  56. };
  57.  
  58. //=======================================================================
  59. #endif
  60.