home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / odtlktv4.zip / ODTLKT / TOOLKIT / IDL / OSAGSC.IDL < prev    next >
Text File  |  1995-12-13  |  5KB  |  131 lines

  1. /********************************************************************/
  2. /*  Licensed Materials - Property of IBM                            */
  3. /*                                                                  */
  4. /*                                                                  */
  5. /* Copyright (C) International Business Machines Corp., 1994.       */
  6. /* Copyright (C) Apple Computer, Inc., 1994                         */
  7. /*                                                                  */
  8. /*  US Government Users Restricted Rights -                         */
  9. /*  Use, duplication, or disclosure restricted                      */
  10. /*  by GSA ADP Schedule Contract with IBM Corp.                     */
  11. /*                                                                  */
  12. /*                                                                  */
  13. /********************************************************************/
  14.  
  15. #ifndef _OSAGENERICSC_
  16. #define _OSAGENERICSC_
  17.  
  18. #ifndef _OSASCRIPTINGCOMPONENT_
  19. #include <osasc.idl>
  20. #endif
  21.  
  22. //==============================================================================
  23. // Class defined in this interface
  24. //==============================================================================
  25.  
  26. interface OSAGenericScriptingComponent;
  27.  
  28. //==============================================================================
  29. // Classes used by this interface
  30. //==============================================================================
  31.  
  32. interface Component;
  33. interface ComponentManager;
  34. interface OSAScriptingComponent;
  35.  
  36. //==============================================================================
  37. // Implementation Types
  38. //==============================================================================
  39.  
  40. typedef somToken ScriptingComponentSelector;
  41.  
  42. //==============================================================================
  43. // Class OSAGenericScriptingComponent
  44. //==============================================================================
  45.  
  46. interface OSAGenericScriptingComponent : OSAScriptingComponent {
  47.  
  48. OSAError OSAGenericToRealID(inout OSAID ptheScriptID,
  49.                             out Component ptheExactComponent);
  50.  
  51. OSAError OSAGetDefaultScriptingComponent(out ScriptingComponentSelector pscriptingSubType);
  52.  
  53. OSAError OSASetDefaultScriptingComponent(in ScriptingComponentSelector scriptingSubType);
  54.  
  55. OSAError OSAGetScriptingComponent(in ScriptingComponentSelector scriptingSubType,
  56.                                   out Component pscriptingInstance);
  57.  
  58. OSAError OSAGetScriptingComponentFromStored(in AEDesc *pscriptData,
  59.                          out ScriptingComponentSelector pscriptingSubType);
  60.  
  61. OSAError OSARealToGenericID(inout OSAID ptheScriptID,
  62.                          in Component theExactComponent);
  63.  
  64.  
  65. #ifdef __SOMIDL__
  66.  
  67. implementation {
  68.  
  69.  
  70.         majorversion = 1;
  71.         minorversion = 0;
  72.         functionprefix = OSAGSC_;
  73.         releaseorder :  OSAGenericToRealID,
  74.                         OSAGetDefaultScriptingComponent,
  75.                         OSASetDefaultScriptingComponent,
  76.                         OSAGetScriptingComponent,
  77.                         OSAGetScriptingComponentFromStored,
  78.                         OSARealToGenericID,
  79.                         Reserved1,
  80.                         Reserved2,
  81.                         Reserved3,
  82.                         Reserved4
  83.                         ;
  84.         somDefaultInit: override, init;
  85.         somDestruct: override;
  86.         override:       OSAAvailableDialectCodeList,
  87.                         OSAAvailableDialects,
  88.                         OSACoerceFromDesc,
  89.                         OSACoerceToDesc,
  90.                         OSACompile,
  91.                         OSACompileExecute,
  92.                         OSACopyID,
  93.                         OSADisplay,
  94.                         OSADispose,
  95.                         OSADoEvent,
  96.                         OSADoScript,
  97.                         OSAExecute,
  98.                         OSAExecuteEvent,
  99.                         OSAGetActiveProc,
  100.                         OSAGetCreateProc,
  101.                         OSAGetCurrentDialect,
  102.                         OSAGetDialectInfo,
  103.                         OSAGetResumeDispatchProc,
  104.                         OSAGetScriptInfo,
  105.                         OSAGetSendProc,
  106.                         OSAGetSource,
  107.                         OSALoad,
  108.                         OSALoadExecute,
  109.                         OSAMakeContext,
  110.                         OSAScriptError,
  111.                         OSAScriptingComponentName,
  112.                         OSASetActiveProc,
  113.                         OSASetCreateProc,
  114.                         OSASetCurrentDialect,
  115.                         OSASetDefaultTarget,
  116.                         OSASetResumeDispatchProc,
  117.                         OSASetScriptInfo,
  118.                         OSASetSendProc,
  119.                         OSAStartRecording,
  120.                         OSAStopRecording,
  121.                         OSAStore;
  122.         dllname = "OPENDOC.DLL";
  123.  
  124. };
  125.  
  126. #endif
  127.  
  128. };
  129.  
  130. #endif
  131.