home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / DU Folder / Data / Sources / Include / DataPrt.h < prev    next >
Encoding:
Text File  |  1995-10-12  |  1.6 KB  |  59 lines  |  [TEXT/MPS ]

  1. //    Copyright © 1995 Apple Computer, Inc. All rights reserved.
  2. //    Release Version:    $ 1.0 d11 $
  3.  
  4. #ifndef DATAPRT_H
  5. #define DATAPRT_H
  6.  
  7. //=======================================================================
  8. #ifndef _DATADEF_
  9. #include "DataDef.h"
  10. #endif
  11.  
  12. // ----- Framework Includes -----
  13. #ifndef FWPART_H
  14. #include "FWPart.h"            // FW_CPart
  15. #endif
  16.  
  17. // ----- Foundation Layer -----
  18. #ifndef FWSTDDEF_H
  19. #include <FWStdDef.h>        // ?
  20. #endif
  21.  
  22. //=======================================================================
  23. class FW_CLASS_ATTR FW_CPart;
  24. class FW_CLASS_ATTR FW_CString;
  25. class FW_CLASS_ATTR FW_CPresentation;
  26. class FW_CLASS_ATTR FW_CPrivOrderedCollection;
  27.  
  28. //=======================================================================
  29. class FW_CLASS_ATTR CDataPart : public FW_CPart {
  30. public:
  31.                         CDataPart(ODPart* odPart);
  32.     virtual             ~CDataPart();
  33.     static const ODValueType     kPartKind;
  34.     static const ODValueType     kPartUserName;
  35. // overrides
  36. protected:
  37.     virtual void         Initialize(Environment* ev);
  38.     virtual FW_CFrame*    NewFrame(Environment* ev,
  39.                                  ODFrame* odFrame,
  40.                                  FW_CPresentation* presentation,
  41.                                  FW_Boolean fromStorage);
  42. // new members
  43. public:
  44.     virtual FW_CPrivOrderedCollection*        MyGetPizzaList();
  45.     virtual void                MyIncrement();
  46.     virtual void                MyInvalidatePresentation(Environment* ev);
  47. private:
  48.     FW_CString32                fEmbeddedString;
  49.     FW_CString*                    fStringPtr;
  50.     ODPtr                        fBufferPtr;
  51.     ODULong                        fBufferBytes;
  52.     FW_CPresentation*            fPresentation;
  53.     ODSShort                    fNumPizzas;
  54.     FW_CPrivOrderedCollection*    fPizzaList;
  55. };
  56.  
  57. //=======================================================================
  58. #endif
  59.