home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
odtlktv4.zip
/
ODTLKT
/
TOOLKIT
/
IDL
/
SEMTINTF.IDL
< prev
next >
Wrap
Text File
|
1995-12-13
|
8KB
|
203 lines
/********************************************************************/
/* Licensed Materials - Property of IBM */
/* */
/* */
/* Copyright (C) International Business Machines Corp., 1994. */
/* Copyright (C) Apple Computer, Inc., 1994 */
/* */
/* US Government Users Restricted Rights - */
/* Use, duplication, or disclosure restricted */
/* by GSA ADP Schedule Contract with IBM Corp. */
/* */
/* */
/********************************************************************/
#ifndef _SEMTINTF_
#define _SEMTINTF_
#ifndef _SEMTINTB_
#include "SemtIntB.idl"
#endif
#ifndef _ODTYPESM_
#include "ODTypesM.idl"
#endif
#ifndef _CMSU_
#include <CMSU.idl>
#endif
//==============================================================================
// Classes defined in this interface
//==============================================================================
interface ODSemanticInterface;
//==============================================================================
// Classes used by this interface
//==============================================================================
interface ODPart;
interface ODHandler;
interface ODSession;
interface ODNameResolver;
//==============================================================================
// Structs defined by this class
//==============================================================================
//===============================================================================
// Implementation Types
//===============================================================================
typedef ODULong AEKeyword;
typedef ODULong ODEventHandlerUPP;
typedef ODULong ODCoercionHandlerUPP;
typedef ODULong ODObjectAccessorUPP;
typedef ODULong ODSpecialHandlerUPP;
typedef ODULong ODCountUPP;
typedef ODULong ODCompareUPP;
typedef ODULong ODDisposeTokenUPP;
typedef ODULong ODGetErrDescUPP;
typedef ODULong ODGetMarkTokenUPP;
typedef ODULong ODMarkUPP;
typedef ODULong ODAdjustMarksUPP;
typedef ODULong ODPreDispatchUPP;
typedef ODULong UniversalProcPtr;
// typedef ULONG DescType;
//==============================================================================
// ODSemanticInterface
//==============================================================================
interface ODSemanticInterface : ODBaseSemanticInterface
{
void InitSemanticInterface (in ODPart base,
in ODSession session);
#ifdef _PLATFORM_OS2_
void InstallEventHandler (in ODEventClass theAEEventClass,
in ODEventID theAEEventID,
in ODEventHandlerUPP handler,
in ODSLong handlerRefCon);
void InstallCoercionHandler (in ODDescType fromType,
in ODDescType toType,
in ODCoercionHandlerUPP handler,
in ODSLong handlerRefCon,
in ODBoolean fromTypeIsDesc);
void InstallObjectAccessor (in ODDescType desiredClass,
in ODDescType containerType,
in ODObjectAccessorUPP theAccessor,
in ODSLong accessorRefcon);
void InstallSpecialHandler (in AEKeyword functionClass,
in ODSpecialHandlerUPP handler,
in ODSLong refCon);
void RemoveEventHandler (in ODEventClass theAEEventClass,
in ODEventID theAEEventID,
in ODEventHandlerUPP handler);
void RemoveSpecialHandler (in AEKeyword functionClass,
in ODSpecialHandlerUPP handler);
void RemoveObjectAccessor (in ODDescType desiredClass,
in ODDescType containerType,
in ODObjectAccessorUPP theAccessor);
void RemoveCoercionHandler(in ODDescType fromType,
in ODDescType toType,
in ODCoercionHandlerUPP handler);
void InstallCompareProc (in ODCompareUPP compareProc, in ODSLong refCon);
void InstallCountProc (in ODCountUPP countProc, in ODSLong refCon);
void InstallDisposeTokenProc (in ODDisposeTokenUPP disposeTokenProc, in ODSLong refCon);
void InstallGetErrDescProc (in ODGetErrDescUPP errorDescProc, in ODSLong refCon);
void InstallGetMarkTokenProc (in ODGetMarkTokenUPP getMarkTokenProc, in ODSLong refCon);
void InstallMarkProc (in ODMarkUPP markProc, in ODSLong refCon);
void InstallAdjustMarksProc (in ODAdjustMarksUPP adjustMarksProc, in ODSLong refCon);
#endif // _PLATFORM_OS2_
#ifdef __SOMIDL__
implementation
{
functionprefix = ODSemanticInterface;
override:
somInit,
somUninit,
CallEventHandler,
CallCoercionHandler,
CallObjectAccessor,
CallPredispatchProc,
CallCompareProc,
CallCountProc,
CallDisposeTokenProc,
CallGetErrDescProc,
CallGetMarkTokenProc,
CallMarkProc,
CallAdjustMarksProc;
releaseorder:
InitSemanticInterface,
#ifdef _PLATFORM_OS2_
InstallEventHandler,
InstallCoercionHandler,
InstallObjectAccessor,
InstallSpecialHandler,
RemoveSpecialHandler,
RemoveEventHandler,
RemoveObjectAccessor,
RemoveCoercionHandler,
InstallCompareProc,
InstallCountProc,
InstallDisposeTokenProc,
InstallGetErrDescProc,
InstallGetMarkTokenProc,
InstallMarkProc,
InstallAdjustMarksProc,
Reserved1,
Reserved2,
Reserved3,
Reserved4,
Reserved5,
Reserved6,
Reserved7,
Reserved8,
Reserved9,
Reserved10,
Reserved11,
Reserved12;
#endif // _PLATFORM_OS2_
#ifdef _PLATFORM_OS2_
passthru C_xh = ""
"#ifndef _ODTYPES_"
"#include <ODTypes.h>"
"#endif"
"#include <sitypes.h>"
"// end of passthru statements";
passthru C_hh = ""
"#ifndef _ODTYPES_"
"#include <ODTypes.h>"
"#endif"
"#include <sitypes.h>"
"// end of passthru statements";
// InstallPredispatchHandler,
// InstallCompareHandler,
// InstallCountHandler,
// InstallDisposeTokenHandler,
// InstallGetErrDescHandler,
// InstallGetMarkTokenHandler,
// InstallMarkHandler,
// InstallAdjustMarksHandler,
#endif // _PLATFORM_OS2_
};
#endif // __SOMIDL__
};
#endif // _SEMTINTF_