home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / ODFDev / Draw / Sources / SOMPart.cpp < prev    next >
Encoding:
Text File  |  1996-04-25  |  1.4 KB  |  56 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                SOMPart.cpp
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Author:                Henri Lamiraux
  7. //
  8. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  9. //
  10. //========================================================================================
  11.  
  12. #ifdef SYMANTEC_CPLUS
  13. #define PRAGMA_IMPORT_SUPPORTED 1 
  14. #endif 
  15.  
  16. // Note: Defines.k must be included before FWSOMPrt.h
  17. #ifndef DEFINES_K
  18. #include "Defines.k"
  19. #endif
  20.  
  21. #ifndef FWSOMPRT_H
  22. #include "FWSOMPrt.h"
  23. #endif
  24.  
  25. #ifndef DRAWPART_H
  26. #include "DrawPart.h"
  27. #endif
  28.  
  29. #if defined(__MWERKS__) && GENERATING68K
  30. // A hack to work around a bug
  31. #pragma import list somGetGlobalEnvironment, somNewObjectInstance, somParentNumResolve
  32. #endif
  33.  
  34. //========================================================================================
  35. //
  36. //========================================================================================
  37.  
  38. #ifdef SYMANTEC_CPLUS
  39. #define SOMInit main 
  40. #endif 
  41.  
  42. #ifdef FW_BUILD_MAC
  43. #pragma segment odfdraw
  44. #endif
  45.  
  46. //========================================================================================
  47. //
  48. //========================================================================================
  49.  
  50. #if defined(__MWERKS__) && GENERATING68K
  51. // A hack to work around a bug
  52. #pragma import list somParentNumResolve, somNewObjectInstance
  53. #endif
  54.  
  55. FW_SOMPART(ODFExamples, ODFDraw, CDrawPart)
  56.