#include "stdafx.h"
#include "DynamicDraw.h"	// For FFGetApp.
#include "ObjTable.h"	// For FCObjTable.
#include "ToolTable.h"	// This header.

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


/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	FCToolTable::FCToolTable
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDjDiDfIiDgHiDiJiDeOiDfO_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.01.25 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
FCToolTable::FCToolTable ()
{
// 05.07.15 Fukushiro M. 1_xZkqqHx_iNhDiNoNiPjM_xHqqkZx_ ()
//	m_objpReference = NULL;
} // FCToolTable::FCToolTable.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	FCToolTable::CreateInsideObject
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jDoAjFjEjFjEjFgJiCpAiNoMjAkMiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_jDoAjFjEjFjEjFgJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.07.15 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
FCObjDynabase* FCToolTable::CreateInsideObject ()
{
//----- 05.07.15 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	// _xZkqqHx_jDoAjFjEjFjEjFgJiNoMjAkMiBjFiPiJiKpKiJlLiBeC_xHqqkZx_
//	FCObjDynabase* pObj = new FCObjTable();
//	pObj->CalcResizeFrame();
//	return pObj;
//	// _xZkqqHx_iDgDiBfLiDiLjDoAjFjEjFjEjFgJiCpAiCfAiNhDiCfAjHpBiImIiPo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CoIjBoFiCkLiCmIiDgFiBfLiDhFiDiLiCmJ_xHqqkZx_
	// _xZkqqHx_iPiJiKpKiJlLiClHiCoJiCmGiBeBiDgDiBfLiDiLjDoAjFjEjFjEjFgJjAjEiCkKjBjNiCkGiCmEiClFiCnMiCkEiBeCiCnMiClNiBeB_xHqqkZx_DoPasteCsv_xZkqqHx_iKnGjAjE_xHqqkZx_
	// _xZkqqHx_iCmFiCmNiBeBjDoAjFjEjFjEjFgJiCmMjFfMjFjEjFgJiCkK_xHqqkZx_ 1x1 _xZkqqHx_iCmMjBePjCpBiCmFjFkBiOmKiClDiCoKiCoJiBeC_xHqqkZx_
	pObjTable->InitTable();
	return pObjTable;
//----- 05.07.15 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
} // FCToolTable::CreateInsideObject.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	FCToolTable::OnInsideObjProperty
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgDiBfLiDiLjDoAjFjEjFjEjFgJiCmMiDhGiDiNiDhAiDgFiDeCiDfPiDeDiDeBiDiNiDePjFfMiOkGiCmMiInHiCmJiMmEiCmOiCoKiCoJiBeC_xHqqkZx_
 *			_xZkqqHx_iJeFiDhLiDfOiDjDiDeOiDiKiDgCiDeOiCmJiCoGiCmBiCmEjFfMiOkGiClDiCoKiCoJiDiBiDgKiDiFiBfLiCmMiDhGiDiNiDhAiDgFiDeC_xHqqkZx_
 *			_xZkqqHx_jBeJjBpAiCmFiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.07.15 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void FCToolTable::OnInsideObjProperty ()
{
	set<FCLineColumn> stCellId;
	set<FCFrontSide> stHorzRuledId;
	set<FCFrontSide> stVertRuledId;
	stCellId.insert(FCLineColumn(0,0));
	stHorzRuledId.insert(FCFrontSide(0,0));
	stHorzRuledId.insert(FCFrontSide(1,0));
	stVertRuledId.insert(FCFrontSide(0,0));
	stVertRuledId.insert(FCFrontSide(1,0));
	// _xZkqqHx_iDhGiDiNiDhAiDgFiDeCiDfGiBfLiDgHjFfMiOkGiBeC_xHqqkZx_
	FCObjTable::OnTableProperties(	ID_RBTN_TOOLOBJ_PROPERTY,
									TRUE,
									(FCObjTable*)GetInsideObject(),
									&stCellId,
									&stHorzRuledId,
									&stVertRuledId,
									IDD_PRO_FIGURE_BRUSH);

//----- 05.07.15 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	// ID_RBTN_TOOLOBJ_PROPERTY = "_xZkqqHx_iDgDiBfLiDiLjDoAjFjEjFjEjFgJiCmMiDhGiDiNiDhAiDgFiDeC_xHqqkZx_"
//	CFCPrsObjProperty sheet(ID_RBTN_TOOLOBJ_PROPERTY);
//	CPropertyPageVector vPropPage;
//	CPropertyPageVector::const_iterator iPN;
//	ObjDynabaseVector vSelect;
//	// _xZkqqHx_iDgDiBfLiDiLjDoAjFjEjFjEjFgJiCpAiOoGjDlOiBeC_xHqqkZx_
//	FCObjDynabase* ojpTemp = GetInsideObject();
//	if (ojpTemp == NULL) return;
//	// _xZkqqHx_iDhGiDiNiDhAiDgFiDeCiDfGiBfLiDgHiCmJjFjEjFgJiCpAjAnNjCoIiBeC_xHqqkZx_
//	vSelect.push_back(ojpTemp);
//	sheet.SetTargetObject(&vSelect, TRUE);
//	// _xZkqqHx_iDhGiDiNiDhAiDgFiDeCiDhJiBfLiDfHiCpAiNoMjAkMiBeC_xHqqkZx_
//	(*vSelect.begin())->CreatePropertyPage(vPropPage, vSelect);
//	if (vPropPage.empty()) return;
//	// _xZkqqHx_iDhGiDiNiDhAiDgFiDeCiDfGiBfLiDgHiCmJiDhJiBfLiDfHiCpAjAnNjCoIiBeC_xHqqkZx_
//	for (iPN = vPropPage.begin(); iPN != vPropPage.end(); ++iPN)
//		sheet.AddPage(*iPN);
//	// _xZkqqHx_iDhGiDiNiDhAiDgFiDeCiDfGiBfLiDgHiCpAiDhMiDgCiDhGiDeBiDgCiDhGiBeC_xHqqkZx_
//	sheet.DoModal();
//	// _xZkqqHx_iDhGiDiNiDhAiDgFiDeCiDhJiBfLiDfHiCpAiJpAjFpKiBeC_xHqqkZx_
//	for (iPN = vPropPage.begin(); iPN != vPropPage.end(); ++iPN)
//		delete *iPN;
//----- 05.07.15 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
} // FCToolTable::OnInsideObjProperty.

