#ifdef __PRIVATE__
//#
//#	File:		EmbedCtr.idl
//#
//#	Contains:	class definition for Bento Embedded Container
//#
//#	Written by:	Vincent Lo
//#
//#	Copyright:	c 1994 by Apple Computer, Inc., all rights reserved.
//#
//#	Change History (most recent first):
//#
//#		 <7>	 11/1/94	VL		1151339: Preparation for MergeContainer by
//#									adding fShouldMerge.
//#		 <6>	  7/5/94	VL		Added GetUseMode.
//#		 <5>	 6/30/94	CC		Added private methods GetCMContainer() &
//#									GetHandlers() and private fields
//#									fCMContainer & fHandlers.
//#		 <4>	 6/29/94	CC		Removed nonexistent overrides.
//#		 <3>	 6/22/94	VL		Changed XMP to OD.
//#		 <2>	 6/15/94	CC		Added functionprefix to eliminate Undefined
//#									entry, name: "_%CREATE".
//#		 <1>	  6/8/94	VL		first checked in
//#
//#	To Do:
//#
#else
//#	Copyright:	c 1993-1994 by Apple Computer, Inc., all rights reserved.
#endif

#ifndef _EMBEDCTR_
#define _EMBEDCTR_

#ifndef _CMCTR_
#include "CMCtr.idl"
#endif

//==============================================================================
// Classes defined in this interface
//==============================================================================
interface ODEmbeddedContainer;

#ifdef __PRIVATE__

//=====================================================================================
// Implementation Types
//=====================================================================================

typedef somToken CMContainerUseMode;
typedef somToken CMValue;
#endif

//==============================================================================
// ODContainer
//==============================================================================

interface ODEmbeddedContainer : ODBentoContainer 
{

#ifdef __PRIVATE__

	typedef struct ODEmbeddedContainerID_struct {
		CMValue		cmValue;
		ODBoolean	shouldMerge;
	} ODEmbeddedContainerID;
	
	ODContainer	Abort();
	CMContainerUseMode	GetUseMode();
#endif

#ifdef __SOMIDL__
	implementation
	{
	functionprefix = ODEmbeddedContainer;
	override:
		somInit,
		somUninit,
		Release,
		Purge,
		GetName,
		SetName,
		GetDocument,
		#ifdef __PRIVATE__
			InitContainer,
			GetCMContainer,
			GetHandlers,
		#endif
		Create,
		Open,
		Close,
		ReleaseDocument;
	releaseorder:
		Abort,
		GetUseMode;

	#ifdef __PRIVATE__
		passthru C_xih = 
				"#include <BentoHdr.h>"
				"";
		passthru C_xh = ""
				"class ODBentoHandlers;"
				"#include <CMAPI.h>"
				"";

		CMContainer			fCMContainer;
		ODBentoHandlers*	fHandlers;
		CMContainerUseMode	fUseMode;
		ODBoolean			fShouldMerge;
	#endif

	};
#endif
};

#endif  // _EMBEDCTR_
