#include "stdafx.h"
#include "3ObjRect.h"		// For MC3ObjRect.
#include "3ToolRichText.h"	// This header.

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

#ifdef SUPER_CLASS
#undef SUPER_CLASS
#endif

#define SUPER_CLASS MC3ToolRichEditTmpl<MC3ToolBaseRectCreate>

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	MC3ToolRichText::MC3ToolRichText
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDjDiDfIiDgHiDiJiDeOiDfO_xHqqkZx_
 *************************************************************************/
MC3ToolRichText::MC3ToolRichText ()
{
	m_objpReference = NULL;
} // MC3ToolRichText::MC3ToolRichText.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	MC3ToolRichText::OnViewCreate
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	CDynamicDrawView::OnCreate_xZkqqHx_iCkJiCoH_xHqqkZx_Call.Tool_xZkqqHx_iCmMiPiJiKpKiJlL_xHqqkZx_.
 *
 * <_xZkqqHx_jCiNiInD_xHqqkZx_>	_xZkqqHx_iClHiCnHiCmEiCmMiDfEiDhFiDeOiDiJiDfIiCmFjFeLjAhL_xHqqkZx_.
 *************************************************************************/
void MC3ToolRichText::OnViewCreate ()
{
	// Superclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
	SUPER_CLASS::OnViewCreate();
	//----- _xZkqqHx_iDiKiDhEiDeAiDiMiDjDiDfIjFjEjFgJiCmMiNoMjAkM_xHqqkZx_ -----
	m_objpReference = new MC3ObjRect();
} // MC3ToolRichText::OnViewCreate.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	MC3ToolRichText::OnViewDestroy
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	CDynamicDrawView::OnDestroy_xZkqqHx_iCkJiCoH_xHqqkZx_Call.Tool_xZkqqHx_iCmMiPeJjHlJiPiIjHjN_xHqqkZx_.
 *
 * <_xZkqqHx_jCiNiInD_xHqqkZx_>	_xZkqqHx_iClHiCnHiCmEiCmMiDfEiDhFiDeOiDiJiDfIiCmFjFeLjAhL_xHqqkZx_.
 *************************************************************************/
void MC3ToolRichText::OnViewDestroy ()
{
	//----- _xZkqqHx_iDiKiDhEiDeAiDiMiDjDiDfIjFjEjFgJiCmMiPmBiLiO_xHqqkZx_ -----
	delete m_objpReference;
	m_objpReference = NULL;
	// Superclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
	SUPER_CLASS::OnViewDestroy();
} // MC3ToolRichText::OnViewDestroy.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	MC3ToolRichText::GetInsideObject
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFjEjFgJiCmMjAlGjAkMiCmJiOgHjHhAiClDiCoKiCoJiDgDiBfLiDiLjDoAjFjEjFjEjFgJiCpAjFnEiClH_xHqqkZx_.
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDgDiBfLiDiLjDoAjFjEjFjEjFgJiCmMiDhMiDeDiDjDiDfO_xHqqkZx_.
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iClBiCmMjFjEjFgJiCpAiOgHiCmBiCmEiBeBiDhNiDeFiDfIiInKjDkOiOjOiCmMjFgAiJoGiCoCjFjEjFgJiCmMjAlGjAkMiCpAiNhDiCkE_xHqqkZx_.
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	98.09.29 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
MC3ObjBase* MC3ToolRichText::GetInsideObject () const
{
	return m_objpReference;
} // MC3ToolRichText::GetInsideObject.

