home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
odtlktv4.zip
/
ODTLKT
/
TOOLKIT
/
IDL
/
LINKB.IDL
< prev
next >
Wrap
Text File
|
1995-12-13
|
4KB
|
121 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 _LINKB_
#define _LINKB_
#ifndef _PSTOBJ_
#include "PstObj.idl"
#endif
//==============================================================================
// 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 ODBaseLink;
//==============================================================================
// Classes used by this interface
//==============================================================================
interface ODLinkSource;
interface ODStorageUnit;
interface ODPart;
interface ODPartList;
interface ODDraft;
interface ODFacet;
//==============================================================================
// ODLink
//==============================================================================
interface ODBaseLink : ODPersistentObject
{
ODBoolean Lock(in ODULong wait, out ODLinkKey key);
void Unlock(in ODLinkKey key);
ODStorageUnit GetContentStorageUnit(in ODLinkKey key);
void RegisterDependent(in ODPart clientPart, in ODUpdateID id);
void UnregisterDependent(in ODPart clientPart);
ODUpdateID GetUpdateID();
ODTime GetChangeTime();
void ShowSourceContent();
#ifdef _PLATFORM_MACINTOSH_
ODBoolean ShowLinkDestinationInfo(
in ODFacet facet,
in ODLinkInfo info,
in ODBoolean changesAllowed,
out ODLinkInfoResult infoResult);
#endif
ODLinkSource GetLinkSource();
#ifdef __SOMIDL__
implementation
{
functionprefix = ODBaseLink;
override:
somInit,
somUninit,
Externalize,
ReleaseAll,
CloneInto;
releaseorder:
Lock,
Unlock,
GetContentStorageUnit,
RegisterDependent,
UnregisterDependent,
GetUpdateID,
GetChangeTime,
ShowSourceContent,
GetLinkSource,
reserved1,
reserved2,
reserved3,
reserved4,
reserved5;
majorversion = 1; minorversion = 0;
};
#endif // __SOMIDL__
};
#endif // _LINKB_