// CntrItem.cpp : CMolipDrawCntrItem _xZkqqHx_iDeOiDiJiDfIiCmMjDkOiNoMiCmMjCoIiLgAiCpAiNhDiCkCiCnMiClHiBeC_xHqqkZx_
//

#include "stdafx.h"
#include "2FoundDoc.h"		// For g_pDoc.
#include "2ObjOle.h"		// For MC2ObjOle.
#include "2CntrItem.h"		// This header.

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CMolipDrawCntrItem _xZkqqHx_iDeDiDjDiDhGiDiKiDiBiDjDiDgFiBfLiDfGiDiHiDjD_xHqqkZx_

IMPLEMENT_SERIAL(CMolipDrawCntrItem, COleClientItem, 0)

CMolipDrawCntrItem::CMolipDrawCntrItem(COleDocument* pContainer)
	: COleClientItem(pContainer)
{
	m_dwOwnerObjectID = DWORD(-1);	// _xZkqqHx_iClBiCoKiCpAiPiKjHeMiClHiCoJjFjEjFgJ_xHqqkZx_ID_xZkqqHx_iCmMiPiJiKpKiJlLiBeC_xHqqkZx_
}

CMolipDrawCntrItem::~CMolipDrawCntrItem()
{
	// TODO: _xZkqqHx_iClBiCmMiPoKiPiKiCmJiMoDiPiIjHjNjHhAiDfCiBfLiDgIiCpAjCmHiJmBiClFiCmEiCkNiClOiClDiCkCiBeC_xHqqkZx_
	
}

/////////////////////////////////////////////////////////////////////////////
// CMolipDrawCntrItem _xZkqqHx_iDiGiBfLiDfFiKnGjAjEiBeC_xHqqkZx_

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CMolipDrawCntrItem::GetSize
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	OLE_xZkqqHx_iCmMiDfEiDeDiDfJiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	OLE_xZkqqHx_iCmMiDfEiDeDiDfJ_xHqqkZx_(_xZkqqHx_jIfPjHjNiNmAjFfH_xHqqkZx_)	: OLE_xZkqqHx_iDeBiDeDiDgFiDiAiCkKiCkAiCoJiPoKiNiH_xHqqkZx_
 *			(0,0)					: OLE_xZkqqHx_iDeBiDeDiDgFiDiAiCkKiLpDiCmMiPoKiNiH_xHqqkZx_
 *************************************************************************/
CSize CMolipDrawCntrItem::GetSize ()
{
	CSize size(0,0);
	if (GetCachedExtent(&size))
	{
		// OLE _xZkqqHx_iCkJiCoHjFnEiClDiCoKiCoJiDfEiDeDiDfJiCmNiBeB_xHqqkZx_HIMETRIC _xZkqqHx_iDiGiDgKiDgCiDgHjCfAiImKiCmJiCmIiCmBiCmEiCkCiCnMiClHiBeCiDhDiDeOiDfKiDiLjCfAiImKiCmJjFmPiKlHiClFiCnMiClHiBeC_xHqqkZx_
		CClientDC dc(NULL);
		dc.HIMETRICtoDP(&size);
	}
	return size;
} // CMolipDrawCntrItem::GetSize.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CMolipDrawCntrItem::SetOwnerObjectID
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iClBiCmM_xHqqkZx_OLE_xZkqqHx_iDeOiDiJiDeDiDeBiDjDiDgHiDeBiDeDiDgFiDiAiCpAiPiKjHeMiClFiCmEiCkCiCoJjFjEjFgJiCmM_xHqqkZx_ID_xZkqqHx_iCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	dwObjID	:_xZkqqHx_jFjEjFgJ_xHqqkZx_ID_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.04.28 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CMolipDrawCntrItem::SetOwnerObjectID (DWORD dwObjID)
{
	m_dwOwnerObjectID = dwObjID;
} // CMolipDrawCntrItem::SetOwnerObjectID.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CMolipDrawCntrItem::GetOwnerObjectID
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iClBiCmM_xHqqkZx_OLE_xZkqqHx_iDeOiDiJiDeDiDeBiDjDiDgHiDeBiDeDiDgFiDiAiCpAiPiKjHeMiClFiCmEiCkCiCoJjFjEjFgJiCmM_xHqqkZx_ID_xZkqqHx_iCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_jFjEjFgJ_xHqqkZx_ID_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.04.28 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
DWORD CMolipDrawCntrItem::GetOwnerObjectID () const
{
	return m_dwOwnerObjectID;
} // CMolipDrawCntrItem::GetOwnerObjectID.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CMolipDrawCntrItem::Serialize
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfGiDiKiDeBiDiJiDeDiDfJiCpAiNhDiCkEiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ar	:_xZkqqHx_iDeBiBfLiDeKiDeDiDhFiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.04.28 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CMolipDrawCntrItem::Serialize (CArchive& ar)
{
	ASSERT_VALID(this);

	// _xZkqqHx_iNmFiPiJiCmMiKoOjGhLiDeOiDiJiDfIiCmMiMmEiCnBiPgPiClFiCmN_xHqqkZx_ COleClientItem
	// _xZkqqHx_iDgGiBfLiDfOiCnGjDmHiCnNiNjOiCnMiCoKiCnMiClHiBeC_xHqqkZx_CMolipDrawCntrItem::GetDocument
	// _xZkqqHx_iCkJiCoHjFnEiClDiCoKiClN_xHqqkZx_ m_pDocument _xZkqqHx_iDhMiDeDiDjDiDfOiCpAjAnNjCoIiClFiCmEiCkJiCoHiKoOjGhLiDeOiDiJ_xHqqkZx_
	// _xZkqqHx_iDfIiCpAiMmEiCnBiPgPiClFiCmEiNmFiPiJiCmMiDfGiDiKiDeBiDiJiDeDiDfJiCpAiNhDiCmBiCmEiCkNiClOiClDiCkCiBeC_xHqqkZx_
	COleClientItem::Serialize(ar);

	// CMolipDrawCntrItem _xZkqqHx_iCmJjBmOiClFiCmEiDgGiBfLiDfOiCmMjFnLjBlG_xHqqkZx_/_xZkqqHx_jDmHiCnNiNjOiCnNiCpAiNhDiCkCiCnMiClHiBeC_xHqqkZx_
	if (ar.IsStoring())
	{
		ar << m_dwOwnerObjectID;	// _xZkqqHx_iClBiCmM_xHqqkZx_OLE_xZkqqHx_iDeBiDeDiDgFiDiAiCpAiPiKjHeMiClHiCoJjFjEjFgJiCmM_xHqqkZx_ID_xZkqqHx_iBeC_xHqqkZx_
	}
	else
	{
		ar >> m_dwOwnerObjectID;	// _xZkqqHx_iClBiCmM_xHqqkZx_OLE_xZkqqHx_iDeBiDeDiDgFiDiAiCpAiPiKjHeMiClHiCoJjFjEjFgJiCmM_xHqqkZx_ID_xZkqqHx_iBeC_xHqqkZx_
	}
} // CMolipDrawCntrItem::Serialize.

/////////////////////////////////////////////////////////////////////////////
// CMolipDrawCntrItem _xZkqqHx_iDeOiDiJiDfIiCmMjAgGjCgG_xHqqkZx_

#ifdef _DEBUG
void CMolipDrawCntrItem::AssertValid() const
{
	COleClientItem::AssertValid();
}

void CMolipDrawCntrItem::Dump(CDumpContext& dc) const
{
	COleClientItem::Dump(dc);
}
#endif

/////////////////////////////////////////////////////////////////////////////
