home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
odtlktv4.zip
/
ODTLKT
/
TOOLKIT
/
IDL
/
LINKSRCB.IDL
< prev
next >
Wrap
Text File
|
1995-12-13
|
4KB
|
133 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 _LINKSRCB_
#define _LINKSRCB_
#ifndef _PSTOBJ_
#include "PstObj.idl"
#endif
//==============================================================================
// Theory of Operation
//==============================================================================
/*
This class is used to represent the source 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 ODBaseLinkSource;
//==============================================================================
// Classes used by this interface
//==============================================================================
interface ODStorageUnit;
interface ODPart;
interface ODPartList;
interface ODLink;
interface ODDraft;
interface ODFacet;
//==============================================================================
// ODBaseLinkSource
//==============================================================================
interface ODBaseLinkSource : ODPersistentObject
{
ODBoolean Lock(in ODULong wait,
out ODLinkKey key);
void Unlock(in ODLinkKey key);
void Clear(in ODUpdateID id, in ODLinkKey key);
ODStorageUnit GetContentStorageUnit(in ODLinkKey key);
void ContentUpdated(in ODUpdateID id, in ODLinkKey key);
void ShowSourceContent();
#ifdef _PLATFORM_MACINTOSH_
ODBoolean ShowLinkSourceInfo(
in ODFacet facet,
in ODUpdateID change,
in ODBoolean changesAllowed,
out ODLinkInfoResult infoResult);
#endif
ODUpdateID GetUpdateID();
ODTime GetChangeTime();
ODBoolean IsAutoUpdate();
void SetAutoUpdate(in ODBoolean automatic);
void SetSourcePart(in ODStorageUnit sourcePartSU);
#ifdef __SOMIDL__
implementation
{
functionprefix = ODBaseLinkSource;
override:
somInit,
somUninit,
Externalize,
ReleaseAll,
CloneInto;
releaseorder:
Lock,
Unlock,
Clear,
GetContentStorageUnit,
ContentUpdated,
GetUpdateID,
SetAutoUpdate,
IsAutoUpdate,
SetSourcePart,
ShowSourceContent,
GetChangeTime,
#ifdef _PLATFORM_MACINTOSH_
ShowLinkSourceInfo,
#endif
reserved1,
reserved2,
reserved3,
reserved4,
reserved5,
reserved6,
reserved7,
reserved8,
reserved9;
majorversion = 1; minorversion = 0;
};
#endif // __SOMIDL__
};
#endif // _LINKSRCB_