home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
odtlktv4.zip
/
ODTLKT
/
TOOLKIT
/
IDL
/
DRAFT.IDL
< prev
next >
Wrap
Text File
|
1995-12-13
|
6KB
|
202 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 _DRAFT_
#define _DRAFT_
#ifndef _REFCTOBJ_
#include "RefCtObj.idl"
#endif
//==============================================================================
// Classes defined in this interface
//==============================================================================
interface ODDraft;
//==============================================================================
// Classes used by this interface
//==============================================================================
interface ODCanvas;
interface ODDocument;
interface ODFrame;
interface ODLink;
interface ODLinkSource;
interface ODLinkIterator;
interface ODLinkSourceIterator;
interface ODLinkSpec;
interface ODPart;
interface ODShape;
interface ODStorageUnit;
interface ODPersistentObject;
interface ODPartWrapper;
//==============================================================================
// ODDraft
//==============================================================================
interface ODDraft : ODRefCntObject
{
ODDocument GetDocument();
ODDraftID GetID();
ODStorageUnit AcquireDraftProperties();
ODDraftPermissions GetPermissions();
ODStorageUnit CreateStorageUnit();
ODStorageUnit AcquireStorageUnit(in ODStorageUnitID id);
void RemoveStorageUnit(in ODStorageUnit storageUnit);
ODBoolean IsValidID(in ODID id);
ODDraftKey BeginClone(in ODDraft destDraft, in ODFrame destFrame, in ODCloneKind kind);
void EndClone(in ODDraftKey key);
void AbortClone(in ODDraftKey key);
ODID Clone(in ODDraftKey key, in ODID fromObjectID, in ODID toObjectID, in ODID scope);
ODID WeakClone(in ODDraftKey key, in ODID objectID, in ODID toObjectID, in ODID scope);
ODBoolean ChangedFromPrev();
void SetChangedFromPrev();
void RemoveFromDocument();
ODDraft RemoveChanges();
ODDraft Externalize();
ODDraft SaveToAPrevious(in ODDraft to);
ODFrame CreateFrame(
in ODObjectType frameType,
in ODFrame containingFrame,
in ODShape frameShape,
in ODCanvas biasCanvas,
in ODPart part,
in ODTypeToken viewType,
in ODTypeToken presentation,
in ODBoolean isSubframe,
in ODBoolean isOverlaid);
ODFrame AcquireFrame(in ODStorageUnitID id);
void RemoveFrame(in ODFrame frame);
ODPart CreatePart(in ODType partType,
in ODEditor optionalEditor);
ODPart AcquirePart(in ODStorageUnitID id);
void ReleasePart(in ODPart part);
void RemovePart(in ODPart part);
ODLinkSpec CreateLinkSpec (in ODPart part, in ODByteArray data);
ODLinkSource CreateLinkSource(in ODPart part);
ODLinkSource AcquireLinkSource(in ODStorageUnitID id);
ODLink AcquireLink(in ODStorageUnitID id,
in ODLinkSpec linkSpec);
void RemoveLink(in ODLink link);
void RemoveLinkSource(in ODLinkSource link);
ODPersistentObjectID GetPersistentObjectID(in ODPersistentObject object,
in ODObjectType objectType);
ODPersistentObject AcquirePersistentObject(in ODPersistentObjectID objectID,
out ODObjectType objectType);
#ifdef __SOMIDL__
implementation
{
functionprefix = ODDraft;
override:
somInit,
somUninit,
Acquire,
Release;
releaseorder:
GetDocument,
GetID,
GetName,
SetName,
AcquireDraftProperties,
GetPermissions,
CreateStorageUnit,
AcquireStorageUnit,
RemoveStorageUnit,
BeginClone,
EndClone,
AbortClone,
Clone,
WeakClone,
ChangedFromPrev,
SetChangedFromPrev,
RemoveFromDocument,
RemoveChanges,
Externalize,
SaveToAPrevious,
CreateFrame,
AcquireFrame,
RemoveFrame,
CreatePart,
AcquirePart,
RemovePart,
CreateLinkSpec,
CreateLinkSource,
AcquireLinkSource,
AcquireLink,
RemoveLink,
RemoveLinkSource,
GetPersistentObjectID,
AcquirePersistentObject,
ReleasePart,
IsValidID,
reserved1,
reserved2,
reserved3,
reserved4,
reserved5,
reserved6,
reserved7,
reserved8,
reserved9,
#ifndef _PLATFORM_OS2_
reserved10;
#else
reserved10,
reserved11,
reserved12;
#endif
};
#endif
};
#endif // _DRAFT_