home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / Framewrk / FWViews / Sources / FWAGrpBx.cpp < prev    next >
Encoding:
Text File  |  1996-08-16  |  1.8 KB  |  54 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWAGrpBx.cpp
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #include "FWFrameW.hpp"
  11.  
  12. #ifndef FWSTATIC_H
  13. #include "FWStatic.h"
  14. #endif
  15.  
  16. //========================================================================================
  17. // File scope definitions
  18. //========================================================================================
  19.  
  20. #ifdef FW_BUILD_MAC
  21. #pragma segment fwgadgts
  22. #endif
  23.  
  24. //========================================================================================
  25. // CLASS FW_CGroupBox
  26. //========================================================================================
  27.  
  28. const FW_ClassTypeConstant FW_LGroupBox = FW_TYPE_CONSTANT('g','p','b','x');
  29. FW_REGISTER_ARCHIVABLE_CLASS(FW_LGroupBox, FW_CGroupBox, FW_CGroupBox::Create, FW_CView::Read, FW_CGroupBox::Destroy, FW_CView::Write)
  30.  
  31. //----------------------------------------------------------------------------------------
  32. //    FW_CGroupBox::Create
  33. //----------------------------------------------------------------------------------------
  34.  
  35. void* FW_CGroupBox::Create(FW_CReadableStream& stream, FW_ClassTypeConstant type)
  36. {
  37. FW_UNUSED(stream);
  38. FW_UNUSED(type);
  39.     FW_SOMEnvironment ev;
  40.     return FW_NEW(FW_CGroupBox, (ev));
  41. }
  42.  
  43. //----------------------------------------------------------------------------------------
  44. //    FW_CGroupBox::Destroy
  45. //----------------------------------------------------------------------------------------
  46.  
  47. void FW_CGroupBox::Destroy(void* object, FW_ClassTypeConstant type)
  48. {
  49. FW_UNUSED(type);
  50.     FW_CGroupBox* self = (FW_CGroupBox*) object;
  51.     delete self;
  52. }
  53.  
  54.