#ifdef __PRIVATE__
//#
//#	File:		PartWrap.idl
//#
//#	Contains:	Interface for ODPartWrapper class
//#
//#	Owned by: 	Caia Grisar
//#
//#	Copyright:	c 1994 by Apple Computer, Inc., all rights reserved.
//#
//#	Change History (most recent first):
//#
//#		 <3>	 9/21/94	CG		#1187347:  Added private fEditor field to
//#									store the part editor.
//#		 <2>	 9/19/94	T 		#1187347 PartWrapper Needs a mechanism for
//#									getting the current editor & real part
//#		 <1>	  9/9/94	CG		first checked in
//#		 <1>	 8/13/94	T 		first checked in
//#
//#	To Do:
//#
#else
//#	Copyright:	c 1994 by Apple Computer, Inc., all rights reserved.
#endif

#ifndef _PARTWRAP_
#define _PARTWRAP_

#ifndef _PART_
#include "Part.idl"
#endif


interface ODPartWrapper : ODPart
{
   void InitPartWrapper(in ODEditor editor);
   void UseEditor(in ODEditor editor);
   ODEditor GetEditor();
   ODPart GetPart();
   
#ifdef __SOMIDL__
	implementation
	{
	  	functionprefix = ODPartWrapper;

		majorversion = 1;
		minorversion = 0;
		
	override:
		somInit,
		somUninit,

//# Override ODObject methods
        InitObject,
		IsInitialized,
        HasExtension,
        GetExtension,
        ReleaseExtension,
        Purge,
		IsEqualTo,
		SubClassResponsibility,

//# Override ODRefCntObject methods
        InitRefCntObject,
        IncrementRefCount,
        Release,
        GetRefCount,

//# Override ODPersistentObject methods
        InitPersistentObject,
        InitPersistentObjectFromStorage,
        ReleaseAll,
        Externalize,
        GetStorageUnit,
        GetID,

//# Override ODPart methods
        FulfillPromise,
        DropCompleted,
        DragEnter,
        DragWithin,
        DragLeave,
        Drop,
        ContainingPartPropertiesChanged,
        GetContainingPartProperties,
        RevealFrame,
        EmbeddedFrameSpec,
        CreateEmbeddedFramesIterator,
        DisplayFrameAdded,
        DisplayFrameRemoved,
        DisplayFrameConnected,
        DisplayFrameClosed,
        AttachSourceFrame,
        FrameShapeChanged,
        ViewTypeChanged,
        PresentationChanged,
        SequenceChanged,
        WritePartInfo,
        ReadPartInfo,
        Open,
        RequestEmbeddedFrame,
        RemoveEmbeddedFrame,
        RequestFrameShape,
        UsedShapeChanged,
        AdjustBorderShape,
        FacetAdded,
        FacetRemoved,
        CanvasChanged,
        GeometryChanged,
        Draw,
        CanvasUpdated,
        HighlightChanged,
        GetPrintResolution,
        CreateLink,
        LinkUpdated,
        RevealLink,
        EmbeddedFrameChanged,
        LinkStatusChanged,
        BeginRelinquishFocus,
        CommitRelinquishFocus,
        AbortRelinquishFocus,
        FocusAcquired,
        FocusLost,
        CloneInto,
        ExternalizeKinds,
        ChangeKind,
        HandleEvent,
        HandleEventInEmbedded,
        MouseEnter,
        MouseWithin,
        MouseLeave,
        AdjustMenus,
        UndoAction,
        RedoAction,
        DisposeActionState,
        WriteActionState,
        ReadActionState,
        InitPart,
        InitPartFromStorage;
	releaseorder:
		InitPartWrapper,
		UseEditor,
		GetEditor,
		GetPart;
	
	#ifdef __PRIVATE__
		ODPart  fPart;
		ODEditor fEditor;
	#endif
	};
#endif
};

#endif //# _PARTWRAP_
