home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / New System Software Extensions / OpenDoc A6 / OpenDoc Parts Framework / OPF / Examples / Button / Include / ButtonPart.h < prev   
Encoding:
Text File  |  1994-04-21  |  2.3 KB  |  86 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                ButtonPart.h
  4. //    Release Version:    $ 1.0d1 $
  5. //
  6. //    Author:                Henri Lamiraux
  7. //    Creation Date:        3/28/94
  8. //
  9. //    Copyright:    © 1993, 1994 by Apple Computer, Inc., all rights reserved.
  10. //
  11. //========================================================================================
  12.  
  13. #ifndef _BUTTONPART_
  14. #define _BUTTONPART_
  15.  
  16. #ifndef _BUTTONDEF_
  17. #include "ButtonDef.h"
  18. #endif
  19.  
  20. // ----- Framework Includes -----
  21.  
  22. #ifndef FWCTLMGR_H
  23. #include <FWCtlMgr.h>
  24. #endif
  25.  
  26. //==============================================================================
  27. //    •• class CButtonPart
  28. //==============================================================================
  29.  
  30. struct FW_CPoint;
  31. struct FW_CRect;
  32.  
  33. //==============================================================================
  34. //    •• class CButtonPart
  35. //==============================================================================
  36.  
  37. #define kCButtonPartID "appl:cbuttonpart$class,1.0.0"
  38.  
  39. class CButtonPart : public FW_CCtlMgrPart
  40. {
  41. //------------------------------------------------------------------------------
  42. //    • Initialization/Destruction
  43. //
  44. public:
  45.     CButtonPart();
  46.     virtual ~ CDECL CButtonPart();
  47.     
  48. //------------------------------------------------------------------------------
  49. //    • Inherited API
  50. //
  51. public:
  52.     virtual FW_CFrame*            NewFrame(XMPFrame* xmpFrame, XMPTypeToken presentation);
  53.     
  54. protected:
  55.     virtual ControlHandle        CreateControlHandle(XMPPlatformWindow window, 
  56.                                                     const FW_CRect& controlRect);
  57.     virtual XMPValueType        GetContentPropertyValueType() const;
  58.                                     
  59. };
  60.  
  61. //==============================================================================
  62. //    •• class CButtonFrame
  63. //==============================================================================
  64.  
  65. #define kCButtonFrameID "appl:cbuttonframe$class,1.0.0"
  66.  
  67. class CButtonFrame : public FW_CCtlMgrFrame
  68. {
  69. //------------------------------------------------------------------------------
  70. //    • Initialization/Destruction
  71. //
  72. public:
  73.     CButtonFrame();
  74.     virtual void InitButtonFrame(XMPFrame* frame, FW_CPart* part);    
  75.     virtual ~ CDECL CButtonFrame();
  76.  
  77. //------------------------------------------------------------------------------
  78. //    • Inherited API
  79. //
  80. public:
  81.     virtual void            UpdateUsedShape();
  82.  
  83. };
  84.  
  85. #endif
  86.