#include "stdafx.h"
//----- 05.06.13 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//#include "resource.h"	// For PrpObjTextRect.h.
//#include "UtilMisc.h"		// For ArcTan.
//#include "UtilRect.h"	// For GetRectPolygon.
//#include "UtilMath.h"	// For mmroundoff.
//#include "UndoArchive.h"	// For FCUndoArchive.
//#include "RichText.h"	// For GetRichText().
//#include "Env.h"		// For FD_S_COLOR_TRANSPARENT.
//----- 05.06.13 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
#include "3UtilMath.h"		// For mmroundoff.
#include "4ObjTextRect.h"	// This header.

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


/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	MC4ObjTextRect::MC4ObjTextRect
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDjDiDfIiDgHiDiJiDeOiDfOiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	CFCFoundDoc_xZkqqHx_iCmM_xHqqkZx_Stream_xZkqqHx_jDmHiCnNiNjOiCnNiOjOiCmJiBeB_xHqqkZx_MC4ObjTextRect_xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgH_xHqqkZx_
 *			_xZkqqHx_iNoMjAkMiCmJiOgHiCoNiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.02.05 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
MC4ObjTextRect::MC4ObjTextRect ()
{
	// m_mmrtResize_xZkqqHx_iCmN_xHqqkZx_double_xZkqqHx_iMfOiCpAiOgHiCkEiCmMiCmFiBeB_xHqqkZx_8_xZkqqHx_iCmMjEhLjAjEiCmFiDeBiDiJiDeDiDjDiDiBiDjDiDgHiCkKjDpMiCoJiBeC_xHqqkZx_
	ASSERT(ALIGNMENT8(sizeof(BASE_CLASS)) == offsetof(MC4ObjTextRect, m_mmrtResize));
	// memcmp_xZkqqHx_iCmFiDeJiDhFiDfHiDeGiDeOiDgHjEoEiKhCiCpAiClHiCoJiClNiCnPiBeBiNfMjBkCjBmMiDeNiDiDiDgCiDhGiCoAjBfDiCmEiCePiCmFjGiEiCnPiCoJiBeC_xHqqkZx_
	memset(&m_mmrtResize, 0, sizeof(MC4ObjTextRect) - offsetof(MC4ObjTextRect, m_mmrtResize));
	// _xZkqqHx_iDiKiDfEiDeDiDfJiDhEiDiMiBfLiDiAiBeC_xHqqkZx_
	m_mmrtResize = mmroundoff(DBLRect(0.0, 0.0, 30.0, 30.0));
	// _xZkqqHx_jFfMjFjEjFgJiCmMiDfKiDiLiCmGiClFiCmEiOgHiCkEiCmMiCmFiBeBiPiJiKpKiJlLiOjOiCmNjHnGiKhDjApMiCpAjGlDiClFiCmJiBeC_xHqqkZx_
	m_pridPenRegister		= FD_PEN_REGISTER_UNUSE;
	m_psidPenStyle			= FD_PEN_STYLE_UNUSE;
	m_mmfPenWeight			= (fmmetol)mmroundoff(0.0);
	m_scidPenBackSColor		= FD_S_COLOR_UNUSE;
	// _xZkqqHx_iDhFiDiJiDfGiCmNjEjCiCmMjDgIiCoIiCmCiCnEiClFiCmJiBeC_xHqqkZx_
	m_bridBrushRegister		= FD_BRUSH_REGISTER_UNUSE;
	m_scidBrushForeSColor	= FD_S_COLOR_UNUSE;
	m_ptidBrushPattern		= FD_PATTERN_UNUSE;
	m_scidBrushBackSColor	= FD_S_COLOR_WHITE;
//----- 05.06.13 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	// _xZkqqHx_iDgFiDeMiDfIiDgHiCpAiNoMjAkMiBeCjFfMjFjEjFgJiCmMiDfKiDiLiCmGiClFiCmEiOgHiCoNiCoKiCoJiClNiCnPiBeB_xHqqkZx_
//	// _xZkqqHx_iNmFiPiJiCkJiCoHiDgFiDeMiDfIiDgHiCkKjFeLjAhLiBeCiBgJiClLiCkEiClFiCmIiCkCiCmGjBkOjAkLiCkKjAnNjCoIiCmFiCkLiCmIiCkCiBgK_xHqqkZx_
//	m_pRichText = CreateRichText();
//----- 05.06.13 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
} // MC4ObjTextRect::MC4ObjTextRect.

