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 / ODFDev / ODF / OS / ODUtils / Include / SemtIntf.idl < prev    next >
Encoding:
Text File  |  1995-11-08  |  2.3 KB  |  103 lines  |  [TEXT/MPS ]

  1. #ifdef __PRIVATE__
  2. //#
  3. //#    File:        SemtIntf.idl
  4. //#
  5. //#    Contains:    Class definition for ODCPlusSemanticInterface
  6. //#
  7. //#    Owned by:    Nick Pilch
  8. //#
  9. //#    Copyright:    © 1993 - 1995 by Apple Computer, Inc., all rights reserved.
  10. //#
  11. #else
  12. //#    Copyright:    © 1993 - 1995 by Apple Computer, Inc., all rights reserved.
  13. #endif
  14.  
  15. #ifndef _SEMTINTF_
  16. #define _SEMTINTF_
  17.  
  18. #ifndef _SEMTINTB_
  19. #include "SemtIntB.idl"
  20. #endif
  21.  
  22. //==============================================================================
  23. // Classes defined in this interface
  24. //==============================================================================
  25.  
  26. interface   ODCPlusSemanticInterface;
  27.  
  28. //==============================================================================
  29. // Classes used by this interface
  30. //==============================================================================
  31.  
  32. interface   ODPart;
  33. interface   ODSession;
  34.  
  35. //=====================================================================================
  36. // Implementation Types
  37. //=====================================================================================
  38.  
  39. typedef somToken SIHelperAbs;
  40.  
  41. //==============================================================================
  42. // ODCPlusSemanticInterface
  43. //==============================================================================
  44.  
  45. #ifdef _PLATFORM_MACINTOSH_
  46.  
  47. interface ODCPlusSemanticInterface : ODSemanticInterface
  48. {
  49.     void InitCPlusSemanticInterface(in ODPart base, in SIHelperAbs* helper,
  50.                                 in ODSession session);
  51.  
  52.     SIHelperAbs* GetSIHelper();
  53.  
  54. #ifdef __SOMIDL__
  55.     implementation
  56.     {
  57.           functionprefix = ODCPlusSemanticInterface;
  58.  
  59.         override:
  60.             somInit,
  61.             somUninit,
  62.             CallEventHandler,
  63.             CallCoercionHandler,
  64.             CallObjectAccessor,
  65.             CallPredispatchProc,
  66.             CallCompareProc,
  67.             CallCountProc,
  68.             CallDisposeTokenProc,
  69.             CallGetErrDescProc,
  70.             CallGetMarkTokenProc,
  71.             CallMarkProc,
  72.             CallAdjustMarksProc;
  73.         releaseorder:
  74.             InitCPlusSemanticInterface,
  75.             GetSIHelper;
  76.  
  77.         #ifdef    __PRIVATE__
  78.         passthru    C_xih    =    "
  79.         ""
  80.         "#include    \"SIHelper.h\""
  81.         ""
  82.         "struct OSLContext;"                    //#    figure out where to put
  83.         "typedef OSLContext ODOSLContext;"        //#    this!
  84.         "const ODSize    kOSLContextSize = sizeof(ODOSLContext*);"
  85.         "";
  86.  
  87.         SIHelperAbs*    fHelper;
  88.         #endif
  89.  
  90.         passthru    C_xh    =    "
  91.         ""
  92.         "class    SIHelperAbs;"
  93.         "";
  94.     };
  95. #endif //# __SOMIDL__
  96. };
  97.  
  98.  
  99. #endif //# _PLATFORM_MACINTOSH_
  100.  
  101.  
  102. #endif //# _SEMTINTF_
  103.