//----- 05.07.15 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	FCToolTable::OnViewCreate
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	CFCDynamicDrawView::OnCreate_xZkqqHx_iCkJiCoH_xHqqkZx_Call.Tool_xZkqqHx_iCmMiPiJiKpKiJlL_xHqqkZx_.
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.01.25 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void FCToolTable::OnViewCreate ()
//{
//	BASE_CLASS::OnViewCreate();
//	// _xZkqqHx_jDoAjFjEjFjEjFgJiNoMjAkMiBjFiPiJiKpKiJlLiBeC_xHqqkZx_
//	m_objpReference = new FCObjTable();
//	m_objpReference->CalcResizeFrame();
//// 05.05.02 Fukushiro M. 1_xZkqqHx_iNhDiNoNiPjM_xHqqkZx_ ()
////	m_objpReference->CalcOuterFrame();
//
//	// _xZkqqHx_iDgDiBfLiDiLjDoAjFjEjFjEjFgJiCpAiCfAiNhDiCfAjHpBiImIiPoDiCmJiClHiCoJiCmGiBeBjDoAjFjEiCmJjApMjFjEjFgJiCmG_xHqqkZx_
//	// _xZkqqHx_iDgFiDeMiDfIiDgHiLoJiMgAjFjEjFgJiCkKiNoMjAkMiClDiCoKiCmEiClFiCnMiCkEiBeC_xHqqkZx_
//	// _xZkqqHx_jDoAjFjEjFjEjFgJiCmN_xHqqkZx_FCToolManager::DeleteContents _xZkqqHx_iCmJiCkIiCkCiCmEjFjEjFgJ_xHqqkZx_ID_xZkqqHx_iCkK_xHqqkZx_
//	// _xZkqqHx_jDgPjIfOiClDiCoKiCoJiCkKiBeBiCfAiDgDiBfLiDiLiCfAjFjEjFgJiCmGiMmAiCoHiCoKiCmEiCkCiCoJiClNiCnPjDoAjFjEiCmJjFkBjAjEiCmM_xHqqkZx_
//	// _xZkqqHx_jFjEjFgJiCpAiNoMiCoHiClJiCoJiCoNiCkPiCmJiCkCiCkJiCmIiCkCiBeC_xHqqkZx_
//	// InitNewObject_xZkqqHx_iKnGjAjEiCmJiCkIiCkCiCmEiBeBiDiKiDhEiDeAiDiMiDjDiDfIjFjEjFgJiCpAjAkOiCkGiCoJiNnLiCmJiBeB_xHqqkZx_
//	// _xZkqqHx_iCfAiNhDiCfAjHpBiCmJiPeDjAlDiClHiCoJiBeC_xHqqkZx_
//} // FCToolTable::OnViewCreate.
//----- 05.07.15 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

//----- 05.07.15 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	FCToolTable::OnViewDestroy
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	CFCDynamicDrawView::OnDestroy_xZkqqHx_iCkJiCoH_xHqqkZx_Call.Tool_xZkqqHx_iCmMiPeJjHlJiPiIjHjN_xHqqkZx_.
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.01.25 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void FCToolTable::OnViewDestroy ()
//{
//	delete m_objpReference;
//
//	BASE_CLASS::OnViewDestroy();
//} // FCToolTable::OnViewDestroy.
//----- 05.07.15 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