//----- 05.06.13 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	MC4ObjTextRect::IsKindOf
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFjEjFgJiCkKiClBiCmMiMfOiBeBiIlNiCkCiCmNiClBiCmMiMfOiCmMiDfEiDhFiDeOiDiJiDfIiCmMiMfOiCkJiCmHiCkEiCkJiCpAjClCiCnHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	nType	: _xZkqqHx_jClCiCnHiCoJiMfOiCpAiOhHjCoIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	TRUE	: nType_xZkqqHx_iMfOiBeBiIlNiCkCiCmNiClLiCmMiDfEiDhFiDeOiDiJiDfIiCmMiPoKiNiH_xHqqkZx_
// *			FALSE	: _xZkqqHx_iClLiCkEiCmFiCmIiCkCiPoKiNiH_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.02.05 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//BOOL MC4ObjTextRect::IsKindOf (FTObjectType nType) const
//{
//	if (nType == FDOJ_TEXT_RECT) return TRUE;
//	return BASE_CLASS::IsKindOf(nType);
//} // MC4ObjTextRect::IsKindOf.
//----- 05.06.13 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	MC4ObjTextRect::Type
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFjEjFgJiCmMiMfOiCpAjFnEiClH_xHqqkZx_.
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_jFjEjFgJiCmMiMfO_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.02.05 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
FTObjectType MC4ObjTextRect::Type () const
{
	// Type_xZkqqHx_iKnGjAjEiCmNiBeB_xHqqkZx_OutStream _xZkqqHx_iCmFiCmMiCnNiOgHiCoNiCoKiCoJiBeC_xHqqkZx_
	// _xZkqqHx_iDgFiDeMiDfIiDgHiLoJiMgAjFjEjFgJiCmN_xHqqkZx_V3_xZkqqHx_iCmJiCmNjBlGiNnNiClFiCmIiCkCiCmMiCmFiBeBiLoJiMgAjFjEjFgJiCmGiClFiCmEiPgPjHmNiBeC_xHqqkZx_

// 05.06.13 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//	return FDOJ_TEXT_RECT;
	return FDOJ_RECT;
} // MC4ObjTextRect::Type.

