home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
odtlktv4.zip
/
ODTLKT
/
TOOLKIT
/
IDL
/
ODOBJECT.IDL
< prev
next >
Wrap
Text File
|
1995-12-13
|
3KB
|
132 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 _ODOBJECT_
#define _ODOBJECT_
#include <somobj.idl>
#include <somcls.idl>
#ifndef _ODTYPESM_
#include "ODTypesM.idl"
#endif
#ifndef _GEOTYPES_
#include "GeoTypes.idl"
#endif
#ifndef _POLYGON_
#include "Polygon.idl"
#endif
//==============================================================================
// Theory of Operation
//==============================================================================
/*
This file defines class ODObject. This class is the common base class
for all OpenDoc classes. It provides for extensibility through the
Extensions protocol.
*/
//==============================================================================
// Classes defined in this interface
//==============================================================================
interface ODObject;
//==============================================================================
// Classes used by this interface
//==============================================================================
interface ODExtension;
//==============================================================================
// ODObject
//==============================================================================
interface M_ODObject : SOMClass
{
#ifdef __SOMIDL__
implementation
{
somNew : override;
};
#endif
};
interface ODObject : SOMObject
{
void InitObject();
ODBoolean HasExtension(in ODType extensionName);
ODExtension AcquireExtension(in ODType extensionName);
void ReleaseExtension(in ODExtension extension);
ODSize Purge(in ODSize size);
ODBoolean IsEqualTo(in ODObject object);
void SubClassResponsibility();
#ifdef __SOMIDL__
implementation
{
metaclass = M_ODObject;
functionprefix = ODObject;
passthru C_h =
""
"#include <ODTypes.h>"
""
"";
passthru C_xh =
""
"#include <ODTypes.h>"
""
"";
passthru C_hh =
""
"#include <ODTypes.h>"
"";
somInit : override;
somUninit : override;
releaseorder:
InitObject,
HasExtension,
AcquireExtension,
ReleaseExtension,
Purge,
IsEqualTo,
SubClassResponsibility,
reserved;
};
#endif
};
#endif // _ODOBJECT_