// ProObjProperty.cpp : _xZkqqHx_iDeDiDjDiDhGiDiKiDiBiDjDiDgFiBfLiDfGiDiHiDjD_xHqqkZx_ _xZkqqHx_iDhEiDeAiDeDiDiL_xHqqkZx_
//

#include "stdafx.h"
#include "FoundDoc.h"		// For g_pDoc.
#include "LinkManager.h"	// For FCLinkManager.
#include "PrsObjProperty.h"	// For CFCPrsObjProperty.
#include "ProObjProperty.h"	// This header.

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

/////////////////////////////////////////////////////////////////////////////
// CFCProObjProperty _xZkqqHx_iDhGiDiNiDhAiDgFiDeC_xHqqkZx_ _xZkqqHx_iDhJiBfLiDfH_xHqqkZx_

IMPLEMENT_DYNCREATE(CFCProObjProperty, CFCPropertyPageBase)

/////////////////////////////////////////////////////////////////////////////
// CFCProObjProperty _xZkqqHx_iDiGiBfLiDfFiKnGjAjEiBeC_xHqqkZx_

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCProObjProperty::AppendTargetObject
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iClBiCmMiDhJiBfLiDfHiCmJiBeBjFnCiPfHjBmOiPnLiCmMjFjEjFgJiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pObject	:_xZkqqHx_jFjEjFgJiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iClBiCmMiDhJiBfLiDfHiCmFiCmMiCnNjFnCiPfHiClDiCoKiCoJjFjEjFgJiCpAjAnNjCoIiClHiCoJiBeCjFjEjFgJiCmMjAnNjCoIiCkKiIoKiCmCiCoA_xHqqkZx_
 *			_xZkqqHx_iCmIiCkCiPoKiNiHiCmNiBeBiDfGiBfLiDgHiCmJjAnNjCoIiClDiCoKiClNjFjEjFgJiPfHiNiHiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.02.06 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCProObjProperty::AppendTargetObject (FCObjDynabase* pObject)
{
	m_vTargetObject.push_back(pObject);
} // CFCProObjProperty::AppendTargetObject.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCProObjProperty::GetTargetObject
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfOiBfLiDfBiDgCiDgHiCmGiCmIiCoJjFjEjFgJiPfHiNiHiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDfOiBfLiDfBiDgCiDgHjFjEjFgJiPfHiNiHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iDhGiDiNiDhAiDgFiDeCiDhJiBfLiDfHiCmJjClMjAnKjFjEjFgJiCkKjAnNjCoIiClDiCoKiCmEiCkCiCoKiCmOiBeBiClLiCoKiCpAjFnEiClHiBeC_xHqqkZx_
 *			_xZkqqHx_iClLiCkEiCmFiCmIiCkPiCoKiCmOiBeBiDhGiDiNiDhAiDgFiDeCiDfGiBfLiDgHiCmJjAnNjCoIiClDiCoKiClNjFjEjFgJiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.02.06 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
const ObjDynabaseVector* CFCProObjProperty::GetTargetObject ()
{
	if (m_vTargetObject.empty())
	//----- _xZkqqHx_iClBiCmMiDhJiBfLiDfHiCmJjClMjAnKjAnNjCoIiClDiCoKiClNjFjEjFgJiCkKiCmIiCkCiPoKiNiH_xHqqkZx_ -----
	{
		CFCPrsObjProperty* pSheet = (CFCPrsObjProperty*)GetParent();
		ASSERT(pSheet->IsKindOf(RUNTIME_CLASS(CFCPrsObjProperty)));
		return pSheet->GetTargetObject();
	} else
	//----- _xZkqqHx_iClBiCmMiDhJiBfLiDfHiCmJjClMjAnKjAnNjCoIiClDiCoKiClNjFjEjFgJiCkKiCkAiCoJiPoKiNiH_xHqqkZx_ -----
	{
		return &m_vTargetObject;
	}
} // CFCProObjProperty::GetTargetObject.

/////////////////////////////////////////////////////////////////////////////
// CFCProObjProperty _xZkqqHx_iDfCiDjDiDfIiDgHiDiJiDeOiDfOiBeC_xHqqkZx_

CFCProObjProperty::CFCProObjProperty (UINT nIDTemplate) : BASE_CLASS(nIDTemplate)
{
	//{{AFX_DATA_INIT(CFCProObjProperty)
		// _xZkqqHx_iDiBiDiC_xHqqkZx_ - ClassWizard _xZkqqHx_iCmNiClBiCmMiImKjChFiCmJiDiBiDjDiDgPiCmMiPiJiKpKiJlLiPiIjHjNiCpAjCmHiJmBiClFiCnMiClHiBeC_xHqqkZx_
	//}}AFX_DATA_INIT
} // CFCProObjProperty::CFCProObjProperty.

CFCProObjProperty::~CFCProObjProperty ()
{
} // CFCProObjProperty::~CFCProObjProperty.

void CFCProObjProperty::DoDataExchange(CDataExchange* pDX)
{
	BASE_CLASS::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CFCProObjProperty)
		// _xZkqqHx_iDiBiDiC_xHqqkZx_ - ClassWizard _xZkqqHx_iCmNiClBiCmMiImKjChFiCmJiDhNiDgCiDhDiDjDiDePjHhAiCmMiDhNiDeOiDiNiCpAjCmHiJmBiCnMiClNiCmNiNoNiPjMiClFiCnMiClHiBeC_xHqqkZx_
	//}}AFX_DATA_MAP
}

BEGIN_MESSAGE_MAP(CFCProObjProperty, BASE_CLASS)
	//{{AFX_MSG_MAP(CFCProObjProperty)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CFCProObjProperty _xZkqqHx_iDiBiDgCiDfKiBfLiDfH_xHqqkZx_ _xZkqqHx_iDgOiDjDiDgIiDiJ_xHqqkZx_

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCProObjProperty::OnOK
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	OK_xZkqqHx_iDhLiDfOiDjDiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.06.21 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCProObjProperty::OnOK ()
{
	if (!m_vTargetObject.empty())
	//----- _xZkqqHx_iClBiCmMiDhJiBfLiDfHiCmJjClMjAnKjAnNjCoIiClDiCoKiClNjFjEjFgJiCkKiCkAiCoJiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_jFjEjFgJiCmMjFmPiMgAiCpAjCmKjCgNiBeCjDoAjFjEiCmFiDfCiDhNiDjDiDgIiCpAjEkNiNhDiBeC_xHqqkZx_
		// _xZkqqHx_jFjEjFgJiCmMjFmPiMgAiBeFiJpBjDfNjDjJiCmJjElKiCmBiCmEiBeBiDiKiDjDiDeOjAoGjFjEjFgJiCpAjFmPiMgAiClHiCoJjFeLjHhGiCkKiCkAiCoJiBeC_xHqqkZx_
		// _xZkqqHx_jFjEjFgJiCkKjFmPiMgAiClDiCoKiCoJiCmGiCmNiMmAiCoHiCmIiCkCiCkKiBeBiPiIjHjNiClFjGfJiCoKiCpAjGgIiCkOiClNiCnPiCmJiBeB_xHqqkZx_
		// _xZkqqHx_iClBiClBiCmFiCnMiCmGiCnPiCmEiPiIjHjNiClFiClNjFpLiCkKiCoGiCkCiBeC_xHqqkZx_
		g_pDoc->LinkManager()->MovedNotify(m_vTargetObject);
	}
	// Superclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
	BASE_CLASS::OnOK();
} // CFCProObjProperty::OnOK.