//----- 05.06.13 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	MC4ObjTextRect::GetResizeFrame
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jAhNiMgAiCmMiDiKiDfEiDeDiDfJiDhEiDiMiBfLiDiAiCpAiLiBiCnPiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jCiNiInD_xHqqkZx_>	_xZkqqHx_jCgMiCmMjAlDiKgNiClDiCmGiOmAiNhDiCmMjBiBiClDiCkKiLiBiCnPiCoHiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDhEiDiMiBfLiDiAiDfEiDeDiDfJ_xHqqkZx_._xZkqqHx_iOmAiNmAjFfH_xHqqkZx_.
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.02.05 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//DBLRect MC4ObjTextRect::GetResizeFrame () const
//{
//	return m_mmrtResize;
//} // MC4ObjTextRect::GetResizeFrame.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	MC4ObjTextRect::IsEqual
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHjDkPiOgNiCkKjDjJiClFiCkCiCkJiCmHiCkEiCkJiCpAjClCiCnHiCoJiBeCiKkOjBfDiCmJjDjJiClFiCkCiCmMiCmFiCmN_xHqqkZx_
// *			_xZkqqHx_iCmIiCkNiBeBiLeAjEfMjDeJiCmJjDjJiClFiCkCiClBiCmGiCpAjClCiCnHiCoJiBeCjHoBiCkGiCmOiBeBjFjEjFgJ_xHqqkZx_ID_xZkqqHx_iCmNjEoEiKhCiClFiCmIiCkCiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	objp	:_xZkqqHx_jEoEiKhCjAoGiDeJiDhFiDfHiDeGiDeOiDgH_xHqqkZx_
// *
// * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	TRUE	:_xZkqqHx_jDjJiClFiCkCiPoKiNiHiBeB_xHqqkZx_ FALSE  :_xZkqqHx_iIoBiCkEiPoKiNiH_xHqqkZx_.
// *
// * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iCnMiClI_xHqqkZx_BASE_CLASS_xZkqqHx_iCmMjEoEiKhCiCpAiClHiCoJiBeCiClLiCmMiOjPiCmJiOkJjFkKiCmMiDeOiDiJiDfIiCmMjBkOjAkLiCpA_xHqqkZx_
// *			_xZkqqHx_jEoEiKhCiClHiCoJiBeC_xHqqkZx_ObjBase::IsEqual_xZkqqHx_iCmFiDeOiDiJiDfIiCmMiMfOiCpAjEoEiKhCiClHiCoJiCmMiCmFiBeB_xHqqkZx_
// *			BASE_CLASS::IsEqual_xZkqqHx_iCkK_xHqqkZx_TRUE_xZkqqHx_iCmMiPoKiNiHiCmNiMfOiCmNjDjJiClFiCkCiCmGiClFiCmEiCoGiCkC_xHqqkZx_.
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.02.05 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//BOOL MC4ObjTextRect::IsEqual (const FCObjBase* objp) const
//{
//	if (!BASE_CLASS::IsEqual(objp)) return FALSE;
//	const MC4ObjTextRect* trgp = static_cast<const MC4ObjTextRect*>(objp);
//	return (memcmp(&m_mmrtResize, &trgp->m_mmrtResize,
//				sizeof(MC4ObjTextRect) - offsetof(MC4ObjTextRect, m_mmrtResize)) == 0);
//} // MC4ObjTextRect::IsEqual.
//----- 05.06.13 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	MC4ObjTextRect::OutStream
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFjEjFgJiCmMiPpDjBnEiCpAiDfIiDgHiDiKiBfLiDiAiCmJiPjBiCkLiPgPiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ar	: _xZkqqHx_iPjBiCkLiPgPiClFjHhAiCmM_xHqqkZx_MCARCHIVE
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.02.05 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void MC4ObjTextRect::OutStream (MCARCHIVE& ar)
{
	ASSERT(g_nVersion == 3);

	BASE_CLASS::OutStream(ar);
	ar << m_mmrtResize;		// _xZkqqHx_iDiKiDfEiDeDiDfJiDhEiDiMiBfLiDiA_xHqqkZx_.

	// _xZkqqHx_iImIiJlKiCmN_xHqqkZx_ObjRect_xZkqqHx_iCmGiClFiCmEiCmMiDiBiDjDiDgPjFmPjAjEiBeC_xHqqkZx_
	mmetol mmHAxisX = m_mmrtResize.Width() / 2.0;		// _xZkqqHx_jAhNiMgAiCmMjAiFjFlNiOlCiCmMjBoFiCkLiClD_xHqqkZx_.
	mmetol mmVAxisX = 0.0;								// _xZkqqHx_jAhNiMgAiCmMjAiCjClMiOlCiCmM_xHqqkZx_X_xZkqqHx_jAkMjFkK_xHqqkZx_.
	mmetol mmVAxisY = m_mmrtResize.Height() / 2.0;		// _xZkqqHx_jAhNiMgAiCmMjAiCjClMiOlCiCmM_xHqqkZx_Y_xZkqqHx_jAkMjFkK_xHqqkZx_.
	DBLPoint mmptCenter = m_mmrtResize.CenterPoint();	// _xZkqqHx_jAhNiMgAiCmMjCiGjAfDjDfPiCmMiNmAjFfH_xHqqkZx_.
	angle dAngle = 0.0;									// _xZkqqHx_jAhNiMgAiCmMiJpBjDfNiKhAjDhI_xHqqkZx_.

	ar << mmHAxisX;		// _xZkqqHx_jAhNiMgAiCmMjAiFjFlNiOlCiCmMjBoFiCkLiClD_xHqqkZx_.
	ar << mmVAxisX;		// _xZkqqHx_jAhNiMgAiCmMjAiCjClMiOlCiCmM_xHqqkZx_X_xZkqqHx_jAkMjFkK_xHqqkZx_.
	ar << mmVAxisY;		// _xZkqqHx_jAhNiMgAiCmMjAiCjClMiOlCiCmM_xHqqkZx_Y_xZkqqHx_jAkMjFkK_xHqqkZx_.
	ar << mmptCenter;	// _xZkqqHx_jAhNiMgAiCmMjCiGjAfDjDfPiCmMiNmAjFfH_xHqqkZx_.
	ar << dAngle;		/* _xZkqqHx_jAhNiMgAiCmMiJpBjDfNiKhAjDhI_xHqqkZx_ */
} // MC4ObjTextRect::OutStream.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	MC4ObjTextRect::InStream
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFjEjFgJiCmMiPpDjBnEiCpAiDfIiDgHiDiKiBfLiDiAiCkJiCoHjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ar	: _xZkqqHx_jDmHiCnNiNjOiCnNjHhAiCmM_xHqqkZx_MCARCHIVE
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.02.05 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void MC4ObjTextRect::InStream (MCARCHIVE& ar)
{
	ASSERT(g_nVersion == 4);

	BASE_CLASS::InStream(ar);
	ar >> m_mmrtResize;		// _xZkqqHx_iDiKiDfEiDeDiDfJiDhEiDiMiBfLiDiA_xHqqkZx_.
} // MC4ObjTextRect::InStream.