//----- 05.07.15 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	FCToolTable::InitNewObject
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhNiDeFiDfIiCkKiJjPiClDiCoKiClNiOjOiCmJiNoMjAkMiClFiClNjFjEjFgJiCpAiPiJiKpKiJlLiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pObj	:_xZkqqHx_jFjEjFgJiCpAiOhHjCoIiBeC_xHqqkZx_
// *			mmpt	:_xZkqqHx_jFjEjFgJiCmMiNlGiPoDiImKjChFiCpAiOhHjCoIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iPiJiKpKiJlLiCmJjAkMiMpHiClFiClNiPoKiNiHiCmN_xHqqkZx_ TRUE_xZkqqHx_iBeBiOlIjEhDiClFiClNiPoKiNiHiCmN_xHqqkZx_ FALSE _xZkqqHx_iCpAjFnEiClHiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iDiKiDhEiDeAiDiMiDjDiDfIjFjEjFgJiCmMjBkOjAkLiCkKiLlGiCmBiCmEiCkCiCoJiPoKiNiHiBgJiJkBjFjNiCePiCmGiCkJiBgKiBeBiClBiClBiCmF_xHqqkZx_
// *			_xZkqqHx_jFoCjAlDiClFiCmEiBeBiClLiCmMiMoDiCmMiDiKiDfEiDeDiDfJiCpAiJmCjEfMiCmJiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.01.27 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//BOOL FCToolTable::InitNewObject (FCObjDynabase* pObj, const DBLPoint& mmpt) const
//{
//	FCObjTable* pObjTable = (FCObjTable*)pObj;
//	// _xZkqqHx_iNmFjCoBiCmFiCoAiCfAiNhDiCfAjHpBiCmMjFfMiCmJiClHiCoJiBeC_xHqqkZx_
//	// _xZkqqHx_iDgDiBfLiDiLjDoAjFjEjFjEjFgJiCmNiBeBiCePiNhDiCePjHpBiCmIiCmMiCmFiBeBiPiJiKpKiJlLiCkKjFeLjHhGiBeC_xHqqkZx_
//	// _xZkqqHx_jFeLiClI_xHqqkZx_ 1x1 _xZkqqHx_iCmMiDgFiBfLiDhFiDiLiCmJiPiJiKpKiJlLiClHiCoJiClBiCmGiBeCiClBiCoKiCoGiCoIjBoFiCkLiCmIiDgFiBfLiDhFiDiLiCmJ_xHqqkZx_
//	// _xZkqqHx_iPiJiKpKiJlLiClHiCoJiCmGiBeBiDgDiBfLiDiLjDoAjFjEjFjEjFgJjAjEiCkKjBjNiCkGiCmEiClFiCnMiCkEiBeCiCnMiClNiBeB_xHqqkZx_DoPasteCsv_xZkqqHx_iKnGjAjE_xHqqkZx_
//	// _xZkqqHx_iCmFiCmNiBeBjDoAjFjEjFjEjFgJiCmMjFfMjFjEjFgJiCkK_xHqqkZx_ 1x1 _xZkqqHx_iCmMjBePjCpBiCmFjFkBiOmKiClDiCoKiCoJiBeC_xHqqkZx_
//	if (pObjTable->GetLineCount() == 0)
//		pObjTable->InitTable(1, 1);
//	// Superclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
//	return BASE_CLASS::InitNewObject(pObj, mmpt);
//} // FCToolTable::InitNewObject.
//----- 05.07.15 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	FCToolTable::GetDefaultIdleCursor
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	StateIdle_xZkqqHx_iCmFiDgGiDhEiDeIiDiLiDgHiCmJiOgHiCoNiCoKiCoJiDeKiBfLiDfMiDiLiDgOiDjDiDgIiDiLiCpAjFnEiClHiBeC_xHqqkZx_
 *			_xZkqqHx_jFfHiPiAiCmMiDeKiBfLiDfMiDiLiCmMiPoKiNiHiCmN_xHqqkZx_ NULL_xZkqqHx_iCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.01.25 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
HCURSOR FCToolTable::GetDefaultIdleCursor () const
{
	return FFGetApp()->LoadCursor(IDC_CURSOR_TOOL_TABLE);
} // FCToolTable::GetDefaultIdleCursor.

//----- 05.07.15 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	FCToolTable::GetInsideObject
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFjEjFgJiCmMjAlGjAkMiCmJiOgHjHhAiClDiCoKiCoJiDgDiBfLiDiLjDoAjFjEjFjEjFgJiCpAjFnEiClH_xHqqkZx_.
// *
// * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDgDiBfLiDiLjDoAjFjEjFjEjFgJiCmMiDhMiDeDiDjDiDfO_xHqqkZx_.
// *
// * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iClBiCmMjFjEjFgJiCpAiOgHiCmBiCmEiBeBiDhNiDeFiDfIiInKjDkOiOjOiCmMjFgAiJoGiCoCjFjEjFgJiCmMjAlGjAkMiCpAiNhDiCkE_xHqqkZx_.
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.01.25 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//FCObjDynabase* FCToolTable::GetInsideObject () const
//{
//	return m_objpReference;
//} // FCToolTable::GetInsideObject.
//----- 05.07.15 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
