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 / DataCmd / Sources / Include / DataCmdPrt.h < prev    next >
Encoding:
Text File  |  1995-10-30  |  1.7 KB  |  61 lines  |  [TEXT/MPS ]

  1. //    Copyright © 1995 Apple Computer, Inc. All rights reserved.
  2. //    Release Version:    $ 1.0 d11 $
  3.  
  4. #ifndef DATACMDPRT_H
  5. #define DATACMDPRT_H
  6.  
  7. //=======================================================================
  8. #ifndef _DATACMDDEF_
  9. #include "DataCmdDef.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 CDataCmdPart : public FW_CPart {
  30. public:
  31.                         CDataCmdPart(ODPart* odPart);
  32.     virtual             ~CDataCmdPart();
  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(Environment* ev, FW_CPoint position);
  46.     virtual void                MyDecrement(Environment* ev);
  47.     virtual void                MyInvalidatePresentation(Environment* ev, 
  48.                                                         FW_CRect& invalidRect);
  49. private:
  50.     FW_CString32                fEmbeddedString;
  51.     FW_CString*                    fStringPtr;
  52.     ODPtr                        fBufferPtr;
  53.     ODULong                        fBufferBytes;
  54.     FW_CPresentation*            fPresentation;
  55.     ODSShort                    fNumPizzas;
  56.     FW_CPrivOrderedCollection*    fPizzaList;
  57. };
  58.  
  59. //=======================================================================
  60. #endif
  61.