#ifndef __ObjOle_h
#define __ObjOle_h

#include "2ObjBase.h"	// Superclass.

class MCARCHIVE;

class MC2ObjOle : public MC2ObjBase
{
public:
	/*----- _xZkqqHx_jBfDiCmEiCmM_xHqqkZx_Subclass_xZkqqHx_iCkKiDeDiDjDiDhGiDiKiDiBiDjDiDgHiClFiCmIiCkPiCoKiCmOiCmIiCoHiCmIiCkC_xHqqkZx_ -----*/
	MC2ObjOle ();

	/*----- _xZkqqHx_iOmAjBmMiJlLiJmCjEfMiCmIiDeOiDiJiDfIiCkKiDeDiDjDiDhGiDiKiDiBiDjDiDgHiClFiCmIiCkPiCoKiCmOiCmIiCoHiCmIiCkC_xHqqkZx_ -----*/
	virtual BOOL	IsKindOf (FTObjectType nType) const;
	virtual FTObjectType	Type () const;

	virtual void	OutStreamV3 (MCARCHIVE& ar);
	virtual void	InStreamV12 (MCARCHIVE& ar);

	/*----- _xZkqqHx_jFeLjHhGiCmJiJjOiClGiCmEiDeDiDjDiDhGiDiKiDiBiDjDiDgHiClHiCoKiCmOjHmHiCkC_xHqqkZx_ -----*/
	virtual	~MC2ObjOle ();

	void	SetOleClientItemAndRatio (COleClientItem* pItem,
									double dRatioX = 1.0, double dRatioY = 1.0);

	void	Resize (BOOL bXPosi, BOOL bYPosi, const DBLRect& mmrtNew);
	DBLRect	GetResizeFrame () const;
	void	Terminate ();
	COleClientItem* GetOleClientItem () const;

	static CSize	GetSize (COleClientItem* pItem);

protected:
	//----- _xZkqqHx_iLeMjIfOiClDiCoKiCoJjBkOjAkL_xHqqkZx_ -----
	DBLPoint	m_mmptLeftTop;	// _xZkqqHx_iDhEiDiMiBfLiDiAiCmMiNlGiPoDiNmAjFfHiBeC_xHqqkZx_
	double		m_dRatioX;		// OLE_xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiCmGiDhEiDiMiBfLiDiAiCmMiKgHiPgLjEoEiBeC_xHqqkZx_
	double		m_dRatioY;		// OLE_xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiCmGiDhEiDiMiBfLiDiAiCmMiKgHiPgLjEoEiBeC_xHqqkZx_
	COleClientItem*	m_pOleItem;	// OLE_xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiBeC_xHqqkZx_
}; // class MC2ObjOle.

#endif//__ObjOle_h
