home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
odtlktv4.zip
/
ODTLKT
/
TOOLKIT
/
IDL
/
LINK.IDL
< prev
next >
Wrap
Text File
|
1995-12-13
|
4KB
|
122 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 _LINK_
#define _LINK_
#ifndef _LINKB_
#include "LinkB.idl"
#endif
#ifdef _PLATFORM_OS2_
#ifndef _IODDEFS_
#include <IODDefs.idl>
#endif
#endif /*_PLATFORM_OS2_*/
//==============================================================================
// Theory of Operation
//==============================================================================
/*
This class is used to represent the destination side of OpenDoc links.
ODDrafts create and own these links. The source ODPart will ask the draft
to create an ODLinkSource and an ODLink pair, and return the ODLink
object to the the destination part. The destination part uses the ODLink
object to extract the contents of the link.
*/
//==============================================================================
// Classes defined in this interface
//==============================================================================
interface ODLink;
//==============================================================================
// Classes used by this interface
//==============================================================================
interface ODStorageUnit;
interface ODLinkSource;
//==============================================================================
// ODLink
//==============================================================================
// #ifdef _PLATFORM_MACINTOSH_
#if defined(_PLATFORM_MACINTOSH_) || defined(_PLATFORM_OS2_)
interface ODLink : ODBaseLink
{
#ifdef _PLATFORM_OS2_
void SetDescription (in ODLinkDescription Desc);
// Called by target Part to set its description.
void GetDescription (out ODLinkDescription Desc);
// Called by target Part to retrieve the description of itself.
ODBoolean IsRegistered();
// Returns wether or not a this LinkTarget is register or not
// to receive automatic updates
#endif /* _PLATFORM_OS2_ */
#ifdef __SOMIDL__
implementation
{
functionprefix = ODLink;
override:
somInit,
somUninit,
Release,
Externalize,
ReleaseAll,
CloneInto;
releaseorder:
#ifdef _PLATFORM_OS2_
SetDescription,
GetDescription,
IsRegistered,
#endif /* _PLATFORM_OS2_ */
reserved1,
reserved2,
reserved3,
reserved4,
reserved5,
reserved6,
reserved7,
reserved8,
reserved9;
majorversion = 1; minorversion = 0;
passthru C_xh = ""
"#ifdef _PLATFORM_OS2_"
"#ifndef _ODTYPESB_"
"#include <odtypesb.xh>"
"#endif"
"#endif"
"";
};
#endif
};
#endif // _PLATFORM_MACINTOSH_
#endif // _LINK_