//----- 05.06.13 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	MC4ObjTextRect::NewObjPolygonForDraw
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jAhNiMgAiCmMjClIjDfPiNmAjFfHjEhKjHpBiCpAiOmAiNmAjFfHiCmFiNoMjAkMiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	vmmptPoly	: _xZkqqHx_jClIjDfPiNmAjFfHjEhKjHpBiCpAjFnEiClHiBeC_xHqqkZx_
// *			bIsClose	: _xZkqqHx_jAhNiMgAiCkK_xHqqkZx_CLOSE_xZkqqHx_iCmIiCoHiCmO_xHqqkZx_TRUE_xZkqqHx_iBeB_xHqqkZx_OPEN_xZkqqHx_iCmIiCoHiCmO_xHqqkZx_FALSE_xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
// *			mmElemLen	: _xZkqqHx_jClIjDfPiNmAjFfHiCmMjAlIjDhIiCpAiOhHjCoIiBeCjClIjDfPiNmAjFfHiKnEiCmMiLjHjHkDiCmMjGnKiImAiCpAiOkGiClHiBeC_xHqqkZx_
// *			mmrtaClip	: _xZkqqHx_jFgAiJoGiBgJiMhGiOfKiBgKjHmMiIoGiCmMiPfHiNiHiCpAiOhHjCoIiBeC_xHqqkZx_
// *			iClipSize	: mmrtaClip_xZkqqHx_iCmMiDfEiDeDiDfJiCpAiOhHjCoIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	mmElemLen_xZkqqHx_iCmNiBeBjClIjDfPiNmAjFfHiCpAiMhGiOfKiClHiCoJiOjOiCmJiBeBjHnHiCoIiNiHiCkEjClIjDfPiCmGjClIjDfPiCmM_xHqqkZx_
// *			_xZkqqHx_iKnEiCmMiLjHjHkDiCmMjGnKiImAiCpAiOkGiClHiBeC_xHqqkZx_mmElemLen_xZkqqHx_iCmMjCgMiCkKiPkMiClDiCkCiCnJiCmHjClIjDfPiKnEiCmM_xHqqkZx_
// *			_xZkqqHx_iLjHjHkDiCmNiLlHiCnMiCoIjAhNiMgAiCmMjAlIjDhIiCmNiMpMiPoDiClHiCoJiCkKiBeBiCoGiCoIjBlNiCkNiCmMiMhGiOfKiOjOiKnEiCmG_xHqqkZx_
// *			_xZkqqHx_iCoGiCoIjBlNiCkNiCmMiDiBiDiCiDiKiCpAjFeLjHhGiCmGiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jCiNiInD_xHqqkZx_>	mmpPoint_xZkqqHx_iCmN_xHqqkZx_delete[]_xZkqqHx_iCmFiKeKjFpKiClFiCmIiCkPiCoKiCmOiCmIiCoHiCmIiCkC_xHqqkZx_.
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.02.05 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void MC4ObjTextRect::NewObjPolygonForDraw (	DBLPointVector& vmmptPoly,
//									mmetol mmElemLen,
//									const DBLRect mmrtaClip[], int iClipSize) const
//{
//	vmmptPoly.resize(5);
//	GetResizeFrame().Get5Polygon(vmmptPoly.begin());
//} // MC4ObjTextRect::NewObjPolygonForDraw.
//
////----- 05.03.03 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
/////*************************************************************************
//// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	MC4ObjTextRect::CalcResizeFrameSelf
//// *
//// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jAhNiMgAiCmMiDiKiDfEiDeDiDfJiDhEiDiMiBfLiDiAiCpAiMhGiOfKiClHiCoJiBeC_xHqqkZx_
//// *
//// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.02.05 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
//// *************************************************************************/
////void MC4ObjTextRect::CalcResizeFrameSelf ()
////{
////	// _xZkqqHx_iDgFiDeMiDfIiDgHiCmMiNmEjEhKjChFiBeC_xHqqkZx_
////	if (GetRichText() != NULL)
////	{
//////----- 05.03.02 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//////		DBLPointVector vmmptPoly;
//////		// _xZkqqHx_iDhMiDiKiDfDiDjDiCmMjClIjDfPiNmAjFfHjEhKjHpBiCpAiMhGiOfKiClHiCoJiBeC_xHqqkZx_
//////		NewObjPolygonForText(vmmptPoly, 0.25 * g_->dDisplayPPM, NULL, 0);
//////		m_pRichText->CalcTextLayout(NULL, vmmptPoly.begin(), vmmptPoly.size());
//////----- 05.03.02 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
////		// _xZkqqHx_iDgFiDeMiDfIiDgHiCmMiNmEjEhKjChFiBeC_xHqqkZx_
////		GetRichText()->CalcTextLayout(NULL, this);
//////----- 05.03.02 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
////	}
////} // MC4ObjTextRect::CalcResizeFrameSelf.
////----- 05.03.03 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	MC4ObjTextRect::Copy
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iIpIjAjEiCmMjFjEjFgJiCmJjBkOjAkLiCpAiDfCiDhDiBfLiClHiCoJ_xHqqkZx_.
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pObj	: _xZkqqHx_jBkOjAkLiCpAiDfCiDhDiBfLiClDiCoKiCoJjFjEjFgJ_xHqqkZx_.
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.02.05 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void MC4ObjTextRect::Copy (FCObjBase* pObj) const
//{
//	BASE_CLASS::Copy(pObj);
//	// m_mmrtResize_xZkqqHx_iCmN_xHqqkZx_mmetol_xZkqqHx_iMfOiCpAiOgHiCkEiCmMiCmFiBeB_xHqqkZx_8_xZkqqHx_iCmMjEhLjAjEiCmFiDeBiDiJiDeDiDjDiDiBiDjDiDgHiCkKjDpMiCoJiBeC_xHqqkZx_
//	ASSERT(ALIGNMENT8(sizeof(BASE_CLASS)) == offsetof(MC4ObjTextRect, m_mmrtResize));
//	MC4ObjTextRect* pRect = reinterpret_cast<MC4ObjTextRect*>(pObj);
//	memcpy(&pRect->m_mmrtResize, &m_mmrtResize,
//			sizeof(MC4ObjTextRect) - offsetof(MC4ObjTextRect, m_mmrtResize));
//} // MC4ObjTextRect::Copy.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	MC4ObjTextRect::Move
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	SelectTool_xZkqqHx_iCmJiCoGiCmBiCmEiInKjDkOiClDiCoKiCoJiOjOiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	mmDX	: _xZkqqHx_iInKjDkOjHmKiBgJ_xHqqkZx_X_xZkqqHx_jFpLiMpMiBgK_xHqqkZx_
// *			mmDY	: _xZkqqHx_iInKjDkOjHmKiBgJ_xHqqkZx_Y_xZkqqHx_jFpLiMpMiBgK_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.02.05 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void MC4ObjTextRect::Move (mmetol mmDX, mmetol mmDY)
//{
//	m_mmrtResize += DBLPoint(mmDX, mmDY);
//	// Superclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
//	BASE_CLASS::Move(mmDX, mmDY);
//} // MC4ObjTextRect::Move.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	MC4ObjTextRect::Resize
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	SelectTool_xZkqqHx_iCmJiCoGiCmBiCmEiDiKiDfEiDeDiDfJiClDiCoKiCoJiOjOiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *			_xZkqqHx_iDiKiDfEiDeDiDfJiMoDiCmNiBeBiDfEiDeDiDfJiCkKiCmIiCoJiCnHiCkNjAlDiKgNiCmJ_xHqqkZx_mmrtNew_xZkqqHx_iCmJiCmIiCoJjFeLjHhGiCkKiCkAiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	bXPosi	: X_xZkqqHx_jFpLiMpMiCmMjElNjDfN_xHqqkZx_
// *			bYPosi	: Y_xZkqqHx_jFpLiMpMiCmMjElNjDfN_xHqqkZx_
// *			mmrtNew	: _xZkqqHx_iDiKiDfEiDeDiDfJiMoDiCmMiNmAjFfH_xHqqkZx_._xZkqqHx_iOmAiNmAjFfH_xHqqkZx_.
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.02.05 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void MC4ObjTextRect::Resize (BOOL bXPosi, BOOL bYPosi, const DBLRect& mmrtNew, const DBLRect& mmrtOld)
//{
//	// _xZkqqHx_iDiKiDfEiDeDiDfJiDhEiDiMiBfLiDiAiCpAjAnNjCoIiBeC_xHqqkZx_
//	m_mmrtResize = mmrtNew;
//	// Superclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
//	BASE_CLASS::Resize(bXPosi, bYPosi, mmrtNew, mmrtOld);
//}	// MC4ObjTextRect::Resize.
//
////----- 05.02.28 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
/////*************************************************************************
//// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	MC4ObjTextRect::Rotate
//// *
//// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFjEjFgJiCpAiJpBjDfNiClDiClJiCoJiBeC_xHqqkZx_
//// *
//// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	dR		: _xZkqqHx_iJpBjDfNiClDiClJiCoJiKhAjDhIiBeC_xHqqkZx_-2.0 < dR < 2.0.
//// *			mmCX	: _xZkqqHx_iJpBjDfNiCmMjCiGjAfDjDfPiCmM_xHqqkZx_X_xZkqqHx_iNmAjFfH_xHqqkZx_
//// *			mmCX	: _xZkqqHx_iJpBjDfNiCmMjCiGjAfDjDfPiCmM_xHqqkZx_Y_xZkqqHx_iNmAjFfH_xHqqkZx_
//// *
//// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.02.05 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
//// *************************************************************************/
////void MC4ObjTextRect::Rotate (double dR, mmetol mmCX, mmetol mmCY)
////{
////	//----- m_mmrtResize_xZkqqHx_iCmNiBeBiJpBjDfNiCmJiCkAiCoNiClJiCmEiImKjChFiCpAiInKjDkOiClHiCoJiClOiCkP_xHqqkZx_ -----
////	DBLPoint mmptNew = m_mmrtResize.CenterPoint();
////	RotateConv(mmptNew, sin(dR * M_PI), cos(dR * M_PI), mmCX, mmCY);
////	// _xZkqqHx_iInKjDkOiLjHjHkDiBeC_xHqqkZx_
////	const DBLPoint mmptMove = mmptNew - m_mmrtResize.CenterPoint();
//////----- 05.02.08 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//////	// _xZkqqHx_iDhEiDiMiBfLiDiAiCpAiInKjDkOiBeC_xHqqkZx_
//////	m_mmrtResize += mmptMove;
//////	//----- _xZkqqHx_iDgFiDeMiDfIiDgHiCpAiJpBjDfNiCmJiCkAiCoNiClJiCmEiNmEjEhKjChF_xHqqkZx_ -----
//////	if (m_pRichText != NULL)
//////	{
//////		m_pRichText->SetTextRect(m_pRichText->GetTextRect() + mmptMove);
//////	}
//////----- 05.02.08 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
////	// _xZkqqHx_iDhEiDiMiBfLiDiAiCpAiInKjDkOiBeC_xHqqkZx_
////	Move(mmptMove.x, mmptMove.y);
//////----- 05.02.08 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
////	// _xZkqqHx_iDgFiDeMiDfIiDgHiCmMiJpBjDfNiCpAjGgIiCkOiClNiCnPiCmJiBeB_xHqqkZx_Superclass::Rotate_xZkqqHx_iCpAiOmAiNhDiClFiCmIiCkCiBeC_xHqqkZx_
////} // MC4ObjTextRect::Rotate.
////----- 05.02.28 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	MC4ObjTextRect::GetStdPenStyle
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iBhFiDhJiDjDiCmMiDfIiDfOiDeDiDiL_xHqqkZx_(_xZkqqHx_jClMjApM_xHqqkZx_,_xZkqqHx_jDfPjApM_xHqqkZx_,etc)_xZkqqHx_iBhGiCpAjFnEiClHiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDhJiDjDiCmMiDfIiDfOiDeDiDiL_xHqqkZx_(_xZkqqHx_jClMjApM_xHqqkZx_,_xZkqqHx_jDfPjApM_xHqqkZx_,etc)
// *
// * <_xZkqqHx_iPnKiNnH_xHqqkZx_>	_xZkqqHx_jFfMiOkGiCmJiOgHiCoNiCoKiCoJiDhJiDjDiCmMjBkOjAkLiCpAjFnEiClHiBeCjDgPjIfOiDhJiDjDiCmMiPoKiNiHiCmNiBeBjDgPjIfOiDhJiDjDiCmM_xHqqkZx_
// *			_xZkqqHx_jDgPjIfOiPoOjFpBiCpAjClCiCnHiCmEjFfMiOkGiCmJiOgHiCoNiCoKiCoJjBkOjAkLiCpAjFnEiClHiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.02.07 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//PenStyleID MC4ObjTextRect::GetStdPenStyle () const
//{
//	// _xZkqqHx_iDhJiDjDiCmNiPoNiCmJjDkHjGlOiBeC_xHqqkZx_
//	return FD_PEN_STYLE_UNUSE;
//} // MC4ObjTextRect::GetStdPenStyle.
//----- 05.06.13 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
