// FoundDoc.cpp : CFCFoundDoc _xZkqqHx_iDeOiDiJiDfIiCmMjDkOiNoMiCmMjCoIiLgAiCpAiNhDiCkCiCnMiClHiBeC_xHqqkZx_
//

#include "stdafx.h"

//----- 05.11.15 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//#include <sys/types.h>			// For _S_IWRITE.
//#include <sys/stat.h>			// For _tstat.
//----- 05.11.15 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
#include <float.h>				// For DBL_MAX.
#include "DynamicDraw.h"
#include "CntrItem.h"			// For CMolipDrawCntrItem4_0.
#include "SrvrItem.h"			// For CFCMolipDrawSrvrItem.
#include <algorithm>			// For find template.
#include "ToolManager.h"		// For FCToolManager.
// 03.07.18 Fukushiro M. 1_xZkqqHx_iNhDiNoNiPjM_xHqqkZx_ ()
//#include "MainFrame.h"			// For g_pFrame.
#include "NewFDObjAny.h"		// For NewFDObjAny.
#include "UtilMisc.h"				// For FFGetCurrentTime.
#include "UtilStr.h"			// For GetResString.
#include "UtilWin.h"			// For ExecMolipDraw.
#include "UtilObj.h"			// For GetResizeFrame.
#include "UtilSort.h"			// For FCLess.
#include "UtilDlg.h"			// For FFShowMsgPanel.
#include "UtilZlibPng.h"		// For FFPngXX.
#include "UtilGraph.h"			// For AutoDC.
#include "UtilMath.h"			// For _wcstoi64.
// 06.10.04 Fukushiro M. 1_xZkqqHx_iNhDjCmHiJmB_xHqqkZx_ ()
#include "UtilStdLib.h"			// For m1_for.
// 06.01.06 Fukushiro M. 1_xZkqqHx_iNhDiNoNiPjM_xHqqkZx_ ()
//#include "HIFSFile.h"			// For CFCHIFSFile.
#include "DynamicDb.h"		// For g_pFileServer.
#include "ObjOle.h"				// For FCObjOle.
#include "ObjLabel.h"			// For FCObjLabel.
#include "ObjIDTbl.h"			// For FCObjIDTbl.
#include "ToolBase.h"			// For GetCurrentTool().
#include "ObjDynabase.h"			// For FCObjDynabase.
#include "ObjChipMaster.h"		// For FCObjChipMaster.
#include "PropertySheet.h"		// For CFCPropertySheet.
#include "PrpPageSize.h"		// For CFCPrpPageSize.
#include "PrpPaperSize.h"		// For CFCPrpPaperSize.
// 05.05.16 Fukushiro M. 1_xZkqqHx_iNhDiNoNiPjM_xHqqkZx_ ()
//#include "PrpPagePlace.h"		// For CFCPrpPagePlace.
#include "DlgSheetSize.h"		// For CFCDlgSheetSize.
#include "PrnPrintSetup.h"		// For CFCPrnPrintSetup.
#include "PrnPageSetup.h"		// For CFCPrnPageSetup.
// 05.07.29 Fukushiro M. 1_xZkqqHx_iNhDiNoNiPjM_xHqqkZx_ ()
//#include "DlgPreFileImport.h"	// For CFCDlgPreFileImport.
#include "DlgIsSaveAsVersion.h"	// For CFCDlgIsSaveAsVersion.
#include "DlgDocumentProperty.h"// For CFCDlgDocumentProperty.
// 05.10.12 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//#include "FldgOpenDdfile.h"		// For CFCFldgOpenDdfile.
#include "FdbOpenDdFile.h"		// For FCFdbOpenDdFile.
//#include "FldgTemplateSave.h"	// For CFCFldgTemplateSave.
#include "FdbSaveTemplate.h"	// For FCFdbSaveTemplate.
#include "RegData.h"			// For g_pReg.
#include "RecentList.h"			// For FCRecentList.
#include "DynamicDrawView.h"	// For g_pView.
#include "UtilCoord.h"			// For mm2lg.etc.
#include "UtilFile.h"			// For FFMakeUniqTmpFileName.etc.
#include "UtilErr.h"			// For FFMessageBox.
#include "UndoArchive.h"		// For FCUndoArchive.
#include "SheetManager.h"		// For FCSheetManager.
#include "Env.h"				// For g_pEnv.
#include "HiCommandTable.h"		// For m_pGate->XXX.
#include "LayerManager.h"		// For FCLayerManager.
#include "ZOrder.h"				// For FCZOrder.
#include "LinkManager.h"		// For m_pLinkManager;
#include "RichText.h"			// For FCRichText.
#include "WndRichEdit.h"		// For CFCWndRichEdit.
#include "MolipExport.h"		// For SaveSelectedObjectImage.
#include "FileDialogBase.h"		// For FCFileDialogBase.
#include "FdbSaveImageAs.h"		// For FCFdbSaveImageAs.
#include "FileConv.h"			// For FCFileConvManager.
#include "FrameWnd.h"			// For FFGetMainWnd().
#include "PursuerText.h"		// For CFCPursuerText.
#include "FoundDoc.h"			// This header.

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

// 03.07.08 Fukushiro M. 1_xZkqqHx_iNhDiNoNiPjM_xHqqkZx_ ()
//// Superclass = FCDocumentExp _xZkqqHx_iClOiCkKiBeB_xHqqkZx_FCDocumentExp _xZkqqHx_iCmNiLpDiCmIiCmMiCmFiBeB_xHqqkZx_
// BASE_CLASS = CFCFoundDocBase _xZkqqHx_iCmJjAnNjCoIiBeC_xHqqkZx_


//#define _LOCAL_CONV	// _xZkqqHx_iDfCiDjDiDgPiBfLiDfOiBeC_xHqqkZx_

// CFCFoundDoc_xZkqqHx_jFmPjAjEiBeC_xHqqkZx_
CFCFoundDoc* g_pDoc = NULL;

// _xZkqqHx_iDePiDiNiBfLiDgPiDiLjFmPjAjEiPiJiKpKiJlLjHhAiDeKiDeFiDjDiDfOiBeC_xHqqkZx_
long CFCFoundDoc::s_lGlobalCounter = 0;

// MDRW_xZkqqHx_iDgAiDiDiDjDiDeOiCmM_xHqqkZx_LZ77_xZkqqHx_iDgGiBfLiDfOiDhFiDiNiDgCiDeOiCmMiIlDiPgLjBePiDfEiDeDiDfJiBeC_xHqqkZx_
static const long FD_MDRW_CHUNK_RAW_SIZE = 0x100000;

//----------<NOT EXPORT TO VIEWER>-----------

//----- 04.07.30 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//// _xZkqqHx_iDhEiDiJiDgCiDfGiDiFiCpAiClHiCoJiOjOiKnEiCmMiNmFiPkMjCgMiBeCjFgCjAjEiBeC_xHqqkZx_
//#define FD_THRESHOLD_FLUSH_TIME		1
//----- 04.07.30 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

//----- 05.06.20 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//static const COLORREF FD_COLREF_WHITE = RGB(255, 255, 255);
//static const COLORREF FD_COLREF_LGRAY = RGB(204, 204, 204);
//static const COLORREF FD_COLREF_BLACK = RGB(  0,   0,   0);
//----- 05.06.20 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

//----------</NOT EXPORT TO VIEWER>-----------

//////////////////////////////////////////////////////////////////////
// FCCanvasStat_xZkqqHx_iDiBiDjDiDgPiKnGjAjEiBeC_xHqqkZx_

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	FCCanvasStat::FCCanvasStat
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDjDiDfIiDgHiDiJiDeOiDfOiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	02.12.12 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
FCCanvasStat::FCCanvasStat ()
{
	//----- _xZkqqHx_jCgMiCmMiPiJiKpKiJlL_xHqqkZx_ -----
	Init();
} // FCCanvasStat::FCCanvasStat.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	FCCanvasStat::Init
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iPiJiKpKiJlLiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.03.31 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void FCCanvasStat::Init ()
{
	//----- _xZkqqHx_jCgMiCmMiPiJiKpKiJlL_xHqqkZx_ -----
	m_lZoom256	= 256;			// _xZkqqHx_iDfJiBfLiDiAjCgMiBeC_xHqqkZx_
	m_stid		= 0;			// _xZkqqHx_iDfGiBfLiDgH_xHqqkZx_ID_xZkqqHx_iBeC_xHqqkZx_
//----- 03.08.03 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	m_mmCenterX	= lg2mm(320, g_->dDisplayPPM);	// _xZkqqHx_iDeMiDiDiDjDiDgPiDfIjCiGjAfDiNmAjFfHiBeC_xHqqkZx_
//	m_mmCenterY	= lg2mm(240, g_->dDisplayPPM);	// _xZkqqHx_iDeMiDiDiDjDiDgPiDfIjCiGjAfDiNmAjFfHiBeC_xHqqkZx_
//----- 03.08.03 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	m_mmCenterX	= DBL_MAX;	// _xZkqqHx_iDeMiDiDiDjDiDgPiDfIjCiGjAfDiNmAjFfHiBeC_xHqqkZx_
	m_mmCenterY	= DBL_MAX;	// _xZkqqHx_iDeMiDiDiDjDiDgPiDfIjCiGjAfDiNmAjFfHiBeC_xHqqkZx_
//----- 03.08.03 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
} // FCCanvasStat::Init.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	FCCanvasStat::InStream
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDeMiDiDiDjDiDgPiDfIiPoOjFpBiCmMiDfIiDgHiDiKiBfLiDiAjDpMjHmNiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	02.12.11 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void FCCanvasStat::InStream (FCUndoArchive& ar)
{
	// _xZkqqHx_iDgGiBfLiDfOiDfEiDeDiDfJiCpAjDpMjHmNiClHiCoJiBeC_xHqqkZx_
	DWORD dwSize;
	ar >> dwSize;
	BYTEVector vStream(dwSize);
	ar.Read(vStream.begin(), dwSize);
	const BYTE* pStreamHead = vStream.begin();
	while (pStreamHead != vStream.end())
	{
		BYTE byType;
		FFReadData(byType, pStreamHead);
		switch (byType)
		{
		case FDGLST_ZOOM:		// _xZkqqHx_jEhLjHkGiBeC_xHqqkZx_
			FFReadData(m_lZoom256, pStreamHead);
			break;
		case FDGLST_VIEW_POSITION:		// _xZkqqHx_iDfIiDeOiDiNiBfLiDiLiDeJiDhEiDfKiDgCiDgHiBeC_xHqqkZx_
		  {
			FFReadData(m_stid, pStreamHead);
//----- 03.08.03 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//			short nMMX, nMMY;
//			FFReadData(nMMX, pStreamHead);
//			FFReadData(nMMY, pStreamHead);
//			m_mmCenterX = nMMX;		// _xZkqqHx_iDeMiDiDiDjDiDgPiDfIjCiGjAfDiNmAjFfHiBeC_xHqqkZx_
//			m_mmCenterY = nMMY;		// _xZkqqHx_iDeMiDiDiDjDiDgPiDfIjCiGjAfDiNmAjFfHiBeC_xHqqkZx_
//----- 03.08.03 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
			FFReadData(m_mmCenterX, pStreamHead);	// _xZkqqHx_iDeMiDiDiDjDiDgPiDfIjCiGjAfDiNmAjFfHiBeC_xHqqkZx_
			FFReadData(m_mmCenterY, pStreamHead);	// _xZkqqHx_iDeMiDiDiDjDiDgPiDfIjCiGjAfDiNmAjFfHiBeC_xHqqkZx_
//----- 03.08.03 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
			break;
		  }
		default:
			// _xZkqqHx_iDhEiDeAiDeDiDiLiCkKjEgKjBlJiClFiCmEiCkCiCnMiClHiBeC_xHqqkZx_
			FFThrowDDFileException(IDS_ERR_FILE_DESTROIED, TStrToWStr(ar.GetArchive()->GetFile()->GetFileName()));
		}
	}
} // FCCanvasStat::InStream.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	FCCanvasStat::OutStream
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDeMiDiDiDjDiDgPiDfIiPoOjFpBiCmMiDfIiDgHiDiKiBfLiDiAiPgPjHmNiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	02.12.11 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void FCCanvasStat::OutStream (FCUndoArchive& ar) const
{
	//----- _xZkqqHx_iDhCiDiFiBfLiCmMjFnCiPfHiPpDjBnEiCpAiDfIiDgHiDiKiBfLiDiAiCmJiPgPjHmNiClHiCoJ_xHqqkZx_ -----
	BYTEVector vStream;
	//----- _xZkqqHx_jEhLjHkG_xHqqkZx_  ------
	vStream << BYTE(FDGLST_ZOOM);
	vStream << m_lZoom256;
	//----- _xZkqqHx_iDhCiDiFiBfLiImKjChF_xHqqkZx_ -----
	vStream << BYTE(FDGLST_VIEW_POSITION);
	vStream << m_stid;
//----- 03.08.03 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	vStream << short(m_mmCenterX);
//	vStream << short(m_mmCenterY);
//----- 03.08.03 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	vStream << m_mmCenterX;
	vStream << m_mmCenterY;
//----- 03.08.03 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
	// _xZkqqHx_iDgGiBfLiDfOiDfEiDeDiDfJiCpAiPgPjHmNiClHiCoJiBeC_xHqqkZx_
	ar << DWORD(vStream.size());
	// _xZkqqHx_iDgGiBfLiDfOiCpAiPgPjHmNiBeC_xHqqkZx_
	ar.Write(vStream.begin(), vStream.size());
} // FCCanvasStat::OutStream.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	FCCanvasStat::UpdateCanvas
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDePiDiNiBfLiDgPiDiLjFmPjAjEjDjJiBeBiDeMiDiDiDjDiDgPiDfIjBkEiCmMiPoOjFpBiCpAiBeBiDiBiDjDiDgPjFmPjAjEiCmFiPiJiKpKiJlLiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	02.12.11 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void FCCanvasStat::UpdateCanvas ()
{
	//----------------------------------------------------------
	//		_xZkqqHx_jCgMiCmMjFoCjAlDiCpAiNhDiCkEiBeC_xHqqkZx_HistViewDoc_xZkqqHx_iCmFiBeB_xHqqkZx_DeleteContents_xZkqqHx_iOjOiCmJ_xHqqkZx_
	//		_xZkqqHx_iImIjBePiCmMjCgMiCpAiLeMjIfOiClFiCmEiBeBiOjPiCmM_xHqqkZx_OpenHidocument_xZkqqHx_iOjOiCmJjAnNjCoIiClHiCoJ_xHqqkZx_
	//		_xZkqqHx_iPiIjHjNiCkKiCkAiCoJiClNiCnPiBeBjCgMiCmJjFlGiPjBiCmGiCmMjAeIiCkCiIoBiCkCiCkKiPgPiCoJiClNiCnPiBeC_xHqqkZx_
	//----------------------------------------------------------
	if (g_pDoc != NULL)
	{
		if (g_pDoc->GetSheetManager()->GetSheetIDSize() <= m_stid ||
			g_pDoc->GetSheetManager()->GetSheet(m_stid) == NULL)
		//----- _xZkqqHx_iDfGiBfLiDgH_xHqqkZx_ID_xZkqqHx_iCkKiDfGiBfLiDgH_xHqqkZx_ID_xZkqqHx_iDgFiBfLiDhFiDiLiDfEiDeDiDfJiCpAiJhKiCkGiCmEiCkCiCoJiPoKiNiHiBeB_xHqqkZx_
		//		_xZkqqHx_iIlNiCkCiCmNiBeBiDfGiBfLiDgH_xHqqkZx_ID_xZkqqHx_iCmMiDfGiBfLiDgHiCkKjBlGiNnNiClFiCmIiCkCiPoKiNiH_xHqqkZx_ -----
		{
			// _xZkqqHx_iNmFiPiJiCmMiDfGiBfLiDgHiBgJiDeDiDjDiDgGiDgCiDeOiDfI_xHqqkZx_ = 0_xZkqqHx_iBgKiCmMiDfGiBfLiDgHiCpAjAnNjCoIiBeC_xHqqkZx_
			m_stid = g_pDoc->GetSheetManager()->SheetIndexToID(0);
		}
	}
	if (g_pEnv != NULL && m_mmCenterX != DBL_MAX)
	{
		if (!g_pEnv->GetSheetRect().PtInRect(DBLPoint(m_mmCenterX, m_mmCenterY)))
		//----- _xZkqqHx_jCiGjAfDiNmAjFfHiCkKiDfGiBfLiDgHiCmMiKePiCmJiCkAiCoJiPoKiNiH_xHqqkZx_ -----
		{
			// _xZkqqHx_jCiGjAfDiNmAjFfHiCkKiDfGiBfLiDgHiCmMiKePiCmJiCkAiCoJiPoKiNiHiCmNiBeBiDfGiBfLiDgHjCiGjAfDiCpAjAnNjCoIiBeC_xHqqkZx_
			m_mmCenterX = g_pEnv->GetSheetRect().CenterPoint().x;
			m_mmCenterY = g_pEnv->GetSheetRect().CenterPoint().y;
		}
	}

	//----- _xZkqqHx_iDePiDiNiBfLiDgPiDiLjFmPjAjEiCmMjAnNjCoI_xHqqkZx_ -----

	if (g_ != NULL)
	{
		// _xZkqqHx_iDfJiBfLiDiAjCgMiCmMjAnNjCoIiBeC_xHqqkZx_
		g_->lZoom256 = m_lZoom256;
		g_->dZoom = ((double)g_->lZoom256 * g_->dDisplayPPM) / 256.0;
	}
	if (g_pDoc != NULL)
	{
		// _xZkqqHx_iDfGiBfLiDgH_xHqqkZx_ID_xZkqqHx_iCpAjAnNjCoIiBeC_xHqqkZx_
		g_pDoc->SetCurrentSheetId(m_stid);
	}
//----- 06.04.17 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	if (g_ != NULL && g_pView != NULL && m_mmCenterX != DBL_MAX)
//	{
//		// _xZkqqHx_iDeOiDiJiDeDiDeBiDjDiDgHjHmMiIoGiCpAiDgGiDgPiDeDiDfIiNmAjFfHiCmFjDlOiCoJiBeC_xHqqkZx_
//		CRect dvrctClient;
//		g_pView->GetClientRect(&dvrctClient);
//		// _xZkqqHx_iDfIiDeOiDiNiBfLiDiLiCmMiDeJiDhEiDfKiDgCiDgHiCpAiMhGiOfKiBjFjAnNjCoIiBeC_xHqqkZx_
//		g_->lgOffsetX = mm2lg(m_mmCenterX) - dvrctClient.right / 2;
//		g_->lgOffsetY = mm2lg(m_mmCenterY) - dvrctClient.bottom / 2;
//		// _xZkqqHx_jCiGjAfDiNmAjFfHiCpAiBeBjAnNjCoIiBeC_xHqqkZx_
//		g_pView->SetLastPoint(DBLPoint(m_mmCenterX, m_mmCenterY));
//	}
//----- 06.04.17 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	if (g_ != NULL && g_pView != NULL)
	{
		if (m_mmCenterX != DBL_MAX)
		//----- _xZkqqHx_jCiGjAfDiNmAjFfHiCkKjAnNjCoIiClDiCoKiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
		{
			// _xZkqqHx_iDeOiDiJiDeDiDeBiDjDiDgHjHmMiIoGiCpAiDgGiDgPiDeDiDfIiNmAjFfHiCmFjDlOiCoJiBeC_xHqqkZx_
			CRect dvrctClient;
			g_pView->GetClientRect(&dvrctClient);
			// _xZkqqHx_iDfIiDeOiDiNiBfLiDiLiCmMiDeJiDhEiDfKiDgCiDgHiCpAiMhGiOfKiBjFjAnNjCoIiBeC_xHqqkZx_
			g_->lgOffsetX = mm2lg(m_mmCenterX) - dvrctClient.right / 2;
			g_->lgOffsetY = mm2lg(m_mmCenterY) - dvrctClient.bottom / 2;
			// _xZkqqHx_jCiGjAfDiNmAjFfHiCpAiBeBjAnNjCoIiBeC_xHqqkZx_
			g_pView->SetLastPoint(DBLPoint(m_mmCenterX, m_mmCenterY));
		} else
		//----- _xZkqqHx_jCiGjAfDiNmAjFfHiCkKjAnNjCoIiClDiCoKiCmEiCkCiCmIiCkCiPoKiNiH_xHqqkZx_ -----
		{
			// OnNewDocument_xZkqqHx_jClMiMoDiCmMiDhEiDeAiDeDiDiLiCpA_xHqqkZx_Export_xZkqqHx_iClFiClNiCoAiCmMiBgJiPiJiKpKiDfIiDhMiDgCiDgHiDgGiBfLiDfOiCmIiCmHiBgKiCmNiBeB_xHqqkZx_
			// _xZkqqHx_jCiGjAfDiNmAjFfHiCkKjAnNjCoIiClDiCoKiCmEiCkCiCmIiCkCiBeC_xHqqkZx_
			// _xZkqqHx_iClBiCoKiCpAjDmHiCnNiPgPiClFiClNiPoKiNiHiCmJiBeBiDfIiDeOiDiNiBfLiDiLiDeJiDhEiDfKiDgCiDgHiCkKiCePiCmJiCmIiCmBiClNiCnJiCkEiCkKjHmHiCkCiBeC_xHqqkZx_

			// _xZkqqHx_iDfIiDeOiDiNiBfLiDiLiCmMiDeJiDhEiDfKiDgCiDgHjAnNjCoIiBeC_xHqqkZx_
			g_->lgOffsetX = 0;
			g_->lgOffsetY = 0;
		}
	}
//----- 06.04.17 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
} // FCCanvasStat::UpdateCanvas.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	FCCanvasStat::UpdateData
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDjDiDgPjFmPjAjEiCpAiDeMiDiDiDjDiDgPiDfIjBkEiCmMiPoOjFpBiCmFiPiJiKpKiJlLiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	02.12.11 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void FCCanvasStat::UpdateData ()
{
	if (g_ != NULL)
	{
		// _xZkqqHx_iDfJiBfLiDiAjCgMiCmMjAnNjCoIiBeC_xHqqkZx_
		m_lZoom256 = g_->lZoom256;
	}
	if (g_pDoc != NULL)
	{
		// _xZkqqHx_iDfGiBfLiDgH_xHqqkZx_ID_xZkqqHx_iCmMjAnNjCoIiBeC_xHqqkZx_
		m_stid = g_pDoc->GetCurrentSheetId();
	}
	if (g_ != NULL && g_pView != NULL)
	{
		// _xZkqqHx_iDeMiDiDiDjDiDgPiDfIjCiGjAfDiNmAjFfHiCmMjAnNjCoIiBeC_xHqqkZx_
		DBLRect mmrtClient;
		// GetClientRectMM _xZkqqHx_jCiGiCmFiCmNiBeB_xHqqkZx_g__xZkqqHx_iCkKiOgHjHhAiClDiCoKiCoJiBeC_xHqqkZx_
		g_pView->GetClientRectMM(mmrtClient);
		const DBLPoint mmptCenter = mmrtClient.CenterPoint();
		m_mmCenterX = mmptCenter.x;
		m_mmCenterY = mmptCenter.y;
	}
} // FCCanvasStat::UpdateData.

/////////////////////////////////////////////////////////////////////////////
// FCLabelStidRec

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	FCLabelStidRec::FCLabelStidRec
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDjDiDfIiDgHiDiJiDeOiDfOiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pObj	:_xZkqqHx_iDiJiDhIiDiLjFjEjFgJiCpAiOhHjCoIiBeC_xHqqkZx_
 *			stid	:pObj_xZkqqHx_iCkKjBkOiClHiCoJiDfGiBfLiDgHiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	pObj_xZkqqHx_iCkJiCoHiBeBiDgFiDeMiDfIiDgHiCmGiNoMjAkMiOjOiKnEiCpAiOoGiCoIiPgPiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.04.21 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
FCLabelStidRec::FCLabelStidRec (FCObjDynabase* pObj, SheetID stid)
{
	pObjLabel = (FCObjLabel*)pObj;
	if (pObjLabel->GetRichText() != NULL)
		pObjLabel->GetRichText()->GetText(wstrLabel, TRUE);
	stidObjLabel = stid;
} // FCLabelStidRec::FCLabelStidRec.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	FCLabelStidRec::Compare
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiMiDfCiBfLiDgIiCmMjEoEiKhCiKnGjAjEiBeCiDfMiBfLiDgHjHhAiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	-1:rec0 < rec1_xZkqqHx_iBeB_xHqqkZx_1:rec0 > rec1_xZkqqHx_iBeB_xHqqkZx_0:rec0 == rec1_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_jCiNiInD_xHqqkZx_>	UtilSort_xZkqqHx_iCpAiOfBiPmGiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.04.21 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
int FCLabelStidRec::Compare (const FCLabelStidRec* rec0, const FCLabelStidRec* rec1, WORD wItemIndex)
{
	switch (wItemIndex)
	{
	case 0:	// _xZkqqHx_iDiJiDhIiDiLjGlMiCmFjEoEiKhCiBeC_xHqqkZx_
		return rec0->wstrLabel.compare(rec1->wstrLabel);
	case 1:	// _xZkqqHx_iDfGiBfLiDgH_xHqqkZx_ID_xZkqqHx_iCmFjEoEiKhCiBeC_xHqqkZx_
	  {
		DWORD dw0 = g_pDoc->GetSheetManager()->SheetIDToIndex(rec0->stidObjLabel);
		DWORD dw1 = g_pDoc->GetSheetManager()->SheetIDToIndex(rec1->stidObjLabel);
		if (dw0 < dw1) return -1;
		if (dw1 < dw0) return  1;
		break;
	  }
	case 2:	// _xZkqqHx_iNoMjAkMiOjOiKnEiCmFjEoEiKhCiBeC_xHqqkZx_
		if (rec0->pObjLabel->GetLabelCtime() < rec1->pObjLabel->GetLabelCtime()) return -1;
		if (rec1->pObjLabel->GetLabelCtime() < rec0->pObjLabel->GetLabelCtime()) return  1;
		break;
	case 3:	// _xZkqqHx_iNfIjAfGiOjOiKnEiCmFjEoEiKhCiBeC_xHqqkZx_
		if (rec0->pObjLabel->GetLabelMtime() < rec1->pObjLabel->GetLabelMtime()) return -1;
		if (rec1->pObjLabel->GetLabelMtime() < rec0->pObjLabel->GetLabelMtime()) return  1;
		break;
	}
	return 0;
} // FCLabelStidRec::Compare.

/////////////////////////////////////////////////////////////////////////////
// CFCFoundDoc

IMPLEMENT_DYNCREATE(CFCFoundDoc, CFCFoundDocBase)

BEGIN_MESSAGE_MAP(CFCFoundDoc, BASE_CLASS)
	//{{AFX_MSG_MAP(CFCFoundDoc)
	ON_COMMAND(ID_FILE_PRINT_SETUP, OnFilePrintSetup)
	ON_COMMAND(ID_FILE_PAGE_SETUP, OnFilePageSetup)
	ON_UPDATE_COMMAND_UI(ID_FILE_SAVE, OnUpdateFileSave)
	ON_UPDATE_COMMAND_UI(ID_FILE_PAGE_SETUP, OnUpdateFilePageSetup)
	ON_UPDATE_COMMAND_UI(ID_FILE_PRINT_SETUP, OnUpdateFilePrintSetup)
	ON_COMMAND(ID_FILE_SHEET_SETUP, OnFileSheetSetup)
	ON_UPDATE_COMMAND_UI(ID_FILE_SHEET_SETUP, OnUpdateFileSheetSetup)
	ON_COMMAND(ID_FILE_EXEC_MOLIPDRAW, OnFileExecMolipdraw)
	ON_COMMAND(ID_FILE_EXEC_HISTDRAW, OnFileExecHistdraw)
	ON_COMMAND(ID_FILE_EXEC_HISTVIEWER, OnFileExecHistviewer)
	ON_COMMAND(ID_VIEW_OBJ_LABEL_SHOW_MODE, OnViewObjLabelShowMode)
	ON_UPDATE_COMMAND_UI(ID_VIEW_OBJ_LABEL_SHOW_MODE, OnUpdateViewObjLabelShowMode)
	ON_COMMAND(ID_FILE_SAVE_SELECT_AS, OnFileSaveSelectAs)
	ON_UPDATE_COMMAND_UI(ID_FILE_SAVE_SELECT_AS, OnUpdateFileSaveSelectAs)
	ON_COMMAND(ID_OPTION_IS_GRID_VISIBLE, OnOptionIsGridVisible)
	ON_UPDATE_COMMAND_UI(ID_OPTION_IS_GRID_VISIBLE, OnUpdateOptionIsGridVisible)
	ON_COMMAND(ID_OPTION_IS_PAGE_VISIBLE, OnOptionIsPageVisible)
	ON_UPDATE_COMMAND_UI(ID_OPTION_IS_PAGE_VISIBLE, OnUpdateOptionIsPageVisible)
	ON_COMMAND(ID_OPTION_IS_SNAP_EFFECTIVE, OnOptionIsSnapEffective)
	ON_UPDATE_COMMAND_UI(ID_OPTION_IS_SNAP_EFFECTIVE, OnUpdateOptionIsSnapEffective)
	ON_UPDATE_COMMAND_UI(ID_FILE_SAVE_AS, OnUpdateFileSaveAs)
	ON_COMMAND(ID_HELP_DEBUG_BREAK, OnHelpDebugBreak)
	ON_COMMAND(ID_FILE_IMPORT, OnFileImport)
	ON_UPDATE_COMMAND_UI(ID_FILE_IMPORT, OnUpdateFileImport)
	ON_COMMAND(ID_FILE_EXPORT, OnFileExport)
	ON_UPDATE_COMMAND_UI(ID_FILE_EXPORT, OnUpdateFileExport)
	ON_COMMAND(ID_FILE_DOCUMENT_PROPERTY, OnFileDocumentProperty)
	ON_UPDATE_COMMAND_UI(ID_FILE_DOCUMENT_PROPERTY, OnUpdateFileDocumentProperty)
	ON_UPDATE_COMMAND_UI(ID_FILE_RECENT1, OnUpdateFileRecent1)
	ON_COMMAND(ID_OPTION_PAGE_MARGIN_VISIBLE, OnOptionPageMarginVisible)
	ON_UPDATE_COMMAND_UI(ID_OPTION_PAGE_MARGIN_VISIBLE, OnUpdateOptionPageMarginVisible)
	ON_COMMAND(ID_VIEW_PASTE_POSITION, OnViewPastePosition)
	ON_UPDATE_COMMAND_UI(ID_VIEW_PASTE_POSITION, OnUpdateViewPastePosition)
	ON_COMMAND(ID_FILE_SAVE_COPY_AS, OnFileSaveCopyAs)
	ON_UPDATE_COMMAND_UI(ID_FILE_SAVE_COPY_AS, OnUpdateFileSaveCopyAs)
	ON_UPDATE_COMMAND_UI(ID_FILE_UPDATE, OnUpdateFileUpdate)
	ON_COMMAND(ID_OPTION_IS_ARROW_GAP_EFFECTIVE, OnOptionIsArrowGapEffective)
	ON_UPDATE_COMMAND_UI(ID_OPTION_IS_ARROW_GAP_EFFECTIVE, OnUpdateOptionIsArrowGapEffective)
	//}}AFX_MSG_MAP
//	ON_COMMAND(ID_FILE_TMPL_SAVE, OnFileTmplSave)
	ON_COMMAND_RANGE(ID_FILE_RECENT1, ID_FILE_RECENTEND, OnFileRecent)
END_MESSAGE_MAP()

//----- 05.08.24 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	ON_COMMAND(ID_VIEW_PAGE_BORDER_VISIBLE, OnViewPageBorderVisible)
//	ON_UPDATE_COMMAND_UI(ID_VIEW_PAGE_BORDER_VISIBLE, OnUpdateViewPageBorderVisible)
//----- 05.08.24 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
//----- 05.07.29 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	ON_COMMAND(ID_FILE_LOAD_INSERT, OnFileLoadInsert)
//	ON_UPDATE_COMMAND_UI(ID_FILE_LOAD_INSERT, OnUpdateFileLoadInsert)
//----- 05.07.29 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
//----- 05.05.13 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	ON_COMMAND(ID_FILE_IMPORT_URL, OnFileImportUrl)
//	ON_UPDATE_COMMAND_UI(ID_FILE_IMPORT_URL, OnUpdateFileImportUrl)
//----- 05.05.13 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
//----- 05.08.19 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	ON_COMMAND(ID_EDIT_COPY_RESOLUTION_1, OnEditCopyResolution1)
//	ON_UPDATE_COMMAND_UI(ID_EDIT_COPY_RESOLUTION_1, OnUpdateEditCopyResolution1)
//	ON_COMMAND(ID_EDIT_COPY_RESOLUTION_2, OnEditCopyResolution2)
//	ON_UPDATE_COMMAND_UI(ID_EDIT_COPY_RESOLUTION_2, OnUpdateEditCopyResolution2)
//	ON_COMMAND(ID_EDIT_COPY_RESOLUTION_4, OnEditCopyResolution4)
//	ON_UPDATE_COMMAND_UI(ID_EDIT_COPY_RESOLUTION_4, OnUpdateEditCopyResolution4)
//	ON_COMMAND(ID_EDIT_COPY_RESOLUTION_6, OnEditCopyResolution6)
//	ON_UPDATE_COMMAND_UI(ID_EDIT_COPY_RESOLUTION_6, OnUpdateEditCopyResolution6)
//	ON_COMMAND(ID_EDIT_COPY_RESOLUTION_8, OnEditCopyResolution8)
//	ON_UPDATE_COMMAND_UI(ID_EDIT_COPY_RESOLUTION_8, OnUpdateEditCopyResolution8)
//----- 05.08.19 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

//----------<NOT EXPORT TO VIEWER>-----------
BEGIN_DISPATCH_MAP(CFCFoundDoc, CFCFoundDocBase)
	//{{AFX_DISPATCH_MAP(CFCFoundDoc)
	DISP_FUNCTION(CFCFoundDoc, "Open", Open, VT_EMPTY, VTS_BSTR)
	DISP_FUNCTION(CFCFoundDoc, "Close", Close, VT_EMPTY, VTS_NONE)
	//}}AFX_DISPATCH_MAP
END_DISPATCH_MAP()

// _xZkqqHx_iDiBiDiC_xHqqkZx_: VBA _xZkqqHx_iCkJiCoHiDgPiDeDiDjDiDgIiClDiCoKiCmEiCkCiCoJiDfOiDeDiDhG_xHqqkZx_ _xZkqqHx_iDfKiBfLiDhEiCpAiDfEiDhMiBfLiDgHiClHiCoJiClNiCnPiCmJ_xHqqkZx_ IID_IMolipDraw  _xZkqqHx_iCmMiDfEiDhMiBfLiDgHiCpAjCmHiJmBiClFiCnMiClHiBeC_xHqqkZx_
//       _xZkqqHx_iClBiCmM_xHqqkZx_ IID _xZkqqHx_iCmNiBeB_xHqqkZx_.ODL _xZkqqHx_iDhEiDeAiDeDiDiLiCmMjCiGiCmMiDgGiDeCiDfIiDhGiDeDiDjDiDfOiBfLiDhEiDeGiDeDiDfIiCmJiDeBiDfOiDgCiDgAiClDiCoKiCmEiCkCiCoJ_xHqqkZx_ GUID _xZkqqHx_iCmJiDhNiDgCiDgAiClFiCmEiCkCiCmI_xHqqkZx_ 
//       _xZkqqHx_iCkPiCoKiCmOiCmIiCoIiCnMiClJiCpBiBeC_xHqqkZx_ 

// {0F2570E2-A510-11D2-AC0E-00C0F6B0E2D0}
static const IID IID_IMolipDraw =
{ 0xf2570e2, 0xa510, 0x11d2, { 0xac, 0xe, 0x0, 0xc0, 0xf6, 0xb0, 0xe2, 0xd0 } };

BEGIN_INTERFACE_MAP(CFCFoundDoc, CFCFoundDocBase)
	INTERFACE_PART(CFCFoundDoc, IID_IMolipDraw, Dispatch)
END_INTERFACE_MAP()

//----------</NOT EXPORT TO VIEWER>-----------

/////////////////////////////////////////////////////////////////////////////
// CFCFoundDoc _xZkqqHx_iDeOiDiJiDfIiCmMiNfMjChK_xHqqkZx_/_xZkqqHx_iPmBjGmF_xHqqkZx_

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::CFCFoundDoc
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDjDiDfIiDgHiDiJiDeOiDfO_xHqqkZx_. OnCreate_xZkqqHx_jDjJiKnGjAjEiCkKiCmIiCkCiClNiCnPiBeBiClBiClBiCmFiDiBiDjDiDgPjFmPjAjEiCpA_xHqqkZx_
 *			_xZkqqHx_iPiJiKpKiJlL_xHqqkZx_.
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	98.10.15 Fukushiro M. _xZkqqHx_iDfCiDiBiDjDiDgHiNoMjAkM_xHqqkZx_
 *************************************************************************/
CFCFoundDoc::CFCFoundDoc ()
{
	// _xZkqqHx_iDePiDiNiBfLiDgPiDiLjFmPjAjE_xHqqkZx_ g_pDoc_xZkqqHx_iCmMjAnNjCoIiBeC_xHqqkZx_
	InitGlobal(this);

//----------<NOT EXPORT TO VIEWER>-----------
	// OLE _xZkqqHx_jFkBiNiHiDhEiDeAiDeDiDiLiCpAiOgHjHhAiClFiCnMiClHiBeC_xHqqkZx_
	EnableCompoundFile();
//----------</NOT EXPORT TO VIEWER>-----------
	// _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiCmNjFmCiClGiCmEiCkCiCoJiPpDjBnEiCmJiBeC_xHqqkZx_
	m_bIsDocumentOpened = FALSE;
	// _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiDhEiDeAiDeDiDiLiCmN_xHqqkZx_ReadOnly_xZkqqHx_iCkJiBeI_xHqqkZx_
	m_bIsReadOnly = TRUE;

	// _xZkqqHx_iDfGiBfLiDgHiDhNiDgMiBfLiDfHiDiDiBfLiBeC_xHqqkZx_
	m_pSheetManager = new FCSheetManager;
	// _xZkqqHx_jFfMiOkGjFjEjFgJ_xHqqkZx_ID_xZkqqHx_iKmHjHjNiDgFiBfLiDhFiDiLiCmMiNoMjAkMiBeC_xHqqkZx_
	m_oitpObjIDTbl = new FCObjIDTbl;

//----------<NOT EXPORT TO VIEWER>-----------
	// _xZkqqHx_iDiKiDjDiDeOiDhNiDgMiBfLiDfHiDiDiCmMiNoMjAkMiBeC_xHqqkZx_
	m_pLinkManager = new FCLinkManager();
//----- 06.04.03 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_iDiJiDhIiDiLjFjEjFgJiIoKjHjHiCmMiNoMjAkMiBeC_xHqqkZx_
	m_stObjLabel = new DWORDSet();
//----- 06.04.03 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----

	// OLE_xZkqqHx_iDeJiBfLiDgHiDiBiBfLiDfGiDiHiDjDiCpAiJmCjEfMiCmJiClFiCnMiClHiBeC_xHqqkZx_
	EnableAutomation();
	AfxOleLockApp();

	//----- _xZkqqHx_iBhFjBeJjBpAjFjEjFgJiCmMiJoGjBjMiCpAiDeHiDeOiDfIiDhMiBfLiDgHiBhGiDfPiDeDiDeBiDiNiDePiCmM_xHqqkZx_
	//		_xZkqqHx_iDhEiDeIiBfLiDhNiDgCiDgHiCmJiBeBiDgGiDhEiDeIiDiLiDgHiCmMiDhEiDeIiBfLiDhNiDgCiDgHiCpAjAnNjCoI_xHqqkZx_ -----
	RegisterSelObjSaveFormat(L"Windows Metafile (*.wmf)", L".wmf");
	RegisterSelObjSaveFormat(L"Enhanced Metafile (*.emf)", L".emf");

	// _xZkqqHx_iKeKiCkCiCmEiCkCiCoJiDhEiDeAiDeDiDiL_xHqqkZx_(.mdpf_xZkqqHx_jHhA_xHqqkZx_)_xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiCpAiNoMjAkMiBeC_xHqqkZx_
	m_pFileOpen = new CFile();

//----- 06.03.29 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_iDfIiDgHiDiMiBfLiDfHiKnGiMfHiCpAiPiJiKpKiJlLiBeC_xHqqkZx_
	m_lpOriginalStorage = NULL;
	m_lpSubstStorage = NULL;
//----- 06.03.29 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----

//----- 06.05.24 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_iMlLiNnNiCmMjHjKjHpAiDhEiDeAiDeDiDiLiImKjChFiCpAiDiKiDfKiDgCiDgHiBeC_xHqqkZx_
	m_fliLastSavedSessionIdx = -1;
//----- 06.05.24 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----

//----------</NOT EXPORT TO VIEWER>-----------
} // CFCFoundDoc::CFCFoundDoc.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::~CFCFoundDoc
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgGiDfIiDgHiDiJiDeOiDfOiBeC_xHqqkZx_OnDestroy_xZkqqHx_jDjJiKnGjAjEiCkKiCmIiCkCiClNiCnPiBeBiClBiClBiCmFiDiBiDjDiDgPjFmPjAjEiCpA_xHqqkZx_
 *			_xZkqqHx_iKeKjFpKiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	98.10.15 Fukushiro M. _xZkqqHx_iDfCiDiBiDjDiDgHiNoMjAkM_xHqqkZx_
 *************************************************************************/
CFCFoundDoc::~CFCFoundDoc ()
{
//----- 06.03.29 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_iDfIiDgHiDiMiBfLiDfHiKnGiMfHiCkKiOgDiCmBiCmEiCkCiCoJiPoKiNiHiCmNiDeHiDiJiBfLiBeC_xHqqkZx_
	// DeleteContents _xZkqqHx_iCmFiNoNiPjMiClDiCoKiCmEiCkCiCmIiCkPiCoKiCmOiCmIiCoHiCmIiCkCiBeC_xHqqkZx_
	if (m_lpOriginalStorage != NULL || m_lpSubstStorage != NULL)
		FFThrowMiscUnknown();
//----- 06.03.29 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----


	// _xZkqqHx_iKeKiCkCiCmEiCkCiCoJiDhEiDeAiDeDiDiL_xHqqkZx_(.mdpf_xZkqqHx_jHhA_xHqqkZx_)_xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiCpAiNoNiPjMiBeC_xHqqkZx_
	delete m_pFileOpen;
	m_pFileOpen = NULL;

//----- 06.04.03 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_iDiJiDhIiDiLjFjEjFgJiIoKjHjHiCmMiNoNiPjMiBeC_xHqqkZx_
	delete m_stObjLabel;
	m_stObjLabel = NULL;
//----- 06.04.03 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----

//----------<NOT EXPORT TO VIEWER>-----------
	AfxOleUnlockApp();
	// _xZkqqHx_iDiKiDjDiDeOiDhNiDgMiBfLiDfHiDiDiCmMiNoNiPjMiBeC_xHqqkZx_
	delete m_pLinkManager;
	m_pLinkManager = NULL;
//----------</NOT EXPORT TO VIEWER>-----------

	// _xZkqqHx_jFjEjFgJ_xHqqkZx_ID_xZkqqHx_iDgFiBfLiDhFiDiLiBeBiDfEiDhFiDgFiBfLiDhFiDiLiCpAiNoNiPjMiBeC_xHqqkZx_
	delete m_oitpObjIDTbl;
	m_oitpObjIDTbl = NULL;
	// _xZkqqHx_iClBiCoKiImIiNhOiCmMiPiIjHjNiCmFiOgHiCoNiCoKiCoJiJmCjEfMjAkLiCkKiCkAiCoJiClNiCnP_xHqqkZx_g_pDoc = NULL_xZkqqHx_iCpAjAnNjCoIiBeC_xHqqkZx_
	// _xZkqqHx_iDePiDiNiBfLiDgPiDiLjFmPjAjE_xHqqkZx_ g_pDoc_xZkqqHx_iCmMiNoNiPjMiBeC_xHqqkZx_
	TerminateGlobal();

	// _xZkqqHx_iDfGiBfLiDgHiDhNiDgMiBfLiDfHiDiDiBfLiBjFiDiMiDeDiDiEiBfLiDhNiDgMiBfLiDfHiDiDiCpAiPmBiLiOiBeC_xHqqkZx_
	delete m_pSheetManager;
	m_pSheetManager = NULL;
} // CFCFoundDoc::~CFCFoundDoc.

//----- 03.03.17 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::IsModified
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFlGiPjBiCkKiPeDjAkOiClDiCoKiCmEiCkCiCoJiCkJiCmHiCkEiCkJiCpAjFnEiClHiBeCiDeJiBfLiDgPiBfLiDiJiDeDiDgIiKnGjAjEiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iPeDjAkOiClDiCoKiCmEiCkCiCoJiPoKiNiHiCmN_xHqqkZx_ TRUE_xZkqqHx_iBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.09.17 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//BOOL CFCFoundDoc::IsModified ()
//{
//	if (g_pView != NULL && g_pView->GetCurrentTool() != NULL &&
//		g_pView->GetCurrentTool()->IsEditingText() &&
//		(0 < g_pView->GetRTFEditor()->GetCmdQueueSize()))
//			return TRUE;
//	if (IsOleDocumentsOpened()) return TRUE;
//	// Superclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
//	return BASE_CLASS::IsModified();
//} // CFCFoundDoc::IsModified.
//----- 03.03.17 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnUpdateFileSave
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiPoDiPjBiCkLjFnLjBlGiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCpAjDmBjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.02.03 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OnUpdateFileSave (CCmdUI* pCmdUI)
{
	// ReadOnly_xZkqqHx_iCmIiCoHiCmOjGlDiMpIiBeC_xHqqkZx_
	pCmdUI->Enable(FFCanBasicOperate() && IsModified() && FFCanEditDocument());
} // CFCFoundDoc::OnUpdateFileSave.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnUpdateFilePrintSetup
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDhGiDiKiDjDiDfOiCmMjAnNjCoIiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCpAjDmBjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.02.03 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OnUpdateFilePrintSetup (CCmdUI* pCmdUI)
{
//----------<NOT EXPORT TO VIEWER>-----------
	// _xZkqqHx_iDgFiDeMiDfIiDgHjFnCiPfHjCiGiBeB_xHqqkZx_OLE_xZkqqHx_jFnCiPfHjCiGiCmIiCoHiCmOjGlDiMpIiBeC_xHqqkZx_
//----- 05.10.22 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	pCmdUI->Enable(FFCanBasicOperate() && GetIsDocumentOpened() && !IsOleDocumentsOpened() &&
//					!g_pView->GetCurrentTool()->IsEditingText());
//----- 05.10.22 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	pCmdUI->Enable(FFIsSheetReady());
//----- 05.10.22 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
//----------</NOT EXPORT TO VIEWER>-----------
} // CFCFoundDoc::OnUpdateFilePrintSetup.

//----------<NOT EXPORT TO VIEWER>-----------
/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::RegisterObject
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jAfGiClFiCkNjAlGjAkMiClDiCoKiClNjFjEjFgJiCpAjDgPjIfOiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pObj	: _xZkqqHx_jDgPjIfOiClHiCoJjFjEjFgJ_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	98.11.14 Fukushiro M. _xZkqqHx_iDgFiBfLiDhFiDiLiCkK_xHqqkZx_NULL_xZkqqHx_iCmMiPiIjHjNiCpAjCmHiJmB_xHqqkZx_.ChipTbl::InStream_xZkqqHx_iCmMiInH_xHqqkZx_.
 *************************************************************************/
void CFCFoundDoc::RegisterObject (FCObjDynabase* pObj)
{
	// _xZkqqHx_jCmKiPoNiBeB_xHqqkZx_OpenUndo_xZkqqHx_iKnGjAjEiCmNiNmFiPiJiCmMiDfKiDgCiDfGiDiHiDjDiDeJiBfLiDhGiDjDiOjOiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
	// CFCDynamicDrawDoc::OpenUndo _xZkqqHx_iCmFiCmNiPiJiKpKiDhEiDeAiDeDiDiLiCpA_xHqqkZx_Export_xZkqqHx_iCmFjFnLjBlGiClHiCoJiCmMiCmFiBeB_xHqqkZx_
	// _xZkqqHx_iNmFiPiJiCmMiDfKiDgCiDfGiDiHiDjDiDeJiBfLiDhGiDjDiCnMiCmFiCmNjFjEjFgJiCkKiNoMjAkMiClDiCoKiClNiCoIiClFiCmEiCkCiCmEiCmN_xHqqkZx_
	// _xZkqqHx_iCmIiCoHiCmIiCkCiBeC_xHqqkZx_
	if (!m_pGate->IsOpened()) FFThrowMiscUnknown();

	if (m_oitpObjIDTbl != NULL)
		pObj->SetObjID(m_oitpObjIDTbl->Register(pObj));
} // CFCFoundDoc::RegisterObject.
//----------</NOT EXPORT TO VIEWER>-----------

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::RegisterObject
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jAfGiClFiCkNjAlGjAkMiClDiCoKiClNjFjEjFgJiCpAiOhHjCoIiClFiClN_xHqqkZx_ID_xZkqqHx_iCmFjDgPjIfOiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pObj	: _xZkqqHx_jDgPjIfOiClHiCoJjFjEjFgJ_xHqqkZx_
 *			dwID	: _xZkqqHx_jDgPjIfOiClHiCoJjFjEjFgJiCmM_xHqqkZx_ID
 *
 * <_xZkqqHx_jCiNiInD_xHqqkZx_>	ID_xZkqqHx_iCmMiPgEjFkBiCpAiDgAiDeGiDgCiDeOiClFiCmIiCkCiCmMiCmFiBeB_xHqqkZx_m_obppObjID2P_xZkqqHx_iCkKiClHiCnHiCmEiLpDiCmMiOjOiBeB_xHqqkZx_
 *			_xZkqqHx_iClHiCmIiCoNiClP_xHqqkZx_m_dwObjID2PNext = 0_xZkqqHx_iCmMiOjOiCmMiCnNiOgHjHhAiCmFiCkLiCoJiBeCjAfGiLeLiCmJiDhEiDeAiDeDiDiL_xHqqkZx_
 *			_xZkqqHx_iCpAiDiNiBfLiDgIiClHiCoJiOjOiCmMiCnNiCmGiNgMiCkGiCmEiCoGiCkCiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	98.11.14 Fukushiro M. _xZkqqHx_iDgFiBfLiDhFiDiLiCkK_xHqqkZx_NULL_xZkqqHx_iCmMiPiIjHjNiCpAjCmHiJmB_xHqqkZx_.ChipTbl::InStream_xZkqqHx_iCmMiInH_xHqqkZx_.
 *************************************************************************/
void CFCFoundDoc::RegisterObject (FCObjDynabase* pObj, DWORD dwID)
{
	if (m_oitpObjIDTbl != NULL)
		m_oitpObjIDTbl->Register(pObj, dwID);
} // CFCFoundDoc::RegisterObject.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::UnregisterObject
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFjEjFgJiCpA_xHqqkZx_ID_xZkqqHx_jDgPjIfOiCkJiCoHiCmNiClIiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pObj	: _xZkqqHx_jFjEjFgJ_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	98.11.14 Fukushiro M. _xZkqqHx_iDgFiBfLiDhFiDiLiCkK_xHqqkZx_NULL_xZkqqHx_iCmMiPiIjHjNiCpAjCmHiJmB_xHqqkZx_.ChipTbl::InStream_xZkqqHx_iCmMiInH_xHqqkZx_.
 *************************************************************************/
void CFCFoundDoc::UnregisterObject (FCObjDynabase* pObj)
{
	// _xZkqqHx_jFjEjFgJ_xHqqkZx_ID_xZkqqHx_iDgFiBfLiDhFiDiLiCkJiCoHjFjEjFgJiCpAiPjMiCkN_xHqqkZx_.
	if (m_oitpObjIDTbl != NULL)
		m_oitpObjIDTbl->Unregister(pObj->GetObjID());
} // CFCFoundDoc::UnregisterObject.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::ObjID2Object
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFjEjFgJ_xHqqkZx_ID_xZkqqHx_iCkJiCoHjFjEjFgJiCpAjCfEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	_xZkqqHx_jFjEjFgJ_xHqqkZx_ID.
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_jFjEjFgJ_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	98.10.17 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *			98.11.14 Fukushiro M. _xZkqqHx_iDgFiBfLiDhFiDiLiCkK_xHqqkZx_NULL_xZkqqHx_iCmMiPiIjHjNiCpAjCmHiJmB_xHqqkZx_.ChipTbl::InStream_xZkqqHx_iCmMiInH_xHqqkZx_.
 *************************************************************************/
FCObjDynabase* CFCFoundDoc::ObjID2Object (DWORD dwID) const
{
	if (m_oitpObjIDTbl != NULL)
		return (FCObjDynabase*)m_oitpObjIDTbl->IDtoObject(dwID);
	return NULL;
} // CFCFoundDoc::ObjID2Object.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::SetObjIDTbl
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	ID<->_xZkqqHx_jFjEjFgJiDgFiBfLiDhFiDiLiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pTbl		:ID<->_xZkqqHx_jFjEjFgJiDgFiBfLiDhFiDiLiCpAiOhHjCoIiBeC_xHqqkZx_
 *			stObjLabel	:_xZkqqHx_iDiJiDhIiDiLjFjEjFgJiIoKjHjH_xHqqkZx_ID_xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iMmDiCkCiDgFiBfLiDhFiDiLiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	ChipTbl::InStream_xZkqqHx_iKnGjAjEiCpAiKePiCmJiClOiClFiClNiClNiCnPiBeBiMpGiKeKiBeC_xHqqkZx_
 *			_xZkqqHx_iDiJiDhIiDiLjFjEjFgJjDgPjIfOiCmN_xHqqkZx_ RegisterObject _xZkqqHx_iCmMiDfOiDeDiDhOiDjDiDePiCmIiCmMiCmFiBeB_xHqqkZx_
 *			_xZkqqHx_iDiJiDhIiDiLjFjEjFgJiIoKjHjHiDgFiBfLiDhFiDiLiCoAjDkPiOjOiCmJjFmPiNfIiClHiCoJjFeLjHhGiCkKiCkAiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	98.11.14 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
FC2Fold<FCObjIDTbl*, DWORDSet*> CFCFoundDoc::SetObjIDTbl (FCObjIDTbl* pTbl, DWORDSet* stObjLabel)
{
	FCObjIDTbl* pTmpObjId = m_oitpObjIDTbl;
	DWORDSet* pTmpObjLabel = m_stObjLabel;
	m_oitpObjIDTbl = pTbl;
	m_stObjLabel = stObjLabel;
	return FC2Fold<FCObjIDTbl*, DWORDSet*>(pTmpObjId, pTmpObjLabel);
} // CFCFoundDoc::SetObjIDTbl.

//----- 06.04.03 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::RegisterObjLabel
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiJiDhIiDiLjFjEjFgJiCpAjDgPjIfOiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.04.20 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCFoundDoc::RegisterObjLabel (FCObjDynabase* pObj)
//{
//	m_stObjLabel->insert(pObj);
//} // CFCFoundDoc::RegisterObjLabel.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::UnregisterObjLabel
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiJiDhIiDiLjFjEjFgJiCmMjDgPjIfOiCpAjGjFiPmBiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.04.20 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCFoundDoc::UnregisterObjLabel (FCObjDynabase* pObj)
//{
//	m_stObjLabel->erase(pObj);
//} // CFCFoundDoc::UnregisterObjLabel.
//----- 06.04.03 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::RegisterObjLabel
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiJiDhIiDiLjFjEjFgJiCpAjDgPjIfOiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.04.20 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::RegisterObjLabel (DWORD dwObjId)
{
	m_stObjLabel->insert(dwObjId);
} // CFCFoundDoc::RegisterObjLabel.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::UnregisterObjLabel
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiJiDhIiDiLjFjEjFgJiCmMjDgPjIfOiCpAjGjFiPmBiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.04.20 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::UnregisterObjLabel (DWORD dwObjId)
{
	m_stObjLabel->erase(dwObjId);
} // CFCFoundDoc::UnregisterObjLabel.
//----- 06.04.03 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::GetObjLabelStid
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jDgPjIfOiClDiCoKiClNiDiJiDhIiDiLjFjEjFgJiCmMiDiKiDfIiDgHiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.04.21 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::GetObjLabelStid (FCLabelStidRecVector& vLabelStid) const
{
	//----- _xZkqqHx_iDiJiDhIiDiLjFjEjFgJiCmMiCkEiClPiBeB_xHqqkZx_LZOrder_xZkqqHx_iCmJjDgPjIfOiClDiCoKiClNiCoAiCmMiClOiCkPiCpAjElCiCkLiPgPiClH_xHqqkZx_ -----
	vector<FCLabelStidRec*> vLabelPRec;
	SheetID stid;
	FCLayerZOrder lzorder;
// 06.04.03 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//	ObjDynabaseSet::const_iterator iObs;
	DWORDSet::const_iterator iObs;
	for (iObs = m_stObjLabel->begin(); iObs != m_stObjLabel->end(); iObs++)
	{
//----- 06.04.03 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//		// _xZkqqHx_iDiJiDhIiDiLjFjEjFgJiCmMiDeJiDhFiDfHiDeGiDeOiDgHiCpAiLiBiCnPiCoJiBeC_xHqqkZx_
//		// _xZkqqHx_iDePiDiLiBfLiDhGiDiBiDjDiDgPiCmMiPoKiNiHiCmNiBeBiDgHiDgCiDhGiCmMiDePiDiLiBfLiDhGjFjEjFgJiCnMiCmFjGnPiClHiBeC_xHqqkZx_
//		const FCObjDynabase* pObj = (*iObs)->GetGroupTop();
//
//		if (GetSheetManager()->ObjDynabaseToSIdLZOrder(stid, lzorder, pObj,
//													GetCurrentSheetId()))
//			vLabelPRec.push_back(new FCLabelStidRec(*iObs, stid));
//----- 06.04.03 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
		FCObjDynabase* pLabelObj = ObjID2Object(*iObs);
		// _xZkqqHx_iDiJiDhIiDiLjFjEjFgJiCmMiDeJiDhFiDfHiDeGiDeOiDgHiCpAiLiBiCnPiCoJiBeC_xHqqkZx_
		// _xZkqqHx_iDePiDiLiBfLiDhGiDiBiDjDiDgPiCmMiPoKiNiHiCmNiBeBiDgHiDgCiDhGiCmMiDePiDiLiBfLiDhGjFjEjFgJiCnMiCmFjGnPiClHiBeC_xHqqkZx_
		const FCObjDynabase* pTopObj = pLabelObj->GetGroupTop();
		if (GetSheetManager()->ObjDynabaseToSIdLZOrder(	stid, lzorder, pTopObj,
														GetCurrentSheetId()))
			vLabelPRec.push_back(new FCLabelStidRec(pLabelObj, stid));
//----- 06.04.03 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
	}
	// _xZkqqHx_iDfMiBfLiDgHiPiHjEhKjHpBiCmJiPfNiCmBiCmEiDiMiDfCiBfLiDgIiCpAiDfMiBfLiDgHiBeC_xHqqkZx_
	if (!m_vSortOrder.empty())
		sort(vLabelPRec.begin(), vLabelPRec.end(),
				FCLess<FCLabelStidRec, FCLabelStidRec*>(m_vSortOrder));
	// _xZkqqHx_iDiJiDhIiDiLjEhKjHpBiCpAiDeOiDiKiDeBiBeC_xHqqkZx_
	vLabelStid.clear();
	vector<FCLabelStidRec*>::iterator iPr;
	for (iPr = vLabelPRec.begin(); iPr != vLabelPRec.end(); iPr++)
		vLabelStid.push_back(FCLabelStidRecAuto(*iPr));
} // CFCFoundDoc::GetObjLabelStid.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::LabelSortOrder
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiJiDhIiDiLjFjEjFgJiCmMjDgPjIfOiCpAiDfMiBfLiDgHiClHiCoJiPiHiPjIiCpAiLeMjIfOiClFiClNjEhKjHpBiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.04.22 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
WORDVector& CFCFoundDoc::LabelSortOrder ()
{
	return m_vSortOrder;
} // CFCFoundDoc::LabelSortOrder.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::SetSheetManager
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfGiBfLiDgHiDhNiDgMiBfLiDfHiDiDiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	_xZkqqHx_jAnNjCoIiClHiCoJiDhNiDgMiBfLiDfHiDiDiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iMmDiCkCiDhNiDgMiBfLiDfHiDiDiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	InStream_xZkqqHx_iKnGjAjEiCpAjFmPiNfIiClHiCoJiCmJjDjGiClNiCmBiCmEjFeLjHhGiCmGiCmIiCmBiClNiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.12.20 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
FCSheetManager* CFCFoundDoc::SetSheetManager (FCSheetManager* pNew)
{
	FCSheetManager* pTmp = m_pSheetManager;
	m_pSheetManager = pNew;
	return pTmp;
} // CFCFoundDoc::SetSheetManager.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::GetSheetManager
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	SheetManager_xZkqqHx_iCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	SheetManager_xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.01 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
const FCSheetManager* CFCFoundDoc::GetSheetManager () const
{
	return m_pSheetManager;
} // CFCFoundDoc::GetSheetManager.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::GetCurrentSheet
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	LayerManager_xZkqqHx_iCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	LayerManager_xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.01 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
const FCLayerManager* CFCFoundDoc::GetCurrentSheet () const
{
	// _xZkqqHx_iDiMiDeDiDiEiBfLiDhNiDgMiBfLiDfHiDiDiBeC_xHqqkZx_
// 01.03.24 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//	return m_pSheetManager->GetCurrentLayerManager();
	return m_pSheetManager->GetSheet(GetCurrentSheetId());
} // CFCFoundDoc::GetCurrentSheet.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::RegisterSelObjSaveFormat
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iBhFjBeJjBpAjFjEjFgJiCmMiJoGjBjMiCpAiDeHiDeOiDfIiDhMiBfLiDgHiBhGiDfPiDeDiDeBiDiNiDePiCmMiDhEiDeIiBfLiDhNiDgCiDgHiCpAjAnNjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	tcpName		:_xZkqqHx_iDhEiDeIiBfLiDhNiDgCiDgHjFlGiOjKjHpBiCpAiOhHjCoIiBeC_xHqqkZx_
 *						_xZkqqHx_jHoBiBeG_xHqqkZx_"JPEG file (*.jpg)"
 *			tcpExt		:_xZkqqHx_iDhEiDeAiDeDiDiLiKgHjCkDiOhBiCpAiOhHjCoIiBeC_xHqqkZx_
 *						_xZkqqHx_jHoBiBeG_xHqqkZx_".jpg"
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDhEiDeIiBfLiDhNiDgCiDgH_xHqqkZx_Id_xZkqqHx_iCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.06.01 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
DWORD CFCFoundDoc::RegisterSelObjSaveFormat (const wchar_t* tcpName, const wchar_t* tcpExt)
{
	m_vStrImageExportFormat.push_back(FCExportFormatRec(tcpName, tcpExt));
	return m_vStrImageExportFormat.size() - 1;
} // CFCFoundDoc::RegisterSelObjSaveFormat.

//----- 05.07.29 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::RegisterImportFormat
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iBhFjBlMiMgAiOkOiCmMiDhEiDeAiDeDiDiLiCpAjDmHiNjOiCnNiBhGiDfPiDeDiDeBiDiNiDePiCmMiDhEiDeIiBfLiDhNiDgCiDgHiCpAjAnNjCoIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	tcpName		:_xZkqqHx_iDhEiDeIiBfLiDhNiDgCiDgHjFlGiOjKjHpBiCpAiOhHjCoIiBeC_xHqqkZx_
// *						_xZkqqHx_jHoBiBeG_xHqqkZx_"JPEG file (*.jpg)"
// *			tcpExt		:_xZkqqHx_iDhEiDeAiDeDiDiLiKgHjCkDiOhBiCpAiOhHjCoIiBeC_xHqqkZx_
// *						_xZkqqHx_jHoBiBeG_xHqqkZx_".jpg"
// *			lIsSingleFile	:_xZkqqHx_iIoKjDhIiCmJ_xHqqkZx_1_xZkqqHx_iDhEiDeAiDeDiDiLiCmMiCnNjBeJjBpAiCkJiBeBjFkBjAjEiDhEiDeAiDeDiDiLjBeJjBpAiCkJiBeI_xHqqkZx_
// *						0: _xZkqqHx_iDhNiDiLiDgAjBeJjBpAiBeB_xHqqkZx_1:_xZkqqHx_iDfGiDjDiDePiDiLjBeJjBpAiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDhEiDeIiBfLiDhNiDgCiDgH_xHqqkZx_Id_xZkqqHx_iCpAjFnEiClHiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.09.17 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//DWORD CFCFoundDoc::RegisterImportFormat (const wchar_t* tcpName, const wchar_t* tcpExt,
//										long lIsSingleFile)
//{
//	m_vStrImportFormat.push_back(FCImportFormatRec(tcpName, tcpExt, lIsSingleFile));
//	return m_vStrImportFormat.size() - 1;
//} // CFCFoundDoc::RegisterImportFormat.
//----- 05.07.29 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::IsCurrentSheetReady
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iMlLiNnNiCmMiDfGiBfLiDgHiCkKjFfMiOkGiJmCjEfMiCmFiCkAiCoJiCkJiCpAjFnEiClHiBeCiDhGiDiNiDePiDiMiDfIiDfPiDeFiDjDiDiNiBfLiDgI_xHqqkZx_
 *			_xZkqqHx_iCmFiOgHjHhAiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_jFfMiOkGiJmCjEfMiCmFiCkAiCoKiCmO_xHqqkZx_TRUE_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.07.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCFoundDoc::IsCurrentSheetReady () const
{
	return GetCurrentSheet()->IsReady();
} // CFCFoundDoc::IsCurrentSheetReady.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::GetCurrentSheetId
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDeKiDiMiDjDiDgHiDfGiBfLiDgHiCmMiDeDiDjDiDgGiDgCiDeOiDfIiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDfGiBfLiDgHiDeDiDjDiDgGiDgCiDeOiDfIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.12.31 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
SheetID CFCFoundDoc::GetCurrentSheetId () const
{
	return SheetManager()->GetCurrentSheetId();
} // CFCFoundDoc::GetCurrentSheetId.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::SetCurrentSheetId
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDeKiDiMiDjDiDgHiDfGiBfLiDgHiCmMiDeDiDjDiDgGiDgCiDeOiDfIiCpAiOhHjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	stid	:_xZkqqHx_iDfGiBfLiDgHiDeDiDjDiDgGiDgCiDeOiDfIiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.21 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::SetCurrentSheetId (SheetID stid)
{
	if (GetCurrentSheetId() != stid)
	{
		SheetManager()->SetCurrentSheetId(stid);
		// _xZkqqHx_iDfGiBfLiDgHjFmPiNfIiCpAiDhCiDiFiBfLiCmJjCmKjCgNiBeCjBeJjBpAjFjEjFgJiCmMjFmPiNfIjDjJiCpAiNhDiCkEiBeC_xHqqkZx_
		g_pView->SendMessage(WM_USER_CURRENT_SHEET_CHANGED);
		FFGetMainWnd()->SendMessage(WM_USER_CURRENT_SHEET_CHANGED);
	}
} // CFCFoundDoc::SetCurrentSheetId.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::GetCurrentLayerIdx
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDeKiDiMiDjDiDgHiDfGiBfLiDgHiCmMiDeKiDiMiDjDiDgHiDiMiDeDiDiEiBfLiCmMiDeDiDjDiDgGiDgCiDeOiDfIiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDiMiDeDiDiEiBfLiDeDiDjDiDgGiDgCiDeOiDfIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.12.08 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
DWORD CFCFoundDoc::GetCurrentLayerIdx () const
{
	return CurrentSheet()->GetCurrentLayerIdx();
} // CFCFoundDoc::GetCurrentLayerIdx.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::FirstFrontLayerIdx
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDeKiDiMiDjDiDgHiDfGiBfLiDgHiCmMiOhHjCoIiCmMiDiMiDeDiDiEiBfLiImIiJlKiCmMiBeBiOhHjCoIiCmMiDeJiDhGiDfGiDiHiDjDiCmJiIoKjChGiClHiCoJ_xHqqkZx_
 *			_xZkqqHx_iNmFiPiJiCmMiDiMiDeDiDiEiBfLiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	dwFromIdx	:_xZkqqHx_iMjPiNpFiKeKiOgOiDiMiDeDiDiEiBfLiCpAiOhHjCoIiBeC_xHqqkZx_
 *			wOption		:_xZkqqHx_iMjPiNpFjHhAiCmMiDhEiDiJiDePiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDiMiDeDiDiEiBfL_xHqqkZx_Idx_xZkqqHx_iCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.12.18 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
DWORD CFCFoundDoc::FirstFrontLayerIdx (DWORD dwFromIdx, WORD wOption) const
{
	return CurrentSheet()->FirstFrontLayerIdx(dwFromIdx, wOption);
} // CFCFoundDoc::FirstFrontLayerIdx.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::ObjDynabaseToLZOrder
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDeKiDiMiDjDiDgHiDfGiBfLiDgHiCmMiOhHjCoIiClDiCoKiClNjFjEjFgJiCmMiDiMiDeDiDiEiBfLiBjF_xHqqkZx_Z_xZkqqHx_iDeJiBfLiDfPiBfLiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pObj	:_xZkqqHx_jFjEjFgJiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDiMiDeDiDiEiBfLiBjF_xHqqkZx_Z_xZkqqHx_iDeJiBfLiDfPiBfLiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.12.18 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
FCLayerZOrder CFCFoundDoc::ObjDynabaseToLZOrder (const FCObjDynabase* pObj) const
{
	return CurrentSheet()->ObjDynabaseToLZOrder(pObj);
} // CFCFoundDoc::ObjDynabaseToLZOrder.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::GetZOrderSize
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDeKiDiMiDjDiDgHiDfGiBfLiDgHiCmMiOhHjCoIiClDiCoKiClNiPpAiMiPiCmJiIoKjChGiClHiCoJiChJiDeJiBfLiDfPiBfLiCmMjAjEiBgJjFjEjFgJjAjEiBgKiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	wOption		:_xZkqqHx_iChJiDeJiBfLiDfPiBfLiCmJjBgHiCnNiNjOiCnOiDiMiDeDiDiEiBfLiCmMiPpAiMiPiCpAiOhHjCoIiBeC_xHqqkZx_
 *			dwFromIdx	:_xZkqqHx_iChJiDeJiBfLiDfPiBfLiCmJjBgHiCnNiNjOiCnOiDiMiDeDiDiEiBfLiCmMiKeKiOgOiDeDiDjDiDgGiDgCiDeOiDfIiCpAiOhHjCoIiBeC_xHqqkZx_
 *			dwUntilIdx	:_xZkqqHx_iChJiDeJiBfLiDfPiBfLiCmJjBgHiCnNiNjOiCnOiDiMiDeDiDiEiBfLiCmMiPeJjHlJiDeDiDjDiDgGiDgCiDeOiDfIiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iChJiDeJiBfLiDfPiBfLiCmMjAjEiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iKeKjAnN_xHqqkZx_>	[dwFromIdx, dwUntilIdx]_xZkqqHx_iCpAiMjPiNpFiBeC_xHqqkZx_dwUntilIdx == DWORD(-1)_xZkqqHx_iCmIiCoHiCmOiBeB_xHqqkZx_
 *			_xZkqqHx_iNmFiMoDiCnMiCmFiMjPiNpFiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.12.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
DWORD CFCFoundDoc::GetZOrderSize (WORD wOption, DWORD dwFromIdx, DWORD dwUntilIdx) const
{
	return CurrentSheet()->GetZOrderSize(wOption, dwFromIdx, dwUntilIdx);
} // CFCFoundDoc::GetZOrderSize.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::GetZOrder
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDeKiDiMiDjDiDgHiDfGiBfLiDgHiCmMiOhHjCoIiClDiCoKiClNiPpAiMiPiCmJiIoKjChGiClHiCoJiChJiDeJiBfLiDfPiBfLiCpAjBgHiCnNjHkHiCmEiCmEjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	zOrder		:_xZkqqHx_iChJiDeJiBfLiDfPiBfLiCpAiOpDiCkPiOoGiCoJiBeC_xHqqkZx_
 *			wOption		:_xZkqqHx_iChJiDeJiBfLiDfPiBfLiCmJjBgHiCnNiNjOiCnOiDiMiDeDiDiEiBfLiCmMiPpAiMiPiCpAiOhHjCoIiBeC_xHqqkZx_
 *			dwFromIdx	:_xZkqqHx_iChJiDeJiBfLiDfPiBfLiCmJjBgHiCnNiNjOiCnOiDiMiDeDiDiEiBfLiCmMiKeKiOgOiDeDiDjDiDgGiDgCiDeOiDfIiCpAiOhHjCoIiBeC_xHqqkZx_
 *			dwUntilIdx	:_xZkqqHx_iChJiDeJiBfLiDfPiBfLiCmJjBgHiCnNiNjOiCnOiDiMiDeDiDiEiBfLiCmMiPeJjHlJiDeDiDjDiDgGiDgCiDeOiDfIiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iKeKjAnN_xHqqkZx_>	[dwFromIdx, dwUntilIdx]_xZkqqHx_iCpAiMjPiNpFiBeC_xHqqkZx_dwUntilIdx == DWORD(-1)_xZkqqHx_iCmIiCoHiCmOiBeB_xHqqkZx_
 *			_xZkqqHx_iNmFiMoDiCnMiCmFiMjPiNpFiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.12.08 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::GetZOrder (FCZOrder& zOrder, WORD wOption, DWORD dwFromIdx, DWORD dwUntilIdx) const
{
	CurrentSheet()->GetZOrder(zOrder, wOption, dwFromIdx, dwUntilIdx);
} // CFCFoundDoc::GetZOrder.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::GetZOrder
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDeKiDiMiDjDiDgHiDfGiBfLiDgHiCmMiOhHjCoIiClDiCoKiClNiPpAiMiPiCmJiIoKjChGiClHiCoJiChJiDeJiBfLiDfPiBfLiCpAiBeBiCfAjEhKjHpBiCmJjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	vObj		:_xZkqqHx_iChJiDeJiBfLiDfPiBfLiCpAiOpDiCkPiOoGiCoJjEhKjHpBiCpAiOhHjCoIiBeC_xHqqkZx_
 *			wOption		:_xZkqqHx_iChJiDeJiBfLiDfPiBfLiCmJjBgHiCnNiNjOiCnOiDiMiDeDiDiEiBfLiCmMiPpAiMiPiCpAiOhHjCoIiBeC_xHqqkZx_
 *			dwFromIdx	:_xZkqqHx_iChJiDeJiBfLiDfPiBfLiCmJjBgHiCnNiNjOiCnOiDiMiDeDiDiEiBfLiCmMiKeKiOgOiDeDiDjDiDgGiDgCiDeOiDfIiCpAiOhHjCoIiBeC_xHqqkZx_
 *			dwUntilIdx	:_xZkqqHx_iChJiDeJiBfLiDfPiBfLiCmJjBgHiCnNiNjOiCnOiDiMiDeDiDiEiBfLiCmMiPeJjHlJiDeDiDjDiDgGiDgCiDeOiDfIiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iKeKjAnN_xHqqkZx_>	[dwFromIdx, dwUntilIdx]_xZkqqHx_iCpAiMjPiNpFiBeC_xHqqkZx_dwUntilIdx == DWORD(-1)_xZkqqHx_iCmIiCoHiCmOiBeB_xHqqkZx_
 *			_xZkqqHx_iNmFiMoDiCnMiCmFiMjPiNpFiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.12.08 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::GetZOrder (ObjDynabaseVector& vObj, WORD wOption, DWORD dwFromIdx, DWORD dwUntilIdx) const
{
	CurrentSheet()->GetZOrder(vObj, wOption, dwFromIdx, dwUntilIdx);
} // CFCFoundDoc::GetZOrder.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::GetRectInObject
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iOhHjCoIiClDiCoKiClNiLoJiMgAjCiGiCmMjCiGiCmJiCkAiCoJjFjEjFgJiCmFiBeBjBeJjBpAiJmCjEfMiCmIiCoAiCmMiCpAjClCiCnHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	vObj	: _xZkqqHx_iLoJiMgAjCiGiCmMjFjEjFgJiCpAjFnEiClHiBeC_xHqqkZx_
 *			mmrct	: _xZkqqHx_jClCiCnHiCoJiLoJiMgAjHmMiIoGiBeC_xHqqkZx_
 *			wOperation	:_xZkqqHx_jFjEjFgJiCmJiOhLiClHjBiAiNoMiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.04.26 Fukushiro M. _xZkqqHx_iDiMiDeDiDiEiBfLiDhNiDgMiBfLiDfHiDiDjFmPiNfIiCmJjElKiCkEiPeDjAlDiBeC_xHqqkZx_
 *			00.12.30 Fukushiro M. wOperation _xZkqqHx_iCpAjCmHiJmBiBeC_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::GetRectInObject (ObjDynabaseVector& vObj, const DBLRect& mmrct, WORD wOperation) const
{
	FCZOrder zOrder;
	GetZOrder(zOrder, wOperation, 0, GetCurrentLayerIdx());
	FCZOrderIterator iObj;
	for (zOrder.Begin(iObj); !iObj.IsEnd(); iObj++)
		if ((*iObj)->IsObjInRect(mmrct)) vObj.push_back(*iObj);
} // CFCFoundDoc::GetRectInObject.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::GetIntersectObject
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDeKiDiMiDjDiDgHiDiMiDeDiDiEiBfLiImIiJlKiBjFjBeJjBpAiJmCjEfMiCmIjFjEjFgJiCkJiCoHiBeBiOhHjCoIiClDiCoKiClNiNmAjFfHiCmJiCkAiCoJ_xHqqkZx_
 *			_xZkqqHx_jFjEjFgJiCpAiMjPiNpFiClHiCoJiBeCiOhHjCoIiClDiCoKiClNjFjEjFgJiCoGiCoIiCoAiJlKiCmMjFjEjFgJiCpAiMjPiNpFiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	mmpt		:_xZkqqHx_iMjPiNpFiClHiCoJiNmAjFfHiCpAiOhHjCoIiClHiCoJiBeC_xHqqkZx_
 *			pObjFrom	:_xZkqqHx_iMjPiNpFiCpAiKeKiOgOiClHiCoJjFjEjFgJiCmMiIoKiCmCiPoDiCmMiChJiDeJiBfLiDfPiBfLiCmMjFjEjFgJiCpAiOhHjCoIiClHiCoJiBeC_xHqqkZx_
 *						 _xZkqqHx_jBfDjFjEjFgJiCpAiMjPiNpFiClHiCoJiPoKiNiHiCmN_xHqqkZx_NULL_xZkqqHx_iCpAiOhHjCoIiClHiCoJiBeC_xHqqkZx_
 *			wFlag		:_xZkqqHx_iDiMiDeDiDiEiBfLiDeBiDeOiDfKiDfIiDhEiDiJiDePiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iMjPiNpFiCmFiMkJiCmCiCkJiCmBiClNjFjEjFgJiCpAjFnEiClHiBeC_xHqqkZx_
 *			_xZkqqHx_jFjEjFgJiCkKiMkJiCmCiCkJiCoHiCmIiCkCiPoKiNiHiBeB_xHqqkZx_NULL_xZkqqHx_iCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	98.10.07 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *			99.04.26 Fukushiro M. _xZkqqHx_iDiMiDeDiDiEiBfLiDhNiDgMiBfLiDfHiDiDjFmPiNfIiCmJjElKiCkEiPeDjAlDiBeC_xHqqkZx_
 *			00.12.08 Fukushiro M. _xZkqqHx_iDiMiDeDiDiEiCmJjHiNiCnOjFmPiNfIiBeC_xHqqkZx_
 *			00.12.30 Fukushiro M. _xZkqqHx_iDiMiDeDiDiEiCmJjHiNiCnOjFmPiNfIiBeC_xHqqkZx_
 *************************************************************************/
FCObjDynabase* CFCFoundDoc::GetIntersectObject (const DBLPoint& mmpt,
											FCObjDynabase* pObjFrom,
											WORD wFlag) const
{
	// _xZkqqHx_iChJiDeJiBfLiDfPiBfLiCpAiOoGjDlOiBeC_xHqqkZx_
	FCZOrder zOrder;
	GetZOrder(zOrder, wFlag, 0, GetCurrentLayerIdx());
	FCZOrderReverseIterator riObj;
	zOrder.Rbegin(riObj);
	if (pObjFrom != NULL)
	//----- _xZkqqHx_iMjPiNpFiKeKiOgOjFjEjFgJiCkKiOhHjCoIiClDiCoKiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
	{
		//----- _xZkqqHx_iMjPiNpFiKeKiOgOjFjEjFgJiCnMiCmFjBjHiCoJ_xHqqkZx_ -----
		for (; !riObj.IsEnd(); riObj++)
		{
			if (*riObj == pObjFrom)
			break;
		}
		riObj++;
	}
	//----- _xZkqqHx_iMjPiNpFiKeKiOgO_xHqqkZx_ -----
	for (; !riObj.IsEnd(); riObj++)
	{
		if ((*riObj)->IsIntersect(mmpt, FALSE))
		{
			 return *riObj;
		}
	}
	return NULL;
} // CFCFoundDoc::GetIntersectObject.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::GetObjectOuterFrame
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jBfDiCmEiCmMjFjEjFgJiCmMiDiKiDfEiDeDiDfJiDhEiDiMiBfLiDiAiCmJiKePjAnKiClHiCoJiDhEiDiMiBfLiDiAiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	mmrtFrame	:_xZkqqHx_iDhEiDiMiBfLiDiAiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_jFjEjFgJiCkKjGlDiCkCiPoKiNiHiCmN_xHqqkZx_ FALSE_xZkqqHx_iBeBiCkAiCoJiPoKiNiHiCmN_xHqqkZx_ TRUE _xZkqqHx_iCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.02.14 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCFoundDoc::GetObjectOuterFrame (DBLRect& mmrtFrame) const
{
	// _xZkqqHx_jBfDiCmEiCmMiChJiDeJiBfLiDfPiBfLiCpAiOoGjDlOiBeC_xHqqkZx_
	FCZOrder zOrder;
	GetZOrder(zOrder, FDOZ_ON_ANY);
	// Z_xZkqqHx_iDeJiBfLiDfPiBfLiCkKiLpDiCmIiCoHiCmOjFjMiLeBiBeC_xHqqkZx_
	if (zOrder.IsEmpty()) return FALSE;
	FCZOrderIterator iObj;
	zOrder.Begin(iObj);
	mmrtFrame = (*iObj)->GetResizeFrame();
	for (iObj++; !iObj.IsEnd(); iObj++)
		mmrtFrame |= (*iObj)->GetResizeFrame();
	return TRUE;
} // CFCFoundDoc::GetObjectOuterFrame.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::CanDoOnObject
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDeKiDiMiDjDiDgHiDfGiBfLiDgHiCmMiOhHjCoIiCmMjFjEjFgJiCmJiOhHjCoIiCmMjBiAiNoMiCkKiCmFiCkLiCoJiCkJiCmHiCkEiCkJiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pObj	:_xZkqqHx_jFjEjFgJiCpAiOhHjCoIiBeC_xHqqkZx_
 *			wOperate:_xZkqqHx_jBiAiNoMiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iPgPjHiIiCoJiPoKiNiHiCmN_xHqqkZx_ TRUE_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.12.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCFoundDoc::CanDoOnObject (const FCObjDynabase* pObj, WORD wOperate) const
{
	//----- pObj _xZkqqHx_iCkKiBeB_xHqqkZx_wOperate_xZkqqHx_iCmIiDiMiDeDiDiEiBfLiCmJjBkOiClHiPoKiNiHiCmN_xHqqkZx_ TRUE -----
	// _xZkqqHx_iMlLiNnNiCmMiDfGiBfLiDgHiCmJiCkIiCkCiCmEjFjEjFgJiCkKjBkOiClHiCoJiDiMiDeDiDiEiBfLiCpAiOoGjDlOiBeC_xHqqkZx_
	DWORD dwLayerIdx = ObjDynabaseToLZOrder(pObj).dwLayerIdx;
	// _xZkqqHx_jFjEjFgJiCkKiMlLiNnNiCmMiDiMiDeDiDiEiBfLiCoGiCoIiPoDiCmMiDiMiDeDiDiEiBfLiCmJjBkOiClHiCoJiPoKiNiHiCmN_xHqqkZx_FALSE_xZkqqHx_iBeC_xHqqkZx_
	// dwLayerIdx = MAXDWORD_xZkqqHx_iCmMiPoKiNiHiBgJjFjEjFgJiCkKiDiMiDeDiDiEiBfLiCmJjBkOiClDiCmIiCkCiPoKiNiHiBgKiCoA_xHqqkZx_FALSE_xZkqqHx_iBeC_xHqqkZx_
	if (GetCurrentLayerIdx() < dwLayerIdx)
		return FALSE;
	// _xZkqqHx_jFjEjFgJiCkKjBkOiClHiCoJiDiMiDeDiDiEiBfLiCmMjBkOjAkLiCpAiOoGjDlOiBeC_xHqqkZx_
	WORD wFlag;
	GetCurrentSheet()->GetLayerInfo(NULL, &wFlag, dwLayerIdx);
	// _xZkqqHx_iOhHjCoIiCmMjBkOjAkLiCpAiOjNiCmBiCmEiCkCiCoJiPoKiNiHiCmN_xHqqkZx_TRUE_xZkqqHx_iBeC_xHqqkZx_
	return ((wFlag & wOperate) == wOperate);
} // CFCFoundDoc::CanDoOnObject.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::LinkManager
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiKiDjDiDeOiDhNiDgMiBfLiDfHiDiDiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDiKiDjDiDeOiDhNiDgMiBfLiDfHiDiDiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.05.14 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
FCLinkManager* CFCFoundDoc::LinkManager ()
{
	return m_pLinkManager;
} // CFCFoundDoc::LinkManager.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::LinkManager
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiKiDjDiDeOiDhNiDgMiBfLiDfHiDiDiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDiKiDjDiDeOiDhNiDgMiBfLiDfHiDiDiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.09.14 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
const FCLinkManager* CFCFoundDoc::LinkManager () const
{
	return m_pLinkManager;
} // CFCFoundDoc::LinkManager.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::SetLinkManager
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiKiDjDiDeOiDhNiDgMiBfLiDfHiDiDiBfLiCmJjAfGiClFiCkCiDeJiDhFiDfHiDeGiDeOiDgHiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	_xZkqqHx_jAfGiClFiCkCiDeJiDhFiDfHiDeGiDeOiDgHiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iMmDiCkCiDeJiDhFiDfHiDeGiDeOiDgHiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.12.04 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
FCLinkManager* CFCFoundDoc::SetLinkManager (FCLinkManager* pLmgr)
{
	FCLinkManager* pOldLmgr = m_pLinkManager;
	m_pLinkManager = pLmgr;
	return pOldLmgr;
} // CFCFoundDoc::SetLinkManager.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnCopy
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiCmMiDfCiDhDiBfLiDfCiDhNiDjDiDgIiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_Tool_xZkqqHx_iCmM_xHqqkZx_OnCopy_xZkqqHx_iCkJiCoH_xHqqkZx_
 *			_xZkqqHx_iMmEiCmOiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	vObj	:_xZkqqHx_iDfCiDhDiBfLiClHiCoJjFjEjFgJiCmMiDiKiDfIiDgHiCpAiOhHjCoIiBeC_xHqqkZx_
 *			pLinkMgr:vObj_xZkqqHx_iCmMjFjEjFgJiKnEiDiKiDjDiDeOiCpAjFnLjBlGiClHiCoJiDiKiDjDiDeOiDhNiDgMiBfLiDfHiDiDiCpAiOhHjCoIiBeC_xHqqkZx_
 *					 _xZkqqHx_jFhDjHhGiCmIiCoHiCmO_xHqqkZx_ NULL _xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iDfCiDhDiBfLiPiIjHjNiBgJ_xHqqkZx_CopyToClipboard_xZkqqHx_iKnGjAjEiBgKiCkJiCoHiCmNiBeB_xHqqkZx_CFCMolipDrawSrvrItem_xZkqqHx_iCmM_xHqqkZx_
 *			_xZkqqHx_iKgFiOoNiKnGjAjEiCkKiOmAiNhDiClDiCoKiCoJiBeCiClBiCoKiCmJjAoGiClOiCmBiCmEiBeBiImIiJlKiCmMiPiIjHjNiCpAiClFiCmEiCkIiCkNiBeC_xHqqkZx_
 *			_xZkqqHx_iBeFjBeJjBpAjCiGiCmMjFjEjFgJiCmMiCnNiCpAiDfCiDhDiBfLiClDiClJiCoJiClNiCnPiCmJiBeBiDgIiDeMiDiFiDiBiDjDiDgHiCmM_xHqqkZx_
 *			  _xZkqqHx_iDiMiDeDiDiEiBfLiDhNiDgMiBfLiDfHiDiDiCpAjBeJjBpAjCiGiCmMjFjEjFgJiCmGjDpMiCoKjBnGiCkGiCoJiBeC_xHqqkZx_
 *			_xZkqqHx_iBeF_xHqqkZx_COleDocument_xZkqqHx_iCkKiKmHjHjNiClHiCoJ_xHqqkZx_OLE_xZkqqHx_iDeBiDeDiDgFiDiAiCmMiCkEiClPiBeBiDfCiDhDiBfLiClDiCoKiCoJ_xHqqkZx_OLE_xZkqqHx_jFjEjFgJ_xHqqkZx_
 *			  _xZkqqHx_iCkKiOgHjHhAiClHiCoJjFkIiCmMiCnNiCpAiOgDiClFiCmEiBeBiKmHjHjNiDgFiBfLiDhFiDiLiCkJiCoHiPmBiLiOiClHiCoJiBeCjBoFiCkLiCmI_xHqqkZx_
 *			  OLE_xZkqqHx_iDeBiDeDiDgFiDiAiCkKiDfCiDhDiBfLiClDiCoKiCmEiDiBiDiCiDiKiCpAiIlDjEjHiClHiCoJiCmMiCpAjGgIiCkOiInHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	98.10.15 Fukushiro M. _xZkqqHx_iDfCiDiBiDjDiDgHiNoMjAkM_xHqqkZx_
 *			99.04.29 Fukushiro M. Copy_xZkqqHx_jClMjBePiCmMiDiMiDeDiDiEiBfLiDhNiDgMiBfLiDfHiDiDiCmMjDpMiCoKjBnGiCkGiPiIjHjNiCmGiBeB_xHqqkZx_
 *								OLE_xZkqqHx_iDeBiDeDiDgFiDiAiCmMjDpMiCoKjBnGiCkGiPiIjHjNiCpAjCmHiJmBiBeC_xHqqkZx_
 *			99.05.24 Fukushiro M. LinkID_xZkqqHx_iCmMjAkOjHjNiPiIjHjNiCpAjCmHiJmBiBeC_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OnCopy (const ObjDynabaseVector& vObj, const FCLinkManager* pLinkMgr)
{
	// _xZkqqHx_iDfGiBfLiDgHiDhNiDgMiBfLiDfHiDiDiCpAiBeBjBeJjBpAjCiGiCmMjFjEjFgJiCmMiCnNiCmJjChFiCkLiKlHiCkGiCoJiBeC_xHqqkZx_
	FCSheetManager sheetManager;
	sheetManager.GetFrontSheet()->AppendToLZOrder(vObj);
	FCSheetManager* pSMOrig = SetSheetManager(&sheetManager);
	// _xZkqqHx_iDiKiDjDiDeOiDgFiBfLiDhFiDiLiCkJiCoHiBeBjBeJjBpAjCiGjFjEjFgJiCmJiKnGiCoNiCoJiDiKiDjDiDeOiCmMiCnNiDfEiDhFiDgFiBfLiDhFiDiLiCnGiDfCiDhDiBfLiBeC_xHqqkZx_
	FCLinkManager lnkMgr;
	if (pLinkMgr != NULL)
		FCLinkManager::CopyToSubTable(&lnkMgr, pLinkMgr, vObj);
	// _xZkqqHx_iDiKiDjDiDeOiDhNiDgMiBfLiDfHiDiDiCpAiMpAiKlHiBeC_xHqqkZx_
	FCLinkManager* pLnkMgrBack = SetLinkManager(&lnkMgr);
//----- 06.10.03 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ (_xZkqqHx_iDfCiDhDiBfLiOjOiCmJjEhHiMgJjAhNiCpAjFeLjHhGiNmFiPkMiMmAiCmJiCmGiCmHiCnPiCoJ_xHqqkZx_)-----
	// _xZkqqHx_jEhHiMgJjAhNiCkKjBlNiCkNjDgPjIfOiClDiCoKiCmEiCkCiCoJiCmGiBeBiDfCiDhDiBfLiCkKjChIiCkNiCmIiCoJiBeC_xHqqkZx_
	// _xZkqqHx_iDfCiDhDiBfLiCmFjEhHiMgJjAhNiCpAiKnMiCnOjBfDiCmEiCmMiKmCiLkLiCpAjFnLjBlGiClHiCoJiClNiCnPiBeC_xHqqkZx_
	// _xZkqqHx_jFnLjBlGiClDiCoKiCoJiKmCiLkLiCpAjFeLjHhGiNmFjCoBiMmAiCmIiCoAiCmMiCmJiNgJiCoKiCmOjBkMiCkNiCmIiCoJiCkKiBeB_xHqqkZx_
	// OLE_xZkqqHx_iCmF_xHqqkZx_WORD_xZkqqHx_jDjJiCmJjDfMiCoIjFhEiCkPiClNiOjOiCmIiCmHiCmNiBeBiMoDiBfIiCmMjFnCiPfHiCkKjFhDjFnGiCmJiCmIiCoJiBeC_xHqqkZx_
	// _xZkqqHx_iBgJiDgAiDgCiDhGiCoCjGoOiIpDiCkKiPmBiCkGiCmEiClFiCnMiCkEiClNiCnPiBgK_xHqqkZx_
	// _xZkqqHx_iClBiCmMiClNiCnPiBeBjEhHiMgJjAhNiCmMiCnNiCpAiNgJiNjOiCnNiBeBjBlMiCmNiClLiCmMiCnMiCnMjFnLjBlGiClDiClJiCoJiBeC_xHqqkZx_
	// _xZkqqHx_iDgAiDgCiDhGiCoCjGoOiIpDiCmJjEhHiMgJjAhNiCkKiOgHiCoNiCoKiCmEiCoJiPoKiNiHiCmNiBeBiClLiCmMjAhNiCoA_xHqqkZx_
	// _xZkqqHx_jFnLjBlGiClDiCoKiCoJiCkKiBeBiCkIiClLiCoHiCkNjBoFiCkLiCmIjAhNiCkKiOgHiCoNiCoKiCoJiClBiCmGiCmNjGlDiCkCiBeC_xHqqkZx_

	// _xZkqqHx_iMlLiNnNjDgPjIfOiClDiCoKiCmEiCkCiCoJjEhHiMgJjAhNiCmM_xHqqkZx_ID_xZkqqHx_iIoKjHjHiCpAiOoGjDlOiBeC_xHqqkZx_
	const FDEmfImageIDVector vEmfImageIdOrig = g_pEnv->GetFreqEmfImageVector();
	mdef_const_iterator(FDEmfImageIDVector, iPa);
	FDEmfImageIDVector vEmfImageIdNew;
	m1_for (iPa, vEmfImageIdOrig)
	//----- _xZkqqHx_jEhHiMgJjAhNiIoKjHjHiCpAiDiLiBfLiDhG_xHqqkZx_ -----
	{
		// _xZkqqHx_iNoNiPjMiCmFiCkLiCmIiCkCjEhHiMgJjAhNiCmMiCnNiBeB_xHqqkZx_vEmfImageIdNew_xZkqqHx_iCmJjDgPjIfOiBeC_xHqqkZx_
		if (!CanDeleteEmfImage(*iPa))
			vEmfImageIdNew.push_back(*iPa);
	}
	// _xZkqqHx_jEhHiMgJjAhNiCmM_xHqqkZx_ID_xZkqqHx_iIoKjHjHiCpAjFmPiNfIiBeCjFnLjBlGiClDiCoKiCoJjEhHiMgJjAhNiCkKiMmAjCoIiClDiCoKiCoJiBeC_xHqqkZx_
	g_pEnv->SetFreqEmfImageVector(vEmfImageIdNew);
//----- 06.10.03 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ (_xZkqqHx_iDfCiDhDiBfLiOjOiCmJjEhHiMgJjAhNiCpAjFeLjHhGiNmFiPkMiMmAiCmJiCmGiCmHiCnPiCoJ_xHqqkZx_)-----

	// pItem_xZkqqHx_iCmNiJpAjFpKiClHiCoJjFeLjHhGiCkKiCmIiCkCiClBiCmGiCmJjCiNiInDiBeC_xHqqkZx_
	CFCMolipDrawSrvrItem* pItem = GetEmbeddedItem();
	// _xZkqqHx_iDfCiDhDiBfLiPiIjHjNiBeC_xHqqkZx_CFCMolipDrawSrvrItem::XXX_xZkqqHx_iCkKiMmEiCmOiCoKiCoJiBeC_xHqqkZx_
	pItem->CopyToClipboard(TRUE);

//----- 06.10.03 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ (_xZkqqHx_iDfCiDhDiBfLiOjOiCmJjEhHiMgJjAhNiCpAjFeLjHhGiNmFiPkMiMmAiCmJiCmGiCmHiCnPiCoJ_xHqqkZx_)-----
	// _xZkqqHx_jEhHiMgJjAhNiCmM_xHqqkZx_ID_xZkqqHx_iIoKjHjHiCpAjFjMiMlDiBeC_xHqqkZx_
	g_pEnv->SetFreqEmfImageVector(vEmfImageIdOrig);
//----- 06.10.03 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ (_xZkqqHx_iDfCiDhDiBfLiOjOiCmJjEhHiMgJjAhNiCpAjFeLjHhGiNmFiPkMiMmAiCmJiCmGiCmHiCnPiCoJ_xHqqkZx_)-----

	// _xZkqqHx_jBnOjEpAiClFiCmEiCkCiClNiDiKiDjDiDeOiDhNiDgMiBfLiDfHiDiDiCpAjFjMiLeBiBeC_xHqqkZx_
	SetLinkManager(pLnkMgrBack);
	// _xZkqqHx_jBnCjEpAiClFiCmEiCkCiClNiDfGiBfLiDgHiDhNiDgMiBfLiDfHiDiDiCpAjFjMiLeBiBeC_xHqqkZx_
	(void)SetSheetManager(pSMOrig);

//----- 05.07.09 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	if (vObj.size() == 1)
	//----- _xZkqqHx_jFjEjFgJiCkKiIoKiCmCiClFiCkJiCmIiCkCiPoKiNiH_xHqqkZx_ -----
	{
		if (vObj[0]->IsKindOf(FDOJ_FIGURE))
		//----- ObjFigure_xZkqqHx_iCmMiDfEiDhFiDeOiDiJiDfIiCmMiPoKiNiH_xHqqkZx_ -----
		{
			// _xZkqqHx_iBhFjFjEjFgJiCmMjBkOjAkLiCpAjDfMiCoIjFhEiCkPiBhGiCkKiCmFiCkLiCoJiCoGiCkEiBeB_xHqqkZx_g_cfObjFigure_xZkqqHx_iCpAjDgPjIfOiBeC_xHqqkZx_
			if (::OpenClipboard(NULL))
			{
				SetClipboardData(g_cfObjFigure, NULL);
				::CloseClipboard();
			}
		}
//----- 06.11.16 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
		// _xZkqqHx_iDhGiDiMiBfLiDjDiDgFiDeMiDfIiDgHiCpAiDfCiDhDiBfLiBeC_xHqqkZx_
		vObj[0]->CopyPlainText();
//----- 06.11.16 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
	}
//----- 05.07.09 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
} // CFCFoundDoc::OnCopy.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::CanPaste
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jDfMiCoIjFhEiCkPiJmCjEfMiCkJiCmHiCkEiCkJiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iJmCjEfMiCmMiPoKiNiHiCmN_xHqqkZx_ TRUE_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.08.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCFoundDoc::CanPaste () const
{
	// Molip Draw_xZkqqHx_iDgGiBfLiDfOiCmIiCoH_xHqqkZx_TRUE_xZkqqHx_iBeC_xHqqkZx_
	if (IsClipboardFormatAvailable(g_cfDDFile)) return TRUE;
//----- 01.04.12 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	// Embedded_xZkqqHx_iDgGiBfLiDfOjFhDiJmCiCmIiCoHiCmOiBeBjFhDiJmCiBeC_xHqqkZx_
//	if (!CanDoPasteEmbedded()) return FALSE;
//----- 01.04.12 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	// OLE_xZkqqHx_jDfMiCoIjFhEiCkPjFhDiJmCiCmIiCoHiCmOiBeBjFhDiJmCiBeC_xHqqkZx_
	for (long lC = 0; GetForbiddenObject(lC) != FDOJ_NONE; lC++)
		if (GetForbiddenObject(lC) == FDOJ_OLE) return FALSE;
//----- 01.04.12 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
	// OleClientItem_xZkqqHx_iCmMiKnGjAjEiCmFjClCiCnHiCoJiBeC_xHqqkZx_
	return COleClientItem::CanPaste();
} // CFCFoundDoc::CanPaste.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnPaste
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiCmMiDhJiBfLiDfIiDgHiDfCiDhNiDjDiDgIiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_Tool_xZkqqHx_iCmM_xHqqkZx_OnPaste_xZkqqHx_iCkJiCoH_xHqqkZx_
 *			_xZkqqHx_iMmEiCmOiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	vNewObj	:_xZkqqHx_jAfGiLeLiCmJiNoMjAkMiClDiCoKiClNjFjEjFgJiCpAjFnEiClHiBeC_xHqqkZx_
 *			bAsLink	:_xZkqqHx_iDiKiDjDiDeOjDfMiCoIjFhEiCkPiCkJiCmHiCkEiCkJiOhHjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jCiNiInD_xHqqkZx_>	_xZkqqHx_jDoAjFjEiCmFiDfCiDhNiDjDiDgIiCpAjEkNiNhDiClHiCoJiBeCiDfKiDgCiDfGiDiHiDjDiCmNiKePjFjEiCmFiKeKiOgOiClHiCoJiClBiCmGiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	98.10.15 Fukushiro M. _xZkqqHx_iDfCiDiBiDjDiDgHiNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OnPaste (ObjDynabaseVector& vNewObj, BOOL bAsLink)
{
	ASSERT_VALID(this);
	if (!CanPaste()) return;

	BeginWaitCursor();
	COleDataObject oleDataObject;
	oleDataObject.AttachClipboard();
	if (oleDataObject.IsDataAvailable(g_cfDDFile))
	{
		// _xZkqqHx_jDoAjFjEiDgGiBfLiDfOiCmMiDhJiBfLiDfIiDgHiBeCjDoAjFjEiCmFiDfCiDhNiDjDiDgIjEkNiNhDiBeC_xHqqkZx_
		DoPasteNative(&oleDataObject, vNewObj);
	} else
	{
		// _xZkqqHx_iKePjFjEiDgGiBfLiDfOiCmMiDhJiBfLiDfIiDgHiBeCjDoAjFjEiCmFiDfCiDhNiDjDiDgIjEkNiNhDiBeC_xHqqkZx_
		DoPasteEmbedded(&oleDataObject, vNewObj, bAsLink);
	}
	EndWaitCursor();
} // CFCFoundDoc::OnPaste.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::CanPasteSpec
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iOhHjCoIiCmMiDgGiBfLiDfOiCkKjDfMiCoIjFhEiCkPiJmCjEfMiCkJiCmHiCkEiCkJiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	dwFormat:_xZkqqHx_iDgGiBfLiDfOiMgAiOkOiCpAiOhHjCoIiBeCiMgAiOkOiCpAjDmBjCoIiClFiCmIiCkCiPoKiNiHiCmNiCePiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iJmCjEfMiCmMiPoKiNiHiCmN_xHqqkZx_ TRUE_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.08.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCFoundDoc::CanPasteSpec (UINT dwFormat) const
{
	if (dwFormat == 0)
	//----- _xZkqqHx_iMgAiOkOiCpAjDmBjCoIiClFiCmIiCkCiPoKiNiH_xHqqkZx_ -----
	{
//----- 06.03.27 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//		return (IsClipboardFormatAvailable(CF_ENHMETAFILE) ||
//				IsClipboardFormatAvailable(CF_METAFILEPICT) ||
//				IsClipboardFormatAvailable(g_cfRTF) ||
//				IsClipboardFormatAvailable(CF_UNICODETEXT) ||
//				IsClipboardFormatAvailable(CF_TEXT) ||
//				IsClipboardFormatAvailable(g_cfEmbeddedObject) ||
//				IsClipboardFormatAvailable(g_cfEmbedSource));
//----- 06.03.27 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
		// DIB_xZkqqHx_iCmG_xHqqkZx_BITMAP_xZkqqHx_iCmNiBeBjDfMiCoIjFhEiCkPiCmFiCkLiCmIiCkCiCoGiCkEiCmJiClFiCmEiCkCiClNiCkKiBeB_xHqqkZx_
		// DD3_xZkqqHx_iCmGiCmMiMnNiKlHjAkLiCpAjFnLiCmCiClNiCnPiBeBjBgHiCnNiNjOiCpBiClOiBeC_xHqqkZx_
		// _xZkqqHx_iClLiCoKiCmJ_xHqqkZx_ DIB,BITMAP_xZkqqHx_iCmN_xHqqkZx_ COleClientItem::CanPaste() _xZkqqHx_iCkK_xHqqkZx_ TRUE _xZkqqHx_iCpA_xHqqkZx_
		// _xZkqqHx_jFnEiClHiBeC_xHqqkZx_

		// _xZkqqHx_iDiKiDjDiDeOjDfMiCoIjFhEiCkPiCmNiLnGiClGiCoJiBeC_xHqqkZx_
		// _xZkqqHx_iDiKiDjDiDeOjDfMiCoIjFhEiCkPiCmJiClHiCoJiCmGiBeB_xHqqkZx_DD4_xZkqqHx_jFnCiPfHjCiGiCmJjBlMiCmMiDeBiDhGiDiKiCmF_xHqqkZx_OLE_xZkqqHx_iDgGiBfLiDfOiCmM_xHqqkZx_
		// _xZkqqHx_jFnCiPfHiCkKjDkPiOjOiCmJiCmFiCkLiCmEiClFiCnMiCkEiBeC_xHqqkZx_
		// _xZkqqHx_iClBiCmMiClNiCnPiBeB_xHqqkZx_DD4_xZkqqHx_iDhEiDeAiDeDiDiLiPeJjHlJiOjOiCmJiCoAiBeB_xHqqkZx_OLE_xZkqqHx_iDgGiBfLiDfOjFnCiPfHiPpDjBnEiCkKiInLiOjNiClDiCoKiCmE_xHqqkZx_
		// ~FCObjOle_xZkqqHx_iCmFiDeHiDiJiBfLiCkKjEkNjAlGiClHiCoJiBeC_xHqqkZx_
		// Undo_xZkqqHx_iCoAiCkEiCnMiCkNiNhDiCkJiCmIiCkNiCmIiCoJiBeC_xHqqkZx_
		// _xZkqqHx_iCnMiClNiBeBjHjKjHpAjFlGiPjBiCmMiBeBjFnCiPfHiLeMjIfOiCpAjBfDiCmEiOgDiClHiBeBiCmGiCkCiCkEiKfEjEePiCkJiCoHiKePiCoKiCmEiClFiCnMiCkEiBeC_xHqqkZx_
		// _xZkqqHx_iDhEiDeAiDeDiDiLjDfMiCoIjFhEiCkPiCoAjDkPjHgMiBeC_xHqqkZx_

		return (IsClipboardFormatAvailable(CF_ENHMETAFILE) ||
				IsClipboardFormatAvailable(CF_METAFILEPICT) ||
//----- 06.03.31 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
				IsClipboardFormatAvailable(g_cfDDText) ||
//----- 06.03.31 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
				IsClipboardFormatAvailable(g_cfRTF) ||
				IsClipboardFormatAvailable(CF_UNICODETEXT) ||
				IsClipboardFormatAvailable(CF_TEXT) ||
				IsClipboardFormatAvailable(g_cfEmbeddedObject) ||
				IsClipboardFormatAvailable(g_cfEmbedSource) ||
				IsClipboardFormatAvailable(CF_DIB) ||
				IsClipboardFormatAvailable(CF_BITMAP));
//----- 06.03.27 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
	} else
	//----- _xZkqqHx_iMgAiOkOiCpAjDmBjCoIiClHiCoJiPoKiNiH_xHqqkZx_ -----
	{
		if (dwFormat == g_cfCsvUnicodeText)	// CSV Unicode_xZkqqHx_iDgFiDeMiDfIiDgHiBgJ_xHqqkZx_Paste_xZkqqHx_iOjOiCmMiOkPjFmKiCmJiCmMiCnNiOgHjHhAiBgK_xHqqkZx_
			return IsClipboardFormatAvailable(CF_UNICODETEXT);
		if (dwFormat == g_cfCsvText)		// CSV_xZkqqHx_iDgFiDeMiDfIiDgHiBgJ_xHqqkZx_Paste_xZkqqHx_iOjOiCmMiOkPjFmKiCmJiCmMiCnNiOgHjHhAiBgK_xHqqkZx_
			return IsClipboardFormatAvailable(CF_TEXT);
		if (dwFormat == CF_ENHMETAFILE ||
			dwFormat == CF_METAFILEPICT ||
//----- 06.03.31 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
			dwFormat == g_cfDDText ||
//----- 06.03.31 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
			dwFormat == g_cfRTF ||
			dwFormat == CF_UNICODETEXT ||
			dwFormat == CF_TEXT ||
			dwFormat == g_cfEmbeddedObject ||
			dwFormat == g_cfEmbedSource ||
//----- 06.03.27 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
			dwFormat == CF_DIB ||
			dwFormat == CF_BITMAP)
//----- 06.03.27 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
			return IsClipboardFormatAvailable(dwFormat);
	}
	return FALSE;
} // CFCFoundDoc::CanPasteSpec.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnPasteSpec
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iOhHjCoIiClDiCoKiClNiDgGiBfLiDfOiMgAiOkOiCmFiBeBiDeOiDiKiDgCiDhGiDhLiBfLiDgIiDgGiBfLiDfOiCpAjDfMiCoIjFhEiCkPiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	dwFormat	:_xZkqqHx_iDgGiBfLiDfOiMgAiOkOiBeC_xHqqkZx_
 *			vNewObj		:_xZkqqHx_jDfMiCoIjFhEiCkPiClNjFjEjFgJiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.04.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OnPasteSpec (UINT dwFormat, ObjDynabaseVector& vNewObj)
{
	// _xZkqqHx_iDhJiBfLiDfIiDgHjFhDiJmCiCmIiCoHjFjMiLeBiBeC_xHqqkZx_
	if (!CanPasteSpec(dwFormat)) return;
	if (dwFormat == 0)
	//----- _xZkqqHx_iMgAiOkOiCpAjDmBjCoIiClFiCmIiCkCiPoKiNiH_xHqqkZx_ -----
	{
		if (IsClipboardFormatAvailable(g_cfEmbeddedObject))
			OnPaste(vNewObj, FALSE);
		else
		if (IsClipboardFormatAvailable(g_cfEmbedSource))
			OnPaste(vNewObj, FALSE);
//----- 05.07.12 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//		else
//		if (IsClipboardFormatAvailable(g_cfLinkSource))
//			OnPaste(vNewObj, TRUE);
//----- 05.07.12 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
		else
		if (IsClipboardFormatAvailable(CF_ENHMETAFILE))
			DoPasteEmf(vNewObj);
		else
//----- 06.03.31 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
		if (IsClipboardFormatAvailable(g_cfDDText))
			DoPasteText(vNewObj, g_cfDDText);
		else
//----- 06.03.31 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
		if (IsClipboardFormatAvailable(g_cfRTF))
			DoPasteText(vNewObj, g_cfRTF);
		else
		if (IsClipboardFormatAvailable(CF_UNICODETEXT))
			DoPasteText(vNewObj, CF_UNICODETEXT);
		else
		if (IsClipboardFormatAvailable(CF_TEXT))
			DoPasteText(vNewObj, CF_TEXT);
//----- 06.03.27 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
		else
		if (IsClipboardFormatAvailable(CF_DIB))
			OnPaste(vNewObj, FALSE);
		else
		if (IsClipboardFormatAvailable(CF_BITMAP))
			OnPaste(vNewObj, FALSE);
//----- 06.03.27 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
	} else
	//----- _xZkqqHx_iMgAiOkOiCpAjDmBjCoIiClHiCoJiPoKiNiH_xHqqkZx_ -----
	{
		if (dwFormat == g_cfEmbeddedObject)
			OnPaste(vNewObj, FALSE);
		else
		if (dwFormat == g_cfEmbedSource)
			OnPaste(vNewObj, FALSE);
//----- 05.07.12 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//		else
//		if (dwFormat == g_cfLinkSource)
//			OnPaste(vNewObj, TRUE);
//----- 05.07.12 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
		else
		if (dwFormat == CF_ENHMETAFILE)
			DoPasteEmf(vNewObj);
		else
		if (dwFormat == CF_METAFILEPICT)
			DoPasteEmf(vNewObj);
		else
//----- 06.03.31 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
		if (dwFormat == g_cfDDText)
			DoPasteText(vNewObj, g_cfDDText);
		else
//----- 06.03.31 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
		if (dwFormat == g_cfRTF)
			DoPasteText(vNewObj, dwFormat);
		else
		if (dwFormat == CF_UNICODETEXT)
			DoPasteText(vNewObj, dwFormat);
		else
		if (dwFormat == CF_TEXT)
			DoPasteText(vNewObj, dwFormat);
		else
		if (dwFormat == g_cfCsvUnicodeText)
			DoPasteCsv(vNewObj);
		else
		if (dwFormat == g_cfCsvText)
			DoPasteCsv(vNewObj);
//----- 06.03.27 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
		else
		if (dwFormat == CF_DIB)
			OnPaste(vNewObj, FALSE);
		else
		if (dwFormat == CF_BITMAP)
			OnPaste(vNewObj, FALSE);
//----- 06.03.27 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
	}
} // CFCFoundDoc::OnPasteSpec.

//----- 06.11.21 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::CanPasteOverAs
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	OnPasteOverAs _xZkqqHx_iCkKiJmCjEfMiCkJiCmHiCkEiCkJjClCiCnHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	vObj	:_xZkqqHx_jBkOjAkLiCpAjFmPiNfIiClHiCoJjFjEjFgJiCpAiOhHjCoIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iJmCjEfMiCmIiPoKiNiHiCmN_xHqqkZx_TRUE_xZkqqHx_iBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.07.12 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//BOOL CFCFoundDoc::CanPasteOverAs (const ObjDynabaseVector& vObj) const
//{
////----- 06.11.16 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
//	if (!IsClipboardFormatAvailable(g_cfObjFigure) &&
//		!IsClipboardFormatAvailable(g_cfRTF) &&
//		!IsClipboardFormatAvailable(CF_UNICODETEXT) &&
//		!IsClipboardFormatAvailable(CF_TEXT))
//		return FALSE;
////----- 06.11.16 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
//	ObjDynabaseVector::const_iterator iObj;
////----- 06.11.16 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
////	for (iObj = vObj.begin(); iObj != vObj.end(); iObj++)
////		if (!(*iObj)->IsKindOf(FDOJ_FIGURE)) return FALSE;
////----- 06.11.16 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
//	for (iObj = vObj.begin(); iObj != vObj.end(); iObj++)
//		if (!(*iObj)->IsKindOf(FDOJ_FIGURE) &&
//			!(*iObj)->IsKindOf(FDOJ_TABLE)) return FALSE;
////----- 06.11.16 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
//	return TRUE;
//} // CFCFoundDoc::CanPasteOverAs.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnPasteOverAs
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iOhHjCoIiClDiCoKiClNjBkOjAkLiCpAiBeBiOhHjCoIiClDiCoKiClNjFjEjFgJiCmJiPoDiPjBiCkLiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	vObj			:_xZkqqHx_jBkOjAkLiCpAjFmPiNfIiClHiCoJjFjEjFgJiCpAiOhHjCoIiBeC_xHqqkZx_
// *			bIsCopyText		:_xZkqqHx_iDgFiDeMiDfIiDgHjBkOjAkLiCpAiDfCiDhDiBfLiClHiCoJiCkJiOhHjCoIiBeC_xHqqkZx_
// *			bIsCopyPen		:_xZkqqHx_iDhJiDjDjBkOjAkLiCpAiDfCiDhDiBfLiClHiCoJiCkJiOhHjCoIiBeC_xHqqkZx_
// *			bIsCopyBrush	:_xZkqqHx_iDhFiDiJiDfGjBkOjAkLiCpAiDfCiDhDiBfLiClHiCoJiCkJiOhHjCoIiBeC_xHqqkZx_
// *			bIsCopyEmfImage	:EMF_xZkqqHx_jBkOjAkLiCpAiDfCiDhDiBfLiClHiCoJiCkJiOhHjCoIiBeC_xHqqkZx_
// *			bIsCopyArrow	:_xZkqqHx_jGoOiIpDjBkOjAkLiCpAiDfCiDhDiBfLiClHiCoJiCkJiOhHjCoIiBeC_xHqqkZx_
// *			bIsCopySize		:_xZkqqHx_iDfEiDeDiDfJjBkOjAkLiCpAiDfCiDhDiBfLiClHiCoJiCkJiOhHjCoIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.07.12 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCFoundDoc::OnPasteOverAs (	const ObjDynabaseVector& vObj,
////----- 06.11.17 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
////									BOOL bIsCopyText,
////									BOOL bIsCopyPen,
////									BOOL bIsCopyBrush,
////									BOOL bIsCopyEmfImage,
////									BOOL bIsCopyArrow,
////									BOOL bIsCopySize)
////----- 06.11.17 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
//									DWORD dwPasteAttr)
////----- 06.11.17 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
//{
////----- 06.11.17 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
////	if (!CanPasteOverAs(vObj)) return;
////
////	COleDataObject oleDataObject;
////	oleDataObject.AttachClipboard();
////
////	// get file refering to clipboard data
////	CFile* pFile = oleDataObject.GetFileData(g_cfDDFile);
////	if (pFile == NULL) return;
////
////	// connect the file to the archive and read the contents
////	FCUndoArchive ar(pFile, FD_ARCHIVE_LOAD);
////	ar.SetDocument(this);	// for COleClientItem serialize.
////
////	// InStream_xZkqqHx_iCmJjEpFiCkGiCmE_xHqqkZx_ID_xZkqqHx_iDgFiBfLiDhFiDiLiCpAiMpAiKlHiBeC_xHqqkZx_
////	FCObjIDTbl idtable;
////	DWORDSet stObjLabel;
////	// _xZkqqHx_jFjEjFgJ_xHqqkZx_ID_xZkqqHx_iDgFiBfLiDhFiDiLiCpAiBeBiDiKiDfFiBfLiDhF_xHqqkZx_ID_xZkqqHx_iCpAjGiEiCnPiCmEiPiJiKpKiJlLiBeC_xHqqkZx_
////	CFCFoundDoc::InitObjIdTblByReservedId(idtable);
////	FC2Fold<FCObjIDTbl*, DWORDSet*> oitpBackup = SetObjIDTbl(&idtable, &stObjLabel);
////	// InStream_xZkqqHx_iCmJjEpFiCkGiCmEiDfGiBfLiDgHiDhNiDgMiBfLiDfHiDiDiCpAiMpAiKlHiBeC_xHqqkZx_
////	FCSheetManager sheetManager;
////	FCSheetManager* pSMOrig = SetSheetManager(&sheetManager);
////	// _xZkqqHx_iKmCiLkLiDeOiDiJiDfIiBeCiDgGiBfLiDfOiCmMiJlMjDmHiCnNiNjOiCnNiCmJiOgHjHhAiBeC_xHqqkZx_
////	FCEnv envSub;
////	FCConvEnv convEnv(&envSub);
////	//----- _xZkqqHx_iDgGiBfLiDfOiCpAjDmHiCnNiNjOiCnO_xHqqkZx_ -----
////	// _xZkqqHx_iDhHiDgCiDfPiCpAiDfIiDeMiDgCiDhGiClHiCoJiBeC_xHqqkZx_
////	FCHeaderInf().InStream(ar);
////	long lDocPropertySize;
////	// _xZkqqHx_jFlGiPjBiDhGiDiNiDhAiDgFiDeCiCpAiDfIiDeMiDgCiDhGiClHiCoJiBeC_xHqqkZx_
////	ar >> lDocPropertySize;
////	ar.Skip(lDocPropertySize);
////	// _xZkqqHx_iDhGiDiKiDjDiDfOiPoOjFpBjDjJiCpAiDfIiDeMiDgCiDhGiClHiCoJiBeC_xHqqkZx_
////	CFCMolipDrawApp::SkipStream(ar);
////	// _xZkqqHx_iKmCiLkLiPoOjFpBiCpAiDfEiDhFiKmCiLkLiCmJjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
////	envSub.InStream(ar);
////	// _xZkqqHx_iDgDiBfLiDiLjAnNjCoIiPoOjFpBiCpAiDfIiDeMiDgCiDhGiClHiCoJiBeC_xHqqkZx_
////	FCToolManager::SkipStream(ar);
////	// ID_xZkqqHx_iDgFiBfLiDhFiDiLiCmJjFjEjFgJiCpAjDmHiNjOiCnOiBeC_xHqqkZx_
////	SheetManager()->InStream(ar);
////	ar.Close();
////	delete pFile;
////
////	// _xZkqqHx_jBnCjEpAiClFiCmEiCkCiClNiDfGiBfLiDgHiDhNiDgMiBfLiDfHiDiDiCpAjFjMiLeBiBeC_xHqqkZx_
////	(void)SetSheetManager(pSMOrig);
////	// vObj_xZkqqHx_iCmJiChJiDeJiBfLiDfPiBfLiCpAiDfCiDhDiBfLiBeC_xHqqkZx_
////	ObjDynabaseVector vNewObj;
////	sheetManager.GetFrontSheet()->GetZOrder(vNewObj, FDOZ_ON_ANY);
////	// _xZkqqHx_jBnOjEpAiClFiCmEiCkCiClN_xHqqkZx_ID_xZkqqHx_iDgFiBfLiDhFiDiLiCpAjGnPiClHiBeC_xHqqkZx_
////	SetObjIDTbl(oitpBackup.first, oitpBackup.second);
////
////	// _xZkqqHx_jFjEjFgJiCmMjAjEiCmNiCfAiBeB_xHqqkZx_FCObjFigure_xZkqqHx_iDfEiDhFiDeOiDiJiDfIiCmFiCmIiCkPiCoKiCmOiCmIiCoHiCmIiCkCiBeC_xHqqkZx_
////	if (vNewObj.size() != 1 ||
////		!vNewObj[0]->IsKindOf(FDOJ_FIGURE))
////		FFThrowMiscUnknown();
////
////	FCObjFigure* pFig = (FCObjFigure*)vNewObj[0];
////	FCObjRect objRect;
////
////	if (bIsCopyText)
////	//----- _xZkqqHx_iDgFiDeMiDfIiDgHjBkOjAkLiCpAiDfCiDhDiBfLiClHiCoJiPoKiNiH_xHqqkZx_ -----
////	{
////		objRect.SetRichText(pFig->SetRichText(NULL));
////	}
////	if (bIsCopyPen)
////	//----- _xZkqqHx_iDhJiDjDjBkOjAkLiCpAiDfCiDhDiBfLiClHiCoJiPoKiNiH_xHqqkZx_ -----
////	{
////		BYTEVector vStream;
////		pFig->OutStreamPen(vStream);
////		const BYTE* pStream = vStream.begin();
////		objRect.InStreamPen(pStream);
////	}
////	if (bIsCopyBrush)
////	//----- _xZkqqHx_iDhFiDiJiDfGjBkOjAkLiCpAiDfCiDhDiBfLiClHiCoJiPoKiNiH_xHqqkZx_ -----
////	{
////		BYTEVector vStream;
////		pFig->OutStreamBrush(vStream);
////		const BYTE* pStream = vStream.begin();
////		objRect.InStreamBrush(pStream);
////	}
////	if (bIsCopyEmfImage)
////	//----- EMF_xZkqqHx_jBkOjAkLiCpAiDfCiDhDiBfLiClHiCoJiPoKiNiH_xHqqkZx_ -----
////	{
////		BYTEVector vStream;
////		pFig->OutStreamEmf(vStream);
////		const BYTE* pStream = vStream.begin();
////		objRect.InStreamEmf(pStream);
////	}
////	if (bIsCopyArrow)
////	//----- _xZkqqHx_jGoOiIpDjBkOjAkLiCpAiDfCiDhDiBfLiClHiCoJiPoKiNiH_xHqqkZx_ -----
////	{
////		BYTEVector vStream;
////		pFig->OutStreamArrow(vStream);
////		const BYTE* pStream = vStream.begin();
////		objRect.InStreamArrow(pStream);
////	}
////	if (bIsCopySize)
////	//----- _xZkqqHx_iDfEiDeDiDfJjBkOjAkLiCpAiDfCiDhDiBfLiClHiCoJiPoKiNiH_xHqqkZx_ -----
////	{
////		objRect.Resize(TRUE, TRUE, pFig->GetResizeFrame(), objRect.GetResizeFrame());
////	}
////	// _xZkqqHx_jDfMiCoIjFhEiCkPiClNjFjEjFgJiCpAiNoNiPjMiClHiCoJiBeC_xHqqkZx_
////	sheetManager.DeleteAll();
////
//////----- 06.03.17 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
////	// _xZkqqHx_jFmPiNfIjBePjFjEjFgJiCpAiDiKiBfLiDfHiDiHiDjDiCmJjCmHiJmBiClHiCoJiBeC_xHqqkZx_
////	g_pView->AppendToLastRgn(vObj);
//////----- 06.03.17 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
////
////	// _xZkqqHx_iDfKiDgCiDfGiDiHiDjDiCpAiKeKiOgOiClHiCoJiBeC_xHqqkZx_
////	SessionBegin();
////	// _xZkqqHx_jDgPjIfOjAeGiBeBjFjEjFgJ_xHqqkZx_ID_xZkqqHx_iCmIiCmHiBeBjFjEjFgJiCmMjBkOjAkLjCiGiCmJiLeMjIfOiClDiCoKiClN_xHqqkZx_ID_xZkqqHx_iCpAjFmPiKlHiClHiCoJiBeC_xHqqkZx_
////	// _xZkqqHx_jFjEjFgJiCmMiKmCiLkLjBkOjAkLiCpA_xHqqkZx_"_xZkqqHx_iDfEiDhFiKmCiLkL_xHqqkZx_ID<->_xZkqqHx_iKmCiLkL_xHqqkZx_ID"_xZkqqHx_jFmPiKlHiBeCjDoAjFjEiCmFiDfCiDhNiDjDiDgIjEkNiNhDiCmJjCiNiInDiBeC_xHqqkZx_
////	objRect.ConvertEnvProp(&convEnv);
////
////	ObjDynabaseVector::const_iterator iObj;
////	if (bIsCopyText)
////	//----- _xZkqqHx_iDgFiDeMiDfIiDgHjBkOjAkLiCpAiDfCiDhDiBfLiClHiCoJiPoKiNiH_xHqqkZx_ -----
////	{
////		for (iObj = vObj.begin(); iObj != vObj.end(); iObj++)
////		{
////			if ((*iObj)->GetRichText() != NULL)
////				CmdDelete1RichText((FCObjFigure*)*iObj);
////			if (objRect.GetRichText() != NULL)
////			//----- _xZkqqHx_iDfCiDhDiBfLiMlDiCmJiDgFiDeMiDfIiDgHiCkKiCkAiCoJiPoKiNiH_xHqqkZx_ -----
////			{
////				FCRichText* pNewText = new FCRichText();
////				objRect.GetRichText()->Copy(pNewText);
////				pNewText->CalcTextLayout(NULL, *iObj);
////				CmdCreate1RichText((FCObjFigure*)*iObj, pNewText);
////			}
////		}
////	}
////	if (bIsCopyPen)
////	//----- _xZkqqHx_iDhJiDjDjBkOjAkLiCpAiDfCiDhDiBfLiClHiCoJiPoKiNiH_xHqqkZx_ -----
////	{
////		FCPenRec rec;
////		objRect.GetPenRec(rec);
////		// _xZkqqHx_jFjEjFgJjBkOjAkLjFmPiNfIiDfCiDhNiDjDiDgIiBeC_xHqqkZx_
////		for (iObj = vObj.begin(); iObj != vObj.end(); iObj++)
////			CmdModifyPen((FCObjFigure*)*iObj, rec);
////	}
////	if (bIsCopyBrush)
////	//----- _xZkqqHx_iDhFiDiJiDfGjBkOjAkLiCpAiDfCiDhDiBfLiClHiCoJiPoKiNiH_xHqqkZx_ -----
////	{
////		FCBrushRec rec;
////		objRect.GetBrushRec(rec);
////		// _xZkqqHx_jFjEjFgJjBkOjAkLjFmPiNfIiDfCiDhNiDjDiDgIiBeC_xHqqkZx_
////		for (iObj = vObj.begin(); iObj != vObj.end(); iObj++)
////			CmdModifyBrush((FCObjFigure*)*iObj, rec);
////	}
////	if (bIsCopyEmfImage)
////	//----- EMF_xZkqqHx_jBkOjAkLiCpAiDfCiDhDiBfLiClHiCoJiPoKiNiH_xHqqkZx_ -----
////	{
////		FCEmfRec rec;
////		objRect.GetEmfRec(rec);
////		// _xZkqqHx_jFjEjFgJjBkOjAkLjFmPiNfIiDfCiDhNiDjDiDgIiBeC_xHqqkZx_
////		for (iObj = vObj.begin(); iObj != vObj.end(); iObj++)
////			CmdModifyEmf((FCObjFigure*)*iObj, rec);
////	}
////	if (bIsCopyArrow)
////	//----- _xZkqqHx_jGoOiIpDjBkOjAkLiCpAiDfCiDhDiBfLiClHiCoJiPoKiNiH_xHqqkZx_ -----
////	{
////		FCArrowRec rec;
////		objRect.GetArrowRec(rec);
////		// _xZkqqHx_jFjEjFgJjBkOjAkLjFmPiNfIiDfCiDhNiDjDiDgIiBeC_xHqqkZx_
////		for (iObj = vObj.begin(); iObj != vObj.end(); iObj++)
////			CmdModifyArrow((FCObjFigure*)*iObj, rec);
////	}
////	if (bIsCopySize)
////	//----- _xZkqqHx_iDfEiDeDiDfJjBkOjAkLiCpAiDfCiDhDiBfLiClHiCoJiPoKiNiH_xHqqkZx_ -----
////	{
//////----- 06.03.17 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//////		// _xZkqqHx_jFjEjFgJjBkOjAkLjFmPiNfIiDfCiDhNiDjDiDgIiBeC_xHqqkZx_
//////		for (iObj = vObj.begin(); iObj != vObj.end(); iObj++)
//////			CmdResize1Obj((FCObjFigure*)*iObj, objRect.GetResizeFrame());
//////----- 06.03.17 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
////		// _xZkqqHx_jFjEjFgJjBkOjAkLjFmPiNfIiDfCiDhNiDjDiDgIiBeC_xHqqkZx_
////		for (iObj = vObj.begin(); iObj != vObj.end(); iObj++)
////		{
////			DBLRect mmrtFrame = (*iObj)->GetResizeFrame();
////			// _xZkqqHx_iJkBiBeFiPgDiCmMiKgHjBoFjHkGiBeC_xHqqkZx_
////			const double dAx = objRect.GetResizeFrame().Width() / mmrtFrame.Width();
////			const double dAy = objRect.GetResizeFrame().Height() / mmrtFrame.Height();
////			// _xZkqqHx_iDiKiDfEiDeDiDfJiOjOiMmFjCoIjDfPiCpAiOfKiPgPiBeC_xHqqkZx_
////			const DBLPoint mmptFix = FFGetFramePoint(mmrtFrame, g_pReg->GetResizeFixPosition());
////			// _xZkqqHx_iMmFjCoIjDfPiCpAiInKjDkOiClDiClJiClIiCmJiDiKiDfEiDeDiDfJiBeC_xHqqkZx_
////			mmrtFrame.left = (mmrtFrame.left - mmptFix.x) * dAx + mmptFix.x;
////			mmrtFrame.right = (mmrtFrame.right - mmptFix.x) * dAx + mmptFix.x;
////			mmrtFrame.top = (mmrtFrame.top - mmptFix.y) * dAy + mmptFix.y;
////			mmrtFrame.bottom = (mmrtFrame.bottom - mmptFix.y) * dAy + mmptFix.y;
////			CmdResize1Obj((FCObjFigure*)*iObj, mmrtFrame);
////		}
//////----- 06.03.17 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
////	}
////
////	// _xZkqqHx_iLeMjIfOiDfKiDgCiDfGiDiHiDjDiCmMiPeJjHlJiBeC_xHqqkZx_
////	SessionEnd();
////	// _xZkqqHx_jFmPiNfIiMoDjFjEjFgJiCpAiDiKiBfLiDfHiDiHiDjDiCmJjCmHiJmBiClHiCoJiBeC_xHqqkZx_
////	g_pView->AppendToLastRgn(vObj);
////	// _xZkqqHx_iDiKiBfLiDfHiDiHiDjDiCpAiNmEjFgAiJoGiBeC_xHqqkZx_
////	g_pView->SendRgnRedraw();
////----- 06.11.17 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
//	// _xZkqqHx_jFmPiNfIjBePjFjEjFgJiCpAiDiKiBfLiDfHiDiHiDjDiCmJjCmHiJmBiClHiCoJiBeC_xHqqkZx_
//	g_pView->AppendToLastRgn(vObj);
//	// _xZkqqHx_iDfKiDgCiDfGiDiHiDjDiCpAiKeKiOgOiClHiCoJiBeC_xHqqkZx_MakeObjRectFromClipboard_xZkqqHx_iKnGjAjEjCiGiCmFiCoA_xHqqkZx_
//	// _xZkqqHx_iDfCiDhNiDjDiDgIiCkKiOmAiNhDiClDiCoKiCoJiClNiCnPiBeBiClBiClBiCmFiDfKiDgCiDfGiDiHiDjDiCpAiKeKiCkNiBeC_xHqqkZx_
//	SessionBegin();
//	// _xZkqqHx_iDeOiDiKiDgCiDhGiDhLiBfLiDgIiCmMjBkOjAkLiCpA_xHqqkZx_ObjRect_xZkqqHx_iCmJjDmHiCnNiOoGiCoJiBeC_xHqqkZx_
//	FCObjRect objRect;
//	dwPasteAttr &= MakeObjRectFromClipboard(objRect, dwPasteAttr);
//	// _xZkqqHx_iKgFjFjEjFgJiCmJjBkOjAkLiCpAjDfMiCoIjFhEiCkPiBeC_xHqqkZx_
//	ObjDynabaseVector::const_iterator iObj;
//	for (iObj = vObj.begin(); iObj != vObj.end(); iObj++)
//		(*iObj)->PasteOverAs(objRect, dwPasteAttr);
//	// _xZkqqHx_iLeMjIfOiDfKiDgCiDfGiDiHiDjDiCmMiPeJjHlJiBeC_xHqqkZx_
//	SessionEnd();
//	// _xZkqqHx_jFmPiNfIiMoDjFjEjFgJiCpAiDiKiBfLiDfHiDiHiDjDiCmJjCmHiJmBiClHiCoJiBeC_xHqqkZx_
//	g_pView->AppendToLastRgn(vObj);
//	// _xZkqqHx_iDiKiBfLiDfHiDiHiDjDiCpAiNmEjFgAiJoGiBeC_xHqqkZx_
//	g_pView->SendRgnRedraw();
////----- 06.11.17 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
//} // CFCFoundDoc::OnPasteOverAs.
//----- 06.11.21 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

//----- 05.05.13 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnInternetDataAvailable
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDeDiDjDiDfOiBfLiDgMiDgCiDgHiCkJiCoHiDhCiDiFiBfLiDeBiDhEiDeIiBfLiDhNiDgCiDgHiDgGiBfLiDfOiCpA_xHqqkZx_
// *			_xZkqqHx_iDhGiDiNiDePiDiMiDfIiDfPiDeFiDjDiDiNiBfLiDgIiClFiCmEiCkCiCoJiPoKiNiHiBeBiIoKjCoIiCmMjHmKiCmMiDgGiBfLiDfOiCkKiDgPiDgCiDhEiDeA_xHqqkZx_
// *			_xZkqqHx_iCmJiDfPiDeFiDjDiDiNiBfLiDgIiClDiCoKiClNiOjOiCmJjAiPiOjOiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	bscfFlag:BSCF_xZkqqHx_jHpBiLjDiMfOiCmMjCgMiBeCiOjPiCmMjCgMiCmMjIfPjHjNjIgBiCmJiCmIiCoIiCnMiClHiBeC_xHqqkZx_ 
// *				BSCF_FIRSTDATANOTIFICATION
// *					:_xZkqqHx_iOhHjCoIiClDiCoKiClNiDgPiDeDiDjDiDgIjBiAiNoMiCmJiCkIiCkPiCoJiBeBiNmFiPiJiCmM_xHqqkZx_ OnDataAvailable
// *					 _xZkqqHx_iCmMiMmEiCnBiPgPiClFiCmFiCkAiCoJiClBiCmGiCpAiOkGiClFiCnMiClHiBeC_xHqqkZx_
// *				BSCF_INTERMEDIATEDATANOTIFICATION
// *					:_xZkqqHx_iDgPiDeDiDjDiDgIjBiAiNoMiCmM_xHqqkZx_ OnDataAvailable _xZkqqHx_iCmMiMmEiCnBiPgPiClFiCkKjBiAiNoMjDhCjCiG_xHqqkZx_
// *					 _xZkqqHx_iCmMiCoAiCmMiCmFiCkAiCoJiClBiCmGiCpAiOkGiClFiCmEiCkCiCnMiClHiBeC_xHqqkZx_
// *				BSCF_LASTDATANOTIFICATION
// *					:_xZkqqHx_iDgPiDeDiDjDiDgIjBiAiNoMiCmM_xHqqkZx_ OnDataAvailable _xZkqqHx_iCmMiMmEiCnBiPgPiClFiCkKiNmFiMoDiCmM_xHqqkZx_
// *					 _xZkqqHx_iCoAiCmMiCmFiCkAiCoJiClBiCmGiCpAiOkGiClFiCmEiCkCiCnMiClHiBeC_xHqqkZx_ 
// *			bCacheEnable:_xZkqqHx_iDeMiDiDiDgCiDfGiDiFiDhEiDeAiDeDiDiLiCkKjHjIjHhAiJmCjEfMiCmIiPoKiNiHiCmN_xHqqkZx_TRUE_xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.07.26 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCFoundDoc::OnInternetDataAvailable (DWORD bscfFlag, BOOL bCacheEnable)
//{
//	// _xZkqqHx_iJoGjGmKiCmJjFmPiNfIiCkKjDpMiCmBiClNiCkJiBeI_xHqqkZx_
//	BOOL bCurrentSheetModified = FALSE;
//	// _xZkqqHx_iDeHiDiJiBfLjHoBiKePiBeC_xHqqkZx_
//	CException* pErr = NULL;
//	// CFCAsyncNetFile_xZkqqHx_iCmMiDiBiDjDiDgPjFmPjAjEiCnGiCmMiDeBiDeOiDfKiDfIiLjGiJmCiBeC_xHqqkZx_
//	FCAutoLeaveCriticalSection atlcs(m_asyncNetFile.m_csAccessMember);
//
//	try
//	{
//		if (FFFileNameToFormat(m_asyncNetFile.m_wstrUrl) == FD_DTP_VIEWER_FORMAT)
//		//----- _xZkqqHx_iDhCiDiFiBfLiDeBiDhEiDeIiBfLiDhNiDgCiDgHiCmMjFlGiPjBiCmMiPoKiNiH_xHqqkZx_ -----
//		{
//			// _xZkqqHx_iDgGiBfLiDfOiCkKjBlFiCmBiCmEiCkCiCoJiCkJiBeI_xHqqkZx_
//			// 0: _xZkqqHx_iDgGiBfLiDfOjFhDjBkLiBeC_xHqqkZx_
//			// 1: _xZkqqHx_iMjPiNpFjBmOiPnLiCmMiDgAiDiDiDjDiDeOiPeJjCfLiCnMiCmFiDgGiBfLiDfOiCkKjBlFiCmBiCmEiCkCiCoJiBeC_xHqqkZx_
//			// 2: _xZkqqHx_iMjPiNpFjBmOiPnLiCmMiDgAiDiDiDjDiDeOiCmNjGlDiCkNiBeB_xHqqkZx_IEND_xZkqqHx_iDgAiDiDiDjDiDeOiCmFiPeJjHlJiBeC_xHqqkZx_
//			long lReady = 1;
//			for (;;)
//			{
//				// _xZkqqHx_iDiBiDiCiDiKiDhEiDeAiDeDiDiLiCpAjAlGjAkMiBeC_xHqqkZx_
//				CMemFile memFile(m_asyncNetFile.m_vData.begin(),
//								 m_asyncNetFile.m_vData.size());
//				// _xZkqqHx_iDfIiDgHiDiKiBfLiDiAiCpAiOoGjDlOiBeC_xHqqkZx_
//				FCUndoArchive arMem(&memFile, FD_ARCHIVE_LOAD, NULL);
//				SheetID stid;
//				lReady = OnViewerDataAvailable(stid, arMem, NULL);
//				// _xZkqqHx_jDmHiCnNiNjOiCnNiCkKiCmIiClDiCoKiClNiPoKiNiHiImIiKePiCmNiDiLiBfLiDhGiPeJjHlJiBeC_xHqqkZx_
//				if (lReady != 1) break;
//				// _xZkqqHx_iJoGjGmKiCmJjFmPiNfIiCkKjDpMiCmBiClNiCkJiBeI_xHqqkZx_
//				if (stid == GetCurrentSheetId()) bCurrentSheetModified = TRUE;
//				// _xZkqqHx_jDmHiCnNiNjOiCpBiClOiDgGiBfLiDfOiCpAiNoNiPjMiBeC_xHqqkZx_
//				m_asyncNetFile.m_vData.erase(m_asyncNetFile.m_vData.begin(),
//											m_asyncNetFile.m_vData.begin() +
//											arMem.GetPosition());
//			}
//			// _xZkqqHx_iDgGiBfLiDfOiCmNiPeJjHlJiClOiCkK_xHqqkZx_IEND_xZkqqHx_iCmFiCmNiCmIiCkCiPoKiNiHiBeB_xHqqkZx_
//			// _xZkqqHx_jHfMiKpKiClFiCmIiCkC_xHqqkZx_EOF_xZkqqHx_iCkKjEkNjAlGiClFiCnMiClFiClNiBeC_xHqqkZx_
//			if ((bscfFlag & BSCF_LASTDATANOTIFICATION) && lReady != 2)
//				FFThrowMiscException(IDS_ERR_MSG_UNEXPECTED_EOF);
//		} else
//		//----- _xZkqqHx_iDhCiDiFiBfLiDeBiDhEiDeIiBfLiDhNiDgCiDgHiCmMjFlGiPjBiImIiKePiCmMiPoKiNiH_xHqqkZx_ -----
//		{
//			if (bscfFlag & BSCF_LASTDATANOTIFICATION)
//			//----- _xZkqqHx_iDgGiBfLiDfOiCmMiDfPiDeFiDjDiDiNiBfLiDgIiCkKiPeJjHlJiClFiClNiPoKiNiH_xHqqkZx_ -----
//			{
//				if (bCacheEnable)
//				{
////----- 04.11.19 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
////					// CFCAsyncNetFile_xZkqqHx_iCmMiDiBiDjDiDgPjFmPjAjEiCnGiCmMiDeBiDeOiDfKiDfIiLjGiJmCiBeC_xHqqkZx_
////					EnterCriticalSection(&m_asyncNetFile.m_csAccessMember.cs);
////----- 04.11.19 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
//					// _xZkqqHx_iDeMiDiDiDgCiDfGiDiFiDhEiDeAiDeDiDiLjGlMiBeC_xHqqkZx_
//					WString wstrCacheFile = m_asyncNetFile.m_wstrCacheFile;
////----- 04.11.19 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
////					// CFCAsyncNetFile_xZkqqHx_iCmMiDiBiDjDiDgPjFmPjAjEiCnGiCmMiDeBiDeOiDfKiDfIiLjGiJmCiBeC_xHqqkZx_
////					LeaveCriticalSection(&m_asyncNetFile.m_csAccessMember.cs);
////----- 04.11.19 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
//					// _xZkqqHx_iDhEiDeAiDeDiDiLiCpAiDeDiDjDiDhMiBfLiDgHiBeC_xHqqkZx_
//					ImportFile(wstrCacheFile, NULL);
//				}
//			}
//		}
//	} catch (CException* e)
//	//----- _xZkqqHx_iDeHiDiJiBfLiPiIjHjN_xHqqkZx_ -----
//	{
//		// _xZkqqHx_iDeHiDiJiBfLjHoBiKePiBeC_xHqqkZx_
//		pErr = e;
//	}
//
//	if (pErr != NULL)
//	//----- _xZkqqHx_iDeHiDiJiBfLiCmMiPoKiNiH_xHqqkZx_ -----
//	{
//		// _xZkqqHx_jAgJjClLiCpAjCoCiOhOiBeC_xHqqkZx_
//		m_NetFileProgress = NET_IMPORT_NONE;
//		// _xZkqqHx_iDeDiDjDiDfOiBfLiDgMiDgCiDgHiDhEiDeAiDeDiDiLiCpAjFmCiClGiCoJiBeC_xHqqkZx_
//		m_asyncNetFile.Close();
//		// _xZkqqHx_iDgGiBfLiDfOiDfPiDeFiDjDiDiNiBfLiDgIiPeJjHlJiCmFiBeBiPjBiCkLiNjOiCnNiCpAiLjGiJmCiBeC_xHqqkZx_
//		m_bIsReadOnly = FALSE;
//		throw pErr;
//	}
//	// CFCAsyncNetFile_xZkqqHx_iCmMiDiBiDjDiDgPjFmPjAjEiCnGiCmMiDeBiDeOiDfKiDfIiLjGiJmCiBeC_xHqqkZx_
//	atlcs.Leave();
//
//	if (bCurrentSheetModified)
//	//----- _xZkqqHx_iJoGjGmKiCmJjFmPiNfIiCkKjDpMiCmBiClNiPoKiNiH_xHqqkZx_ -----
//	{
//		// _xZkqqHx_jBfDiJoGjGmKiCpAiMmFjHeMiDiKiBfLiDfHiDiHiDjDiCmJjAnNjCoIiClFiCmEiNmEjFgAiJoGiBeC_xHqqkZx_
//		g_pView->SetClientToRgn();
//		g_pView->SendRgnRedraw();
//	}
//
//	if (bscfFlag & BSCF_LASTDATANOTIFICATION)
//	//----- _xZkqqHx_iDgGiBfLiDfOjDmHiCnNiNjOiCnNiCkKiPeJjHlJiCmMiPoKiNiH_xHqqkZx_ -----
//	{
//		// _xZkqqHx_iDeDiDjDiDfOiBfLiDgMiDgCiDgHiDhEiDeAiDeDiDiLiCpAjFmCiClGiCoJiBeC_xHqqkZx_
//		m_asyncNetFile.Close();
//		// _xZkqqHx_iDgGiBfLiDfOiDfPiDeFiDjDiDiNiBfLiDgIiPeJjHlJiCmFiBeBiPjBiCkLiNjOiCnNiCpAiLjGiJmCiBeC_xHqqkZx_
//		m_bIsReadOnly = FALSE;
//		// _xZkqqHx_iDhCiDiFiBfLiCmMiPiJiKpKiJlLiPiIjHjNiCpAiMmEiCnBiPgPiClHiBeC_xHqqkZx_
//		if (g_pView != NULL) g_pView->InitContents();
//		// _xZkqqHx_iDhEiDiMiBfLiDiAiCmMiPiJiKpKiJlLiPiIjHjNiCpAiMmEiCnBiPgPiClHiBeC_xHqqkZx_
//		if (FFGetMainWnd()->IsAvailable()) FFGetMainWnd()->InitContents();
//	}
//} // CFCFoundDoc::OnInternetDataAvailable.
//----- 05.05.13 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::GetObjectToTextMap
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	ID_xZkqqHx_iCkKjDgPjIfOiClDiCoKiCmEiCkCiCoJjBfDiCmEiCmMjFjEjFgJiBgJiDiBiDjDiDgPiBfLjFjEjFgJiCoAiKnMiCnOiBgKiCpAjClCiCnHiBeB_xHqqkZx_
 *			_xZkqqHx_iDgFiDeMiDfIiDgHiCkKjDgPjIfOiClDiCoKiCmEiCkCiCoJjFjEjFgJiCmN_xHqqkZx_ [_xZkqqHx_jFjEjFgJ_xHqqkZx_ID->_xZkqqHx_iDgFiDeMiDfIiDgH_xHqqkZx_]_xZkqqHx_iDgOiDgCiDfGiDiFiCmJ_xHqqkZx_
 *			_xZkqqHx_jDgPjIfOiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	mpIdToText	:_xZkqqHx_jFjEjFgJ_xHqqkZx_ID->_xZkqqHx_iDgFiDeMiDfIiDgHiDgOiDgCiDfGiDiFiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.02.17 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::GetObjectToTextMap (map<DWORD, WString>& mpIdToText) const
{
	struct my
	{
		my (map<DWORD, WString>& mpIdToText) : m_mpIdToText(mpIdToText) {}
		static BOOL EnumAllObject (FCObjDynabase* pObj, void* data)
		{
			my* pMy = (my*)data;
			// UNICODE_xZkqqHx_iCmMjFlGiOjKjHpBiCpAiOoGiCoIiPgPiClHiBeC_xHqqkZx_
			if (pObj->GetRichText() != NULL)
				pObj->GetRichText()->GetText(pMy->m_mpIdToText[pObj->GetObjID()]);
			return TRUE;
		}
		map<DWORD, WString>& m_mpIdToText;
	} My(mpIdToText);
	SheetManager()->CallForAllObject(my::EnumAllObject, &My);
} // CFCFoundDoc::GetObjectToTextMap.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::DoModalExportDialog
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDeHiDeOiDfIiDhMiBfLiDgHjHhAiCmMiDhEiDeAiDeDiDiLiDfPiDeDiDeBiDiNiDePiCpAjFfMiOkGiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	wstrFilePath	:_xZkqqHx_jBeJjBpAiClDiCoKiClNiDhEiDeAiDeDiDiLjGlMiCpAjFnEiClHiBeC_xHqqkZx_
 *			wstrFileVersion	:_xZkqqHx_jBeJjBpAiClDiCoKiClNiDhEiDeAiDeDiDiLiCmMiDgPiBfLiDfHiDiHiDjDiCpAjFnEiClHiBeC_xHqqkZx_
 *			bIsSaveObject	:_xZkqqHx_jFjEjFgJiCpAjFnLjBlGiClHiCoJiCkJiCmHiCkEiCkJiCpAjFnEiClHiBeCiDgFiDjDiDhGiDiMiBfLiDgHjAoKjHhAiBeC_xHqqkZx_
 *			bIsSaveChip		:_xZkqqHx_iDgAiDgCiDhGiCpAjFnLjBlGiClHiCoJiCkJiCmHiCkEiCkJiCpAjFnEiClHiBeCiDgFiDjDiDhGiDiMiBfLiDgHjAoKjHhAiBeC_xHqqkZx_
 *			pSpecifyDialog	:_xZkqqHx_jDmGiOkJiCmMiDhEiDeAiDeDiDiLiDfPiDeDiDeBiDiNiDePiCpAiOhHjCoIiBeC_xHqqkZx_
 *							 _xZkqqHx_iDgGiDhEiDeIiDiLiDgHiDfPiDeDiDeBiDiNiDePjHjIjHhAiCmMiPoKiNiHiCmN_xHqqkZx_ NULL_xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jCiNiInD_xHqqkZx_>	static_xZkqqHx_iKnGjAjEiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.06.13 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
long CFCFoundDoc::DoModalExportDialog (WString& wstrFilePath,
										WString& wstrFileVersion,
										BOOL& bIsSaveObject,
										BOOL& bIsSaveChip,
										FCFdbSaveTemplate* pSpecifyDialog)
{
	FCFdbSaveTemplate dlgFile;
	if (pSpecifyDialog == NULL)
		pSpecifyDialog = &dlgFile;

	// _xZkqqHx_iDfOiDeDiDgHiDiLjGlMiCmMjAnNjCoIiBeC_xHqqkZx_"_xZkqqHx_iDeHiDeOiDfIiDhMiBfLiDgH_xHqqkZx_"
	CString strTitle = WStrToTStr(FFExtractUntil(FFLoadWString(ID_FILE_EXPORT), L"\n"));
	pSpecifyDialog->m_ofn.lpstrTitle = strTitle;

	CString strFilter;
	vector<FCConvNode> vConvNode;
	FCFileConvManager mgr;
	// _xZkqqHx_iDeDiDjDiDhMiBfLiDgHiJmCjEfMiCmIjBfDiCmEiCmMiDhEiDeAiDeDiDiLiCmMiBeBiDhEiDeCiDiLiDfOiBfLjFlGiOjKjHpBiCpAiNoMjAkMiBeC_xHqqkZx_
	// "4.0" > "3.0" > "2.0" > "1.0" > _xZkqqHx_iBgD_xHqqkZx_
	WORD wMajorVer, wMinorVer;
	FCHeaderInf::FileVersionMajorMinor(wMajorVer, wMinorVer,
										FCHeaderInf::GetStcFileVersion());
	WStringVector vVerPriority;
	for (WORD wTmp = wMajorVer; wTmp != 1; wTmp--)
	{
		WString wstr;
		wstr.Format(L"%d.0", wTmp);
		vVerPriority.push_back(wstr);
	}
	// EXPORT_xZkqqHx_iJmCjEfMiCmIiDhEiDeAiDeDiDiLiCpAiOoGjDlOiBeC_xHqqkZx_.mdpf _xZkqqHx_iCmMjFfMiOkGiCpAjHeEjAoGiBeC_xHqqkZx_
	// vExtPriority _xZkqqHx_iCmJiCmNiBeBiDhEiDeCiDiLiDfOiBfLjFjEjFkKiCmJjFfMiOkGiCmMjHeEjAoGiPiHiImKiCpAiOhHjCoIiBeC_xHqqkZx_
	// _xZkqqHx_jHeEjAoGiPiHiImKiCmJiClBiClOiCoNiCoHiCmIiCkCiCoAiCmMiCmNiPjBiCkJiCmIiCkNiCmEjHmHiCkCiBeC_xHqqkZx_
	WStringVector vExtPriority;
	vExtPriority.push_back(FD_FILE_EXT_PORTABLE_FORMAT);	// _xZkqqHx_iDhMiBfLiDfOiDhFiDiLiDhEiDeIiBfLiDhNiDgCiDgHiCmMjFlGiPjBiCpAjHeEjAoGiBeC_xHqqkZx_
	vExtPriority.push_back(FD_FILE_EXT_TEMPLATE_FORMAT);	// _xZkqqHx_iDgFiDjDiDhGiDiMiBfLiDgHiDhEiDeIiBfLiDhNiDgCiDgHiCmMjFlGiPjBiCpAjHeEjAoGiBeC_xHqqkZx_
	mgr.GetFileDialogFilterString(strFilter, vConvNode, TRUE,
								vExtPriority.begin(), vExtPriority.size(),
								vVerPriority.begin(), vVerPriority.size());

	pSpecifyDialog->m_ofn.lpstrFilter = strFilter;

	// _xZkqqHx_iDhEiDeAiDeDiDiLiDfPiDeDiDeBiDiNiDePiCpAjFfMiOkGiBeCiDhEiDeAiDeDiDiLiCpAjAnNjCoIiBeC_xHqqkZx_
	long lReturn = pSpecifyDialog->DoModal();
	if (lReturn == IDOK)
	{
		wstrFilePath = pSpecifyDialog->GetPathName();
		wstrFileVersion = vConvNode[pSpecifyDialog->m_ofn.nFilterIndex - 1].m_wstrVersion;
		bIsSaveObject = pSpecifyDialog->GetIsSaveObject();
		bIsSaveChip = pSpecifyDialog->GetIsSaveChip();
	}
	return lReturn;
} // CFCFoundDoc::DoModalExportDialog.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::DoModalImportDialog
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDeDiDjDiDhMiBfLiDgHjHhAiCmMiDhEiDeAiDeDiDiLiDfPiDeDiDeBiDiNiDePiCpAjFfMiOkGiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	wstrFilePath	:_xZkqqHx_jBeJjBpAiClDiCoKiClNiDhEiDeAiDeDiDiLjGlMiCpAjFnEiClHiBeC_xHqqkZx_
 *			pSpecifyDialog	:_xZkqqHx_jDmGiOkJiCmMiDhEiDeAiDeDiDiLiDfPiDeDiDeBiDiNiDePiCpAiOhHjCoIiBeC_xHqqkZx_
 *							 _xZkqqHx_iDgGiDhEiDeIiDiLiDgHiDfPiDeDiDeBiDiNiDePjHjIjHhAiCmMiPoKiNiHiCmN_xHqqkZx_ NULL_xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *			wcpInitialDir	:_xZkqqHx_iDfPiDeDiDeBiDiNiDePjFfMiOkGiOjOiCmMiPiJiKpKiDgGiDeCiDiMiDeOiDgHiDiKiCpAiOhHjCoIiBeC_xHqqkZx_
 *							 _xZkqqHx_iOhHjCoIiClFiCmIiCkCiPoKiNiHiCmN_xHqqkZx_ NULL _xZkqqHx_iIlNiCkCiCmN_xHqqkZx_ L"" _xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDfPiDeDiDeBiDiNiDePiOmAiNhDiCmMiMiLiJmKiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jCiNiInD_xHqqkZx_>	static_xZkqqHx_iKnGjAjEiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.06.12 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
//----- 05.10.12 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//DWORD CFCFoundDoc::DoModalImportDialog (WString& wstrFilePath,
//										CFileDialog* pSpecifyDialog,
//										const wchar_t* wcpInitialDir)
//----- 05.10.12 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
long CFCFoundDoc::DoModalImportDialog (	WString& wstrFilePath,
										FCFileDialogBase* pSpecifyDialog,
										const wchar_t* wcpInitialDir)
//----- 05.10.12 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
{
// 05.10.12 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//	CFCFldgOpenDdfile dlgFile;
	FCFdbOpenDdFile dlgFile;
//----- 06.10.20 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_iDgGiDeCiDiMiDeOiDgHiDiKiDiKiDfIiDgHiCmMiDiMiDfHiDfIiDgHiDiKiCpAjAnNjCoIiBeC_xHqqkZx_
	dlgFile.SetRegName(L"IMPORT");
	// _xZkqqHx_iDgGiDeCiDiMiDeOiDgHiDiKiDiKiDfIiDgHiCkKiDiMiDfHiDfIiDgHiDiKjGkCjDgPjIfOiCmMiPoKiNiHiCmMiPiJiKpKiDgGiDeCiDiMiDeOiDgHiDiKiBeC_xHqqkZx_
	// DynamicDraw.exe_xZkqqHx_iCmMjBlGiNnNiClHiCoJiDhAiDfIiBhL_xHqqkZx_"Template"_xZkqqHx_iBeC_xHqqkZx_
	// FFGetFileDirectory_xZkqqHx_iCmNiBeBiDhAiDfIiNmFiMoDiCmJ_xHqqkZx_"\"_xZkqqHx_iCkKjFhEiCkCiCmEiCkCiCoJiBeC_xHqqkZx_
	const WString strDirPath = FFGetFileDirectory(FFGetMolipExePath()) + L"Template";
	dlgFile.SetDefaultDirectory(strDirPath);
//----- 06.10.20 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
	if (pSpecifyDialog == NULL)
		pSpecifyDialog = &dlgFile;

	// _xZkqqHx_iDfOiDeDiDgHiDiLjGlMiCmMjAnNjCoIiBeC_xHqqkZx_
	// AFX_IDS_OPENFILE = "_xZkqqHx_iDhEiDeAiDeDiDiLiCpAiKeKiCkN_xHqqkZx_"
	CString	strMsg;
	strMsg.LoadString(AFX_IDS_OPENFILE);
	pSpecifyDialog->m_ofn.lpstrTitle = strMsg;
	// _xZkqqHx_iPiJiKpKiDhEiDeIiDiLiDfPiCmMjAnNjCoIiBeC_xHqqkZx_
	CString strInitialDir;
	if (wcpInitialDir != NULL && *wcpInitialDir != L'\0')
	{
		strInitialDir = WStrToTStr(wcpInitialDir);
		pSpecifyDialog->m_ofn.lpstrInitialDir = strInitialDir;
	}

	CString strFilter;
	vector<FCConvNode> vConvNode;
	FCFileConvManager mgr;
	// _xZkqqHx_iDeDiDjDiDhMiBfLiDgHiJmCjEfMiCmIjBfDiCmEiCmMiDhEiDeAiDeDiDiLiCmMiBeBiDhEiDeCiDiLiDfOiBfLjFlGiOjKjHpBiCpAiNoMjAkMiBeC_xHqqkZx_
	// ".mdpf" _xZkqqHx_iBgD_xHqqkZx_
	WStringVector vExtPriority;
// 06.02.23 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//	vExtPriority.push_back(FD_FILE_EXT_PORTABLE_FORMAT);	// _xZkqqHx_iDhMiBfLiDfOiDhFiDiLiDhEiDeIiBfLiDhNiDgCiDgHiCmMjFlGiPjB_xHqqkZx_(.mdpf)_xZkqqHx_iCpAjHeEjAoGiClHiCoJiBeC_xHqqkZx_
	vExtPriority.push_back(FD_FILE_EXT_TEMPLATE_FORMAT);	// _xZkqqHx_iDgFiDjDiDhGiDiMiBfLiDgHiDhEiDeIiBfLiDhNiDgCiDgHiCmMjFlGiPjBiCpAjHeEjAoGiBeC_xHqqkZx_
	mgr.GetFileDialogFilterString(strFilter, vConvNode, FALSE,
								vExtPriority.begin(), vExtPriority.size(),
								NULL, 0);
	pSpecifyDialog->m_ofn.lpstrFilter = strFilter;
	// _xZkqqHx_iDhEiDeAiDeDiDiLiDfPiDeDiDeBiDiNiDePiCpAjFfMiOkGiBeCiDhEiDeAiDeDiDiLiCpAjAnNjCoIiBeC_xHqqkZx_
	long lReturn = pSpecifyDialog->DoModal();
	if (lReturn == IDOK)
		wstrFilePath = pSpecifyDialog->GetPathName();
	return lReturn;
} // CFCFoundDoc::DoModalImportDialog.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::EnumNewDocument
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jAfGiLeLiCmJ_xHqqkZx_ CFCFoundDoc_xZkqqHx_iDeOiDiJiDfIiDeJiDhFiDfHiDeGiDeOiDgHiCpAiNoMjAkMiClFiBeBiDfCiBfLiDiLiDgPiDgCiDeOiCpA_xHqqkZx_
 *			_xZkqqHx_iOmAiNhDiClFiClNiMoDiBeBiDeJiDhFiDfHiDeGiDeOiDgHiCpAiNoNiPjMiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	proc	:_xZkqqHx_iDfCiBfLiDiLiDgPiDgCiDeOiCpAiOhHjCoIiBeC_xHqqkZx_
 *			pData	:_xZkqqHx_iDfCiBfLiDiLiDgPiDgCiDeOiCmJjDgOiClHiDiGiBfLiDfFiBfLiDgGiBfLiDfOiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDfCiBfLiDiLiDgPiDgCiDeOiCmMiOmAiNhDiMiLiJmKiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jCiNiInD_xHqqkZx_>	static_xZkqqHx_iKnGjAjEiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.02.17 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
int CFCFoundDoc::EnumNewDocument (FPEnumNewDocumentProc proc, void* pData)
{
	int iResult;
	//----- _xZkqqHx_iOgOjDfPiDfIiDhMiDgCiDgHiDgFiBfLiDhFiDiLjHhAiCmMiDgIiDeMiDiFiDiBiDjDiDgHiCpAiNoMjAkMiClHiCoJ_xHqqkZx_ ----
	{
		// ToolManager_xZkqqHx_jDjJiCmMiDgGiDfIiDgHiDiJiDeOiDfOiCkKiDePiDiNiBfLiDgPiDiLjFmPjAjEiCmJ_xHqqkZx_
		// _xZkqqHx_iJgFiLlPiCpAjHfOiCkGiCoJiJmCjEfMjAkLiCkKiCkAiCoJiClNiCnPiBeB_xHqqkZx_FFGlobalRestore_xZkqqHx_iOmAiNhDiOjOiCmJiCmN_xHqqkZx_
		// _xZkqqHx_iDgGiDfIiDgHiDiJiDeOiDgHiNmPiCnNiCmGiCmIiCoJiCoGiCkEiBeBiDfIiDfCiBfLiDhGiCpAiMmAjCoIiClHiCoJiBeC_xHqqkZx_

		FCGlobal gg = *g_;
		// _xZkqqHx_iDiMiDfHiDfIiDgHiDiKiCkJiCoHiKmCiLkLiCmMjAnNjCoIiCpAjDmHiCnNiNjOiCnNiBeC_xHqqkZx_g_ _xZkqqHx_iCpAjFeLjHhGiCmGiClHiCoJiCmMiCmFiBeB_xHqqkZx_FFGlobalBackup_xZkqqHx_jBePiCmJiOmAiNhDiBeC_xHqqkZx_
		FCRegData reg(FALSE);
		reg.LoadRegColor();
		reg.LoadRegFont();
		reg.LoadRegUnit();
		FCEnv env;
		FCToolManager toolManager;

		// _xZkqqHx_iDePiDiNiBfLiDgPiDiLjFmPjAjEiCpAiDgPiDgCiDeOiDeBiDgCiDhGiClFiCmEiBeB_xHqqkZx_NULL_xZkqqHx_iCpAjAnNjCoIiBeC_xHqqkZx_
		FFGlobalBackup();

		// _xZkqqHx_iDePiDiNiBfLiDgPiDiLjFmPjAjEiCmJjAfGiClFiCkCjCgMiCpAjAnNjCoIiBeC_xHqqkZx_
		g_ = &gg;
		g_pEnv = &env;
		g_pReg = &reg;
		g_pToolManager = &toolManager;
		// _xZkqqHx_jAfGiClFiCkCiDgIiDeMiDiFiDiBiDjDiDgHiCpAiNoMjAkMiBeC_xHqqkZx_
		CFCFoundDoc* pTmpDoc = (CFCFoundDoc*)RUNTIME_CLASS(CFCFoundDoc)->CreateObject();
		CSingleDocTemplate docTemplate(
				IDR_MAINFRAME,
				RUNTIME_CLASS(CFCFoundDoc),
				RUNTIME_CLASS(CFrameWnd),   // _xZkqqHx_iDiBiDeDiDjD_xHqqkZx_ SDI _xZkqqHx_iDhEiDiMiBfLiDiA_xHqqkZx_ _xZkqqHx_iDeFiDeCiDjDiDgIiDeF_xHqqkZx_
				RUNTIME_CLASS(CView));
		docTemplate.AddDocument(pTmpDoc);
		COleTemplateServer server;
		static const CLSID clsid = DYNAMIC_DRAW_CLSID;
		server.ConnectTemplate(clsid, &docTemplate, TRUE);
		// _xZkqqHx_iDePiDiNiBfLiDgPiDiLjFmPjAjEiCmJjAnNjCoIiBeC_xHqqkZx_
		// _xZkqqHx_iDhEiDeAiDeDiDiLiDeDiDjDiDhMiBfLiDgHiCmIiCmHiCmFiBeB_xHqqkZx_g_pDoc _xZkqqHx_iCmJjFjEjFgJjDgPjIfOiClHiCoJiClNiCnPiBeBjAnNjCoIiBeC_xHqqkZx_
		g_pDoc = pTmpDoc;
		// _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiCpAiPiJiKpKiJlLiBeC_xHqqkZx_
		pTmpDoc->OnNewDocument();
		// _xZkqqHx_iDfCiBfLiDiLiDgPiDgCiDeOiOmAiNhDiBeC_xHqqkZx_
		iResult = (*proc)(pTmpDoc, pData);
		// _xZkqqHx_iNoMjAkMiClFiClNiDgIiDeMiDiFiDiBiDjDiDgHiCpAiNoNiPjMiBeC_xHqqkZx_
		delete pTmpDoc;
	}
	// _xZkqqHx_iDePiDiNiBfLiDgPiDiLjFmPjAjEiCpAiDgPiDgCiDeOiDeBiDgCiDhGiCkJiCoHjFjMiLeBiBeC_xHqqkZx_
	FFGlobalRestore();
	return iResult;
} // CFCFoundDoc::EnumNewDocument.

//----- 03.06.12 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::DlgImportFile
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	
// *
// * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	
// *
// * <_xZkqqHx_iPnKiNnH_xHqqkZx_>	
// *
// * <_xZkqqHx_jCiNiInD_xHqqkZx_>	
// *
// * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.06.12 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCFoundDoc::DlgImportFile (WString& wstrFilePath,
//								FCCanvasStat* pCanvasStatRefer)
//{
//	CFCFldgBase	dlgFile(TRUE, NULL, NULL,
//						OFN_HIDEREADONLY|OFN_NOCHANGEDIR,
//						_T("Dynamic Draw Documents (*.mdrw)|*.mdrw||"));
//	// _xZkqqHx_iDhHiDiLiDhGiDhLiDfOiDjDiCpAiPmBiLiOiBeC_xHqqkZx_
//	dlgFile.m_ofn.Flags	&= ~OFN_SHOWHELP;
//	// _xZkqqHx_iDfOiDeDiDgHiDiLjGlMiCmMjAnNjCoIiBeC_xHqqkZx_
//	// AFX_IDS_OPENFILE = "_xZkqqHx_iDhEiDeAiDeDiDiLiCpAiKeKiCkN_xHqqkZx_"
//	CString	strMsg;
//	strMsg.LoadString(AFX_IDS_OPENFILE);
//	dlgFile.m_ofn.lpstrTitle = strMsg;
//
//	CString strFilter;
//	vector<FCConvNode> vConvNode;
//	FCFileConvManager mgr;
//	mgr.LoadDefFiles();
//	mgr.GetFileDialogFilterString(strFilter, vConvNode, FALSE);
//	dlgFile.m_ofn.lpstrFilter = strFilter;
//	// _xZkqqHx_iDhEiDeAiDeDiDiLiDfPiDeDiDeBiDiNiDePiCpAjFfMiOkGiBeCiDhEiDeAiDeDiDiLiCpAjAnNjCoIiBeC_xHqqkZx_
//	if (dlgFile.DoModal() != IDOK) return;
//
//	wstrFilePath = TStrToWStr(dlgFile.GetPathName());
//	ImportFile(wstrFilePath, NULL);
//} // CFCFoundDoc::DlgImportFile.
//----- 03.06.12 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

//----- 03.06.12 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnImportFile
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iOhHjCoIiCmMiDhEiDeAiDeDiDiLiCmFjFlGiPjBiCpAiPiJiKpKiJlLiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	wcpFilePath	:_xZkqqHx_iDhEiDeAiDeDiDiLjGlMiCpAiOhHjCoIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.06.10 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCFoundDoc::OnImportFile (const wchar_t* wcpFilePath)
//{
//	DeleteContents();
//	ImportFile(wcpFilePath);
//	m_bIsReadOnly = FALSE;
//	// _xZkqqHx_iDhCiDiFiBfLiCmMiPiJiKpKiJlLiPiIjHjNiCpAiMmEiCnBiPgPiClHiBeC_xHqqkZx_
//	if (g_pView != NULL) g_pView->InitContents();
//	// _xZkqqHx_iDhEiDiMiBfLiDiAiCmMiPiJiKpKiJlLiPiIjHjNiCpAiMmEiCnBiPgPiClHiBeC_xHqqkZx_
//	if (FFGetMainWnd()->IsAvailable()) FFGetMainWnd()->InitContents();
//} // CFCFoundDoc::OnImportFile.
//----- 03.06.12 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnSaveDocumentCopyAs
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iOhHjCoIiCmMiDhEiDeAiDeDiDiLiCmJiMlLiNnNiCmMiDgIiDeMiDiFiDiBiDjDiDgHiCpAiDeBiDhGiDiKiCmMiDgPiBfLiDfHiDiHiDjDiCmF_xHqqkZx_
 *			_xZkqqHx_jFnLjBlGiClHiCoJiBeCiDgIiDeMiDiFiDiBiDjDiDgHiCmMiPpDjBnEiCmNjFmPiJlLiClFiCmIiCkCiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	wcpFile	:_xZkqqHx_iDhEiDeAiDeDiDiLjGlMiCpAiOhHjCoIiBeC_xHqqkZx_NULL _xZkqqHx_iCpAiOhHjCoIiClFiClNiPoKiNiHiCmNiBeB_xHqqkZx_
 *					 _xZkqqHx_iDhEiDeAiDeDiDiLiDfPiDeDiDeBiDiNiDePiCkKjFfMiOkGiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_jAkMiMpHiClFiClNiPoKiNiHiCmN_xHqqkZx_ TRUE_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	COleServerDoc::OnFileSaveCopyAs_xZkqqHx_iKnGjAjEiCpAiOfBiPmGiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.04.23 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCFoundDoc::OnSaveDocumentCopyAs (const wchar_t* wcpFile)
{
//----- 06.03.29 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_jFnLjBlGiDgPiBfLiDfHiDiHiDjDiCpAiDgPiDgCiDeOiDeBiDgCiDhGiBeC_xHqqkZx_
	const FCAutoBackup<WString> backupVersion(m_wstrSaveVersion, FCHeaderInf::GetStcFileVersionString());
	// _xZkqqHx_iDfIiDgHiDiMiBfLiDfHiBeB_xHqqkZx_Remember_xZkqqHx_jFmPjAjEiCpAiDgPiDgCiDeOiDeBiDgCiDhGiBeC_xHqqkZx_
	const FCAutoBackup<LPSTORAGE> lpStorageBackup(m_lpRootStg, NULL);
	const FCAutoBackup<BOOL> bRememberBackup(m_bRemember, FALSE);
//----- 06.03.29 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
//----- 06.03.29 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	LPSTORAGE lpOrigStg = m_lpRootStg;
//	m_lpRootStg = NULL; // ignore embedded storage for now
//----- 06.03.29 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
	BOOL bReturn;
	TRY
	{
		// call DoSave to perform Save Copy As...
// 06.03.29 Fukushiro M. 1_xZkqqHx_iNhDiNoNiPjM_xHqqkZx_ ()
//		m_bRemember = FALSE;
		bReturn = DoSave((wcpFile != NULL) ? WStrToTStr(wcpFile) : NULL, FALSE);
	}
	END_TRY

//----- 06.03.29 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	m_lpRootStg = lpOrigStg;
//	m_bRemember = TRUE;
//----- 06.03.29 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

	return bReturn;
} // CFCFoundDoc::OnSaveDocumentCopyAs.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::GetHeaderInfo
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhHiDgCiDfPiPoOjFpBiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDhHiDgCiDfPiPoOjFpBiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.06.02 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
const FCHeaderInf* CFCFoundDoc::GetHeaderInfo () const
{
	return &m_headerInf;
} // CFCFoundDoc::GetHeaderInfo.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::SessionBegin
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfKiDgCiDfGiDiHiDjDiCpAiKeKiOgOiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.03.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::SessionBegin ()
{
	// _xZkqqHx_iPjBiCkLiNjOiCnN_xHqqkZx_OK _xZkqqHx_iBjF_xHqqkZx_ _xZkqqHx_iDiGiBfLiDfFiPeDjFjMiDiCiBfLiDgIiImIiKePiCmMiPoKiNiHiBeB_xHqqkZx_Undo_xZkqqHx_iDhEiDeAiDeDiDiLiCmMiPiJiKpKiJlLiBeC_xHqqkZx_
	if (!m_bIsReadOnly &&
		!m_pGate->IsOpened() &&
		!(g_->appMode & FD_RUNMODE_REPAIR_DOCUMENT))
		OpenUndo();
	m_pGate->CmdSessionBegin();
} // CFCFoundDoc::SessionBegin.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::SessionEnd
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfKiDgCiDfGiDiHiDjDiCpAiPeJjHlJiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.03.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *			99.04.03 Fukushiro M. bCheckEmpty_xZkqqHx_iCpAjCmHiJmBiBeC_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::SessionEnd ()
{
	try
	{
//----- 06.05.24 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
		if (m_pGate->GetSessionDepth() == 1)
		//----- _xZkqqHx_iDfKiDgCiDfGiDiHiDjDiDgMiDfIiDgHiCmMjAfLiClDiCkK_xHqqkZx_1_xZkqqHx_iBeBjBkGiClPiDfKiDgCiDfGiDiHiDjDiCkKjFnLjBlGiClDiCoKiClNiPoKiNiH_xHqqkZx_ -----
		{
			// _xZkqqHx_iDfKiDgCiDfGiDiHiDjDiCpAjFnLjBlGiImKjChFiCoGiCoIjGnPiClFiClNiPpDjBnEiCmFiPeDjAlDiCkKjDpMiCmBiClNiPoKiNiHiBeB_xHqqkZx_
			// _xZkqqHx_iMlLiNnNiCmMjHjKjHpAiDhEiDeAiDeDiDiLiImKjChFiCpAiDiKiDfKiDgCiDgHiBeC_xHqqkZx_
			if (GetNextSessionIndexAbout() < m_fliLastSavedSessionIdx)
				m_fliLastSavedSessionIdx = -1;
		}
//----- 06.05.24 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
		// _xZkqqHx_iDfCiDhNiDjDiDgIiDfKiDgCiDfGiDiHiDjDiCmMiPjBiCkLiNjOiCnNiBeC_xHqqkZx_
		m_pGate->CmdSessionEnd();
	} catch (CException* e)
	//----- _xZkqqHx_iDeHiDiJiBfLiPiIjHjN_xHqqkZx_ -----
	{
		// Undo_xZkqqHx_iDhEiDeAiDeDiDiLiCmMiPjBiCkLiNjOiCnNiCmJiOlIjEhDiClFiClNiPoKiNiHiBeC_xHqqkZx_
		// _xZkqqHx_iDeHiDiJiBfLiDiBiDgCiDfKiBfLiDfHjFfMiOkGiBeC_xHqqkZx_
		e->ReportError();
		e->Delete();
		// _xZkqqHx_iDiBiDgCiDfKiBfLiDfHiBhFiDgGiDeCiDfIiDeOiCmJiDfIiDhJiBfLiDfIiCpAiKgNjFnLiClFiCmEiBeBjFmKjGlMiCmFjFnLjBlGiClFiCmEiCkNiClOiClDiCkCiBhG_xHqqkZx_
		::FFErrorBox(IDP_MSG_MAKE_SPACE_SAVE_AS);
		// ReadOnly_xZkqqHx_iCpAjAnNjCoIiBeC_xHqqkZx_
		m_bIsReadOnly = TRUE;
		// _xZkqqHx_jFfHiPiAiDgDiBfLiDiLiCmMjBeJiCnBiCmIiCkIiClFiBgJ_xHqqkZx_ToolSelEdit->ToolSelect_xZkqqHx_iCnGiBgKiBeC_xHqqkZx_
// 06.12.26 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//		g_pView->PostMessage(WM_COMMAND, ID_TOOL_SELECT, (LPARAM)0);
		g_pView->SwitchCurrentTool(ID_TOOL_SELECT, FALSE);
	}
} // CFCFoundDoc::SessionEnd.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::NullSessionBegin
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	NULL_xZkqqHx_iDfKiDgCiDfGiDiHiDjDiCpAiKeKiOgOiClHiCoJiBeC_xHqqkZx_NULL_xZkqqHx_iDfKiDgCiDfGiDiHiDjDiCmNiDhEiDeAiDeDiDiLiCmJiPjBiCkLiNjOiCnNiCpA_xHqqkZx_
 *			_xZkqqHx_iClFiCmIiCkCiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.03.03 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::NullSessionBegin ()
{
	// _xZkqqHx_iDfCiDhNiDjDiDgIiDfKiDgCiDfGiDiHiDjDiCmMiKeKiOgOiBeC_xHqqkZx_
	m_pGate->NullSessionBegin();
} // CFCFoundDoc::NullSessionBegin.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::NullSessionEnd
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	NULL_xZkqqHx_iDfKiDgCiDfGiDiHiDjDiCpAiPeJjHlJiClHiCoJiBeC_xHqqkZx_NULL_xZkqqHx_iDfKiDgCiDfGiDiHiDjDiCmNiDhEiDeAiDeDiDiLiCmJiPjBiCkLiNjOiCnNiCpA_xHqqkZx_
 *			_xZkqqHx_iClFiCmIiCkCiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.03.03 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::NullSessionEnd ()
{
	// _xZkqqHx_iDfCiDhNiDjDiDgIiDfKiDgCiDfGiDiHiDjDiCmMiPeJjHlJiBeC_xHqqkZx_
	m_pGate->NullSessionEnd();
} // CFCFoundDoc::NullSessionEnd.

//----- 06.01.06 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::InitializeCmdBuffer
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDhNiDjDiDgIiDgPiDgCiDhEiDeAiCpAiKkOjBfDiCmJiPiJiKpKiJlLiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.04.29 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCFoundDoc::InitializeCmdBuffer ()
//{
//	m_pGate->InitializeCmdBuffer();
//} // CFCFoundDoc::InitializeCmdBuffer.
//----- 06.01.06 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::GetSessionDepth
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfKiDgCiDfGiDiHiDjDiCmMiDgMiDfIiDgHiCmMjAfLiClDiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDfKiDgCiDfGiDiHiDjDiCmMiDgMiDfIiDgHiCmMjAfLiClDiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.12.01 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
long CFCFoundDoc::GetSessionDepth () const
{
	return m_pGate->GetSessionDepth();
} // CFCFoundDoc::GetSessionDepth.

//----- 03.12.17 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::Undo
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiMlDiCmJjGnPiClHiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	stObjID	:_xZkqqHx_jFmPiNfIiCkKjDpMiCmBiClNjFjEjFgJiCmMiDiKiDfIiDgHiCpAjFnEiClHiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_jAkMiMpHiClFiClNiPoKiNiHiCmN_xHqqkZx_TRUE_xZkqqHx_iBeBiOlIjEhDiClFiClNiPoKiNiHiCmN_xHqqkZx_FALSE_xZkqqHx_iBeC_xHqqkZx_
// *
// * <_xZkqqHx_iPnKiNnH_xHqqkZx_>	_xZkqqHx_jFnEjCgMiCmNiBeB_xHqqkZx_HistDrawDoc_xZkqqHx_iCmM_xHqqkZx_Undo_xZkqqHx_iCmJiCkIiCkCiCmEjFeLjHhGiCmJiCmIiCoJiBeC_xHqqkZx_
// *			_xZkqqHx_iDhEiDeAiDeDiDiLiCpAiDiNiDgCiDeOiCmFiCkLiCmIiCkCiPoKiNiHiBeB_xHqqkZx_Undo_xZkqqHx_iCkKjHjKjHpAjFkKiKpCiImIjBePiCmJjGnPiCoLiCkEiCmG_xHqqkZx_
// *			_xZkqqHx_iClHiCoJiPoKiNiHiCmIiCmHiBeB_xHqqkZx_Undo_xZkqqHx_iCmNiOmAiNhDiCmFiCkLiClIiCmJ_xHqqkZx_FALSE_xZkqqHx_iCpAjFnEiClHiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.03.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//BOOL CFCFoundDoc::Undo (DWORDSet& stObjID)
//{
//	if (!m_pGate->IsOpened()) return FALSE;
//	// _xZkqqHx_iCnMiClIiMlLiNnNjBeJjBpAjCiGiCmMjFjEjFgJiCpAiJpAiPjMiBeCiDhNiBfLiDeOiCpAiPmBiClHiBeC_xHqqkZx_
//	g_pView->ClearSelectObj(TRUE);
//	// _xZkqqHx_iCfAiDfKiDgCiDfGiDiHiDjDjGnPiCoJiBeC_xHqqkZx_
//	m_pGate->MoveSessionPrev(stObjID);
//	return TRUE;
//} // CFCFoundDoc::Undo.
//----- 03.12.17 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnUndo
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiMlDiCmJjGnPiClHiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	04.08.12 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OnUndo ()
{
//----- 06.03.08 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
////----- 05.11.10 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
//	// _xZkqqHx_iMlLiNnNiCmMjHjKjHpAiImKjChFiCpAiLeMjIfOiClHiCoJiBeC_xHqqkZx_
//	PushBackDocRequest(ID_DREQ_PUSH_CURRENT_TO_DSM);
////----- 05.11.10 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
//----- 06.03.08 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
	// _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCpAjAnNjCoIiBeC_xHqqkZx_
	PushBackDocRequest(ID_DREQ_MOVE_HISTORY_BACKWARD);
	PushBackDocRequest(ID_DREQ_RGN_REDRAW);
	// _xZkqqHx_jHjKjHpAiNfMjBkCiDhCiDiFiBfLiCpAjDkPiKpKiClDiClJiCoJiBeC_xHqqkZx_
	PushBackDocRequest(ID_DREQ_SYNC_HIVIEW_TO_DOCUMENT);
//----- 05.11.10 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	// _xZkqqHx_iMlLiNnNiCmMjHjKjHpAiImKjChFiCpAiLeMjIfOiClHiCoJiBeC_xHqqkZx_
//	PushBackDocRequest(ID_DREQ_PUSH_CURRENT_TO_DSM);
//----- 05.11.10 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
	// _xZkqqHx_iPeJjCfLiCpAjBhNjDpMiBeC_xHqqkZx_
	PushBackDocRequest(ID_DREQ_END);
	// Document_xZkqqHx_jHhGiLiBiCpAiPiIjHjNiBeC_xHqqkZx_
	ProceedDocRequest(TRUE);
} // CFCFoundDoc::OnUndo.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::CanUndo
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiMlDiCmJjGnPiClHiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjClCiCnHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.03.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCFoundDoc::CanUndo () const
{
	// ReadOnly_xZkqqHx_iCmIiCoHiCmOjGlDiMpIiBeC_xHqqkZx_
	if (!FFCanEditDocument()) return FALSE;
	// _xZkqqHx_jHjKjHpAiDhEiDeAiDeDiDiLiCkKiKeKiCkCiCmEiCkCiCmIiCkPiCoKiCmOiBeBjGlDiMpIiBeC_xHqqkZx_
	if (!m_pGate->IsOpened()) return FALSE;
	return m_pGate->CanMoveSessionPrev();
} // CFCFoundDoc::CanUndo.

//----- 03.12.17 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::Redo
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiCoCiCoIjClMiClFiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	stObjID	:_xZkqqHx_jFmPiNfIiCkKjDpMiCmBiClNjFjEjFgJiCmMiDiKiDfIiDgHiCpAjFnEiClHiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_jAkMiMpHiClFiClNiPoKiNiHiCmN_xHqqkZx_TRUE_xZkqqHx_iBeBiOlIjEhDiClFiClNiPoKiNiHiCmN_xHqqkZx_FALSE_xZkqqHx_iBeC_xHqqkZx_
// *
// * <_xZkqqHx_iPnKiNnH_xHqqkZx_>	_xZkqqHx_jFnEjCgMiCmNiCkAiCnMiCoIjFeLjHhGjGlDiCkCiCkKiBeB_xHqqkZx_Undo_xZkqqHx_iCmFjFnEjCgMiCkKjFeLjHhGiCmIiCmMiCmFiBeBiClLiCoKiCmJ_xHqqkZx_
// *			_xZkqqHx_iNiHiCoNiClJiCmEjFnEjCgMiCpAjHhAiInDiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.03.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//BOOL CFCFoundDoc::Redo (DWORDSet& stObjID)
//{
//	if (!m_pGate->IsOpened()) return FALSE;
//	// _xZkqqHx_iCnMiClIiMlLiNnNjBeJjBpAjCiGiCmMjFjEjFgJiCpAiJpAiPjMiBeCiDhNiBfLiDeOiCpAiPmBiClHiBeC_xHqqkZx_
//	g_pView->ClearSelectObj(TRUE);
//	// _xZkqqHx_iCfAiDfKiDgCiDfGiDiHiDjDjAgJiCnOiBeC_xHqqkZx_
//	m_pGate->MoveSessionNext(stObjID);
//	return TRUE;
//} // CFCFoundDoc::Redo.
//----- 03.12.17 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnRedo
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiCoCiCoIjClMiClFiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	04.08.12 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OnRedo ()
{
//----- 06.03.08 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
////----- 05.11.10 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
//	// _xZkqqHx_iMlLiNnNiCmMjHjKjHpAiImKjChFiCpAiLeMjIfOiClHiCoJiBeC_xHqqkZx_
//	PushBackDocRequest(ID_DREQ_PUSH_CURRENT_TO_DSM);
////----- 05.11.10 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
//----- 06.03.08 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
	// _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCpAjAnNjCoIiBeC_xHqqkZx_
	PushBackDocRequest(ID_DREQ_MOVE_HISTORY_FORWARD);
	PushBackDocRequest(ID_DREQ_RGN_REDRAW);
	// _xZkqqHx_jHjKjHpAiNfMjBkCiDhCiDiFiBfLiCpAjDkPiKpKiClDiClJiCoJiBeC_xHqqkZx_
	PushBackDocRequest(ID_DREQ_SYNC_HIVIEW_TO_DOCUMENT);
//----- 05.11.10 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	// _xZkqqHx_iMlLiNnNiCmMjHjKjHpAiImKjChFiCpAiLeMjIfOiClHiCoJiBeC_xHqqkZx_
//	PushBackDocRequest(ID_DREQ_PUSH_CURRENT_TO_DSM);
//----- 05.11.10 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
	// _xZkqqHx_iPeJjCfLiCpAjBhNjDpMiBeC_xHqqkZx_
	PushBackDocRequest(ID_DREQ_END);
	// Document_xZkqqHx_jHhGiLiBiCpAiPiIjHjNiBeC_xHqqkZx_
	ProceedDocRequest(TRUE);
} // CFCFoundDoc::OnRedo.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::CanRedo
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiCoCiCoIjClMiClFiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjClCiCnHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCpAjDmBjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.03.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCFoundDoc::CanRedo () const
{
	// ReadOnly_xZkqqHx_iCmIiCoHiCmOjGlDiMpIiBeC_xHqqkZx_
	if (!FFCanEditDocument()) return FALSE;
	// _xZkqqHx_jHjKjHpAiDhEiDeAiDeDiDiLiCkKiKeKiCkCiCmEiCkCiCmIiCkPiCoKiCmOiBeBjGlDiMpIiBeC_xHqqkZx_
	if (!m_pGate->IsOpened()) return FALSE;
	return m_pGate->CanMoveSessionNext();
} // CFCFoundDoc::CanRedo.

//----- 06.01.16 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::GetCommandFilePtr
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jHjKjHpAiDhEiDeAiDeDiDiLiCmMiMlLiNnNiImKjChFiCpAjFnEiClHiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_jHjKjHpAiDhEiDeAiDeDiDiLiCmMiMlLiNnNiImKjChFiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.03.10 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//// 02.01.16 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
////DWORD CFCFoundDoc::GetCommandFilePtr () const
//flint CFCFoundDoc::GetCommandFilePtr () const
//{
//	return m_pGate->GetFilePosition();
//} // CFCFoundDoc::GetCommandFilePtr.
//----- 06.01.16 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnPictArrowModified
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhDiDeOiDgAiDiDjGoOiIpDiCkKjFmPiNfIiClDiCoKiClNiCmGiCkLiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	paid:_xZkqqHx_jFmPiNfIjBmOiPnLiCmMjGoOiIpDiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.04.12 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OnPictArrowModified (PictArrowID paid)
{
	struct myFunc
	{
		static BOOL myPictArrowFrameModified (FCObjDynabase* pObj, void* data)
		{
			pObj->OnPictArrowModified(PictArrowID(data));
			return TRUE;
		}
	};
	// _xZkqqHx_jBfDiCmEiCmMjFjEjFgJiCmJjBmOiClFiCmEiBeB_xHqqkZx_myPictArrowFrameModified_xZkqqHx_iKnGjAjEiCpAiOmAiNhDiClHiCoJiBeC_xHqqkZx_
	// _xZkqqHx_iKmCiLkLiBeC_xHqqkZx_
	g_pEnv->CallForAllObject(myFunc::myPictArrowFrameModified, (void*)(paid));
	// _xZkqqHx_iDgDiBfLiDiLjDoAjFjEjFjEjFgJiBeC_xHqqkZx_
	g_pView->CallForAllObject(myFunc::myPictArrowFrameModified, (void*)(paid));
	// _xZkqqHx_iDfGiBfLiDgHiPoDiCmMjFjEjFgJiBeC_xHqqkZx_
	SheetManager()->CallForAllObject(myFunc::myPictArrowFrameModified, (void*)(paid));
} // CFCFoundDoc::OnPictArrowModified.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::MulticmdCreate1Obj
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iBhFjFjEjFgJiCpAiNoMjAkMiClHiCoJiBhGiBhFiDgFiDeMiDfIiDgHiCpAiNoMjAkMiClHiCoJiBhGiCmMiCfBiCmCiCmMiDfCiDhNiDjDiDgIiCpAjEkNiNhDiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	objp	:_xZkqqHx_iNoMjAkMiClDiCoKiClNjFjEjFgJiCpAiOhHjCoIiBeC_xHqqkZx_
 *			lzorder	:_xZkqqHx_jFjEjFgJiCmM_xHqqkZx_Z_xZkqqHx_iDeJiBfLiDfPiBfLiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_jFjEjFgJiNoMjAkMiCpAiDfCiDhNiDjDiDgIiDgFiBfLiDhFiDiLiCmJiLeMjIfOiClHiCoJiPoKiNiHiBeBiDgFiDeMiDfIiDgHiCmMjGlDiCkCjFjEjFgJiCpA_xHqqkZx_
 *			_xZkqqHx_iNoMjAkMiClFiBeBiMoDiCkJiCoHiDgFiDeMiDfIiDgHiCpAiNoMjAkMiBeFjCmHiJmBiClHiCoJjFeLjHhGiCkKiCkAiCoJiBeC_xHqqkZx_
 *			_xZkqqHx_iDhEiDiLiDgFiDeMiDfIiDgHiMjPiNpFiCmMiClNiCnPiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.02.14 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::MulticmdCreate1Obj (FCObjDynabase* objp, SheetID stid, const FCLayerZOrder& lzorder)
{
	// _xZkqqHx_jFjEjFgJ_xHqqkZx_->_xZkqqHx_iDgFiDeMiDfIiDgHiDgOiDgCiDfGiDiFjEhKjHpBiCpAiNoMjAkMiBeC_xHqqkZx_
	map<FCObjDynabase*, FCRichText*> mpObjToText;
	// _xZkqqHx_jFjEjFgJjCiGiCmMiBeB_xHqqkZx_FDOJ_FIGURE_xZkqqHx_iMgOjFjEjFgJiCpAjBfDiCmEiOoGiCoIiPgPiClHiBeC_xHqqkZx_
	ObjDynabaseVector vObj;
	objp->GetKindOfMembers(vObj, FDOJ_FIGURE);
	// _xZkqqHx_jFjEjFgJ_xHqqkZx_->_xZkqqHx_iDgFiDeMiDfIiDgHiDgOiDgCiDfGiDiFjEhKjHpBiCpAiNoMjAkMiBeC_xHqqkZx_
	// _xZkqqHx_jDkPiOjOiCmJiBeBjFjEjFgJjCiGiCmMiDgFiDeMiDfIiDgHiCpA_xHqqkZx_NULL_xZkqqHx_iCmJiClFiCmEiCkIiCkNiBeC_xHqqkZx_
	ObjDynabaseVector::iterator iObj;
	for (iObj = vObj.begin(); iObj != vObj.end(); iObj++)
	{
		if ((*iObj)->GetRichText() != NULL)
			mpObjToText[*iObj] = (*iObj)->SetRichText(NULL);
	}
	// _xZkqqHx_jFjEjFgJiNoMjAkMiDfCiDhNiDjDiDgIjEkNiNhDiBeC_xHqqkZx_
	CmdCreate1Obj(objp, stid, lzorder);
	// _xZkqqHx_iDgFiDeMiDfIiDgHiNoMjAkMiDfCiDhNiDjDiDgIjEkNiNhDiBeC_xHqqkZx_
	map<FCObjDynabase*, FCRichText*>::const_iterator iOt;
	for (iOt = mpObjToText.begin(); iOt != mpObjToText.end(); iOt++)
		CmdCreate1RichText((FCObjFigure*)iOt->first, iOt->second);
} // CFCFoundDoc::MulticmdCreate1Obj.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::MulticmdDelete1Obj
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iBhFiDgFiDeMiDfIiDgHiCpAiNoNiPjMiClHiCoJiBhGiBhFjFjEjFgJiCpAiNoNiPjMiClHiCoJiBhGiCmMiCfBiCmCiCmMiDfCiDhNiDjDiDgIiCpAjEkNiNhDiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	objp	:_xZkqqHx_iNoNiPjMiClDiCoKiCoJjFjEjFgJiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_jFjEjFgJiNoNiPjMiCpAiDfCiDhNiDjDiDgIiDgFiBfLiDhFiDiLiCmJiLeMjIfOiClHiCoJiPoKiNiHiBeBiDgFiDeMiDfIiDgHiCpAiNoNiPjMiClFiCmEiCkJiCoHiBeB_xHqqkZx_
 *			_xZkqqHx_iDgFiDeMiDfIiDgHiCmMjGlDiCkCjFjEjFgJiCpAiNoNiPjMiClHiCoJjFeLjHhGiCkKiCkAiCoJiBeC_xHqqkZx_
 *			_xZkqqHx_iDhEiDiLiDgFiDeMiDfIiDgHiMjPiNpFiCmMiClNiCnPiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.02.14 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::MulticmdDelete1Obj (FCObjDynabase* objp, SheetID stid)
{
	// _xZkqqHx_jFjEjFgJjCiGiCmMiBeB_xHqqkZx_FDOJ_FIGURE_xZkqqHx_iMgOjFjEjFgJiCpAjBfDiCmEiOoGiCoIiPgPiClHiBeC_xHqqkZx_
	ObjDynabaseVector vObj;
	objp->GetKindOfMembers(vObj, FDOJ_FIGURE);
	ObjDynabaseVector::iterator iObj;
	for (iObj = vObj.begin(); iObj != vObj.end(); iObj++)
	{
		// _xZkqqHx_iDgFiDeMiDfIiDgHiCpAiOjNiCmCjFjEjFgJiCkJiCoHiDgFiDeMiDfIiDgHiCpAiNoNiPjMiBeC_xHqqkZx_
		if ((*iObj)->GetRichText() != NULL)
			CmdDelete1RichText((FCObjFigure*)*iObj);
	}
	// _xZkqqHx_jFjEjFgJiNoNiPjMiDfCiDhNiDjDiDgIjEkNiNhDiBeC_xHqqkZx_
	CmdDelete1Obj(objp, stid);
} // CFCFoundDoc::MulticmdDelete1Obj.

//----- 06.12.05 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::MulticmdDeleteUnusedFonts
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iOgHiCoNiCoKiCmEiCkCiCmIiCkCiDhEiDeIiDjDiDgHiCpAiNoNiPjMiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iOgHiCoNiCoKiCmEiCkCiCmIiCkCiDhEiDeIiDjDiDgHiCpAiNoNiPjMiClFiCmIiCkCiCmGiBeBiDhEiDeIiDjDiDgHiCkKiCmHiCpBiCmHiCpB_xHqqkZx_
 *			_xZkqqHx_jHkNiCnMiCmBiCmEiClFiCnMiCkEiBeC_xHqqkZx_
 *			_xZkqqHx_iNoNiPjMiClHiCoJiDfOiDeDiDhOiDjDiDePiCmNiBeBiDhEiDeIiDjDiDgHiCkKjCmHiJmBiClDiCoKiClNiMoDiCkKjHmHiCkCiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.12.05 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::MulticmdDeleteUnusedFonts ()
{
	// _xZkqqHx_iOgHiCoNiCoKiCmEiCkCiCoJ_xHqqkZx_S_xZkqqHx_iDhEiDeIiDjDiDgHiDiKiDfIiDgHiCpAjFnLjBlGiBeC_xHqqkZx_
	// CmdDelete1SFont_xZkqqHx_jCiGiCmF_xHqqkZx_GetFreqSFontVector_xZkqqHx_iCmNjFmPiNfIiClDiCoKiCoJiClNiCnPiBeC_xHqqkZx_
	FDSFontIDVector vFontId = g_pEnv->GetFreqSFontVector();
	FDSFontIDVector::const_iterator iFont;
	for (iFont = vFontId.begin(); iFont != vFontId.end(); iFont++)
	//----- _xZkqqHx_iOgHiCoNiCoKiCmEiCkCiCoJ_xHqqkZx_S_xZkqqHx_iDhEiDeIiDjDiDgHiCpAiDiLiBfLiDhG_xHqqkZx_ -----
	{
		// _xZkqqHx_jFfHiPiAiDhEiDeIiDjDiDgHiImIiKePiCmFiBeBiNoNiPjMiJmCjEfMiCmIiDhEiDeIiDjDiDgHiCmNiNoNiPjMiBeC_xHqqkZx_
		if (*iFont != FD_S_FONT_STANDARD && CanDeleteSFont(*iFont))
			CmdDelete1SFont(*iFont);
	}
} // CFCFoundDoc::MulticmdDeleteUnusedFonts.
//----- 06.12.05 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----

//----- 04.12.05 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::GetFirstSessionIndex
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iNmFiPiJiCmMiDfKiDgCiDfGiDiHiDjDiDeDiDjDiDgGiDgCiDeOiDfIiCpAjFnEiClHiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	04.01.13 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//flint CFCFoundDoc::GetFirstSessionIndex () const
//{
//	return m_pGate->GetFirstSessionIndex();
//} // CFCFoundDoc::GetFirstSessionIndex.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::GetNextSessionIndex
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iOjPiJpBiCmMiDfKiDgCiDfGiDiHiDjDiDeDiDjDiDgGiDgCiDeOiDfIiCpAjFnEiClHiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iDfKiDgCiDfGiDiHiDjDiDeDiDjDiDgGiDgCiDeOiDfIiCmNiBeBiNmFiPiJiCmMiDfKiDgCiDfGiDiHiDjDiCmJiPiHiCmJiCfAiJmBiOfKiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	02.03.04 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//flint CFCFoundDoc::GetNextSessionIndex () const
//{
//	return m_pGate->GetNextSessionIndex();
//} // CFCFoundDoc::GetNextSessionIndex.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::GetPrevSessionTime
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jBePiJpBiCmMiDfKiDgCiDfGiDiHiDjDiCkKiLeMjIfOiClDiCoKiClNiOjOiKnEiBgJjFgCiBgKiCpAjFnEiClHiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_jBePiJpBiCmMiDfKiDgCiDfGiDiHiDjDiCkKiLeMjIfOiClDiCoKiClNiOjOiKnEiBgJjFgCiBgK_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	04.10.07 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//FDSECTIME CFCFoundDoc::GetPrevSessionTime () const
//{
//	return m_pGate->GetPrevSessionTime();
//} // CFCFoundDoc::GetPrevSessionTime.
//----- 04.12.05 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

//----- 04.07.29 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnFrameTimer
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhEiDiMiBfLiDiAiDeFiDeCiDjDiDgIiDeFiCmM_xHqqkZx_OnTimer_xZkqqHx_iCkJiCoHiOmAiNhDiBeCiDfCiDhNiDjDiDgIiDhEiDeAiDeDiDiLiCmM_xHqqkZx_
// *			_xZkqqHx_iDhEiDiJiDgCiDfGiDiFjHhAiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.06.18 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCFoundDoc::OnFrameTimer (UINT nIDEvent)
//{
////----- 02.03.29 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
////	// Document_xZkqqHx_iCmMiKnGjAjEiOmAiNhDiBeCiDfCiDhNiDjDiDgIiDhEiDeAiDeDiDiLiCmMiDhEiDiJiDgCiDfGiDiFiCpAiNhDiCkEiBeC_xHqqkZx_
////	if (nIDEvent == FDTIMER_FRAME_FLUSH)
////	{
////		// _xZkqqHx_jHjKjHpAjFlGiPjBiDhEiDeAiDeDiDiLiCpAiDhEiDiJiDgCiDfGiDiFiClHiCoJiBeC_xHqqkZx_
////		if (m_pGate->IsOpened() && !m_pGate->IsReadOnly())
////			m_pGate->FlushHistory();
////	}
////----- 02.03.29 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
//// 02.12.03 Fukushiro M. 1_xZkqqHx_iNhDjCmHiJmB_xHqqkZx_ ()
//	if (nIDEvent == FDTIMER_FRAME_FLUSH)
//	//----- _xZkqqHx_iDhEiDiJiDgCiDfGiDiFiDfOiDeDiDhNiBfLiCmMiPoKiNiH_xHqqkZx_ -----
//	{
//		// _xZkqqHx_jHjKjHpAjFlGiPjBiDhEiDeAiDeDiDiLiCpAiDhEiDiJiDgCiDfGiDiFiClHiCoJiBeC_xHqqkZx_
//		if (m_pGate->IsOpened() && !m_pGate->IsReadOnly())
//		{
//			if (FD_THRESHOLD_FLUSH_TIME <= FdtimeToFdsec(g_pFileServer->GetFdtimeFromFirstModified()))
//			{
////----- 04.07.29 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
////				// FlushAll_xZkqqHx_iCmNiBeBiDgPiDgCiDeOiDeBiDgCiDhGiCmJiNlHjFkKiDhEiDeAiDeDiDiLiCpA_xHqqkZx_
////				// _xZkqqHx_iNoMjAkMiClHiCoJiClNiCnPiBeBiOgHjHhAiClFiCmIiCkCiBeC_xHqqkZx_
////// 03.10.24 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//////				m_pGate->FlushHistory();
////				g_pFileServer->FlushFileHandle(m_pGate->GetFileHandle());
////----- 04.07.29 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
//				// Flush_xZkqqHx_iClHiCoJiBeCiDgPiDgCiDeOiDeBiDgCiDhGiNlHjFkKiDhEiDeAiDeDiDiLiCpAiNoMjAkMiClFiCmIiCkCiBeC_xHqqkZx_
//				g_pFileServer->FlushAll2(FALSE);
////----- 04.07.29 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
//			}
//		}
//	} else
//	//----- _xZkqqHx_iDhEiDiJiDgCiDfGiDiFiDfOiDeDiDhNiBfLiImIiKePiCmMiPoKiNiH_xHqqkZx_ -----
//	{
//		// Superclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
//		BASE_CLASS::OnFrameTimer(nIDEvent);
//	}
//} // CFCFoundDoc::OnFrameTimer.
//----- 04.07.29 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::IsOleDocumentsOpened
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iIoKiCmCiCmFiCoA_xHqqkZx_OLE_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiCkKiKeKiCkJiCoKiCmEiCkCiCoKiCmOiBeB_xHqqkZx_TRUE_xZkqqHx_iCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iIoKiCmCiCmFiCoA_xHqqkZx_OLE_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiCkKiKeKiCkJiCoKiCmEiCkCiCoKiCmOiBeB_xHqqkZx_TRUE_xZkqqHx_iCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.11.23 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCFoundDoc::IsOleDocumentsOpened () const
{
//----------<NOT EXPORT TO VIEWER>-----------
	POSITION pos = GetStartPosition();
	while (pos != NULL)
	{
		CMolipDrawCntrItem4_0* pItem = (CMolipDrawCntrItem4_0*)GetNextClientItem(pos);
		// NULL_xZkqqHx_iCmMiPoKiNiHiCmNiOjPiCmMiDiLiBfLiDhGiCnGiBeC_xHqqkZx_NULL_xZkqqHx_iCmMiPoKiNiHiCkKjHeMiCoIjDlOiCoJiBeC_xHqqkZx_
		if (pItem == NULL) continue;
		if (pItem->IsOpen()) return TRUE;
	}
//----------</NOT EXPORT TO VIEWER>-----------
	return FALSE;
} // CFCFoundDoc::IsOleDocumentsOpened.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::CloseOleDocuments
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iKeKiCkCiCmEiCkCiCoJ_xHqqkZx_OLE_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiCpAjBfDiCmEjFmCiClGiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.11.23 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::CloseOleDocuments ()
{
//----- 05.06.14 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	POSITION pos = GetStartPosition();
//	while (pos != NULL)
//	{
//		COleClientItem* pItem = GetNextClientItem(pos);
//		// NULL_xZkqqHx_iCmMiPoKiNiHiCmNiOjPiCmMiDiLiBfLiDhGiCnGiBeC_xHqqkZx_NULL_xZkqqHx_iCmMiPoKiNiHiCkKjHeMiCoIjDlOiCoJiBeC_xHqqkZx_
//		if (pItem == NULL) continue;
//		if (pItem->IsOpen())
//		{
//			// Molip Draw_xZkqqHx_iCkJiCoHiCmMiLkNjAkHiDeOiDiNiBfLiDfJiCmFiCkAiCoJiDhEiDiJiDePiCpAiOhHjCoIiBeC_xHqqkZx_
//			((CMolipDrawCntrItem4_0*)pItem)->SetIsExitOleApp(FALSE);
//			// OLE_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiCpAiDeOiDiNiBfLiDfJiBeC_xHqqkZx_
//			pItem->Close();
//		}
//	}
//----- 05.06.14 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	if (FCObjOle::GetEdittingOleItem() != NULL)
	//----- _xZkqqHx_jFnCiPfHjCiGiCmM_xHqqkZx_OLE_xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiCkKjBlGiNnNiClHiCoJiPoKiNiH_xHqqkZx_ -----
	{
		// Molip Draw_xZkqqHx_iCkJiCoHiCmMiLkNjAkHiDeOiDiNiBfLiDfJiCmFiCkAiCoJiDhEiDiJiDePiCpAiOhHjCoIiBeC_xHqqkZx_
		FCObjOle::GetEdittingOleItem()->SetIsExitOleApp(FALSE);
		// OLE_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiCpAiDeOiDiNiBfLiDfJiBeC_xHqqkZx_
		FCObjOle::GetEdittingOleItem()->Close();
	}
//----- 05.06.14 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
} // CFCFoundDoc::CloseOleDocuments.

//----- 05.04.04 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnFrameTimer
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhEiDiMiBfLiDiAiDeFiDeCiDjDiDgIiDeFiCmM_xHqqkZx_OnTimer_xZkqqHx_iCkJiCoHiOmAiNhDiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	nIDEvent	:_xZkqqHx_iDfOiDeDiDhNiBfLiCmMiOoNjHnOiCpAiOhHjCoIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.04.04 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCFoundDoc::OnFrameTimer (UINT nIDEvent)
//{
//	if (nIDEvent == FDTIMER_FRAME_MAKE_BEZIER)
//	//----- _xZkqqHx_iLnPiOjHiDhIiDfHiDeGiLmIjApMiNoMjAkMiDfOiDeDiDhNiBfLiCmMiPoKiNiH_xHqqkZx_ -----
//	{
//	} else
//	//----- _xZkqqHx_iLnPiOjHiDhIiDfHiDeGiLmIjApMiNoMjAkMiDfOiDeDiDhNiBfLiImIiKePiCmMiPoKiNiH_xHqqkZx_ -----
//	{
//		// Superclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
//		BASE_CLASS::OnFrameTimer(nIDEvent);
//	}
//} // CFCFoundDoc::OnFrameTimer.
//----- 05.04.04 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnActivateDocument
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDeBiDeOiDgFiDeCiDhFiCmIiDeBiDhGiDiKiDfAiBfLiDfGiDiHiDjDiCkKjAnIiCoIjBnGiCoNiCoJiOjOiCmJiBeB_xHqqkZx_CFCMainFrame_xZkqqHx_iCkJiCoH_xHqqkZx_
 *			_xZkqqHx_iOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	bActive	:_xZkqqHx_iClBiCmMiDfOiDfIiDeOiCkKiDeBiDeOiDgFiDeCiDhFiCmJiCmIiCoJiCmGiCkLiCmN_xHqqkZx_ TRUE_xZkqqHx_iBeBjEpBiDeBiDeOiDgFiDeCiDhF_xHqqkZx_
 *					_xZkqqHx_iCmJiCmIiCoJiCmGiCkLiCmN_xHqqkZx_ FALSE _xZkqqHx_iCkKjAnNjCoIiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	02.03.09 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OnActivateDocument (BOOL bActive)
{
//	ActivateDocument(bActive);
} // CFCFoundDoc::OnActivateDocument.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::GetIsDocumentOpened
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFlGiPjBiCkKiKeKiCkCiCmEiCkCiCoJiCkJiCmHiCkEiCkJiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_jFlGiPjBiCkKiKeKiCkCiCmEiCkCiCoJiPoKiNiHiCmN_xHqqkZx_ TRUE_xZkqqHx_iBeBjFmCiClGiCmEiCkCiCoJiPoKiNiHiCmN_xHqqkZx_ FALSE _xZkqqHx_iCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.04.16 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCFoundDoc::GetIsDocumentOpened () const
{
	return m_bIsDocumentOpened;
} // CFCFoundDoc::GetIsDocumentOpened.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::SetIsDocumentOpened
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFlGiPjBiCkKiKeKiCkCiCmEiCkCiCoJiCkJiCmHiCkEiCkJiCpAiOhHjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	bIsDocumentOpened	:_xZkqqHx_jFlGiPjBiCkKiKeKiCkCiCmEiCkCiCoJiPoKiNiHiCmN_xHqqkZx_ TRUE_xZkqqHx_iBeB_xHqqkZx_
 *								 _xZkqqHx_jFmCiClGiCmEiCkCiCoJiPoKiNiHiCmN_xHqqkZx_ FALSE _xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.08.09 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::SetIsDocumentOpened (BOOL bIsDocumentOpened)
{
	m_bIsDocumentOpened = bIsDocumentOpened;
} // CFCFoundDoc::SetIsDocumentOpened.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::GetDocumentId
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFlGiPjB_xHqqkZx_ID_xZkqqHx_iCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_jFlGiPjB_xHqqkZx_ID_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	HistView,HistDraw_xZkqqHx_iCmMiPoKiNiHiCmJjHeMiMpIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.01.25 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
long CFCFoundDoc::GetDocumentId () const
{
	return -1;
} // CFCFoundDoc::GetDocumentId.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::GetStdTool
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFfHiPiAiBgJiPiJiKpKiOjOiBgKiDgDiBfLiDiLiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_jFfHiPiAiBgJiPiJiKpKiOjOiBgKiDgDiBfLiDiLiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	FoundDoc::DeleteContents_xZkqqHx_iCmFiOgHjHhAiClHiCoJiBeCjFfHiPiAiDgDiBfLiDiLiCpAjFmPiNfIiClHiCoJiPoKiNiHiCmN_xHqqkZx_
 *			_xZkqqHx_iClBiCmMiKnGjAjEiCpAiDeJiBfLiDgPiBfLiDiJiDeDiDgIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.04.25 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
DWORD CFCFoundDoc::GetStdTool () const
{
	// _xZkqqHx_jBeJjBpAiBeFiPeDjAlDiDgDiBfLiDiLiCpAjFnEiClHiBeC_xHqqkZx_
// 00.12.22 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//	if (!GetIsDocumentOpened() || IsReadOnly()) return ID_TOOL_SELECT;
//----- 05.08.05 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	if (!FFCanEditObject()) return ID_TOOL_SELECT;
//----- 05.08.05 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	// FFCanEditObject()_xZkqqHx_iCmFjElLjCgGiClFiCmEiCmNiCkCiCkPiCmIiCkCiBeC_xHqqkZx_
	// FFCanEditObject()_xZkqqHx_iCmNiBeBiDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMjHeMiCoJjGlDiClFiBeBiDiMiDeDiDiEiBfLiCmJ_xHqqkZx_
	// _xZkqqHx_iCoGiCmBiCmEjCgMiCkKjFmPiCoNiCoJiClNiCnPiBeBiDgDiBfLiDiLiCpAjElLjCgGiClHiCoJiCmMiCmJiCnDiClDiCoNiClFiCkNiCmIiCkCiBeC_xHqqkZx_
	if (!GetIsDocumentOpened() || IsReadOnly()) return ID_TOOL_SELECT;
//----- 05.08.05 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
	else return ID_TOOL_SELEDIT;
} // CFCFoundDoc::GetStdTool.

//----- 03.09.21 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::IsOpenDocWin
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiCpAiDeJiBfLiDhGiDjDiClHiCoJiOjOiBeBjFmKiDeFiDeCiDjDiDgIiDeFiCmFiDeJiBfLiDhGiDjDiClFiCmIiCkPiCoKiCmO_xHqqkZx_
// *			_xZkqqHx_iCmIiCoHiCmIiCkCiCkJiCmHiCkEiCkJiCpAjFnEiClHiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_jFmKiDeFiDeCiDjDiDgIiDeFiCmIiCoHiCmO_xHqqkZx_ TRUE_xZkqqHx_iBeBjDkPiDeFiDeCiDjDiDgIiDeFiCmIiCoHiCmO_xHqqkZx_ FALSE _xZkqqHx_iCpAjFnEiClHiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	CFCMolipDrawApp_xZkqqHx_iCkJiCoHiOmAiNhDiClDiCoKiCoJiBeCiDhEiDeAiDeDiDiLiDfPiDhFiDiLiDeOiDiKiDgCiDeOiCmFiLeOjDkOiCmM_xHqqkZx_
// *			_xZkqqHx_iPoKiNiHiBeB_xHqqkZx_HistDraw_xZkqqHx_iCmFiCkAiCmBiCmEiCoA_xHqqkZx_MolipDraw_xZkqqHx_iCpAiLeOjDkOiClFiCmIiCkPiCoKiCmOiCmIiCoHiCmIiCkCiBeC_xHqqkZx_
// *			_xZkqqHx_iClBiCoKiCmJjBmOiJjOiClHiCoJiClNiCnPiBeBiClBiCmMiKnGjAjEiCkKiCkAiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.02.02 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//BOOL CFCFoundDoc::IsOpenDocWin ()
//{
//	return TRUE;
//} // CFCFoundDoc::IsOpenDocWin.
//----- 03.09.21 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::IsClosableTemporaryDocument
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iIoKiOjOjDeJiCmIjFlGiPjBiBgJiDhGiDiNiDfHiDeGiDeOiDgHiBeFjHjKjHpAjFlGiPjBiBgKiCmFiCkAiCoJiCkJiBeI_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCkKjFmCiClGiCmEiCkCiCoJiPoKiNiHiBeBiIoKiOjOjDeJiCmIjFlGiPjBiBgJiDhGiDiNiDfHiDeGiDeOiDgHiBeFjHjKjHpAjFlGiPjBiBgK_xHqqkZx_
 *			_xZkqqHx_iCmMiPoKiNiHiCmN_xHqqkZx_ TRUE_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiCpAiDeJiBfLiDhGiDjDiClHiCoJiOjOiBeBjFmKiDeFiDeCiDjDiDgIiDeFiCmFiDeJiBfLiDhGiDjDiClFiCmIiCkPiCoKiCmO_xHqqkZx_
 *			_xZkqqHx_iCmIiCoHiCmIiCkCiCkJiCmHiCkEiCkJiCpAjElLjCgGiClHiCoJiNnLiCmJiOgHiCoNiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.02.02 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCFoundDoc::IsClosableTemporaryDocument () const
{
	return FALSE;
} // CFCFoundDoc::IsClosableTemporaryDocument.
//----- 03.09.21 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::IsReadOnly
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiDhEiDeAiDeDiDiLiCpAjDmHiCnNiNjOiCnNjAoKjHhAiCmGiClFiCmEiDeJiBfLiDhGiDjDiClFiCmEiCkCiCoJiCkJiCpA_xHqqkZx_
 *			_xZkqqHx_jFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_jDmHiCnNiNjOiCnNjAoKjHhAiCmIiCoHiCmO_xHqqkZx_ TRUE_xZkqqHx_iBeBiClLiCkEiCmFiCmIiCkCiCmIiCoH_xHqqkZx_ FALSE _xZkqqHx_iCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.02.02 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCFoundDoc::IsReadOnly () const
{
	// _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiDhEiDeAiDeDiDiLiCmN_xHqqkZx_ReadOnly_xZkqqHx_iCkJiBeI_xHqqkZx_
	return m_bIsReadOnly;
} // CFCFoundDoc::IsReadOnly.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::SetIsReadOnly
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiDhEiDeAiDeDiDiLiCpAjDmHiCnNiNjOiCnNjAoKjHhAiCmGiClFiCmEiDeJiBfLiDhGiDjDiClFiCmEiCkCiCoJiCkJiCpA_xHqqkZx_
 *			_xZkqqHx_jAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	bReadOnly	:_xZkqqHx_jDmHiCnNiNjOiCnNjAoKjHhAiCmIiCoHiCmO_xHqqkZx_ TRUE_xZkqqHx_iBeBiClLiCkEiCmFiCmIiCkCiCmIiCoH_xHqqkZx_ FALSE _xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.06.12 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::SetIsReadOnly (BOOL bReadOnly)
{
	m_bIsReadOnly = bReadOnly;
} // CFCFoundDoc::SetIsReadOnly.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::IsPictArrowForbidden
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhDiDeOiDgAiDiDjGoOiIpDiCkKiLnGiOhOiCkJiBeI_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iCkAiCnMiCoIjEpMiClFiCkCiCoCiCoIjFpLiCmFiCmNiCmIiCkCiCkKiBeB_xHqqkZx_PrpObjFigure4_xZkqqHx_iCmFiBeBiDhDiDeOiDgAiDiDjGoOiIpD_xHqqkZx_
 *			_xZkqqHx_iCpAiLnGiOhOiClHiCoJiClNiCnPiCmJiNoMjAkMiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.04.12 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCFoundDoc::IsPictArrowForbidden () const
{
	return FALSE;
} // CFCFoundDoc::IsPictArrowForbidden.

//----- 03.09.02 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::ExitApplication
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDeBiDhGiDiKiDfAiBfLiDfGiDiHiDjDiCpAiLkNjAkHjDeJiCmJiPeJjHlJiClDiClJiCoJiBeCiPeJjHlJiCmMiDiBiDgCiDfKiBfLiDfHiCpA_xHqqkZx_
// *			Post_xZkqqHx_iClHiCoJiClNiCnPiBeBjBkGiNmAiCmJiPeJjHlJiCmFiCmNiCmIiCkCiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	02.12.16 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCFoundDoc::ExitApplication ()
//{
////----- 03.08.15 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
////	// _xZkqqHx_jHjKjHpAiDhEiDeAiDeDiDiLiCpAjFmCiClGiCoJiBeC_xHqqkZx_
////	DeleteContents();
////----- 03.08.15 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
//	// _xZkqqHx_iClBiCmMiCnMiCnMiPeJjHlJiClHiCoJiBeC_xHqqkZx_
//	SetModifiedFlag(FALSE);
//	FFGetMainWnd()->PostMessage(WM_COMMAND, ID_APP_EXIT, 0);
//} // CFCFoundDoc::ExitApplication.
//----- 03.09.02 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::ForceExitApplication
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDeBiDhGiDiKiDfAiBfLiDfGiDiHiDjDiCpAiLkNjAkHjDeJiCmJiPeJjHlJiClDiClJiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_jAlDiPoNiCmIiPeJjHlJiOoIjBlBiCkLiCpAiClJiClIiBeBiDeBiDhGiDiKiDfAiBfLiDfGiDiHiDjDiCpAiPeJjHlJiClDiClJiCoJiBeC_xHqqkZx_
 *			Undo_xZkqqHx_iDhEiDeAiDeDiDiLiCmIiCmHiCpAiOgDiClFiCmEiClFiCnMiCkEiClNiCnPiBeBiLnJiLhNiCmMiPoKiNiHiImIiKePiCmNjHjIjHhAiClFiCmEiCmN_xHqqkZx_
 *			_xZkqqHx_iCkCiCkPiCmIiCkCiBeC_xHqqkZx_
 *			_xZkqqHx_jCmKiPoNiCmNiBeBiImIiJlKiCmMiPiIjHjNiCmM_xHqqkZx_ExitApplication_xZkqqHx_iKnGjAjE_xHqqkZx_
 *			//-----------------------------------------
 *			SetModifiedFlag(FALSE);
 *			PostMessage(WM_COMMAND, ID_APP_EXIT, 0);
 *			//-----------------------------------------
 *			_xZkqqHx_iCmFiPeJjHlJiClDiClJiCoJiCmMiCkKjHmHiCkCiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.08.15 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::ForceExitApplication ()
{
	// _xZkqqHx_iPeDjAlDiDhEiDiJiDePiCpAiJpAiPjMiBeC_xHqqkZx_
	SetModifiedFlag(FALSE);
	// _xZkqqHx_jFlGiPjBiCkKjFmCiClGiCmEiCkCiCoJiPpDjBnEiCmJiClHiCoJiBeC_xHqqkZx_
// 04.07.15 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//	m_bIsDocumentOpened = TRUE;
	m_bIsDocumentOpened = FALSE;
	// _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiDhEiDeAiDeDiDiLiCmN_xHqqkZx_ReadOnly_xZkqqHx_iCkJiBeI_xHqqkZx_
	m_bIsReadOnly = TRUE;
	// Undo_xZkqqHx_iDhEiDeAiDeDiDiLiCpAjFmCiClGiCoJiBeC_xHqqkZx_
	if (m_pGate->IsOpened())
		m_pGate->Clear();
	// _xZkqqHx_iPeJjHlJiDiBiDgCiDfKiBfLiDfHiBeC_xHqqkZx_
	FFGetMainWnd()->PostMessage(WM_COMMAND, ID_APP_EXIT, 0);
} // CFCFoundDoc::ForceExitApplication.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnPursuerTextNeedInfo
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhMiDgCiDhGiDhBiDjDiDgHiCkKiBeBiDhBiDjDiDgHiPoOjFpBiCmMjAnNjCoIiCpAjHhGiLiBiClHiCoJiNnLiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jCiNiInD_xHqqkZx_>	_xZkqqHx_jFeLiClIiBeB_xHqqkZx_GetCursorPos_xZkqqHx_iKnGjAjEiCmFiDhNiDeFiDfIiImKjChFiCpAiOoGjDlOiClHiCoJiClBiCmGiBeC_xHqqkZx_
 *			_xZkqqHx_iDhNiDeFiDfIiNmAjFfHiCkK_xHqqkZx_WM_MOUSEMOVE_xZkqqHx_iCmJjHiKiCmBiCmEiCkCiCoJiCmGiBeBiDiBiDgKiDiFiBfLjFfMiOkGiOjOiCmIiCmHiCmJ_xHqqkZx_
 *			_xZkqqHx_iDhNiDeFiDfIiImKjChFiCkKiMlLiNnNiCmMiImKjChFiCmGjAeIiCkCiIoBiCmBiCmEiCkCiCoJiPoKiNiHiCkKiCkAiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.07.06 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OnPursuerTextNeedInfo ()
{
	if (g_pReg->GetIsPopupHint() && g_pReg->GetIsPopupObjectHint())
	//----- _xZkqqHx_jFjEjFgJiCmMiDhMiDgCiDhGiDhBiDjDiDgHiCpAjFfMiOkGiClHiCoJiPoKiNiH_xHqqkZx_ -----
	{
//----- 06.05.03 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
		// _xZkqqHx_iDgFiDeMiDfIiDgHjFnCiPfHjCiGiCmNjFnCiPfHiCmMiOnHjGiCiCmJiCmIiCoJiClNiCnPjFfMiOkGiClFiCmIiCkCiBeC_xHqqkZx_
		if (g_pView->GetRTFEditor()->IsWindowVisible())
			return;
//----- 06.05.03 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----

		// _xZkqqHx_iDhNiDeFiDfIiDeKiBfLiDfMiDiLiCmMiMlLiNnNiCmMiImKjChFiCpAiBeBiDfIiDeOiDiKiBfLiDjDiNmAjFfHiCmFiOoGjDlOiBeC_xHqqkZx_
		CPoint lgptMsc;
		(void)::GetCursorPos(&lgptMsc);

//----- 06.05.03 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//		if (g_pView->GetRTFEditor()->IsWindowVisible())
//		//----- _xZkqqHx_iDgFiDeMiDfIiDgHiDeHiDgGiDeCiDfOiDeFiDeCiDjDiDgIiDeFiCkKjFfMiOkGiPpDjBnEiCmMiPoKiNiH_xHqqkZx_ -----
//		{
//			// _xZkqqHx_iDhNiDeFiDfIiCkKiDeHiDgGiDeCiDfOjCiGiCmJiCkAiCoJiPoKiNiHiCmNjCmHjAnFiDhBiDjDiDgHiCpAjFfMiOkGiClFiCmIiCkCiBeC_xHqqkZx_
//			// _xZkqqHx_iDgFiDeMiDfIiDgHjFnCiPfHiCmMiOnHjGiCiCmJiCmIiCoJiClNiCnPiBeC_xHqqkZx_
//			CRect rtEdit;
//			g_pView->GetRTFEditor()->GetWindowRect(rtEdit);
//			if (rtEdit.PtInRect(lgptMsc)) return;
//		}
//----- 06.05.03 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

		// _xZkqqHx_iDhNiDeFiDfIiDeKiBfLiDfMiDiLiImKjChFiCpAiOmAiNmAjFfHiCmJjFmPiKlHiClHiCoJiBeC_xHqqkZx_
		g_pView->ScreenToClient(&lgptMsc);
		g_pView->DPtoLP(lgptMsc);
//----- 06.12.07 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//		// _xZkqqHx_iMlLiNnNiCmMiDiMiDeDiDiEiBfLiCkJiCoHiJlKiCmMiChJiDeJiBfLiDfPiBfLiCpAiOoGjDlOiBeC_xHqqkZx_
//		FCObjDynabase* pObj = GetIntersectObject(lg2mm(lgptMsc), NULL, FDOZ_ON_ANY);
//----- 06.12.07 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
		// _xZkqqHx_iMlLiNnNiCmMiDiMiDeDiDiEiBfLiCkJiCoHiJlKiCmMiBeBjFfMiOkGiClDiCoKiCmEiCkCiCoJjFjEjFgJiCmMiChJiDeJiBfLiDfPiBfLiCpAiOoGjDlOiBeC_xHqqkZx_
		FCObjDynabase* pObj = GetIntersectObject(lg2mm(lgptMsc), NULL, FDOZ_ON_DRAW);
//----- 06.12.07 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
		if (pObj != NULL)
		{
			WString wstrHint;
			GetObjectHintText(wstrHint, pObj);
			FFGetApp()->GetPopHint()->SetTargetInfo(wstrHint);
		}
	}
} // CFCFoundDoc::OnPursuerTextNeedInfo.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::GetAndClearErrFontInfo
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhEiDeIiDjDiDgHiCmMiDeHiDiJiBfLiPoOjFpBiCpAiOoGiCoIiPgPiClFiCmEiBeBjDoAjFjEjFmPjAjEiCpAiDeOiDiKiDeBiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	vFontInfo	:_xZkqqHx_iDeHiDiJiBfLiPoOjFpBiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.05.22 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::GetAndClearErrFontInfo (vector<FCErrFontInfo>& vFontInfo)
{
	FFGetAndClearErrFontInfo(vFontInfo);
} // CFCFoundDoc::GetAndClearErrFontInfo.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OutWorkFormat
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	
 *
 * <_xZkqqHx_iPnKiNnH_xHqqkZx_>	
 *
 * <_xZkqqHx_jCiNiInD_xHqqkZx_>	
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iDhEiDeIiBfLiDhNiDgCiDgHiMgAiOkOiCmNiBeB_xHqqkZx_InPortableFormat_xZkqqHx_iCmMiJpAjAoAiCpAiOfBiPmGiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.06.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OutWorkFormat (	CFile& file,
									BOOL bIsOutObject,
									BOOL bIsOutChip)
{
	// _xZkqqHx_iDfCiDeBiDhEiDeAiDeDiDiLiCpAiPgPjHmNiBeC_xHqqkZx_
// 06.04.04 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//	OutCurrentFcoreFormat(file, FD_DTP_WORK_FORMAT, TRUE, TRUE);
	OutCurrentFcoreFormat(file, FD_DTP_WORK_FORMAT, bIsOutObject, bIsOutChip);
} // CFCFoundDoc::OutWorkFormat.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::InWorkFormat
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	file			:_xZkqqHx_jDmHiCnNiPgPiClHiDhEiDeAiDeDiDiLiCpAiOhHjCoIiBeC_xHqqkZx_
 *			pCanvasStatRefer:_xZkqqHx_iDeMiDiDiDjDiDgPiDfIiPoOjFpBiCmMiDiKiDhEiDeAiDiMiDjDiDfIiCpAiOhHjCoIiBeC_xHqqkZx_
 *							 _xZkqqHx_iClBiCmMjCgMiCkKiOhHjCoIiClDiCoKiClNiPoKiNiHiBeBjDmHiCnNiNjOiCnMiCoKiClN_xHqqkZx_
 *							 _xZkqqHx_iDeMiDiDiDjDiDgPiDfIiPoOjFpBiCmFiCmNiCmIiCkNiBeBiClBiCmMjCgMiCpA_xHqqkZx_
 *							 _xZkqqHx_iOgHiCmBiCmEiPiJiKpKiJlLiClDiCoKiCoJiBeCjFhDjHhGiCmMiPoKiNiHiCmN_xHqqkZx_NULL_xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *			bIsRedraw		:_xZkqqHx_jDmHiCnNiNjOiCnNiMoDiBeBiNmEjFgAiJoGiClHiCoJiCkJiCmHiCkEiCkJiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	
 *
 * <_xZkqqHx_iPnKiNnH_xHqqkZx_>	
 *
 * <_xZkqqHx_jCiNiInD_xHqqkZx_>	
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iDhEiDeIiBfLiDhNiDgCiDgHiMgAiOkOiCmNiBeB_xHqqkZx_InPortableFormat_xZkqqHx_iCmMiJpAjAoAiCpAiOfBiPmGiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.06.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::InWorkFormat (CFile& file,
								FCCanvasStat* pCanvasStatRefer,
								BOOL bIsRedraw)
{
	// _xZkqqHx_jFfHiPiAiDhEiDeIiBfLiDhNiDgCiDgHjDpMjHmNiBeC_xHqqkZx_
	InFcoreFormat(file, pCanvasStatRefer, bIsRedraw);
} // CFCFoundDoc::InWorkFormat.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::ExportFile
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iOhHjCoIiCmMiDhEiDeAiDeDiDiLiCpAiDeHiDeOiDfIiDhMiBfLiDgHiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	wstrFilePath	:_xZkqqHx_iDhEiDeAiDeDiDiLjGlMiCpAiOhHjCoIiBeC_xHqqkZx_
 *			wstrFileVersion	:_xZkqqHx_iDhEiDeAiDeDiDiLiCmMiDgPiBfLiDfHiDiHiDjDiCpAiOhHjCoIiBeC_xHqqkZx_
 *			bIsOutObject	:_xZkqqHx_jFjEjFgJiCpAjFnLjBlGiClHiCoJiCkJiCmHiCkEiCkJiCpAjFnEiClHiBeCiDgFiDjDiDhGiDiMiBfLiDgHjAoKjHhAiBeC_xHqqkZx_
 *			bIsOutChip		:_xZkqqHx_iDgAiDgCiDhGiCpAjFnLjBlGiClHiCoJiCkJiCmHiCkEiCkJiCpAjFnEiClHiBeCiDgFiDjDiDhGiDiMiBfLiDgHjAoKjHhAiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.06.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::ExportFile (	const wchar_t* wcpFilePath,
								const wchar_t* wcpFileVersion,
								BOOL bIsOutObject,
								BOOL bIsOutChip)
{
	if (wcscmp(wcpFileVersion, FCHeaderInf::GetStcFileVersionString()) == 0)
	//----- _xZkqqHx_iDeBiDhGiDiKiCmGjDkPiClGiDgPiBfLiDfHiDiHiDjDiCmFjFnLjBlGiClHiCoJiPoKiNiH_xHqqkZx_ -----
	{
		switch (FFFileNameToFormat(wcpFilePath))
		{
			// FD_DTP_STANDARD_FORMAT _xZkqqHx_iCmMiPoKiNiHiCmJiBeB_xHqqkZx_OnSaveDocumentCopyAs _xZkqqHx_iCpA_xHqqkZx_
			// _xZkqqHx_iOgHiCmBiCmEiCkCiClNiCkKiBeB_xHqqkZx_bIsOutObject = FALSE _xZkqqHx_iCmJjBmOiJjOiCmFiCkLiCmIiCkCiCmMiCmF_xHqqkZx_
			// _xZkqqHx_iDfCiDjDiDgPiBfLiDfOiBfLiCmJjEeDiClJiCoJiBeC_xHqqkZx_
//----- 06.04.04 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//		case FD_DTP_STANDARD_FORMAT:	// _xZkqqHx_jCmKiPoNiDhEiDeIiBfLiDhNiDgCiDgHiCmMjFlGiPjBiBeC_xHqqkZx_
//		  {
//			if (!OnSaveDocumentCopyAs(wcpFilePath))
//			{
//				// "_xZkqqHx_iDhEiDeAiDeDiDiLiBhF_xHqqkZx_%s_xZkqqHx_iBhGiCmMjFnLjBlGiCmJiOlIjEhDiClFiCnMiClFiClN_xHqqkZx_"
//				FFThrowMiscException(IDS_ERR_MSG_FAIL_SAVE_FILE, wcpFilePath);
//			}
//			return;
//		  }
//----- 06.04.04 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
		case FD_DTP_PORTABLE_FORMAT:	// _xZkqqHx_iDhMiBfLiDfOiDhFiDiLiDhEiDeIiBfLiDhNiDgCiDgHiCmMjFlGiPjBiBeC_xHqqkZx_
		case FD_DTP_TEMPLATE_FORMAT:	// _xZkqqHx_iDgFiDjDiDhGiDiMiBfLiDgHiDhEiDeIiBfLiDhNiDgCiDgHiCmMjFlGiPjBiBeC_xHqqkZx_
		  {
			OutPortableFormat(	CFile(WStrToTStr(wcpFilePath), CFile::modeCreate | CFile::modeWrite | CFile::shareExclusive),
								CSize(120, 120),
								wcpFileVersion,
								bIsOutObject,
								bIsOutChip);
			return;
		  }
		case FD_DTP_WORK_FORMAT:		// _xZkqqHx_iDiPiBfLiDeOiDhEiDeIiBfLiDhNiDgCiDgHiCmMjFlGiPjBiBeC_xHqqkZx_
		  {
// 06.04.04 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//			OutWorkFormat(CFile(WStrToTStr(wcpFilePath), CFile::modeCreate | CFile::modeWrite | CFile::shareExclusive));
			OutWorkFormat(	CFile(WStrToTStr(wcpFilePath), CFile::modeCreate | CFile::modeWrite | CFile::shareExclusive),
							bIsOutObject,
							bIsOutChip);
			return;
		  }
		}
	}

	//------ _xZkqqHx_iDgGiDhEiDeIiDiLiDgHiPiIjHjNiBeCiDfCiDjDiDgPiBfLiDfOiCpAiOgHiCkE_xHqqkZx_ ------

//----- 05.08.04 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
//----- 06.03.12 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	// _xZkqqHx_iDhEiDeAiDeDiDiLjGlMiCpAiDgNiBfLiDhNiDiJiDeDiDfJiBeC_xHqqkZx_
//	WString wstrFilePath;
//	if (FFCheckAbnormalPath(wcpFilePath))
//		wstrFilePath = FFNormalizePath(wcpFilePath);
//	else
//		wstrFilePath = wcpFilePath;
//----- 06.03.12 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
//----- 05.08.04 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----

//----- 06.03.04 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
		const wchar_t* pOrigCore[] = { 	L"*fcore", 	L"*xcore" };
		WString wstrOrigCore = FCFileConvManager().SelectCore(	pOrigCore,
																sizeof(pOrigCore) / sizeof(pOrigCore[0]),
																FCHeaderInf::GetStcFileVersionString(),
																wcpFilePath,
																wcpFileVersion);
		if (wstrOrigCore.IsEmpty())
		{
			// IDS_ERR_MSG_DOCUMENT_CONVERTOR_NOT_FOUND =
			// _xZkqqHx_jFlGiPjBiCpAjFmPiKlHiClHiCoJiDfCiDjDiDgPiBfLiDfOiCkKiMkJiCmCiCkJiCoIiCnMiClJiCpBiBeC_xHqqkZx_ 
			FFThrowMiscException(IDS_ERR_MSG_DOCUMENT_CONVERTOR_NOT_FOUND);
		}
//----- 06.06.23 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//		// *xcore _xZkqqHx_iCmMiPoKiNiHiCmNiBeBjFjNiNeMjFjEjFgJiCmMjBkEjApMiDhIiDfHiDeGiLmIjApMiCpAjBfDiCmEiMhGiOfKiClFiCmEiCkIiCkNiBeC_xHqqkZx_
//		if (wstrOrigCore == L"*xcore")
//			PrepareWidePolySideBezier();
//----- 06.06.23 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
//----- 06.03.04 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----

//----- 06.03.28 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	// _xZkqqHx_iDiBiDiCiDiKiDhEiDeAiDeDiDiLiCpAjAlGjAkMiBeC_xHqqkZx_
//	CMemFile memPCoreFile;
//	// _xZkqqHx_iDhMiBfLiDfOiDhFiDiLiDfCiDeBiDhEiDeAiDeDiDiLiCpAiPgPjHmNiBeC_xHqqkZx_
//	OutCurrentFcoreFormat(memPCoreFile, FD_DTP_PORTABLE_FORMAT, bIsOutObject, bIsOutChip);
//	// _xZkqqHx_iDfEiDeDiDfJiCmMiOfKiPgPiBeC_xHqqkZx_
//	const DWORD dwPCoreFileSize = memPCoreFile.GetLength();
//	// CMemFile_xZkqqHx_iCmMiDgPiDgCiDhEiDeAiCpAjAnIiCoIjHkDiClHiBeC_xHqqkZx_
//	BYTE* pPCoreFile = memPCoreFile.Detach();
//
//	//----- _xZkqqHx_jFfMiOiGiCmMiDhCiDgCiDgHiDhNiDgCiDhGiCpAiNoMjAkM_xHqqkZx_ -----
//	BYTEVector byvBitBuff;
//	MakeFrontPagePNGImage32(byvBitBuff, CSize(120,120));
//	FCFileConvManager().DoCOnvert2(	wstrOrigCore,
//									FCHeaderInf::GetStcFileVersionString(),
//									&CMemFile(pPCoreFile, dwPCoreFileSize),
//									NULL,
//									wcpFilePath,
//									wcpFileVersion,
//									NULL,
//									NULL,
//									NULL,
//									byvBitBuff.begin(),
//									byvBitBuff.size(),
//									CSize(120,120));
//	// CMemFile_xZkqqHx_iCmMiDgPiDgCiDhEiDeAiCpAiJpAjFpKiBeC_xHqqkZx_
//	free(pPCoreFile);
//----- 06.03.28 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	// _xZkqqHx_iDiPiBfLiDeOiDhEiDeAiDeDiDiL_xHqqkZx_(Write_xZkqqHx_jHhA_xHqqkZx_)_xZkqqHx_iCpAjAlGjAkMiBeC_xHqqkZx_
	FCWorkFile workFileFcore;
//----- 06.06.23 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	// _xZkqqHx_iDhMiBfLiDfOiDhFiDiLiDfCiDeBiDhEiDeAiDeDiDiLiCpAiPgPjHmNiBeC_xHqqkZx_
//	OutCurrentFcoreFormat(workFileFcore.file, FD_DTP_PORTABLE_FORMAT, bIsOutObject, bIsOutChip);
//----- 06.06.23 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	// _xZkqqHx_iDhMiBfLiDfOiDhFiDiLiDfCiDeBiDhEiDeAiDeDiDiLiCpAiPgPjHmNiBeC_xHqqkZx_
	if (wstrOrigCore == L"*fcore")
		OutCurrentFcoreFormat(workFileFcore.file, FD_DTP_PORTABLE_FORMAT, bIsOutObject, bIsOutChip);
	else
		OutCurrentXcoreFormat(workFileFcore.file, FD_DTP_PORTABLE_FORMAT, bIsOutObject, bIsOutChip);
//----- 06.06.23 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
	// _xZkqqHx_iDiPiBfLiDeOiDhEiDeAiDeDiDiLiCpAjAoGjDkKiCnGiInKjDkOiBeC_xHqqkZx_
	workFileFcore.file.Seek(0, CFile::begin);
	//----- _xZkqqHx_jFfMiOiGiCmMiDhCiDgCiDgHiDhNiDgCiDhGiCpAiNoMjAkM_xHqqkZx_ -----
	BYTEVector byvBitBuff;
	MakeFrontPagePNGImage32(byvBitBuff, CSize(120,120));
	FCFileConvManager().DoConvert(	wstrOrigCore,
									FCHeaderInf::GetStcFileVersionString(),
									&workFileFcore.file,
									wcpFilePath,
									wcpFileVersion,
									NULL,
									TRUE,
									byvBitBuff.begin(),
									byvBitBuff.size(),
									CSize(120,120));
//----- 06.03.28 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
} // CFCFoundDoc::ExportFile.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::ImportFile
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhEiDeAiDeDiDiLiCpAiDiNiBfLiDgIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	wcpFilePath			:_xZkqqHx_iDhEiDeAiDeDiDiLjGlMiCpAiOhHjCoIiBeC_xHqqkZx_
 *			pCanvasStatRefer	:_xZkqqHx_iDeMiDiDiDjDiDgPiDfIiPoOjFpBiCmMiDiKiDhEiDeAiDiMiDjDiDfIiCpAiOhHjCoIiBeC_xHqqkZx_
 *								 _xZkqqHx_iClBiCmMjCgMiCkKiOhHjCoIiClDiCoKiClNiPoKiNiHiBeBjDmHiCnNiNjOiCnMiCoKiClN_xHqqkZx_
 *								 _xZkqqHx_iDeMiDiDiDjDiDgPiDfIiPoOjFpBiCmFiCmNiCmIiCkNiBeBiClBiCmMjCgMiCpA_xHqqkZx_
 *								 _xZkqqHx_iOgHiCmBiCmEiPiJiKpKiJlLiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iDhEiDeAiDeDiDiLiCpAjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jCiNiInD_xHqqkZx_>	_xZkqqHx_iDeHiDiJiBfLiOjOiCmNjHoBiKePiCpAjEkNjAlGiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.05.23 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::ImportFile (	const wchar_t* wcpFilePath,
								FCCanvasStat* pCanvasStatRefer)
{
	// _xZkqqHx_iDhHiDgCiDfPiPoOjFpBiCpAiDgPiDgCiDeOiDeBiDgCiDhGiBeC_xHqqkZx_
	const FCHeaderInf headerInf = m_headerInf;
	// _xZkqqHx_jFlGiPjBiPoOjFpBiCpAiNoNiPjMiBeCiDhEiDeAiDeDiDiLiCmNjFmCiClGiCmIiCkCiBeC_xHqqkZx_
	DeleteAndInitContents(FALSE);
	// _xZkqqHx_iDhEiDeAiDeDiDiLiCmNjDmHiCnNiPgPiClDiCoKiClNiCkJiBeI_xHqqkZx_
	BOOL bFileLoaded = FALSE;
	// _xZkqqHx_iKgHjCkDiOhBiCpAjClCiCnHiCoJiBeC_xHqqkZx_
	switch (FFFileNameToFormat(wcpFilePath))
	{
	case FD_DTP_PORTABLE_FORMAT:	// _xZkqqHx_iDhMiBfLiDfOiDhFiDiLiDhEiDeIiBfLiDhNiDgCiDgHiCmMjFlGiPjBiBeC_xHqqkZx_
	case FD_DTP_TEMPLATE_FORMAT:	// _xZkqqHx_iDgFiDjDiDhGiDiMiBfLiDgHiDhEiDeIiBfLiDhNiDgCiDgHiCmMjFlGiPjBiBeC_xHqqkZx_
	  {
		CFile file(WStrToTStr(wcpFilePath), CFile::modeRead | CFile::shareDenyNone);
		// _xZkqqHx_iDhEiDeIiDiLiDfPjDoAiCmFiJeFiDeOiDiKiDgCiDeOiDiBiDgKiDiFiBfLiCkJiCoHjAfGiLeLiNoMjAkMiClFiClN_xHqqkZx_
		// _xZkqqHx_jFlGiPjBiDhEiDeAiDeDiDiLiCmNiBeBiLpDiCmMiDhEiDeAiDeDiDiLiBeC_xHqqkZx_
		if (file.GetLength() != 0)
		//----- _xZkqqHx_iDhEiDeAiDeDiDiLjClHiCkK_xHqqkZx_0_xZkqqHx_iCmFiCmIiCkCiPoKiNiH_xHqqkZx_ -----
		{
			try
			{
				// _xZkqqHx_iDhEiDeAiDeDiDiLjDmHiCnNiNjOiCnNiBeC_xHqqkZx_
				InPortableFormat(file, pCanvasStatRefer);
				// _xZkqqHx_iDhEiDeAiDeDiDiLiCmNjDmHiCnNiPgPiClDiCoKiClNiCkJiBeI_xHqqkZx_
				bFileLoaded = TRUE;
			} catch (CException* e)
			//----- _xZkqqHx_iDeHiDiJiBfLiPiIjHjN_xHqqkZx_ -----
			{
				// _xZkqqHx_iLiMiMgAiOkOiCmMiDgFiDjDiDhGiDiMiBfLiDgHiDhEiDeAiDeDiDiLiBgJiDhMiBfLiDfOiDhFiDiLiDhEiDeIiBfLiDhNiDgCiDgH_xHqqkZx_
				// _xZkqqHx_iCmFiCmNiCmIiCkCiBgKiPoKiNiHiCmIiCmHiBeBiDeHiDiJiBfLiCkKjEkNjAlGiBeC_xHqqkZx_
				// _xZkqqHx_iDeHiDiJiBfLiCpAjGjFiPmBiClFiBeBiDfCiDjDiDgPiBfLiDfOiCmJiCoGiCoJjDmHiCnNiNjOiCnNiCpAiDgHiDiJiDeDiBeC_xHqqkZx_
				e->Delete();
			}
		}
		file.Close();
		break;
	  }
	case FD_DTP_WORK_FORMAT:		// _xZkqqHx_iDiPiBfLiDeOiDhEiDeIiBfLiDhNiDgCiDgHiCmMjFlGiPjBiBeC_xHqqkZx_
	  {
//----- 06.01.06 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//		CFCHIFSFile file(	wcpFilePath,
//							OPEN_EXISTING, NULL, NULL);
//----- 06.01.06 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
		CFile file(WStrToTStr(wcpFilePath), CFile::modeRead | CFile::shareDenyNone);
//----- 06.01.06 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
		// _xZkqqHx_iDhEiDeIiDiLiDfPjDoAiCmFiJeFiDeOiDiKiDgCiDeOiDiBiDgKiDiFiBfLiCkJiCoHjAfGiLeLiNoMjAkMiClFiClN_xHqqkZx_
		// _xZkqqHx_jFlGiPjBiDhEiDeAiDeDiDiLiCmNiBeBiLpDiCmMiDhEiDeAiDeDiDiLiBeC_xHqqkZx_
		if (file.GetLength() != 0)
		//----- _xZkqqHx_iDhEiDeAiDeDiDiLjClHiCkK_xHqqkZx_0_xZkqqHx_iCmFiCmIiCkCiPoKiNiH_xHqqkZx_ -----
		{
			InWorkFormat(file, pCanvasStatRefer);
			// _xZkqqHx_iDhEiDeAiDeDiDiLiCmNjDmHiCnNiPgPiClDiCoKiClNiCkJiBeI_xHqqkZx_
			bFileLoaded = TRUE;
		}
		file.Close();
		break;
	  }
	}

	if (!bFileLoaded)
	//----- _xZkqqHx_iDhEiDeAiDeDiDiLiCmNjDmHiCnNiPgPiClDiCoKiCmEiCkCiCmIiCkCiPoKiNiH_xHqqkZx_ -----
	{
		//------ _xZkqqHx_iDgGiDhEiDeIiDiLiDgHiPiIjHjNiBeCiDfCiDjDiDgPiBfLiDfOiCpAiOgHiCkE_xHqqkZx_ ------
//----- 06.03.12 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//		// _xZkqqHx_iDhEiDeAiDeDiDiLjGlMiCpAiDgNiBfLiDhNiDiJiDeDiDfJiBeC_xHqqkZx_
//		WString wstrFilePath;
//		if (FFCheckAbnormalPath(wcpFilePath))
//			wstrFilePath = FFNormalizePath(wcpFilePath);
//		else
//			wstrFilePath = wcpFilePath;
//----- 06.03.12 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

	// 05.11.25 Fukushiro M. 1_xZkqqHx_iNhDiNoNiPjM_xHqqkZx_ ()
	//	DeleteContents();
		FCFileConvManager mgr;
		WString wstrVersion;
		if (!mgr.AnalyzeVersion(wstrVersion, wcpFilePath))
		//----- _xZkqqHx_iDhEiDeAiDeDiDiLiCmMiDgPiBfLiDfHiDiHiDjDiCkKjFhDjGlOiCmMiPoKiNiH_xHqqkZx_ -----
		{
			// "_xZkqqHx_iDhEiDeAiDeDiDiLiBhF_xHqqkZx_%s_xZkqqHx_iBhGiCmMiKgHjCkDiOhBiCkKiIoBiCkCiCnMiClH_xHqqkZx_"
			FFThrowMiscException(IDS_ERR_MSG_WRONG_FILE_EXT, wcpFilePath);
		}

//----- 06.03.28 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//		// _xZkqqHx_iDiBiDiCiDiKiDhEiDeAiDeDiDiLiCpAjAlGjAkMiBeC_xHqqkZx_
//		CMemFile memFileWrite;
//		mgr.DoCOnvert2(	wcpFilePath,
//						wstrVersion,
//						NULL,
//						NULL,
//						L"*fcore",
//						FCHeaderInf::GetStcFileVersionString(),
//						&memFileWrite,
//						NULL,
//						NULL);
//		// _xZkqqHx_iDfEiDeDiDfJiCmMiOfKiPgPiBeC_xHqqkZx_
//		const DWORD dwDataSize = memFileWrite.GetLength();
//		// CMemFile_xZkqqHx_iCmMiDgPiDgCiDhEiDeAiCpAjAnIiCoIjHkDiClHiBeC_xHqqkZx_
//		BYTE* pData = memFileWrite.Detach();
//		// _xZkqqHx_iMlLiDgPiBfLiDfHiDiHiDjDiDhEiDiJiDgCiDgHiDfCiDeBiCmMjDmHiCnNiNjOiCnNiPiIjHjNiBeC_xHqqkZx_
//		InCurrentFcoreFormat(CMemFile(pData, dwDataSize), pCanvasStatRefer);
//		// CMemFile_xZkqqHx_iCmMiDgPiDgCiDhEiDeAiCpAiJpAjFpKiBeC_xHqqkZx_
//		free(pData);
//----- 06.03.28 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
		// _xZkqqHx_iDiPiBfLiDeOiDhEiDeAiDeDiDiL_xHqqkZx_(Write_xZkqqHx_jHhA_xHqqkZx_)_xZkqqHx_iCpAjAlGjAkMiBeC_xHqqkZx_
		FCWorkFile workFileFcore;
		mgr.DoConvert(	wcpFilePath,
						wstrVersion,
						NULL,
						L"*fcore",
						FCHeaderInf::GetStcFileVersionString(),
						&workFileFcore.file,
						TRUE);
		// _xZkqqHx_iDiPiBfLiDeOiDhEiDeAiDeDiDiLiCpAjAoGjDkKiCnGiInKjDkOiBeC_xHqqkZx_
		workFileFcore.file.Seek(0, CFile::begin);
		// _xZkqqHx_iMlLiDgPiBfLiDfHiDiHiDjDiDhEiDiJiDgCiDgHiDfCiDeBiCmMjDmHiCnNiNjOiCnNiPiIjHjNiBeC_xHqqkZx_
		InCurrentFcoreFormat(workFileFcore.file, pCanvasStatRefer);
//----- 06.03.28 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
	}
	// _xZkqqHx_iDhHiDgCiDfPiPoOjFpBiCpAiMlDiCmJjGnPiClHiBeC_xHqqkZx_
	m_headerInf = headerInf;
} // CFCFoundDoc::ImportFile.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::ImportEnv
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	DynamicDraw_xZkqqHx_iDhEiDeAiDeDiDiLiCkJiCoH_xHqqkZx_FCEnv_xZkqqHx_iCmMiPoOjFpBiCpAiOoGiCoIiPgPiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	wcpFilePath		:_xZkqqHx_iDhEiDeAiDeDiDiLjGlMiCpAiOhHjCoIiBeC_xHqqkZx_".mdrw", ".mdpf",
 *							 ".mdwt" _xZkqqHx_jDjJiCkKiOhHjCoIiJmCjEfMiBeC_xHqqkZx_
 *			pEnv			:_xZkqqHx_jDmHiCnNiNjOiCnNjAoGiCmMiKmCiLkLiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jCiNiInD_xHqqkZx_>	static_xZkqqHx_iKnGjAjEiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.06.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::ImportEnv (const wchar_t* wcpFilePath,
							 FCEnv* pEnv)
{
	switch (FFFileNameToFormat(wcpFilePath))
	{
	case FD_DTP_PORTABLE_FORMAT:	// _xZkqqHx_iDhMiBfLiDfOiDhFiDiLiDhEiDeIiBfLiDhNiDgCiDgHiCmMjFlGiPjBiBeC_xHqqkZx_
// 05.05.13 Fukushiro M. 1_xZkqqHx_iNhDiNoNiPjM_xHqqkZx_ ()
//	case FD_DTP_VIEWER_FORMAT:		// _xZkqqHx_iDhCiDiFiBfLiDeBiDhEiDeIiBfLiDhNiDgCiDgHiCmMjFlGiPjBiBeC_xHqqkZx_
	case FD_DTP_TEMPLATE_FORMAT:	// _xZkqqHx_iDgFiDjDiDhGiDiMiBfLiDgHiDhEiDeIiBfLiDhNiDgCiDgHiCmMjFlGiPjBiBeC_xHqqkZx_
	  {
//----- 06.03.28 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//		BOOL bFailed = FALSE;
//		CFile file(WStrToTStr(wcpFilePath), CFile::modeRead | CFile::shareDenyNone);
//		// _xZkqqHx_iDhEiDeIiDiLiDfPjDoAiCmFiJeFiDeOiDiKiDgCiDeOiDiBiDgKiDiFiBfLiCkJiCoHjAfGiLeLiNoMjAkMiClFiClN_xHqqkZx_
//		// _xZkqqHx_jFlGiPjBiDhEiDeAiDeDiDiLiCmNiBeBiLpDiCmMiDhEiDeAiDeDiDiLiBeC_xHqqkZx_
//		if (file.GetLength() != 0)
//		//----- _xZkqqHx_iDhEiDeAiDeDiDiLjClHiCkK_xHqqkZx_0_xZkqqHx_iCmFiCmIiCkCiPoKiNiH_xHqqkZx_ -----
//		{
//			try
//			{
//				WString wstrDocumentProperty[FD_DPID_END];	// _xZkqqHx_jFlGiPjBiDhGiDiNiDhAiDgFiDeCiBeC_xHqqkZx_
//				// PNG_xZkqqHx_iDhEiDeAiDeDiDiLiCkJiCoH_xHqqkZx_ MDRW_xZkqqHx_iDgAiDiDiDjDiDeOiCpAjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
//				BYTEVector vCompressData;
//				FFPngRead32BitData(	file, NULL, NULL,
//									wstrDocumentProperty,
//									sizeof(wstrDocumentProperty) / sizeof(wstrDocumentProperty[0]),
//									&vCompressData);
//				// _xZkqqHx_iDgGiBfLiDfOiDhEiDeIiBfLiDhNiDgCiDgHiBeC_xHqqkZx_
//				// | n Byte | 1 Byte |  4 Byte          |      n Byte     |
//				// | _xZkqqHx_iDhHiDgCiDfP_xHqqkZx_ |_xZkqqHx_iIlDiPgLjFpLjGeA_xHqqkZx_|_xZkqqHx_iJpAjDiAiMoDiDgGiBfLiDfOiDfEiDeDiDfJ_xHqqkZx_|   _xZkqqHx_iIlDiPgLiDgGiBfLiDfO_xHqqkZx_    |
//
//				// LZ77_xZkqqHx_iDgGiBfLiDfOiDhFiDiNiDgCiDeOiCmMjAoGjDkKiImKjChFiBeC_xHqqkZx_
//				const BYTE* bypCompressData = vCompressData.begin();
//				// _xZkqqHx_iDhHiDgCiDfPiCpAjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
//				FCHeaderInf headerInf;
//				headerInf.InStream(bypCompressData);
//				// _xZkqqHx_iDhHiDgCiDfPiDgAiDeGiDgCiDeOiBeCiDeHiDiJiBfLiBeBiMmDiCkCiPoKiNiHiCmNiDfIiDiNiBfLiPiIjHjNiCnGiBeC_xHqqkZx_
//				// ccore(FD_DTP_STANDARD_FORMAT)_xZkqqHx_iCmNiDfEiDhMiBfLiDgHiClFiCmIiCkCiBeC_xHqqkZx_
//				headerInf.RegalCheck(FD_DTP_PORTABLE_FORMAT,
//									 FD_DTP_TEMPLATE_FORMAT);
//				// LZ77_xZkqqHx_iDgGiBfLiDfOiDhFiDiNiDgCiDeOiCkJiCoHjEpBiIlDiPgLiDgGiBfLiDfOiDgPiDgCiDhEiDeAiCpAiOoGjDlOiBeC_xHqqkZx_
//				BYTEVector vRawDataBuff;
//				FFReadLZ77DataBlock(vRawDataBuff, bypCompressData,
//									vCompressData.end() - bypCompressData);
//				// _xZkqqHx_iDiBiDiCiDiKiDhEiDeAiDeDiDiLiCpAjAlGjAkMiBeC_xHqqkZx_
//				CMemFile memRawDataFile(vRawDataBuff.begin(), vRawDataBuff.size());
//				// _xZkqqHx_jFjEjFgJjBkOjAkLiDfIiDgHiDiKiBfLiDiAiCpAiOoGjDlOiBeC_xHqqkZx_
//				FCUndoArchive arRawData(&memRawDataFile, FD_ARCHIVE_LOAD, NULL);
//				// _xZkqqHx_iDhGiDiKiDjDiDfOiPoOjFpBjDjJiCpAjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
//				CFCMolipDrawApp::SkipStream(arRawData);
//				// _xZkqqHx_iKmCiLkLiPoOjFpBiCpAjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
//				pEnv->InStream(arRawData);
//			} catch (CException* e)
//			//----- _xZkqqHx_iDeHiDiJiBfLiPiIjHjN_xHqqkZx_ -----
//			{
//				// _xZkqqHx_iLiMiMgAiOkOiCmMiDgFiDjDiDhGiDiMiBfLiDgHiDhEiDeAiDeDiDiLiBgJiDhMiBfLiDfOiDhFiDiLiDhEiDeIiBfLiDhNiDgCiDgH_xHqqkZx_
//				// _xZkqqHx_iCmFiCmNiCmIiCkCiBgKiPoKiNiHiCmIiCmHiBeBiDeHiDiJiBfLiCkKjEkNjAlGiBeC_xHqqkZx_
//				// _xZkqqHx_iDeHiDiJiBfLiCpAjGjFiPmBiClFiBeBiDfCiDjDiDgPiBfLiDfOiCmJiCoGiCoJjDmHiCnNiNjOiCnNiCpAiDgHiDiJiDeDiBeC_xHqqkZx_
//				bFailed = TRUE;
//				e->Delete();
//			}
//		}
//		file.Close();
//		// _xZkqqHx_iDfCiDjDiDgPiBfLiDfOiCmJiCoGiCoJjDmHiCnNiNjOiCnNiCpAiDgHiDiJiDeDiBeC_xHqqkZx_
//		if (bFailed) break;
//		return;
//----- 06.03.28 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
		BOOL bFailed = FALSE;
		CFile file(WStrToTStr(wcpFilePath), CFile::modeRead | CFile::shareDenyNone);
		// _xZkqqHx_iDhEiDeIiDiLiDfPjDoAiCmFiJeFiDeOiDiKiDgCiDeOiDiBiDgKiDiFiBfLiCkJiCoHjAfGiLeLiNoMjAkMiClFiClN_xHqqkZx_
		// _xZkqqHx_jFlGiPjBiDhEiDeAiDeDiDiLiCmNiBeBiLpDiCmMiDhEiDeAiDeDiDiLiBeC_xHqqkZx_
		if (file.GetLength() != 0)
		//----- _xZkqqHx_iDhEiDeAiDeDiDiLjClHiCkK_xHqqkZx_0_xZkqqHx_iCmFiCmIiCkCiPoKiNiH_xHqqkZx_ -----
		{
			try
			{
				FCUndoArchive ar(&file, FD_ARCHIVE_LOAD);
				// PNG_xZkqqHx_iDgGiBfLiDfOiCmM_xHqqkZx_MDRW_xZkqqHx_iDgAiDiDiDjDiDeOjBePiCnMiCmFiBgJiDeDiDiBiBfLiDfHiDgAiDiDiDjDiDeOiBeBiDhGiDiNiDhAiDgFiDeCiDgAiDiDiDjDiDeOiBgKiCpAjDmHiCnNiPgPiClHiBeC_xHqqkZx_
				WString wstrDocumentProperty[FD_DPID_END];	// _xZkqqHx_jFlGiPjBiDhGiDiNiDhAiDgFiDeCiBeC_xHqqkZx_
				FCPngReadStruct* ps = FFPngRead32Begin(	ar, NULL, NULL,
														wstrDocumentProperty,
														sizeof(wstrDocumentProperty) / sizeof(wstrDocumentProperty[0]));
				// MDRW_xZkqqHx_iDgAiDiDiDjDiDeOiCkKjBlGiNnNiClFiCmIiCkCiPoKiNiHiCmNiDhEiDeAiDeDiDiLjEgKjBlJiDeHiDiJiBfLiBeC_xHqqkZx_
				if (ps == NULL)
					FFThrowMiscException(IDS_ERR_FILE_DESTROIED);
				//
				// _xZkqqHx_iEkGiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkG_xHqqkZx_
				// _xZkqqHx_iEkA_xHqqkZx_n Byte_xZkqqHx_iEkA_xHqqkZx_ 1 Byte _xZkqqHx_iEkA_xHqqkZx_      4 Byte      _xZkqqHx_iEkA_xHqqkZx_    n Byte    _xZkqqHx_iEkA_xHqqkZx_
				// _xZkqqHx_iEkJiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkJ_xHqqkZx_
				// _xZkqqHx_iEkAiDhHiDgCiDfPiEkAiIlDiPgLjFpLjGeAiEkAiJpAjDiAiMoDiDgGiBfLiDfOiDfEiDeDiDfJiEkAiBkGiIlDiPgLiDfEiDhFiDfCiDeBiEkA_xHqqkZx_
				// _xZkqqHx_iEkA_xHqqkZx_      _xZkqqHx_iEkA_xHqqkZx_                                            _xZkqqHx_iEkA_xHqqkZx_
				// _xZkqqHx_iEkA_xHqqkZx_      _xZkqqHx_iEkAiBkJiEjPiEjPiEjPiEjPiEjP_xHqqkZx_ LZ77_xZkqqHx_iDgGiBfLiDfOiDhFiDiNiDgCiDeO_xHqqkZx_ _xZkqqHx_iEjPiEjPiEjPiEjPiEjPiBkIiEkA_xHqqkZx_
				// _xZkqqHx_iEkA_xHqqkZx_                                                    _xZkqqHx_iEkA_xHqqkZx_
				// _xZkqqHx_iEkAiBkJiEjPiEjPiEjPiEjPiEjPiEjPiEjP_xHqqkZx_ mdRw_xZkqqHx_iDgAiDiDiDjDiDeOiDgGiBfLiDfO_xHqqkZx_ _xZkqqHx_iEjPiEjPiEjPiEjPiEjPiEjPiEjPiBkIiEkA_xHqqkZx_
				//

				// _xZkqqHx_iNmFiPiJiCmM_xHqqkZx_MDRW_xZkqqHx_iDgAiDiDiDjDiDeOiCpAjDmHiCnNiPgPiClHiBeC_xHqqkZx_
				// _xZkqqHx_iNmFiPiJiCmM_xHqqkZx_MDRW_xZkqqHx_iDgAiDiDiDjDiDeOiCmMjAoGjDkKiCmJiCmNiBeBjEpBiIlDiPgLiCmMiDhHiDgCiDfPiPoOjFpBiCkKiLeMiNnKiClDiCoKiCmEiCkCiCoJiBeC_xHqqkZx_
				BYTEVector vCompressData;
				ps = FFPngRead32MdrwChunk(ps, vCompressData);
				const BYTE* bypCompressData = vCompressData.begin();
				// _xZkqqHx_iDhHiDgCiDfPiCpAjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
				FCHeaderInf headerInf;
				headerInf.InStream(bypCompressData);
				// _xZkqqHx_iDhHiDgCiDfPiDgAiDeGiDgCiDeOiBeCiDeHiDiJiBfLiBeBiMmDiCkCiPoKiNiHiCmNiDfIiDiNiBfLiPiIjHjNiCnGiBeC_xHqqkZx_
				// ccore(FD_DTP_STANDARD_FORMAT)_xZkqqHx_iCmNiDfEiDhMiBfLiDgHiClFiCmIiCkCiBeC_xHqqkZx_
				headerInf.RegalCheck(FD_DTP_PORTABLE_FORMAT,
									 FD_DTP_TEMPLATE_FORMAT);
				// _xZkqqHx_jEpBiIlDiPgLiDgGiBfLiDfOiDgPiDgCiDhEiDeAiBeC_xHqqkZx_
				BYTEVector vRawDataBuff;
				// _xZkqqHx_jEpBiIlDiPgLiDgGiBfLiDfOiDgPiDgCiDhEiDeAiBeC_xHqqkZx_
				// LZ77_xZkqqHx_iDgGiBfLiDfOiDhFiDiNiDgCiDeOiCpAiJpAjDiAiClFiBeBiDhEiDiJiDgCiDgHiDfEiDhFiDfCiDeBiCpAjDlOiCoJiBeC_xHqqkZx_
				FFReadLZ77DataBlock(vRawDataBuff, bypCompressData, vCompressData.end() - bypCompressData);

				// Undo_xZkqqHx_iDhEiDeAiDeDiDiLiCkKjDpMiCmBiCmEiCkCiCoJiDgGiDeCiDiMiDeOiDgHiDiKiCmJiDiGiDgKiBfLiDeOiCmIiDhEiDeAiDeDiDiLjGlMiCpAiNoMjAkMiBeC_xHqqkZx_
				FCWorkFile workFileRawData;
				// _xZkqqHx_iDhEiDiJiDgCiDgHiDfEiDhFiDfCiDeBiCpAiPjBiCkLiNjOiCnOiBeC_xHqqkZx_
				workFileRawData.file.Write(&vRawDataBuff.front(), vRawDataBuff.size());
				// _xZkqqHx_iIpIiCkLjBlBiCkL_xHqqkZx_MDRW_xZkqqHx_iDgAiDiDiDjDiDeOiCkKiCkAiCoJiPoKiNiHiCmNiBeBjBlBiCkPiCmEjDmHiCnNiPgPiClHiBeC_xHqqkZx_
				if (ps != NULL)
				{
					for (;;)
					{
						// MDRW_xZkqqHx_iDgAiDiDiDjDiDeOiCpAjDmHiCnNiPgPiClHiBeC_xHqqkZx_
						ps = FFPngRead32MdrwChunk(ps, vCompressData);
						if (ps == NULL) break;
						// _xZkqqHx_jEpBiIlDiPgLiDgGiBfLiDfOiDgPiDgCiDhEiDeAiBeC_xHqqkZx_
						// LZ77_xZkqqHx_iDgGiBfLiDfOiDhFiDiNiDgCiDeOiCpAiJpAjDiAiClFiBeBiDhEiDiJiDgCiDgHiDfEiDhFiDfCiDeBiCpAjDlOiCoJiBeC_xHqqkZx_
						FFReadLZ77DataBlock(vRawDataBuff, &vCompressData.front(), vCompressData.size());
						// _xZkqqHx_iDhEiDiJiDgCiDgHiDfEiDhFiDfCiDeBiCpAiPjBiCkLiNjOiCnOiBeC_xHqqkZx_
						workFileRawData.file.Write(&vRawDataBuff.front(), vRawDataBuff.size());
					}
				}
				// _xZkqqHx_iIlDiPgLiDgGiBfLiDfOiCpAiJpAjFpKiBeC_xHqqkZx_
				vCompressData.clear();
				// _xZkqqHx_jEpBiIlDiPgLiDgGiBfLiDfOiDgPiDgCiDhEiDeAiCpAiJpAjFpKiBeC_xHqqkZx_
				vRawDataBuff.clear();
				// _xZkqqHx_jFjEjFgJjBkOjAkLiDfIiDgHiDiKiBfLiDiAiCpAiOoGjDlOiBeC_xHqqkZx_
				workFileRawData.file.Seek(0, CFile::begin);
				FCUndoArchive arRawData(&workFileRawData.file, FD_ARCHIVE_LOAD);
				// _xZkqqHx_iDhGiDiKiDjDiDfOiPoOjFpBjDjJiCpAjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
				CFCMolipDrawApp::SkipStream(arRawData);
				// _xZkqqHx_iKmCiLkLiPoOjFpBiCpAjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
				pEnv->InStream(arRawData);
			} catch (CException* e)
			//----- _xZkqqHx_iDeHiDiJiBfLiPiIjHjN_xHqqkZx_ -----
			{
				// _xZkqqHx_iLiMiMgAiOkOiCmMiDgFiDjDiDhGiDiMiBfLiDgHiDhEiDeAiDeDiDiLiBgJiDhMiBfLiDfOiDhFiDiLiDhEiDeIiBfLiDhNiDgCiDgH_xHqqkZx_
				// _xZkqqHx_iCmFiCmNiCmIiCkCiBgKiPoKiNiHiCmIiCmHiBeBiDeHiDiJiBfLiCkKjEkNjAlGiBeC_xHqqkZx_
				// _xZkqqHx_iDeHiDiJiBfLiCpAjGjFiPmBiClFiBeBiDfCiDjDiDgPiBfLiDfOiCmJiCoGiCoJjDmHiCnNiNjOiCnNiCpAiDgHiDiJiDeDiBeC_xHqqkZx_
				bFailed = TRUE;
				e->Delete();
			}
		}
		file.Close();
		// _xZkqqHx_iDfCiDjDiDgPiBfLiDfOiCmJiCoGiCoJjDmHiCnNiNjOiCnNiCpAiDgHiDiJiDeDiBeC_xHqqkZx_
		if (bFailed) break;
		return;
//----- 06.03.28 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
	  }
	}

	//------ _xZkqqHx_iDgGiDhEiDeIiDiLiDgHiPiIjHjNiBeCiDfCiDjDiDgPiBfLiDfOiCpAiOgHiCkE_xHqqkZx_ ------

//----- 06.03.12 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	// _xZkqqHx_iDhEiDeAiDeDiDiLjGlMiCpAiDgNiBfLiDhNiDiJiDeDiDfJiBeC_xHqqkZx_
//	WString wstrFilePath;
//	if (FFCheckAbnormalPath(wcpFilePath))
//		wstrFilePath = FFNormalizePath(wcpFilePath);
//	else
//		wstrFilePath = wcpFilePath;
//----- 06.03.12 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

	FCFileConvManager mgr;
	WString wstrVersion;
	if (!mgr.AnalyzeVersion(wstrVersion, wcpFilePath))
	//----- _xZkqqHx_iDhEiDeAiDeDiDiLiCmMiDgPiBfLiDfHiDiHiDjDiCkKjFhDjGlOiCmMiPoKiNiH_xHqqkZx_ -----
	{
		// "_xZkqqHx_iDhEiDeAiDeDiDiLiBhF_xHqqkZx_%s_xZkqqHx_iBhGiCmMiKgHjCkDiOhBiCkKiIoBiCkCiCnMiClH_xHqqkZx_"
		FFThrowMiscException(IDS_ERR_MSG_WRONG_FILE_EXT, wcpFilePath);
	}

//----- 06.03.28 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	// _xZkqqHx_iDiBiDiCiDiKiDhEiDeAiDeDiDiLiCpAjAlGjAkMiBeC_xHqqkZx_
//	CMemFile memFileWrite;
//	mgr.DoCOnvert2(	wcpFilePath,
//					wstrVersion,
//					NULL,
//					NULL,
//					L"*fcore",
//					FCHeaderInf::GetStcFileVersionString(),
//					&memFileWrite,
//					NULL,
//					NULL);
//	// _xZkqqHx_iDfEiDeDiDfJiCmMiOfKiPgPiBeC_xHqqkZx_
//	const DWORD dwDataSize = memFileWrite.GetLength();
//	// CMemFile_xZkqqHx_iCmMiDgPiDgCiDhEiDeAiCpAjAnIiCoIjHkDiClHiBeC_xHqqkZx_
//	BYTE* pData = memFileWrite.Detach();
//
//	// _xZkqqHx_iDiBiDiCiDiKiDhEiDeAiDeDiDiLiCpAjAlGjAkMiBeC_xHqqkZx_
//	CMemFile memFileRead(pData, dwDataSize);
//	// _xZkqqHx_jFjEjFgJjBkOjAkLiDfIiDgHiDiKiBfLiDiAiCpAiOoGjDlOiBeC_xHqqkZx_
//	FCUndoArchive arRawData(&memFileRead, FD_ARCHIVE_LOAD, NULL);
//
//	// _xZkqqHx_iDhHiDgCiDfPiCpAjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
//	FCHeaderInf headerInf;
//	headerInf.InStream(arRawData);
//	// _xZkqqHx_iDhHiDgCiDfPiDgAiDeGiDgCiDeOiBeC_xHqqkZx_
//	headerInf.RegalCheck(	FD_DTP_PORTABLE_FORMAT,
//							FD_DTP_TEMPLATE_FORMAT,
//							FD_DTP_WORK_FORMAT);
//	// _xZkqqHx_iDhGiDiKiDjDiDfOiPoOjFpBjDjJiCpAjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
//	CFCMolipDrawApp::SkipStream(arRawData);
//	// _xZkqqHx_iKmCiLkLiPoOjFpBiCpAjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
//	pEnv->InStream(arRawData);
//
//	arRawData.Close();
//	memFileRead.Close();
//	// CMemFile_xZkqqHx_iCmMiDgPiDgCiDhEiDeAiCpAiJpAjFpKiBeC_xHqqkZx_
//	free(pData);
//----- 06.03.28 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	// _xZkqqHx_iDiPiBfLiDeOiDhEiDeAiDeDiDiL_xHqqkZx_(Write_xZkqqHx_jHhA_xHqqkZx_)_xZkqqHx_iCpAjAlGjAkMiBeC_xHqqkZx_
	FCWorkFile workFileFcore;
	mgr.DoConvert(	wcpFilePath,
					wstrVersion,
					NULL,
					L"*fcore",
					FCHeaderInf::GetStcFileVersionString(),
					&workFileFcore.file,
					TRUE);
	// _xZkqqHx_iDiPiBfLiDeOiDhEiDeAiDeDiDiLiCpAjAoGjDkKiCnGiInKjDkOiBeC_xHqqkZx_
	workFileFcore.file.Seek(0, CFile::begin);
	// _xZkqqHx_jFjEjFgJjBkOjAkLiDfIiDgHiDiKiBfLiDiAiCpAiOoGjDlOiBeC_xHqqkZx_
	FCUndoArchive arRawData(&workFileFcore.file, FD_ARCHIVE_LOAD, NULL);

	// _xZkqqHx_iDhHiDgCiDfPiCpAjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
	FCHeaderInf headerInf;
	headerInf.InStream(arRawData);
	// _xZkqqHx_iDhHiDgCiDfPiDgAiDeGiDgCiDeOiBeC_xHqqkZx_
//----- 06.04.03 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	headerInf.RegalCheck(	FD_DTP_PORTABLE_FORMAT,
//							FD_DTP_TEMPLATE_FORMAT,
//							FD_DTP_WORK_FORMAT);
//----- 06.04.03 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	headerInf.RegalCheck(	FD_DTP_STANDARD_FORMAT,	// _xZkqqHx_jCmKiPoNiDhEiDeIiBfLiDhNiDgCiDgHiCmMjFlGiPjBiBeC_xHqqkZx_(.mdrw)
							FD_DTP_PORTABLE_FORMAT,	// _xZkqqHx_iDhMiBfLiDfOiDhFiDiLiDhEiDeIiBfLiDhNiDgCiDgHiCmMjFlGiPjBiBeC_xHqqkZx_(.mdpf)
							FD_DTP_TEMPLATE_FORMAT,	// _xZkqqHx_iDgFiDjDiDhGiDiMiBfLiDgHiDhEiDeIiBfLiDhNiDgCiDgHiCmMjFlGiPjBiBeC_xHqqkZx_(.mdwt)
							FD_DTP_WORK_FORMAT);	// _xZkqqHx_iDiPiBfLiDeOiDhEiDeIiBfLiDhNiDgCiDgHiCmMjFlGiPjBiBeC_xHqqkZx_(.mdwk)
//----- 06.04.03 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
//----- 06.04.03 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	// _xZkqqHx_iDhGiDiKiDjDiDfOiPoOjFpBjDjJiCpAjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
//	CFCMolipDrawApp::SkipStream(arRawData);
//	// _xZkqqHx_iKmCiLkLiPoOjFpBiCpAjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
//	pEnv->InStream(arRawData);
//----- 06.04.03 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	// DD_xZkqqHx_jFlGiPjBiDhGiDiNiDhAiDgFiDeCiDfIiDgHiDiKiBfLiDiAiCpAiDfIiDeMiDgCiDhGiBeC_xHqqkZx_
	long lStreamSize;
	arRawData >> lStreamSize;
	arRawData.Skip(lStreamSize);
	// _xZkqqHx_iDhGiDiKiDjDiDfOiPoOjFpBjDjJiCpAjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
	CFCMolipDrawApp::SkipStream(arRawData);
	// _xZkqqHx_iKmCiLkLiPoOjFpBiCpAjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
	pEnv->InStream(arRawData);
//----- 06.04.03 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
	arRawData.Close();
//----- 06.03.28 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
} // CFCFoundDoc::ImportEnv.

//----- 03.06.30 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::InCurPortableEnv
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhMiBfLiDfOiDhFiDiLiDhEiDeIiBfLiDhNiDgCiDgHiCkJiCoH_xHqqkZx_FCEnv_xZkqqHx_iCmMiPoOjFpBiCpAiOoGiCoIiPgPiClHiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ar		:_xZkqqHx_iDhMiBfLiDfOiDhFiDiLiDhEiDeIiBfLiDhNiDgCiDgHiCpAiOhHjCoIiBeC_xHqqkZx_
// *			pEnv	:_xZkqqHx_jDmHiCnNiNjOiCnNjAoGiCmMiKmCiLkLiCpAiOhHjCoIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jCiNiInD_xHqqkZx_>	static_xZkqqHx_iKnGjAjEiBeCiDgPiBfLiDfHiDiHiDjDiIoBiCkCiCmMiPoKiNiHiCmNiDeHiDiJiBfLiCpAiDfIiDiNiBfLiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.06.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCFoundDoc::InCurPortableEnv (FCUndoArchive& ar, FCEnv* pEnv)
//{
//	WString wstrDocumentProperty[FD_DPID_END];	// _xZkqqHx_jFlGiPjBiDhGiDiNiDhAiDgFiDeCiBeC_xHqqkZx_
//	// PNG_xZkqqHx_iDhEiDeAiDeDiDiLiCkJiCoH_xHqqkZx_ MDRW_xZkqqHx_iDgAiDiDiDjDiDeOiCpAjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
//	BYTEVector vCompressData;
//	FFPngRead32BitData(	ar, NULL, NULL,
//						wstrDocumentProperty,
//						sizeof(wstrDocumentProperty) / sizeof(wstrDocumentProperty[0]),
//						&vCompressData);
//
//	// _xZkqqHx_iDgGiBfLiDfOiDhEiDeIiBfLiDhNiDgCiDgHiBeC_xHqqkZx_
//	// | n Byte | 1 Byte |  4 Byte          |      n Byte     |
//	// | _xZkqqHx_iDhHiDgCiDfP_xHqqkZx_ |_xZkqqHx_iIlDiPgLjFpLjGeA_xHqqkZx_|_xZkqqHx_iJpAjDiAiMoDiDgGiBfLiDfOiDfEiDeDiDfJ_xHqqkZx_|   _xZkqqHx_iIlDiPgLiDgGiBfLiDfO_xHqqkZx_    |
//
//	// LZ77_xZkqqHx_iDgGiBfLiDfOiDhFiDiNiDgCiDeOiCmMjAoGjDkKiImKjChFiBeC_xHqqkZx_
//	const BYTE* bypCompressData = vCompressData.begin();
//	// _xZkqqHx_iDhHiDgCiDfPiCpAjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
//	FCHeaderInf headerInf;
//	headerInf.InStream(bypCompressData);
//	// _xZkqqHx_iDhHiDgCiDfPiDgAiDeGiDgCiDeOiBeCiDeHiDiJiBfLiBeBiMmDiCkCiPoKiNiHiCmNiDfIiDiNiBfLiPiIjHjNiCnGiBeC_xHqqkZx_
//	// ccore(FD_DTP_STANDARD_FORMAT)_xZkqqHx_iCmNiDfEiDhMiBfLiDgHiClFiCmIiCkCiBeC_xHqqkZx_
//	headerInf.RegalCheck(FD_DTP_PORTABLE_FORMAT,
//						 FD_DTP_TEMPLATE_FORMAT);
//
//	// LZ77_xZkqqHx_iDgGiBfLiDfOiDhFiDiNiDgCiDeOiCkJiCoHjEpBiIlDiPgLiDgGiBfLiDfOiDgPiDgCiDhEiDeAiCpAiOoGjDlOiBeC_xHqqkZx_
//	BYTEVector vRawDataBuff;
//	FFReadLZ77DataBlock(vRawDataBuff, bypCompressData,
//						vCompressData.end() - bypCompressData);
//
//	// _xZkqqHx_iDiBiDiCiDiKiDhEiDeAiDeDiDiLiCpAjAlGjAkMiBeC_xHqqkZx_
//	CMemFile memRawDataFile(vRawDataBuff.begin(), vRawDataBuff.size());
//	// _xZkqqHx_jFjEjFgJjBkOjAkLiDfIiDgHiDiKiBfLiDiAiCpAiOoGjDlOiBeC_xHqqkZx_
//	FCUndoArchive arRawData(&memRawDataFile, FD_ARCHIVE_LOAD, NULL);
//	// _xZkqqHx_iDhGiDiKiDjDiDfOiPoOjFpBjDjJiCpAjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
//	CFCMolipDrawApp::SkipStream(arRawData);
//	// _xZkqqHx_iKmCiLkLiPoOjFpBiCpAjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
//	pEnv->InStream(arRawData);
//} // CFCFoundDoc::InCurPortableEnv.
//----- 03.06.30 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

//----- 03.06.30 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::ImportTemplate
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgFiDjDiDhGiDiMiBfLiDgHiDhEiDeAiDeDiDiLiCpAjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	wcpFilePath		:_xZkqqHx_iDgFiDjDiDhGiDiMiBfLiDgHiDhEiDeAiDeDiDiLjGlMiCpAiOhHjCoIiBeC_xHqqkZx_
// *			pEnv			:_xZkqqHx_jDmHiCnNiNjOiCnNjAoGiCmMiKmCiLkLiCpAiOhHjCoIiBeC_xHqqkZx_
// *			pToolManager	:_xZkqqHx_jDmHiCnNiNjOiCnNjAoGiCmMiDgDiBfLiDiLiDhNiDgMiBfLiDfHiDiDiCpAiOhHjCoIiBeCjFhDjHhGiCmIiCoHiCmO_xHqqkZx_ NULL_xZkqqHx_iBeC_xHqqkZx_
// *			bExtInfo		:_xZkqqHx_iDiMiDeDiDiEiBfLiPoOjFpBiBeBiDiMiDfHiDfIiDgHiDiKiPoOjFpBiCpAjDmHiCnNiNjOiCnOiPoKiNiHiCmN_xHqqkZx_
// *							 TRUE _xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
// *			pDoc			:_xZkqqHx_iDiMiDeDiDiEiBfLiPoOjFpBiCpAjDmHiCnNiNjOiCnOjAoGiCmMiDfGiBfLiDgHiCpAiOhHjCoIiBeC_xHqqkZx_
// *							 _xZkqqHx_jFhDjHhGiCmIiCoHiCmO_xHqqkZx_ NULL_xZkqqHx_iBeC_xHqqkZx_
// *			pReg			:_xZkqqHx_iDiMiDfHiDfIiDgHiDiKiPoOjFpBiCpAjDmHiCnNiNjOiCnOjAoGiCpAiOhHjCoIiBeC_xHqqkZx_
// *							 _xZkqqHx_jFhDjHhGiCmIiCoHiCmO_xHqqkZx_ NULL_xZkqqHx_iBeC_xHqqkZx_
// *
// * <_xZkqqHx_jCiNiInD_xHqqkZx_>	static_xZkqqHx_iKnGjAjEiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.01.14 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCFoundDoc::ImportTemplate (	const wchar_t* wcpFilePath,
//									FCEnv* pEnv)
////----- 03.06.29 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
////									FCToolManager* pToolManager,
////									BOOL bExtInfo,
////									CFCFoundDoc* pDoc,
////									FCRegData* pReg)
////----- 03.06.29 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
//{
////----- 03.06.26 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
////	// _xZkqqHx_iDhEiDeAiDeDiDiLiCpAiDeJiBfLiDhGiDjDiClHiCoJiBeC_xHqqkZx_
////	CFile file(WStrToTStr(wcpFilePath), CFile::modeRead);
////----- 03.06.26 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
//	// _xZkqqHx_iDeBiBfLiDeKiDeDiDhFiNoMjAkMiBeC_xHqqkZx_
//// 03.06.26 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
////	FCUndoArchive ar(&file, FD_ARCHIVE_LOAD, NULL);
//	FCUndoArchive ar(wcpFilePath, FD_ARCHIVE_LOAD, NULL);
//// 03.06.29 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
////	ImportTemplate(ar, pEnv, pToolManager, bExtInfo, pDoc, pReg);
//	ImportTemplate(ar, pEnv);
//	// _xZkqqHx_iDeBiBfLiDeKiDeDiDhFiCpAjFmCiClGiCoJiBeC_xHqqkZx_
//	ar.Close();
//// 03.06.26 Fukushiro M. 1_xZkqqHx_iNhDiNoNiPjM_xHqqkZx_ ()
////	file.Close();
//} // CFCFoundDoc::ImportTemplate.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::ImportTemplate
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgFiDjDiDhGiDiMiBfLiDgHiDhEiDeAiDeDiDiLiCpAjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	fcar			:_xZkqqHx_iDgFiDjDiDhGiDiMiBfLiDgHiDhEiDeAiDeDiDiLiCmMiDfIiDgHiDiKiBfLiDiAiCpAiOhHjCoIiBeC_xHqqkZx_
// *			pEnv			:_xZkqqHx_jDmHiCnNiNjOiCnNjAoGiCmMiKmCiLkLiCpAiOhHjCoIiBeC_xHqqkZx_
// *			pToolManager	:_xZkqqHx_jDmHiCnNiNjOiCnNjAoGiCmMiDgDiBfLiDiLiDhNiDgMiBfLiDfHiDiDiCpAiOhHjCoIiBeCjFhDjHhGiCmIiCoHiCmO_xHqqkZx_ NULL_xZkqqHx_iBeC_xHqqkZx_
// *			bExtInfo		:_xZkqqHx_iDiMiDeDiDiEiBfLiPoOjFpBiBeBiDiMiDfHiDfIiDgHiDiKiPoOjFpBiCpAjDmHiCnNiNjOiCnOiPoKiNiHiCmN_xHqqkZx_
// *							 TRUE _xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
// *			pDoc			:_xZkqqHx_iDiMiDeDiDiEiBfLiPoOjFpBiCpAjDmHiCnNiNjOiCnOjAoGiCmMiDfGiBfLiDgHiCpAiOhHjCoIiBeC_xHqqkZx_
// *							 _xZkqqHx_jFhDjHhGiCmIiCoHiCmO_xHqqkZx_ NULL_xZkqqHx_iBeC_xHqqkZx_
// *			pReg			:_xZkqqHx_iDiMiDfHiDfIiDgHiDiKiPoOjFpBiCpAjDmHiCnNiNjOiCnOjAoGiCpAiOhHjCoIiBeC_xHqqkZx_
// *							 _xZkqqHx_jFhDjHhGiCmIiCoHiCmO_xHqqkZx_ NULL_xZkqqHx_iBeC_xHqqkZx_
// *
// * <_xZkqqHx_jCiNiInD_xHqqkZx_>	static_xZkqqHx_iKnGjAjEiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.05.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCFoundDoc::ImportTemplate (	FCUndoArchive& fcar,
//									FCEnv* pEnv)
////----- 03.06.29 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
////									FCToolManager* pToolManager,
////									BOOL bExtInfo,
////									CFCFoundDoc* pDoc,
////									FCRegData* pReg)
////----- 03.06.29 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
//{
//	// fcar _xZkqqHx_iCmFiDhHiDgCiDfPiCpAjDmHiCnNiNjOiCpBiCmFiCkJiCoHiMlDiCmJjGnPiClHiClNiCnPiCmJiDgPiDgCiDhEiDeAiDfEiDeDiDfJiCpAjAnNjCoIiBeC_xHqqkZx_
//	fcar.ResetUndoBuffer(100, 200);
//
//	FCHeaderInf headerInf;
//	try
//	{
//		// _xZkqqHx_iDhHiDgCiDfPiPoOjFpBiCmMjDmHiCnNiNjOiCnNiBeC_xHqqkZx_
//		headerInf.InStream(fcar);
//		// _xZkqqHx_iDhHiDgCiDfPiDgAiDeGiDgCiDeOiBeCiDeHiDiJiBfLiBeBiMmDiCkCiPoKiNiHiCmNiDfIiDiNiBfLiPiIjHjNiCnGiBeC_xHqqkZx_
//		headerInf.RegalCheck(FD_DTP_TEMPLATE_FORMAT);
//	} catch (CFCDDFileException* e)
//	//----- _xZkqqHx_iDeHiDiJiBfLiPiIjHjN_xHqqkZx_ -----
//	{
//		// _xZkqqHx_iDhEiDeAiDeDiDiLiDgPiBfLiDfHiDiHiDjDiIoBiCkC_xHqqkZx_ _xZkqqHx_iKiOiCmC_xHqqkZx_ _xZkqqHx_iDgPiBfLiDfHiDiHiDjDiCkKiMmDiCkCiPoKiNiHiBeC_xHqqkZx_
//		if (e->m_nErrCode == IDS_ERR_FILE_WRONG_VERSION)
//		{
//			e->Delete();
//			// _xZkqqHx_iDgPiBfLiDfHiDiHiDjD_xHqqkZx_ %s _xZkqqHx_iCmMiDgFiDjDiDhGiDiMiBfLiDgHiDhEiDeAiDeDiDiLiCmFiClHiBeCjFmPiKlHiClFiCmEjDmHiCnNiNjOiCnNiCnMiClHiBeC_xHqqkZx_
//			FFErrorBox(IDS_MSG_TMPL_DIFF_VER_AND_CONVERT,
//					(const wchar_t*)FCHeaderInf::FileVersionToString(headerInf.GetFileVersion()));
//			// fcar_xZkqqHx_iCpAiNmFiPiJiCnMiCmFjGnPiClHiBeC_xHqqkZx_
//			fcar.Undo(-1);
//			// fcar _xZkqqHx_iCmMiDgPiDgCiDhEiDeAiDfEiDeDiDfJiCpAiCePiCmJjAnNjCoIiBeC_xHqqkZx_
//			fcar.ResetUndoBuffer(0, 0);
//			// _xZkqqHx_iMmDiCkCiDgPiBfLiDfHiDiHiDjDiCmMiDhEiDeAiDeDiDiLiCpAjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
//// 03.06.29 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
////			ImportTemplateOld(fcar, headerInf.GetFileVersion(), pEnv, pToolManager, bExtInfo, pDoc, pReg);
//			ImportTemplateOld(fcar, headerInf.GetFileVersion(), pEnv);
//			return;
//		} else
//		{
//			throw e;
//		}
//	}
//	// fcar_xZkqqHx_iCpAiNmFiPiJiCnMiCmFjGnPiClHiBeC_xHqqkZx_
//	fcar.Undo(-1);
//	// fcar _xZkqqHx_iCmMiDgPiDgCiDhEiDeAiDfEiDeDiDfJiCpAiCePiCmJjAnNjCoIiBeC_xHqqkZx_
//	fcar.ResetUndoBuffer(0, 0);
//	// _xZkqqHx_iPoOjFpBiCpAjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
//// 03.06.29 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
////	ImportTemplateSub(fcar, pEnv, pToolManager, bExtInfo, pDoc, pReg);
//	ImportTemplateSub(fcar, pEnv);
//} // CFCFoundDoc::ImportTemplate.
//----- 03.06.30 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::InitObjIdTblByReservedId
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFjEjFgJ_xHqqkZx_ID_xZkqqHx_iDgFiBfLiDhFiDiLiCpAiDiKiDfFiBfLiDhF_xHqqkZx_ID_xZkqqHx_iCmFiPiJiKpKiJlLiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	idtable	:_xZkqqHx_jFjEjFgJ_xHqqkZx_ID_xZkqqHx_iDgFiBfLiDhFiDiLiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iPnKiNnH_xHqqkZx_>	ID_xZkqqHx_iDgFiBfLiDhFiDiLiCmM_xHqqkZx_0 - 40 _xZkqqHx_iCmNiBeBiDgDiBfLiDiLiCmMjDoAjFjEjFjEjFgJjHhAiCmJiDiKiDfFiBfLiDhFiClDiCoKiCmEiCkCiCoJiBeC_xHqqkZx_
 *			CFCDynamicDrawView::InStream _xZkqqHx_iCpAiCkJiCkPiCoKiCmOjDoAjFjEjFjEjFgJiCkKjDgPjIfOiClDiCoKiCoJiCkKiBeB_xHqqkZx_
 *			_xZkqqHx_iClBiCoKiCpAiNhDiCoNiCmIiCkCiPoKiNiHiCmNiDiKiDfFiBfLiDhFjHmMiIoGiCmJ_xHqqkZx_DWORD(-1)_xZkqqHx_iCpAjAnNjCoIiClHiCoJjFeLjHhGiCkKiCkAiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.08.15 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::InitObjIdTblByReservedId (FCObjIDTbl& idtable)
{
	//----- _xZkqqHx_iDgDiBfLiDiLiCmMjDoAjFjEjFjEjFgJiCpAjFjEjFgJ_xHqqkZx_ID_xZkqqHx_iDgFiBfLiDhFiDiLiCmJjDgPjIfOiClHiCoJ_xHqqkZx_ ------
	for (int iTool = 0; iTool < FD_MAX_TOOL_ID; iTool++)
	{
		idtable.Register((FCObjDynabase*)(-1), DWORD(iTool));
	}
} // CFCFoundDoc::InitObjIdTblByReservedId.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnDrawBackView
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	CView::OnDraw_xZkqqHx_iCmMjEhHiMgJjFgAiJoGiBeCiDeHiDgGiDeCiDfOjDjJiCmMiDgIiDeMiDiFiDiBiDjDiDgHjFmKiCmMjDmBjFmKiCmI_xHqqkZx_
 *			_xZkqqHx_jEhHiMgJjFgAiJoGiCpAjCfDjDjGiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.04.08 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OnDrawBackView (CDC* pDC)
{
} // CFCFoundDoc::OnDrawBackView.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnDrawFrontView
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	CView::OnDraw_xZkqqHx_iCmMjBePiMgJjFgAiJoGiBeCiDeHiDgGiDeCiDfOjDjJiCmMiDgIiDeMiDiFiDiBiDjDiDgHjFmKiCmMjDmBjFmKiCmI_xHqqkZx_
 *			_xZkqqHx_jBePiMgJjFgAiJoGiCpAjCfDjDjGiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.08.29 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OnDrawFrontView (CDC* pDC)
{
} // CFCFoundDoc::OnDrawFrontView.

//----- 03.09.25 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::LoadUsrTemplate
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiGiBfLiDfFiOhHjCoIiCmMiDgFiDjDiDhGiDiMiBfLiDgHiDhEiDeAiDeDiDiLiCpAjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	wstrFile	:_xZkqqHx_iDgFiDjDiDhGiDiMiBfLiDgHiDhEiDeAiDeDiDiLjGlMiCpAjFnEiClHiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.12.20 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCFoundDoc::LoadUsrTemplate (WString& wstrFile)
//{
//	ASSERT(m_pSheetManager->IsEmpty());
//	// _xZkqqHx_iDhEiDeAiDeDiDiLjGlMiCpAiPiJiKpKiJlLiBeC_xHqqkZx_
//	wstrFile.Empty();
//	try
//	{
//		// _xZkqqHx_iDhEiDeAiDeDiDiLiDfPiDeDiDeBiDiNiDePiCpAiNoMjAkMiBeC_xHqqkZx_
//		if (DoModalImportDialog(wstrFile) == IDOK)
//			ImportFile(wstrFile, NULL);
//	} catch (CException* e)
//	//----- _xZkqqHx_iDeHiDiJiBfLiPiIjHjN_xHqqkZx_ -----
//	{
//		// _xZkqqHx_jCmKiPoNiCmNiDhEiDeAiDeDiDiLiDeHiDiJiBfLiCmIiCmMiCmFiClBiCmMiCnMiCnMiPiIjHjNiCpAjBlBiCkPiCoJiBeC_xHqqkZx_
//		// _xZkqqHx_iClBiClBiCmFiPiIjHjNiCpAiOhOiCnPiCoJiCmGiBeBiLeOjDkOiCkKjFhDiJmCjEfMiCmJiCmIiCoJiPoKiNiHiCoAiCkAiCoJiClNiCnPiBeC_xHqqkZx_
//		// _xZkqqHx_iDeHiDiJiBfLiDiBiDgCiDfKiBfLiDfHjFfMiOkGiBeC_xHqqkZx_
//		e->ReportError();
//		e->Delete();
//		// _xZkqqHx_iDhEiDeAiDeDiDiLjGlMiCpAiDeOiDiKiDeBiBeC_xHqqkZx_
//		wstrFile.Empty();
//	}
//	if (wstrFile.IsEmpty())
//	//----- _xZkqqHx_iDgFiDjDiDhGiDiMiBfLiDgHiDhEiDeAiDeDiDiLiDeJiBfLiDhGiDjDiCmJiOlIjEhD_xHqqkZx_ -----
//	{
//		// _xZkqqHx_jFfHiPiAiDgFiDjDiDhGiDiMiBfLiDgHiDhEiDeAiDeDiDiLiCmMjDmHiCnNiNjOiCnNiPiIjHjNiBeC_xHqqkZx_
//		LoadStdTemplate(wstrFile);
//	}
//} // CFCFoundDoc::LoadUsrTemplate.
//----- 03.09.25 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::LoadStdTemplate
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFfHiPiAiCmMiDgFiDjDiDhGiDiMiBfLiDgHiDhEiDeAiDeDiDiLiCpAjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	strFile	:_xZkqqHx_iDgFiDjDiDhGiDiMiBfLiDgHiDhEiDeAiDeDiDiLjGlMiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.12.20 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::LoadStdTemplate (WString& strFile)
{
	ASSERT(m_pSheetManager->IsEmpty());
	// _xZkqqHx_iDhEiDeAiDeDiDiLjGlMiCpAiPiJiKpKiJlLiBeC_xHqqkZx_
	strFile.Empty();
	//----- _xZkqqHx_iDgFiDjDiDhGiDiMiBfLiDgHiDhEiDeAiDeDiDiLiCkJiCoHiCmMjDmHiCnNiNjOiCnNiPiIjHjN_xHqqkZx_ -----
	g_pReg->GetStdTemplate(strFile);
	if (!strFile.IsEmpty())
	//----- _xZkqqHx_iDgFiDjDiDhGiDiMiBfLiDgHiDhEiDeAiDeDiDiLjGlMiCkKjAnNjCoIiClDiCoKiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
	{
		try
		{
			// _xZkqqHx_iDgFiDjDiDhGiDiMiBfLiDgHiDhEiDeAiDeDiDiLiCpAjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
			ImportFile(strFile, NULL);
		} catch (CException* e)
		//----- _xZkqqHx_iDeHiDiJiBfLiPiIjHjN_xHqqkZx_ -----
		{
			// _xZkqqHx_jCmKiPoNiCmNiDhEiDeAiDeDiDiLiDeHiDiJiBfLiCmIiCmMiCmFiClBiCmMiCnMiCnMiPiIjHjNiCpAjBlBiCkPiCoJiBeC_xHqqkZx_
			// _xZkqqHx_iClBiClBiCmFiPiIjHjNiCpAiOhOiCnPiCoJiCmGiBeBiLeOjDkOiCkKjFhDiJmCjEfMiCmJiCmIiCoJiPoKiNiHiCoAiCkAiCoJiClNiCnPiBeC_xHqqkZx_
			// _xZkqqHx_iDeHiDiJiBfLiDiBiDgCiDfKiBfLiDfHjFfMiOkGiBeC_xHqqkZx_
			e->ReportError();
			e->Delete();
			// _xZkqqHx_iDhEiDeAiDeDiDiLjGlMiCpAiLpDiCmJiClHiCoJiBeC_xHqqkZx_
			strFile.Empty();
		}
	}
	if (strFile.IsEmpty())
	//----- _xZkqqHx_iDgFiDjDiDhGiDiMiBfLiDgHiDhEiDeAiDeDiDiLjGlMiCkKjAnNjCoIiClDiCoKiCmEiCkCiCmIiCkCiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_jFlGiPjBiCkKiKeKiCkCiCmEiCkCiCoJiPpDjBnEiCmJiClHiCoJiBeC_xHqqkZx_
		m_bIsDocumentOpened = TRUE;
//----- 05.07.02 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//		// _xZkqqHx_iDgAiDgCiDhGiDfIiDgHiDeBiDfEiDeDiDfJiCpAiNmEiMhGiOfKiBeC_xHqqkZx_
//		if (FFGetMainWnd()->IsAvailable())
//			FFGetMainWnd()->PostMessage(WM_USER_UPDATE_CHIP_STORE,
//										0,
//										LPARAM(-1));
//----- 05.07.02 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
		// _xZkqqHx_jFlGiPjBiDhEiDeAiDeDiDiLiCpAjDmHiCnNiNjOiCpBiClOiMoDiPiIjHjNiBeC_xHqqkZx_
		AfterLoadDocument(TRUE);
//----- 05.07.02 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
	}
} // CFCFoundDoc::LoadStdTemplate.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::GetDocumentProperty
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFlGiPjBiDhGiDiNiDhAiDgFiDeCiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	dpid	:_xZkqqHx_jFlGiPjBiDhGiDiNiDhAiDgFiDeCiCmM_xHqqkZx_ID_xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_jFlGiPjBiDhGiDiNiDhAiDgFiDeCiCmMjFlGiPmNiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.06.18 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
const wchar_t* CFCFoundDoc::GetDocumentProperty (FTDocumentPropertyId dpid) const
{
//----- 03.06.19 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	switch (dpid)
//	{
//	case FD_DPID_DOCUMENT_TITLE:		// _xZkqqHx_jFlGiPjBiDfOiDeDiDgHiDiLiBeC_xHqqkZx_
//		return m_wstrDocumentTitle;
//	case FD_DPID_DOCUMENT_AUTHOR:		// _xZkqqHx_jFlGiPjBiNoMiOnCiBeC_xHqqkZx_
//		return m_wstrDocumentAuthor;
//	case FD_DPID_DOCUMENT_DESCRIPTION:	// _xZkqqHx_jFlGiPjBjAoAjGlOiBeC_xHqqkZx_
//		return m_wstrDocumentDescription;
//	case FD_DPID_DOCUMENT_COMMENT:		// _xZkqqHx_jFlGiPjBiDfCiDiBiDjDiDgHiBeC_xHqqkZx_
//		return m_wstrDocumentComment;
//	default:
//		FFThrowMiscUnknown();
//	}
//----- 03.06.19 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	if (dpid < 0 || FD_DPID_END <= dpid)
		FFThrowMiscUnknown();
	return m_wstrDocumentProperty[dpid];
//----- 03.06.19 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
} // CFCFoundDoc::GetDocumentProperty.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::SetDocumentProperty
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFlGiPjBiDhGiDiNiDhAiDgFiDeCiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	dpid	:_xZkqqHx_jAnNjCoIiClHiCoJjFlGiPjBiDhGiDiNiDhAiDgFiDeCiCmM_xHqqkZx_ID_xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *			wcpNewValue	:_xZkqqHx_jAnNjCoIiClHiCoJjFlGiPjBiDhGiDiNiDhAiDgFiDeCiCmMjFlGiPmNiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.06.18 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::SetDocumentProperty (FTDocumentPropertyId dpid,
										const wchar_t* wcpNewValue)
{
//----- 03.06.19 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	switch (dpid)
//	{
//	case FD_DPID_DOCUMENT_TITLE:		// _xZkqqHx_jFlGiPjBiDfOiDeDiDgHiDiLiBeC_xHqqkZx_
//		m_wstrDocumentTitle = wcpNewValue;
//		break;
//	case FD_DPID_DOCUMENT_AUTHOR:		// _xZkqqHx_jFlGiPjBiNoMiOnCiBeC_xHqqkZx_
//		m_wstrDocumentAuthor = wcpNewValue;
//		break;
//	case FD_DPID_DOCUMENT_DESCRIPTION:	// _xZkqqHx_jFlGiPjBjAoAjGlOiBeC_xHqqkZx_
//		m_wstrDocumentDescription = wcpNewValue;
//		break;
//	case FD_DPID_DOCUMENT_COMMENT:		// _xZkqqHx_jFlGiPjBiDfCiDiBiDjDiDgHiBeC_xHqqkZx_
//		m_wstrDocumentComment = wcpNewValue;
//		break;
//	default:
//		FFThrowMiscUnknown();
//	}
//----- 03.06.19 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	if (dpid < 0 || FD_DPID_END <= dpid)
		FFThrowMiscUnknown();
	m_wstrDocumentProperty[dpid] = wcpNewValue;
//----- 03.06.19 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
} // CFCFoundDoc::SetDocumentProperty.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::DocumentPropertyToStream
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFlGiPjBiDhGiDiNiDhAiDgFiDeCiCkJiCoHiDgPiDeDiDgHiDfIiDgHiDiKiBfLiDiAiCnGjFmPiKlHiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	vStream				:_xZkqqHx_iDgPiDeDiDgHiDfIiDgHiDiKiBfLiDiAiCpAjFnEiClHiBeC_xHqqkZx_
 *			wstraDocProperty	:_xZkqqHx_jFlGiPjBiDhGiDiNiDhAiDgFiDeCjEhKjHpBiCpAiOhHjCoIiBeC_xHqqkZx_
 *			lDocPropertySize	:wstraDocProperty_xZkqqHx_iCmMjEhKjHpBiDfEiDeDiDfJiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_jFlGiPjBiDhGiDiNiDhAiDgFiDeCjEhKjHpB_xHqqkZx_ wstraDocProperty _xZkqqHx_iCmNiBeBiImIiJlKiCmMjEhKjHpBjHhGjBgGiCpAiOjNiCmCiBeC_xHqqkZx_
 *				FD_DPID_DOCUMENT_TITLE = 0			_xZkqqHx_jFlGiPjBiDfOiDeDiDgHiDiLiBeC_xHqqkZx_
 *				FD_DPID_DOCUMENT_AUTHOR = 1			_xZkqqHx_jFlGiPjBiNoMiOnCiBeC_xHqqkZx_
 *				FD_DPID_DOCUMENT_DESCRIPTION = 2	_xZkqqHx_jFlGiPjBjAoAjGlOiBeC_xHqqkZx_
 *				FD_DPID_DOCUMENT_COMMENT = 3		_xZkqqHx_jFlGiPjBiDfCiDiBiDjDiDgHiBeC_xHqqkZx_
 *
 *          _xZkqqHx_iDgPiDeDiDgHiDfIiDgHiDiKiBfLiDiAiCmNiImIiJlKiCmMiCfDiCmCiCmMiDfKiDePiDiBiDjDiDgHiCmFiNfMjAkMiClDiCoKiCoJiBeC_xHqqkZx_
 *          _xZkqqHx_iEkBiEjPiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEkC_xHqqkZx_
 *          _xZkqqHx_iEkAjFlGiPjBiDfOiDeDiDgHiDiLiEkA_xHqqkZx_ _xZkqqHx_jFlGiPjBiNoMiOnC_xHqqkZx_ _xZkqqHx_iEkA_xHqqkZx_ _xZkqqHx_jFlGiPjBjAoAjGlO_xHqqkZx_ _xZkqqHx_iEkAjFlGiPjBiDfCiDiBiDjDiDgHiEkA_xHqqkZx_
 *          _xZkqqHx_iEkEiEjPiEjPiEjPiEjPiEjPiEjPiEkIiEjPiEjPiEjPiEjPiEjPiEkIiEjPiEjPiEjPiEjPiEjPiEkIiEjPiEjPiEjPiEjPiEjPiEjPiEkD_xHqqkZx_
 *          _xZkqqHx_iEkA_xHqqkZx_ _xZkqqHx_iDfKiDePiDiBiDjDiDgH_xHqqkZx_ _xZkqqHx_iEkAiDfKiDePiDiBiDjDiDgHiEkAiDfKiDePiDiBiDjDiDgHiEkA_xHqqkZx_ _xZkqqHx_iDfKiDePiDiBiDjDiDgH_xHqqkZx_ _xZkqqHx_iEkA_xHqqkZx_
 *
 *          _xZkqqHx_iKgFiDfKiDePiDiBiDjDiDgHiCmNiBeBiImIiJlKiCmMiNfMjBkCiCpAiOjNiCmCiBeC_xHqqkZx_
 *          _xZkqqHx_iEkGiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkG_xHqqkZx_
 *          _xZkqqHx_iEkAjFlGiOjKjAjEiEkA_xHqqkZx_UNICODE _xZkqqHx_iDgFiDeMiDfIiDgHiEkA_xHqqkZx_
 *          _xZkqqHx_iEkIiEjPiEjPiEjPiEkIiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkI_xHqqkZx_
 *          _xZkqqHx_iEkF_xHqqkZx_ WORD _xZkqqHx_iEkJiEjPiEjP_xHqqkZx_ _xZkqqHx_jFlGiOjKjAjE_xHqqkZx_ _xZkqqHx_iEjPiEjPiEkH_xHqqkZx_
 *          _xZkqqHx_iEkA_xHqqkZx_       _xZkqqHx_iDfKiDePiDiBiDjDiDgH_xHqqkZx_       _xZkqqHx_iEkA_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.05.31 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::DocumentPropertyToStream (BYTEVector& vStream,
											const WString* wstraDocProperty,
											long lDocPropertySize) const
{
	long lIndex;
	for (lIndex = 0; lIndex != lDocPropertySize; lIndex++)
	{
		vStream << WORD(wstraDocProperty[lIndex].length());
		FFWriteStream(vStream,
					wstraDocProperty[lIndex].c_str(),
					DWORD(wstraDocProperty[lIndex].length() * sizeof(wchar_t)));
	}
} // CFCFoundDoc::DocumentPropertyToStream.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::StreamToDocumentProperty
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgPiDeDiDgHiDfIiDgHiDiKiBfLiDiAiCkJiCoHjFlGiPjBiDhGiDiNiDhAiDgFiDeCiCnGjFmPiKlHiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	wstraDocProperty	:_xZkqqHx_jFlGiPjBiDhGiDiNiDhAiDgFiDeCjEhKjHpBiCpAiOhHjCoIiBeC_xHqqkZx_
 *			lDocPropertySize	:wstraDocProperty_xZkqqHx_iCmMjEhKjHpBiDfEiDeDiDfJiCpAiOhHjCoIiBeC_xHqqkZx_
 *			pStream				:_xZkqqHx_iDgPiDeDiDgHiDfIiDgHiDiKiBfLiDiAiCpAiOhHjCoIiBeC_xHqqkZx_
 *			lStreamSize			:_xZkqqHx_iDgPiDeDiDgHiDfIiDgHiDiKiBfLiDiAiDfEiDeDiDfJiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_jFlGiPjBiDhGiDiNiDhAiDgFiDeCjEhKjHpB_xHqqkZx_ wstraDocProperty _xZkqqHx_iCmNiBeBiImIiJlKiCmMjEhKjHpBjHhGjBgGiCpAiOjNiCmCiBeC_xHqqkZx_
 *				FD_DPID_DOCUMENT_TITLE = 0			_xZkqqHx_jFlGiPjBiDfOiDeDiDgHiDiLiBeC_xHqqkZx_
 *				FD_DPID_DOCUMENT_AUTHOR = 1			_xZkqqHx_jFlGiPjBiNoMiOnCiBeC_xHqqkZx_
 *				FD_DPID_DOCUMENT_DESCRIPTION = 2	_xZkqqHx_jFlGiPjBjAoAjGlOiBeC_xHqqkZx_
 *				FD_DPID_DOCUMENT_COMMENT = 3		_xZkqqHx_jFlGiPjBiDfCiDiBiDjDiDgHiBeC_xHqqkZx_
 *
 *          _xZkqqHx_iDgPiDeDiDgHiDfIiDgHiDiKiBfLiDiAiCmNiImIiJlKiCmMiCfDiCmCiCmMiDfKiDePiDiBiDjDiDgHiCmFiNfMjAkMiClDiCoKiCoJiBeC_xHqqkZx_
 *          _xZkqqHx_iEkBiEjPiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEkC_xHqqkZx_
 *          _xZkqqHx_iEkAjFlGiPjBiDfOiDeDiDgHiDiLiEkA_xHqqkZx_ _xZkqqHx_jFlGiPjBiNoMiOnC_xHqqkZx_ _xZkqqHx_iEkA_xHqqkZx_ _xZkqqHx_jFlGiPjBjAoAjGlO_xHqqkZx_ _xZkqqHx_iEkAjFlGiPjBiDfCiDiBiDjDiDgHiEkA_xHqqkZx_
 *          _xZkqqHx_iEkEiEjPiEjPiEjPiEjPiEjPiEjPiEkIiEjPiEjPiEjPiEjPiEjPiEkIiEjPiEjPiEjPiEjPiEjPiEkIiEjPiEjPiEjPiEjPiEjPiEjPiEkD_xHqqkZx_
 *          _xZkqqHx_iEkA_xHqqkZx_ _xZkqqHx_iDfKiDePiDiBiDjDiDgH_xHqqkZx_ _xZkqqHx_iEkAiDfKiDePiDiBiDjDiDgHiEkAiDfKiDePiDiBiDjDiDgHiEkA_xHqqkZx_ _xZkqqHx_iDfKiDePiDiBiDjDiDgH_xHqqkZx_ _xZkqqHx_iEkA_xHqqkZx_
 *
 *          _xZkqqHx_iKgFiDfKiDePiDiBiDjDiDgHiCmNiBeBiImIiJlKiCmMiNfMjBkCiCpAiOjNiCmCiBeC_xHqqkZx_
 *          _xZkqqHx_iEkGiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkG_xHqqkZx_
 *          _xZkqqHx_iEkAjFlGiOjKjAjEiEkA_xHqqkZx_UNICODE _xZkqqHx_iDgFiDeMiDfIiDgHiEkA_xHqqkZx_
 *          _xZkqqHx_iEkIiEjPiEjPiEjPiEkIiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkI_xHqqkZx_
 *          _xZkqqHx_iEkF_xHqqkZx_ WORD _xZkqqHx_iEkJiEjPiEjP_xHqqkZx_ _xZkqqHx_jFlGiOjKjAjE_xHqqkZx_ _xZkqqHx_iEjPiEjPiEkH_xHqqkZx_
 *          _xZkqqHx_iEkA_xHqqkZx_       _xZkqqHx_iDfKiDePiDiBiDjDiDgH_xHqqkZx_       _xZkqqHx_iEkA_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.05.31 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::StreamToDocumentProperty (WString* wstraDocProperty,
											long lDocPropertySize,
											const BYTE* pStream,
											long lStreamSize) const
{
	// _xZkqqHx_jFlGiPjBiDhGiDiNiDhAiDgFiDeCjEhKjHpBiCpAiLpDiCmJiBeC_xHqqkZx_
	long lIndex = 0;
	for (lIndex = 0; lIndex != lDocPropertySize; lIndex++)
		wstraDocProperty[lIndex].Empty();

	const BYTE* pStreamEnd = pStream + lStreamSize;
	while (pStream < pStreamEnd)
	{
		// _xZkqqHx_jHhAiInDiClDiCoKiClNiDhGiDiNiDhAiDgFiDeCjEhKjHpBiDfEiDeDiDfJiCpAjClEiCkGiCoJiPoKiNiHiCmNiPeJjHlJiBeC_xHqqkZx_
		if (lIndex == lDocPropertySize) break;
		// _xZkqqHx_jFlGiOjKjAjEiCpAjDmHiCnNiPgPiClHiBeC_xHqqkZx_
		WORD wStrLen;
		FFReadData(wStrLen, pStream);
		// _xZkqqHx_iDhGiDiNiDhAiDgFiDeCiDgFiDeMiDfIiDgHiCpAjDmHiCnNiPgPiClHiBeC_xHqqkZx_
		wstraDocProperty[lIndex].assign((const wchar_t*)pStream, wStrLen);
		pStream += wStrLen * sizeof(wchar_t);
		lIndex++;
	}
} // CFCFoundDoc::StreamToDocumentProperty.

//----- 06.11.17 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::MakeObjRectFromClipboard
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDeOiDiKiDgCiDhGiDhLiBfLiDgIiPoDiCmMiPoOjFpBiCmJiKoOiCmDiCkCiCmEiBeBiOhHjCoIiClDiCoKiClNiLoJiMgAjFjEjFgJiCpAiPiJiKpKiJlLiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	objRect		:_xZkqqHx_iLoJiMgAjFjEjFgJiCpAiOhHjCoIiBeCiPiJiKpKiJlLiClFiCmEjFnEiClHiBeC_xHqqkZx_
 *			dwPasteAttr	:_xZkqqHx_jDfMiCoIjFhEiCkPjBkOjAkLiCpAiOhHjCoIiBeC_xHqqkZx_FD_PASTE_ATTR_XXX_xZkqqHx_iCmMjBgHiCnNiNiHiCoNiClJiBeC_xHqqkZx_

 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_jHeMiMpIiCmIjDfMiCoIjFhEiCkPjBkOjAkLiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jCiNiInD_xHqqkZx_>	_xZkqqHx_jDoAjFjEiCmFiDfCiDhNiDjDiDgIiCpAjEkNiNhDiClHiCoJiBeCiDfCiDhNiDjDiDgIiDfKiDgCiDfGiDiHiDjDiCpAiKeKiCkCiCmEiCkJiCoH_xHqqkZx_
 *			_xZkqqHx_iMmEiCnBiPgPiClHjFeLjHhGiCkKiCkAiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iDeHiDeOiDfKiDiLiCmMiPoKiNiHiBeBiDeOiDiKiDgCiDhGiDhLiBfLiDgIiCmJiCmJjCkDiCoHiCoKiClNiDiKiDgCiDgAiDgFiDeMiDfIiDgHiCmG_xHqqkZx_
 *			_xZkqqHx_iDhGiDiMiBfLiDjDiDgFiDeMiDfIiDgHiCmJiIoBiCkCiCkKiCkAiCoJiPoKiNiHiCkKiCkAiCoJiBeC_xHqqkZx_
 *			_xZkqqHx_jHoBiCkGiCmOiDiKiDgCiDgAiDgFiDeMiDfIiDgHiCmFiCmNiBeBiNhDiCmMiNmFiMoDiCmJiDfOiDhFjFlGiOjKiCkKjCmHiJmBiClDiCoKiCoJiCkK_xHqqkZx_
 *			_xZkqqHx_iDhGiDiMiBfLiDjDiDgFiDeMiDfIiDgHiCmNjCmHiJmBiClDiCoKiCmIiCkCiBeCiClBiCoKiCmNiBeBiDiKiDgCiDgAiDgFiDeMiDfIiDgHiCkK_xHqqkZx_
 *			_xZkqqHx_iKmIiInFjFfMiCmMjBkOjAkLiDfOiDePiCpAiOjNiCmCiClNiCnPiCmGiOhGiCoNiCoKiCoJiBeC_xHqqkZx_
 *			_xZkqqHx_jFfMjFjEjFgJiCmJjDfMiCoIjFhEiCkPiCoJiPoKiNiHiCmIiCmHiBeBiDhGiDiMiBfLiDjDiDgFiDeMiDfIiDgHiCmMiMgAiOkOiCkKjGfNiCnMiClFiCkC_xHqqkZx_
 *			_xZkqqHx_iCmMiCmFiBeBiDhGiDiMiBfLiDjDiDgFiDeMiDfIiDgHiCoAjDmHiCnNiClOiClJiCoJiCoGiCkEiCmJiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.11.17 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
DWORD CFCFoundDoc::MakeObjRectFromClipboard (FCObjRect& objRect, DWORD dwPasteAttr)
{
//----- 06.11.17 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//		!IsClipboardFormatAvailable(g_cfRTF) &&
//		!IsClipboardFormatAvailable(CF_UNICODETEXT) &&
//		!IsClipboardFormatAvailable(CF_TEXT))
//----- 06.11.17 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
	if (IsClipboardFormatAvailable(g_cfObjFigure))
	//----- ObjFigure_xZkqqHx_iCmMiPoOjFpBiCkKiDeOiDiKiDgCiDhGiDhLiBfLiDgIiCmJiCkAiCoJiPoKiNiH_xHqqkZx_ -----
	{
		COleDataObject oleDataObject;
		oleDataObject.AttachClipboard();
		// get file refering to clipboard data
		CFile* pFile = oleDataObject.GetFileData(g_cfDDFile);
		if (pFile == NULL) return 0;
		// connect the file to the archive and read the contents
		FCUndoArchive ar(pFile, FD_ARCHIVE_LOAD);
		ar.SetDocument(this);	// for COleClientItem serialize.
		// InStream_xZkqqHx_iCmJjEpFiCkGiCmE_xHqqkZx_ID_xZkqqHx_iDgFiBfLiDhFiDiLiCpAiMpAiKlHiBeC_xHqqkZx_
		FCObjIDTbl idtable;
		DWORDSet stObjLabel;
		// _xZkqqHx_jFjEjFgJ_xHqqkZx_ID_xZkqqHx_iDgFiBfLiDhFiDiLiCpAiBeBiDiKiDfFiBfLiDhF_xHqqkZx_ID_xZkqqHx_iCpAjGiEiCnPiCmEiPiJiKpKiJlLiBeC_xHqqkZx_
		CFCFoundDoc::InitObjIdTblByReservedId(idtable);
		FC2Fold<FCObjIDTbl*, DWORDSet*> oitpBackup = SetObjIDTbl(&idtable, &stObjLabel);
		// InStream_xZkqqHx_iCmJjEpFiCkGiCmEiDfGiBfLiDgHiDhNiDgMiBfLiDfHiDiDiCpAiMpAiKlHiBeC_xHqqkZx_
		FCSheetManager sheetManager;
		FCSheetManager* pSMOrig = SetSheetManager(&sheetManager);
		// _xZkqqHx_iKmCiLkLiDeOiDiJiDfIiBeCiDgGiBfLiDfOiCmMiJlMjDmHiCnNiNjOiCnNiCmJiOgHjHhAiBeC_xHqqkZx_
		FCEnv envSub;
		FCConvEnv convEnv(&envSub);
		//----- _xZkqqHx_iDgGiBfLiDfOiCpAjDmHiCnNiNjOiCnO_xHqqkZx_ -----
		// _xZkqqHx_iDhHiDgCiDfPiCpAiDfIiDeMiDgCiDhGiClHiCoJiBeC_xHqqkZx_
		FCHeaderInf().InStream(ar);
		long lDocPropertySize;
		// _xZkqqHx_jFlGiPjBiDhGiDiNiDhAiDgFiDeCiCpAiDfIiDeMiDgCiDhGiClHiCoJiBeC_xHqqkZx_
		ar >> lDocPropertySize;
		ar.Skip(lDocPropertySize);
		// _xZkqqHx_iDhGiDiKiDjDiDfOiPoOjFpBjDjJiCpAiDfIiDeMiDgCiDhGiClHiCoJiBeC_xHqqkZx_
		CFCMolipDrawApp::SkipStream(ar);
		// _xZkqqHx_iKmCiLkLiPoOjFpBiCpAiDfEiDhFiKmCiLkLiCmJjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
		envSub.InStream(ar);
		// _xZkqqHx_iDgDiBfLiDiLjAnNjCoIiPoOjFpBiCpAiDfIiDeMiDgCiDhGiClHiCoJiBeC_xHqqkZx_
		FCToolManager::SkipStream(ar);
		// ID_xZkqqHx_iDgFiBfLiDhFiDiLiCmJjFjEjFgJiCpAjDmHiNjOiCnOiBeC_xHqqkZx_
		SheetManager()->InStream(ar);
		ar.Close();
		delete pFile;

		// _xZkqqHx_jBnCjEpAiClFiCmEiCkCiClNiDfGiBfLiDgHiDhNiDgMiBfLiDfHiDiDiCpAjFjMiLeBiBeC_xHqqkZx_
		(void)SetSheetManager(pSMOrig);
		// vObj_xZkqqHx_iCmJiChJiDeJiBfLiDfPiBfLiCpAiDfCiDhDiBfLiBeC_xHqqkZx_
		ObjDynabaseVector vNewObj;
		sheetManager.GetFrontSheet()->GetZOrder(vNewObj, FDOZ_ON_ANY);
		// _xZkqqHx_jBnOjEpAiClFiCmEiCkCiClN_xHqqkZx_ID_xZkqqHx_iDgFiBfLiDhFiDiLiCpAjGnPiClHiBeC_xHqqkZx_
		SetObjIDTbl(oitpBackup.first, oitpBackup.second);

		// _xZkqqHx_jFjEjFgJiCmMjAjEiCmNiCfAiBeB_xHqqkZx_FCObjFigure_xZkqqHx_iDfEiDhFiDeOiDiJiDfIiCmFiCmIiCkPiCoKiCmOiCmIiCoHiCmIiCkCiBeC_xHqqkZx_
		if (vNewObj.size() != 1 ||
			!vNewObj[0]->IsKindOf(FDOJ_FIGURE))
			FFThrowMiscUnknown();

		FCObjFigure* pFig = (FCObjFigure*)vNewObj[0];

		if ((dwPasteAttr & FD_PASTE_ATTR_TEXT) ||
			(dwPasteAttr & FD_PASTE_ATTR_PLAIN_TEXT))
		//----- _xZkqqHx_iDgFiDeMiDfIiDgHjBkOjAkLiCpAiDfCiDhDiBfLiClHiCoJiPoKiNiH_xHqqkZx_ -----
		{
			objRect.SetRichText(pFig->SetRichText(NULL));
		}
		if (dwPasteAttr & FD_PASTE_ATTR_PEN)
		//----- _xZkqqHx_iDhJiDjDjBkOjAkLiCpAiDfCiDhDiBfLiClHiCoJiPoKiNiH_xHqqkZx_ -----
		{
			BYTEVector vStream;
			pFig->OutStreamPen(vStream);
			const BYTE* pStream = vStream.begin();
			objRect.InStreamPen(pStream);
		}
		if (dwPasteAttr & FD_PASTE_ATTR_BRUSH)
		//----- _xZkqqHx_iDhFiDiJiDfGjBkOjAkLiCpAiDfCiDhDiBfLiClHiCoJiPoKiNiH_xHqqkZx_ -----
		{
			BYTEVector vStream;
			pFig->OutStreamBrush(vStream);
			const BYTE* pStream = vStream.begin();
			objRect.InStreamBrush(pStream);
		}
		if (dwPasteAttr & FD_PASTE_ATTR_SHADOW)
		//----- _xZkqqHx_iJgFjBkOjAkLiCpAiDfCiDhDiBfLiClHiCoJiPoKiNiH_xHqqkZx_ -----
		{
			BYTEVector vStream;
			pFig->OutStreamShadow(vStream);
			const BYTE* pStream = vStream.begin();
			objRect.InStreamShadow(pStream);
		}
		if (dwPasteAttr & FD_PASTE_ATTR_EMFIMAGE)
		//----- EMF_xZkqqHx_jBkOjAkLiCpAiDfCiDhDiBfLiClHiCoJiPoKiNiH_xHqqkZx_ -----
		{
			BYTEVector vStream;
			pFig->OutStreamEmf(vStream);
			const BYTE* pStream = vStream.begin();
			objRect.InStreamEmf(pStream);
		}
		if (dwPasteAttr & FD_PASTE_ATTR_ARROW)
		//----- _xZkqqHx_jGoOiIpDjBkOjAkLiCpAiDfCiDhDiBfLiClHiCoJiPoKiNiH_xHqqkZx_ -----
		{
			BYTEVector vStream;
			pFig->OutStreamArrow(vStream);
			const BYTE* pStream = vStream.begin();
			objRect.InStreamArrow(pStream);
		}
		if (dwPasteAttr & FD_PASTE_ATTR_SIZE)
		//----- _xZkqqHx_iDfEiDeDiDfJjBkOjAkLiCpAiDfCiDhDiBfLiClHiCoJiPoKiNiH_xHqqkZx_ -----
		{
			objRect.Resize(TRUE, TRUE, pFig->GetResizeFrame(), objRect.GetResizeFrame());
		}
		// _xZkqqHx_jDfMiCoIjFhEiCkPiClNjFjEjFgJiCpAiNoNiPjMiClHiCoJiBeC_xHqqkZx_
		sheetManager.DeleteAll();

		// _xZkqqHx_jDgPjIfOjAeGiBeBjFjEjFgJ_xHqqkZx_ID_xZkqqHx_iCmIiCmHiBeBjFjEjFgJiCmMjBkOjAkLjCiGiCmJiLeMjIfOiClDiCoKiClN_xHqqkZx_ID_xZkqqHx_iCpAjFmPiKlHiClHiCoJiBeC_xHqqkZx_
		// _xZkqqHx_jFjEjFgJiCmMiKmCiLkLjBkOjAkLiCpA_xHqqkZx_"_xZkqqHx_iDfEiDhFiKmCiLkL_xHqqkZx_ID<->_xZkqqHx_iKmCiLkL_xHqqkZx_ID"_xZkqqHx_jFmPiKlHiBeCjDoAjFjEiCmFiDfCiDhNiDjDiDgIjEkNiNhDiCmJjCiNiInDiBeC_xHqqkZx_
		objRect.ConvertEnvProp(&convEnv);
		// ObjFigure_xZkqqHx_iCkKiNnNiCoJiPoKiNiHiCmNiBeBjBfDiCmEiCmMjBkOjAkLiCkKjDfMiCoIjFhEiCkPiJmCjEfMiBeC_xHqqkZx_
		return dwPasteAttr;
	}
	if (IsClipboardFormatAvailable(g_cfRTF))
	//----- RTF_xZkqqHx_iCkKiDeOiDiKiDgCiDhGiDhLiBfLiDgIiCmJiCkAiCoJiPoKiNiH_xHqqkZx_ -----
	{
		if (dwPasteAttr & FD_PASTE_ATTR_TEXT)
		//----- _xZkqqHx_iDiKiDgCiDgAiDgFiDeMiDfIiDgHiPoOjFpBiCkKiOhHjCoIiClDiCoKiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
		{
			if (objRect.GetRichText() == NULL)
				objRect.SetRichText(objRect.CreateRichText());
			if (objRect.ExportToTextEditor())
			//----- _xZkqqHx_iDeHiDgGiDeCiDfOiCmJiDgFiDeMiDfIiDgHiCpAiDeHiDeOiDfIiDhMiBfLiDgHiCmFiCkLiClNiPoKiNiH_xHqqkZx_ -----
			{
				g_pView->GetRTFEditor()->SelectAll();
				g_pView->GetRTFEditor()->OnPaste();
				objRect.ImportFromTextEditor();
				g_pView->GetRTFEditor()->ClearAll();
				// _xZkqqHx_iDiKiDgCiDgAiDgFiDeMiDfIiDgHiBeBiDhGiDiMiBfLiDjDiDgFiDeMiDfIiDgHiCkKjDfMiCoIjFhEiCkPiJmCjEfMiBeC_xHqqkZx_
				dwPasteAttr &= (FD_PASTE_ATTR_TEXT | FD_PASTE_ATTR_PLAIN_TEXT);
				return dwPasteAttr;
			}
		}
	}
	if (IsClipboardFormatAvailable(CF_UNICODETEXT) ||
		IsClipboardFormatAvailable(CF_TEXT))
	//----- _xZkqqHx_iDhGiDiMiBfLiDjDiDgFiDeMiDfIiDgHiCkKiDeOiDiKiDgCiDhGiDhLiBfLiDgIiCmJiCkAiCoJiPoKiNiH_xHqqkZx_ -----
	{
		if (dwPasteAttr & FD_PASTE_ATTR_PLAIN_TEXT)
		//----- _xZkqqHx_iDhGiDiMiBfLiDjDiDgFiDeMiDfIiDgHiPoOjFpBiCkKiOhHjCoIiClDiCoKiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
		{
			if (::OpenClipboard(NULL))
			//----- _xZkqqHx_iDeOiDiKiDgCiDhGiDhLiBfLiDgIiCpAiDeJiBfLiDhGiDjD_xHqqkZx_ -----
			{
				WString wstrText;
				// _xZkqqHx_iDeOiDiKiDgCiDhGiDhLiBfLiDgIiCkJiCoHiDgOiDjDiDgIiDiLiCpAiOoGjDlOiBeC_xHqqkZx_
				HANDLE hText = ::GetClipboardData(CF_UNICODETEXT);
				if (hText != NULL)
				{
					wstrText = (const wchar_t*)GlobalLock(hText);
				} else
				{
					hText = ::GetClipboardData(CF_TEXT);
					if (hText != NULL)
					{
						wstrText = AStrToWStr((const char*)GlobalLock(hText));
					}
				}
				if (hText != NULL)
				//----- _xZkqqHx_iDgFiDeMiDfIiDgHiCkKiOoGjDlOiCmFiCkLiClNiPoKiNiH_xHqqkZx_ -----
				{
					// hText_xZkqqHx_iCpAiJpAjFpKiBeC_xHqqkZx_
					GlobalUnlock(hText);
					// _xZkqqHx_iDeOiDiKiDgCiDhGiDhLiBfLiDgIiCpAjFmCiClGiCoJiBeC_xHqqkZx_
					::CloseClipboard();
					// objRect.SetText_xZkqqHx_iCmNiBeBiDfCiDhNiDjDiDgIiCpAjEkNiNhDiClHiCoJiClNiCnPiOgHiCkGiCmIiCkCiBeC_xHqqkZx_
					if (objRect.GetRichText() == NULL)
						objRect.SetRichText(objRect.CreateRichText());
					if (objRect.ExportToTextEditor())
					//----- _xZkqqHx_iDeHiDgGiDeCiDfOiCmJiDgFiDeMiDfIiDgHiCpAiDeHiDeOiDfIiDhMiBfLiDgHiCmFiCkLiClNiPoKiNiH_xHqqkZx_ -----
					{
						// _xZkqqHx_iDeHiDgGiDeCiDfOiCmJiPjBiNjOiCnNiBeC_xHqqkZx_
						g_pView->GetRTFEditor()->OnChars(wstrText);
						// _xZkqqHx_iDgFiDeMiDfIiDgHiCpAiDeHiDgGiDeCiDfOiCkJiCoHiDeDiDjDiDhMiBfLiDgHiBeC_xHqqkZx_
						objRect.ImportFromTextEditor();
						g_pView->GetRTFEditor()->ClearAll();
						// _xZkqqHx_iDhGiDiMiBfLiDjDiDgFiDeMiDfIiDgHiCmMiCnNjDfMiCoIjFhEiCkPiJmCjEfMiBeC_xHqqkZx_
						dwPasteAttr &= FD_PASTE_ATTR_PLAIN_TEXT;
						return dwPasteAttr;
					}
				} else
				{
					// _xZkqqHx_iDeOiDiKiDgCiDhGiDhLiBfLiDgIiCpAjFmCiClGiCoJiBeC_xHqqkZx_
					::CloseClipboard();
				}
			}
		}
	}
	return 0;
} // CFCFoundDoc::MakeObjRectFromClipboard.
//----- 06.11.17 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----

//----- 06.03.30 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OutVersionCcoreFormat
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iOhHjCoIiClDiCoKiClNiDgPiBfLiDfHiDiHiDjDiCmMjFkBiNiHiDfCiDeBiBgJ_xHqqkZx_ccore_xZkqqHx_iBgKiDhEiDeAiDeDiDiLiCmMiDeBiBfLiDeKiDeDiDhFiCpA_xHqqkZx_
// *			_xZkqqHx_iPgPjHmNiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ar			:_xZkqqHx_iPgPjHmNjAoGiDeBiBfLiDeKiDeDiDhFiCpAiOhHjCoIiBeC_xHqqkZx_
// *			wcpVersion	:_xZkqqHx_iPgPjHmNiClHiCoJiDhEiDeAiDeDiDiLiCmMiDgPiBfLiDfHiDiHiDjDiCpAiOhHjCoIiBeCjHoB_xHqqkZx_:"3.0","4.0"
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.05.28 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCFoundDoc::OutVersionCcoreFormat (	FCUndoArchive& ar,
//											const wchar_t* wcpVersion)
//{
//	ASSERT(ar.GetIsForceFlat() == FALSE);
//	if (wcscmp(FCHeaderInf::GetStcFileVersionString(), wcpVersion) == 0)
//	//----- _xZkqqHx_iDeBiDhGiDiKiCmGjDkPiClGiDhEiDeAiDeDiDiLiDgPiBfLiDfHiDiHiDjDiCmMiPoKiNiH_xHqqkZx_ -----
//	{
//		// _xZkqqHx_iMlLiNnNiCmMiDgPiBfLiDfHiDiHiDjDiCmMjFkBiNiHiDfCiDeBiCpAiPjBiCkLiNjOiCnOiBeC_xHqqkZx_
//		OutCurrentCcoreFormat(ar);
//	} else
//	//----- _xZkqqHx_iDeBiDhGiDiKiCmGiInJiCmIiCoJiDhEiDeAiDeDiDiLiDgPiBfLiDfHiDiHiDjDiCmMiPoKiNiH_xHqqkZx_ -----
//	{
//		// _xZkqqHx_iDfCiDjDiDgPiBfLiDfOiCpAiOgHiCmBiCmEiOhHjCoIiDgPiBfLiDfHiDiHiDjDiCmMjFkBiNiHiDfCiDeBiCpAiNoMjAkMiClHiCoJiBeC_xHqqkZx_
//		// _xZkqqHx_iDfCiDjDiDgPiBfLiDfOiCmJiCmNiDhEiDiJiDgCiDgHiDfCiDeBiCpAjDgOiClFiClNjFpLiCkKiDfCiDjDiDgPiBfLiDgHiClFiCoCiClHiCkCiBeC_xHqqkZx_
//
//		const wchar_t* pOrigCore[] = { 	L"*fcore", 	L"*xcore" };
//		WString wstrOrigCore = FCFileConvManager().SelectCore(	pOrigCore,
//																sizeof(pOrigCore) / sizeof(pOrigCore[0]),
//																FCHeaderInf::GetStcFileVersionString(),
//																L"*ccore",
//																wcpVersion);
//		if (wstrOrigCore.IsEmpty())
//		{
//			// IDS_ERR_MSG_DOCUMENT_CONVERTOR_NOT_FOUND =
//			// _xZkqqHx_jFlGiPjBiCpAjFmPiKlHiClHiCoJiDfCiDjDiDgPiBfLiDfOiCkKiMkJiCmCiCkJiCoIiCnMiClJiCpBiBeC_xHqqkZx_ 
//			FFThrowMiscException(IDS_ERR_MSG_DOCUMENT_CONVERTOR_NOT_FOUND);
//		}
//		// *xcore _xZkqqHx_iCmMiPoKiNiHiCmNiBeBjFjNiNeMjFjEjFgJiCmMjBkEjApMiDhIiDfHiDeGiLmIjApMiCpAjBfDiCmEiMhGiOfKiClFiCmEiCkIiCkNiBeC_xHqqkZx_
//		if (wstrOrigCore == L"*xcore")
//			PrepareWidePolySideBezier();
//
//		// _xZkqqHx_iDiPiBfLiDeOiDhEiDeAiDeDiDiL_xHqqkZx_(Write_xZkqqHx_jHhA_xHqqkZx_)_xZkqqHx_iCpAjAlGjAkMiBeC_xHqqkZx_
//		FCWorkFile workFileFcore;
//		// _xZkqqHx_iDhEiDiJiDgCiDgHiDfCiDeBiBgJ_xHqqkZx_fcore_xZkqqHx_iBgKiDhEiDeAiDeDiDiLiCpAiPgPjHmNiBeCiDhHiDgCiDfPiCmJiCmN_xHqqkZx_ FD_DTP_STANDARD_FORMAT _xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
//		OutCurrentFcoreFormat(workFileFcore.file, FD_DTP_STANDARD_FORMAT, TRUE, TRUE);
//		// _xZkqqHx_iDiPiBfLiDeOiDhEiDeAiDeDiDiLiCpAjAoGjDkKiCnGiInKjDkOiBeC_xHqqkZx_
//		workFileFcore.file.Seek(0, CFile::begin);
//		// _xZkqqHx_iDfCiDjDiDgPiBfLiDfOiCmFjGnKjDeJiCmMiMgAiOkOiCmJjFmPiKlHiClFiCmEiBeB_xHqqkZx_ar_xZkqqHx_iCmJiPjBiCkLiNjOiCnOiBeC_xHqqkZx_
//		FCFileConvManager().DoCOnvert2(	wstrOrigCore,
//										FCHeaderInf::GetStcFileVersionString(),
//										&workFileFcore.file,
//										NULL,
//										L"*ccore",
//										wcpVersion,
//										NULL,
//										&ar,
//										m_lpRootStg);
//	}
//} // CFCFoundDoc::OutVersionCcoreFormat.
//----- 06.03.30 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OutVersionCcoreFormat
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iOhHjCoIiClDiCoKiClNiDgPiBfLiDfHiDiHiDjDiCmMjFkBiNiHiDfCiDeBiBgJ_xHqqkZx_ccore_xZkqqHx_iBgKiDhEiDeAiDeDiDiLiCmMiDfIiDgHiDiMiBfLiDfHiCpA_xHqqkZx_
 *			_xZkqqHx_iPgPjHmNiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	lpStorage	:_xZkqqHx_iPgPjHmNjAoGiDfIiDgHiDiMiBfLiDfHiCpAiOhHjCoIiBeC_xHqqkZx_
 *			wcpVersion	:_xZkqqHx_iPgPjHmNiClHiCoJiDhEiDeAiDeDiDiLiCmMiDgPiBfLiDfHiDiHiDjDiCpAiOhHjCoIiBeCjHoB_xHqqkZx_:"3.0","4.0"
 *			bShowConvWarnning
 *						:_xZkqqHx_jFmPiKlHiOjOiCmJiMhIiNjAiDiBiDgCiDfKiBfLiDfHiCpAjFfMiOkGiClHiCoJiCkJiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.03.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OutVersionCcoreFormat (	LPSTORAGE lpStorage,
											const wchar_t* wcpVersion,
											BOOL bShowConvWarnning)
{
	// _xZkqqHx_iDfCiDjDiDgPiBfLiDfOiCpAiOgHiCmBiCmEiOhHjCoIiDgPiBfLiDfHiDiHiDjDiCmMjFkBiNiHiDfCiDeBiCpAiNoMjAkMiClHiCoJiBeC_xHqqkZx_
	// _xZkqqHx_iDfCiDjDiDgPiBfLiDfOiCmJiCmNiDhEiDiJiDgCiDgHiDfCiDeBiCpAjDgOiClFiClNjFpLiCkKiDfCiDjDiDgPiBfLiDgHiClFiCoCiClHiCkCiBeC_xHqqkZx_

	const wchar_t* pOrigCore[] = { 	L"*fcore", 	L"*xcore" };
	WString wstrOrigCore = FCFileConvManager().SelectCore(	pOrigCore,
															sizeof(pOrigCore) / sizeof(pOrigCore[0]),
															FCHeaderInf::GetStcFileVersionString(),
															L"*ccore",
															wcpVersion);
	if (wstrOrigCore.IsEmpty())
	{
		// IDS_ERR_MSG_DOCUMENT_CONVERTOR_NOT_FOUND =
		// _xZkqqHx_jFlGiPjBiCpAjFmPiKlHiClHiCoJiDfCiDjDiDgPiBfLiDfOiCkKiMkJiCmCiCkJiCoIiCnMiClJiCpBiBeC_xHqqkZx_ 
		FFThrowMiscException(IDS_ERR_MSG_DOCUMENT_CONVERTOR_NOT_FOUND);
	}
//----- 06.06.23 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	// *xcore _xZkqqHx_iCmMiPoKiNiHiCmNiBeBjFjNiNeMjFjEjFgJiCmMjBkEjApMiDhIiDfHiDeGiLmIjApMiCpAjBfDiCmEiMhGiOfKiClFiCmEiCkIiCkNiBeC_xHqqkZx_
//	if (wstrOrigCore == L"*xcore")
//		PrepareWidePolySideBezier();
//----- 06.06.23 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

	// _xZkqqHx_iDiPiBfLiDeOiDhEiDeAiDeDiDiL_xHqqkZx_(Write_xZkqqHx_jHhA_xHqqkZx_)_xZkqqHx_iCpAjAlGjAkMiBeC_xHqqkZx_
	FCWorkFile workFileFcore;
//----- 06.06.23 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	// _xZkqqHx_iDhEiDiJiDgCiDgHiDfCiDeBiBgJ_xHqqkZx_fcore_xZkqqHx_iBgKiDhEiDeAiDeDiDiLiCpAiPgPjHmNiBeCiDhHiDgCiDfPiCmJiCmN_xHqqkZx_ FD_DTP_STANDARD_FORMAT _xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
//	OutCurrentFcoreFormat(workFileFcore.file, FD_DTP_STANDARD_FORMAT, TRUE, TRUE);
//----- 06.06.23 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	// _xZkqqHx_iDhEiDiJiDgCiDgHiDfCiDeBiBgJ_xHqqkZx_fcore_xZkqqHx_iBgKiDhEiDeAiDeDiDiLiCpAiPgPjHmNiBeCiDhHiDgCiDfPiCmJiCmN_xHqqkZx_ FD_DTP_STANDARD_FORMAT _xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
	if (wstrOrigCore == L"*fcore")
		OutCurrentFcoreFormat(workFileFcore.file, FD_DTP_STANDARD_FORMAT, TRUE, TRUE);
	else
		OutCurrentXcoreFormat(workFileFcore.file, FD_DTP_STANDARD_FORMAT, TRUE, TRUE);
//----- 06.06.23 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
	// _xZkqqHx_iDiPiBfLiDeOiDhEiDeAiDeDiDiLiCpAjAoGjDkKiCnGiInKjDkOiBeC_xHqqkZx_
	workFileFcore.file.Seek(0, CFile::begin);
	// _xZkqqHx_iDfCiDjDiDgPiBfLiDfOiCmFjGnKjDeJiCmMiMgAiOkOiCmJjFmPiKlHiClFiCmEiBeB_xHqqkZx_ar_xZkqqHx_iCmJiPjBiCkLiNjOiCnOiBeC_xHqqkZx_
	FCFileConvManager().DoConvert(	wstrOrigCore,
									FCHeaderInf::GetStcFileVersionString(),
									&workFileFcore.file,
									L"*ccore",
									wcpVersion,
									lpStorage,
									bShowConvWarnning);
} // CFCFoundDoc::OutVersionCcoreFormat.
//----- 06.03.30 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OutVersionFcoreFormat
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iOhHjCoIiClDiCoKiClNiDgPiBfLiDfHiDiHiDjDiCmMiDhEiDiJiDgCiDgHiDfCiDeBiBgJ_xHqqkZx_fcore_xZkqqHx_iBgKiDhEiDeAiDeDiDiLiCmM_xHqqkZx_
 *			_xZkqqHx_iDeBiBfLiDeKiDeDiDhFiCpAiPgPjHmNiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ar			:_xZkqqHx_iPgPjHmNjAoGiDeBiBfLiDeKiDeDiDhFiCpAiOhHjCoIiBeC_xHqqkZx_
 *			wFileType	:_xZkqqHx_iPgPjHmNiClHiCoJiDhEiDeAiDeDiDiLiCmMiDfOiDeDiDhGiCpAiOhHjCoIiBeC_xHqqkZx_
 *				FD_DTP_PORTABLE_FORMAT	_xZkqqHx_iDhMiBfLiDfOiDhFiDiLiDhEiDeIiBfLiDhNiDgCiDgHiCmMjFlGiPjBiBeC_xHqqkZx_(.mdpf)
 *				FD_DTP_TEMPLATE_FORMAT	_xZkqqHx_iDgFiDjDiDhGiDiMiBfLiDgHiDhEiDeIiBfLiDhNiDgCiDgHiCmMjFlGiPjBiBeC_xHqqkZx_(.mdwt)
 *				FD_DTP_WORK_FORMAT		_xZkqqHx_iDiPiBfLiDeOiDhEiDeIiBfLiDhNiDgCiDgHiCmMjFlGiPjBiBeC_xHqqkZx_(.mdwk)
 *				FD_DTP_VIEWER_FORMAT	_xZkqqHx_iDhCiDiFiBfLiDeBiDhEiDeIiBfLiDhNiDgCiDgHiCmMjFlGiPjBiBeC_xHqqkZx_(.mdvf)
 *			wcpVersion	:_xZkqqHx_iPgPjHmNiClHiCoJiDhEiDeAiDeDiDiLiCmMiDgPiBfLiDfHiDiHiDjDiCpAiOhHjCoIiBeCjHoB_xHqqkZx_:"3.0","4.0"
 *			bIsOutObject:_xZkqqHx_jFjEjFgJiPoOjFpBiCpAiPgPjHmNiClHiCoJiCkJiCmHiCkEiCkJiCpAiOhHjCoIiBeC_xHqqkZx_
 *			bIsOutChip	:_xZkqqHx_iDgAiDgCiDhGiPoOjFpBiCpAiPgPjHmNiClHiCoJiCkJiCmHiCkEiCkJiCpAiOhHjCoIiBeC_xHqqkZx_
 *			bShowConvWarnning
 *						:_xZkqqHx_jFmPiKlHiOjOiCmJiMhIiNjAiDiBiDgCiDfKiBfLiDfHiCpAjFfMiOkGiClHiCoJiCkJiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.05.28 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OutVersionFcoreFormat (	CFile& file,
											WORD wFileType,
											const wchar_t* wcpVersion,
											BOOL bIsOutObject,
											BOOL bIsOutChip,
											BOOL bShowConvWarnning)
{
	if (wcscmp(FCHeaderInf::GetStcFileVersionString(), wcpVersion) == 0)
	//----- _xZkqqHx_iDeBiDhGiDiKiCmGjDkPiClGiDhEiDeAiDeDiDiLiDgPiBfLiDfHiDiHiDjDiCmMiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iMlLiNnNiCmMiDgPiBfLiDfHiDiHiDjDiCmMjFkBiNiHiDfCiDeBiCpAiPjBiCkLiNjOiCnOiBeC_xHqqkZx_
		OutCurrentFcoreFormat(file, wFileType, bIsOutObject, bIsOutChip);
	} else
	//----- _xZkqqHx_iDeBiDhGiDiKiCmGiInJiCmIiCoJiDhEiDeAiDeDiDiLiDgPiBfLiDfHiDiHiDjDiCmMiPoKiNiH_xHqqkZx_ -----
	{
//----- 06.03.04 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
		const wchar_t* pOrigCore[] = { 	L"*fcore", 	L"*xcore" };
		WString wstrOrigCore = FCFileConvManager().SelectCore(	pOrigCore,
																sizeof(pOrigCore) / sizeof(pOrigCore[0]),
																FCHeaderInf::GetStcFileVersionString(),
																FFFormatString(L"*fcore%d", wFileType),
																wcpVersion);
		if (wstrOrigCore.IsEmpty())
		{
			// IDS_ERR_MSG_DOCUMENT_CONVERTOR_NOT_FOUND =
			// _xZkqqHx_jFlGiPjBiCpAjFmPiKlHiClHiCoJiDfCiDjDiDgPiBfLiDfOiCkKiMkJiCmCiCkJiCoIiCnMiClJiCpBiBeC_xHqqkZx_ 
			FFThrowMiscException(IDS_ERR_MSG_DOCUMENT_CONVERTOR_NOT_FOUND);
		}
//----- 06.06.23 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//		// *xcore _xZkqqHx_iCmMiPoKiNiHiCmNiBeBjFjNiNeMjFjEjFgJiCmMjBkEjApMiDhIiDfHiDeGiLmIjApMiCpAjBfDiCmEiMhGiOfKiClFiCmEiCkIiCkNiBeC_xHqqkZx_
//		if (wstrOrigCore == L"*xcore")
//			PrepareWidePolySideBezier();
//----- 06.06.23 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
//----- 06.03.04 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----

//----- 06.03.28 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//		// _xZkqqHx_iDiBiDiCiDiKiDhEiDeAiDeDiDiL_xHqqkZx_(Write_xZkqqHx_jHhA_xHqqkZx_)_xZkqqHx_iCpAjAlGjAkMiBeC_xHqqkZx_
//		CMemFile memFcoreFile;
//		// _xZkqqHx_iDhEiDiJiDgCiDgHiDfCiDeBiBgJ_xHqqkZx_fcore_xZkqqHx_iBgKiDhEiDeAiDeDiDiLiCpAiPgPjHmNiBeC_xHqqkZx_
//		OutCurrentFcoreFormat(memFcoreFile, wFileType, bIsOutObject, bIsOutChip);
//		// _xZkqqHx_iDfEiDeDiDfJiCmMiOfKiPgPiBeC_xHqqkZx_
//		const DWORD dwFcoreFileSize = memFcoreFile.GetLength();
//		// CMemFile_xZkqqHx_iCmMiDgPiDgCiDhEiDeAiCpAjAnIiCoIjHkDiClHiBeC_xHqqkZx_
//		BYTE* pFcoreFile = memFcoreFile.Detach();
//		// _xZkqqHx_iDfCiDjDiDgPiBfLiDfOiCmFjGnKjDeJiCmMiMgAiOkOiCmJjFmPiKlHiClFiCmEiBeB_xHqqkZx_ar_xZkqqHx_iCmJiPjBiCkLiNjOiCnOiBeC_xHqqkZx_
//		FCFileConvManager().DoCOnvert2(	wstrOrigCore,
//										FCHeaderInf::GetStcFileVersionString(),
//										&CMemFile(pFcoreFile, dwFcoreFileSize),
//										NULL,
//										FFFormatString(L"*fcore%d", wFileType),
//										wcpVersion,
//										&file,
//										NULL,
//										NULL);
//		// CMemFile_xZkqqHx_iCmMiDgPiDgCiDhEiDeAiCpAiJpAjFpKiBeC_xHqqkZx_
//		free(pFcoreFile);
//----- 06.03.28 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
		// _xZkqqHx_iDiPiBfLiDeOiDhEiDeAiDeDiDiL_xHqqkZx_(Write_xZkqqHx_jHhA_xHqqkZx_)_xZkqqHx_iCpAjAlGjAkMiBeC_xHqqkZx_
		FCWorkFile workFileFcore;
//----- 06.06.23 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//		// _xZkqqHx_iDhEiDiJiDgCiDgHiDfCiDeBiBgJ_xHqqkZx_fcore_xZkqqHx_iBgKiDhEiDeAiDeDiDiLiCpAiPgPjHmNiBeC_xHqqkZx_
//		OutCurrentFcoreFormat(workFileFcore.file, wFileType, bIsOutObject, bIsOutChip);
//----- 06.06.23 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
		// _xZkqqHx_iDhEiDiJiDgCiDgHiDfCiDeBiBgJ_xHqqkZx_fcore_xZkqqHx_iBgKiDhEiDeAiDeDiDiLiCpAiPgPjHmNiBeC_xHqqkZx_
		if (wstrOrigCore == L"*fcore")
			OutCurrentFcoreFormat(workFileFcore.file, wFileType, bIsOutObject, bIsOutChip);
		else
			OutCurrentXcoreFormat(workFileFcore.file, wFileType, bIsOutObject, bIsOutChip);
//----- 06.06.23 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
		// _xZkqqHx_iDiPiBfLiDeOiDhEiDeAiDeDiDiLiCpAjAoGjDkKiCnGiInKjDkOiBeC_xHqqkZx_
		workFileFcore.file.Seek(0, CFile::begin);
		// _xZkqqHx_iDfCiDjDiDgPiBfLiDfOiCmFjGnKjDeJiCmMiMgAiOkOiCmJjFmPiKlHiClFiCmEiBeB_xHqqkZx_ar_xZkqqHx_iCmJiPjBiCkLiNjOiCnOiBeC_xHqqkZx_
		FCFileConvManager().DoConvert(	wstrOrigCore,
										FCHeaderInf::GetStcFileVersionString(),
										&workFileFcore.file,
										FFFormatString(L"*fcore%d", wFileType),
										wcpVersion,
										&file,
										bShowConvWarnning);
//----- 06.03.28 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
	}
} // CFCFoundDoc::OutVersionFcoreFormat.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OutCurrentCcoreFormat
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iMlLiNnNiCmMiDgPiBfLiDfHiDiHiDjDiCmMjFkBiNiHiDfCiDeBiBgJ_xHqqkZx_ccore_xZkqqHx_iBgKiDhEiDeAiDeDiDiLiCmMiDeBiBfLiDeKiDeDiDhFiCpA_xHqqkZx_
 *			_xZkqqHx_iPgPjHmNiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ar	:_xZkqqHx_iPgPjHmNjAoGiDeBiBfLiDeKiDeDiDhFiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iDhEiDeIiBfLiDhNiDgCiDgHiMgAiOkOiCmNiBeB_xHqqkZx_InPortableFormat_xZkqqHx_iCmMiJpAjAoAiCpAiOfBiPmGiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.05.28 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OutCurrentCcoreFormat (FCUndoArchive& ar)
{
	ASSERT(ar.GetIsForceFlat() == FALSE);
	// _xZkqqHx_iDeKiDiMiDjDiDgHiDgPiBfLiDfHiDiHiDjDiCmMiDhHiDgCiDfPiPoOjFpBiCpAiPjBiCkLiPgPiClHiBeC_xHqqkZx_
	m_headerInf.OutStreamCurrent(ar, FD_DTP_STANDARD_FORMAT);
	//----- _xZkqqHx_jFfMiOiGiCmMiDhCiDgCiDgHiDhNiDgCiDhGiCmGjFlGiPjBiDhGiDiNiDhAiDgFiDeCiCpAiNoMjAkM_xHqqkZx_ -----
	BYTEVector byvBitBuff;
	MakeFrontPagePNGImage32(byvBitBuff, CSize(120, 120));
//----- 06.03.28 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	FFPngWrite32BitData(ar, &CSize(120, 120), byvBitBuff.begin(),
//						m_wstrDocumentProperty,
//						sizeof(m_wstrDocumentProperty) / sizeof(m_wstrDocumentProperty[0]),
//						NULL, 0);
//----- 06.03.28 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	// ar_xZkqqHx_iCmJ_xHqqkZx_PNG_xZkqqHx_iDgGiBfLiDfOiCmMjAoGjDkKiCkJiCoH_xHqqkZx_mdRw_xZkqqHx_iDgAiDiDiDjDiDeOiCmMjClMjBePiCnMiCmFiCpAiPgPjHmNiClHiCoJiBeC_xHqqkZx_
	FCPngWriteStruct* ps = FFPngWrite32Begin(ar, &CSize(120, 120), byvBitBuff.begin(),
											m_wstrDocumentProperty,
											sizeof(m_wstrDocumentProperty) / sizeof(m_wstrDocumentProperty[0]));
	// ar_xZkqqHx_iCmJ_xHqqkZx_PNG_xZkqqHx_iCmMiPeJjCfLiCpAiPgPjHmNiClHiCoJiBeC_xHqqkZx_
	FFPngWrite32End(ps);
//----- 06.03.28 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
	// _xZkqqHx_iDfEiDhFiDfCiDeBiCpAiPgPjHmNiBeC_xHqqkZx_
// 06.06.23 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//	OutCurrentSubCoreFormat(ar, FD_DTP_STANDARD_FORMAT, TRUE, TRUE);
	OutCurrentSubCoreFormat(ar, FD_DTP_STANDARD_FORMAT, TRUE, TRUE, FALSE);
} // CFCFoundDoc::OutCurrentCcoreFormat.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OutCurrentFcoreFormat
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iMlLiNnNiCmMiDgPiBfLiDfHiDiHiDjDiCmMiDhEiDiJiDgCiDgHiDfCiDeBiBgJ_xHqqkZx_fcore_xZkqqHx_iBgKiDhEiDeAiDeDiDiLiCmMiDeBiBfLiDeKiDeDiDhFiCpA_xHqqkZx_
 *			_xZkqqHx_iPgPjHmNiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	file		:_xZkqqHx_iPgPjHmNjAoGiDeBiBfLiDeKiDeDiDhFiCpAiOhHjCoIiBeC_xHqqkZx_
 *			wFileType	:_xZkqqHx_iPgPjHmNiClHiCoJiDhEiDeAiDeDiDiLiCmMiDfOiDeDiDhGiCpAiOhHjCoIiBeC_xHqqkZx_
 *				FD_DTP_STANDARD_FORMAT	_xZkqqHx_jCmKiPoNiDhEiDeIiBfLiDhNiDgCiDgHiCmMjFlGiPjBiBeC_xHqqkZx_(.mdrw)
 *				FD_DTP_PORTABLE_FORMAT	_xZkqqHx_iDhMiBfLiDfOiDhFiDiLiDhEiDeIiBfLiDhNiDgCiDgHiCmMjFlGiPjBiBeC_xHqqkZx_(.mdpf)
 *				FD_DTP_TEMPLATE_FORMAT	_xZkqqHx_iDgFiDjDiDhGiDiMiBfLiDgHiDhEiDeIiBfLiDhNiDgCiDgHiCmMjFlGiPjBiBeC_xHqqkZx_(.mdwt)
 *				FD_DTP_WORK_FORMAT		_xZkqqHx_iDiPiBfLiDeOiDhEiDeIiBfLiDhNiDgCiDgHiCmMjFlGiPjBiBeC_xHqqkZx_(.mdwk)
 *				FD_DTP_VIEWER_FORMAT	_xZkqqHx_iDhCiDiFiBfLiDeBiDhEiDeIiBfLiDhNiDgCiDgHiCmMjFlGiPjBiBeC_xHqqkZx_(.mdvf)
 *			bIsOutObject:_xZkqqHx_jFjEjFgJiPoOjFpBiCpAiPgPjHmNiClHiCoJiCkJiCmHiCkEiCkJiCpAiOhHjCoIiBeC_xHqqkZx_
 *			bIsOutChip	:_xZkqqHx_iDgAiDgCiDhGiPoOjFpBiCpAiPgPjHmNiClHiCoJiCkJiCmHiCkEiCkJiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iDhEiDeIiBfLiDhNiDgCiDgHiMgAiOkOiCmNiBeB_xHqqkZx_InPortableFormat_xZkqqHx_iCmMiJpAjAoAiCpAiOfBiPmGiBeC_xHqqkZx_
 *			FD_DTP_STANDARD_FORMAT _xZkqqHx_iCmN_xHqqkZx_ _xZkqqHx_jFkBiNiHiDfCiDeB_xHqqkZx_ _xZkqqHx_iClFiCkJiCkAiCoIjDlOiCmIiCkCiCkKiBeB_xHqqkZx_
 *			OutVersionCcoreFormat_xZkqqHx_iKnGjAjEjCiGiCmFiBeBiDfCiDjDiDgPiBfLiDfOiCmJjDgOiClHiDgGiBfLiDfOiCpAjDlOiCoJiClNiCnP_xHqqkZx_
 *			_xZkqqHx_iClBiCmMiKnGjAjEiCpA_xHqqkZx_FD_DTP_STANDARD_FORMAT_xZkqqHx_iDfOiDeDiDhGiCmFiMmEiCnBiPgPiClHiPoKiNiHiCkKiCkAiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.05.28 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OutCurrentFcoreFormat (	CFile& file,
											WORD wFileType,
											BOOL bIsOutObject,
											BOOL bIsOutChip)
{
	// FD_DTP_STANDARD_FORMAT _xZkqqHx_iCmN_xHqqkZx_ _xZkqqHx_jFkBiNiHiDfCiDeB_xHqqkZx_ _xZkqqHx_iClFiCkJiCkAiCoIjDlOiCmIiCkCiCkKiBeB_xHqqkZx_
	// OutVersionCcoreFormat_xZkqqHx_iKnGjAjEjCiGiCmFiBeBiDfCiDjDiDgPiBfLiDfOiCmJjDgOiClHiDgGiBfLiDfOiCpAjDlOiCoJiClNiCnP_xHqqkZx_
	// _xZkqqHx_iClBiCmMiKnGjAjEiCpA_xHqqkZx_FD_DTP_STANDARD_FORMAT_xZkqqHx_iDfOiDeDiDhGiCmFiMmEiCnBiPgPiClHiPoKiNiHiCkKiCkAiCoJiBeC_xHqqkZx_

	ASSERT(	(wFileType == FD_DTP_STANDARD_FORMAT) ||
			(wFileType == FD_DTP_PORTABLE_FORMAT) ||
			(wFileType == FD_DTP_WORK_FORMAT) ||
			(wFileType == FD_DTP_TEMPLATE_FORMAT));
	// UndoArchive_xZkqqHx_iCpAiNoMjAkMiBeC_xHqqkZx_
	FCUndoArchive ar(&file, FD_ARCHIVE_STORE, this);
	// _xZkqqHx_iDeKiDiMiDjDiDgHiDgPiBfLiDfHiDiHiDjDiCmMiDhHiDgCiDfPiPoOjFpBiCpAiPjBiCkLiPgPiClHiBeC_xHqqkZx_
	m_headerInf.OutStreamCurrent(ar, wFileType);

	// DD_xZkqqHx_jFlGiPjBiDhGiDiNiDhAiDgFiDeCiDfIiDgHiDiKiBfLiDiAiCmMiPjBiCkLiNjOiCnNiBeC_xHqqkZx_
	BYTEVector vStream;
	DocumentPropertyToStream(vStream, m_wstrDocumentProperty, FD_DPID_END);
	ar << long(vStream.size());
	ar.Write(&vStream.front(), vStream.size());

	// _xZkqqHx_iDfEiDhFiDfCiDeBiCpAiPgPjHmNiBeC_xHqqkZx_
// 06.06.23 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//	OutCurrentSubCoreFormat(ar, wFileType, bIsOutObject, bIsOutChip);
	OutCurrentSubCoreFormat(ar, wFileType, bIsOutObject, bIsOutChip, FALSE);
} // CFCFoundDoc::OutCurrentFcoreFormat.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OutCurrentSubCoreFormat
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iMlLiNnNiCmMiDgPiBfLiDfHiDiHiDjDiCmMiDfEiDhFiDfCiDeBiBgJiDhEiDiJiDgCiDgHiBeFjFkBiNiHiBgKiDhEiDeAiDeDiDiLiCmM_xHqqkZx_
 *			_xZkqqHx_iDeBiBfLiDeKiDeDiDhFiCpAiPgPjHmNiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ar	:_xZkqqHx_iPgPjHmNjAoGiDeBiBfLiDeKiDeDiDhFiCpAiOhHjCoIiBeC_xHqqkZx_
 *			bIsOutObject:_xZkqqHx_jFjEjFgJiPoOjFpBiCpAiPgPjHmNiClHiCoJiCkJiCmHiCkEiCkJiCpAiOhHjCoIiBeC_xHqqkZx_
 *			bIsOutChip	:_xZkqqHx_iDgAiDgCiDhGiPoOjFpBiCpAiPgPjHmNiClHiCoJiCkJiCmHiCkEiCkJiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iDhEiDeIiBfLiDhNiDgCiDgHiMgAiOkOiCmNiBeB_xHqqkZx_InPortableFormat_xZkqqHx_iCmMiJpAjAoAiCpAiOfBiPmGiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.05.31 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OutCurrentSubCoreFormat (	FCUndoArchive& ar,
											WORD wFileType,
											BOOL bIsOutObject,
											BOOL bIsOutChip,
// 06.06.23 Fukushiro M. 1_xZkqqHx_iNhDjCmHiJmB_xHqqkZx_ ()
											BOOL bIsOutBezier)
{
	// _xZkqqHx_iDhGiDiKiDjDiDfOiPoOjFpBjDjJiCpAiPjBiCkLiPgPiClHiBeC_xHqqkZx_
	// _xZkqqHx_iDiPiBfLiDeOiDhEiDeIiBfLiDhNiDgCiDgHiCmMiPoKiNiHiCmNiPgPjHmNiClFiCmIiCkCiBeC_xHqqkZx_HistView,HistDraw_xZkqqHx_iCmN_xHqqkZx_
	// _xZkqqHx_iDfIiDhMiDgCiDgHjAnIiCoIjBnGiCkGiCmMjDhIiCmJiDhGiDiKiDjDiDfOiPoOjFpBiCkKjFmPiNfIiClDiCoKiCoJiCmMiCpAiNeEiCnMiCmIiCkCiClNiCnPiBeC_xHqqkZx_
	// _xZkqqHx_iCnMiClNiBeBiDhGiDiKiDjDiDfOiPoOjFpBiCmMjAnNjCoIiCmNiOjOiKnEiCkKiCkJiCkJiCoJiBgJiCePiBeEiCfCjFgCjCpGjDhIiBgKiBeC_xHqqkZx_
	if (wFileType != FD_DTP_WORK_FORMAT)
		FFGetApp()->OutStream(ar);
	// _xZkqqHx_iKmCiLkLiPoOjFpBiCpAiPjBiCkLiPgPiClHiBeC_xHqqkZx_
	g_pEnv->OutStream(ar, TRUE, bIsOutChip);
	// _xZkqqHx_iDgDiBfLiDiLjAnNjCoIiPoOjFpBiCpAiPjBiCkLiPgPiClHiBeC_xHqqkZx_
// 06.04.04 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//	g_pToolManager->OutStream(ar);
	g_pToolManager->OutStream(ar, bIsOutObject & bIsOutChip);
	// _xZkqqHx_iDfGiBfLiDgHiBeBjFjEjFgJiPoOjFpBiCpAiPgPjHmNiBeC_xHqqkZx_
// 06.06.23 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//	SheetManager()->OutStream(ar, bIsOutObject);
	SheetManager()->OutStream(ar, bIsOutObject, bIsOutBezier);
	// _xZkqqHx_iDiKiDjDiDeOiPoOjFpBiCpAiPgPjHmNiClHiCoJiBeC_xHqqkZx_
	m_pLinkManager->OutStream(ar, bIsOutObject);
	// _xZkqqHx_iDiMiDfHiDfIiDgHiDiKiPoOjFpBiCpAiPgPjHmNiClHiCoJiBeC_xHqqkZx_
	g_pReg->OutStream(ar);
	// _xZkqqHx_iDeMiDiDiDjDiDgPiDfIiCmMjFfMiOkGiPpDjBnEiCpAiDfIiDgHiDiKiBfLiDiAiCmJiPgPjHmNiClHiCoJiBeC_xHqqkZx_
	m_canvasStat.UpdateData();
	m_canvasStat.OutStream(ar);

//	_xZkqqHx_iImIiJlKiCmNiBeBiOjPiCmMjHjNjHfCiCmFiNoNiPjMiBeC_xHqqkZx_
//	WORD2000_xZkqqHx_iCmJ_xHqqkZx_DD3_xZkqqHx_jFlGiPjBiCpA_xHqqkZx_OLE_xZkqqHx_jDfMiCoIjFhEiCkPiBeC_xHqqkZx_DClick_xZkqqHx_iCmFjFnCiPfHiPpDjBnEiCmJiClFiCmEiBeB_xHqqkZx_
//	_xZkqqHx_jFjEjFgJiCpAiCfAiMmCiDfCiDhDiBfLiClFiCmEiClHiCkOiPeJjHlJiBeCiDfCiDhDiBfLiClFiClNjFjEjFgJiClOiCkPiCmJiCmIiCoJiBeC_xHqqkZx_
//---------------------------------------------------------------------
//	// _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiCmJjAnKjBlBiClDiCoKiCmEiCkCiCoJjBfDiCmEiCmM_xHqqkZx_OLE_xZkqqHx_iDiKiDjDiDeOiDeBiDeDiDgFiDiAiCmJjCmKjCgNiBeC_xHqqkZx_
//	// OLE _xZkqqHx_iDeBiDeDiDgFiDiAiCkKiOkJjDkOiDiKiDjDiDeOiCmGiClFiCmEiDgIiDeMiDiFiDiBiDjDiDgHiCmGiDiKiDjDiDeOiClDiCoKiCmEiCkCiCoKiCmOiBeB_xHqqkZx_
//	// _xZkqqHx_iDeBiDeDiDgFiDiAiCmNjFmPiNfIiCpAjElNiJgGiClFiCmEiNfIjAfGiClDiCoKiCnMiClHiBeC_xHqqkZx_
//	// _xZkqqHx_iClBiCmMiKnGjAjEjCiGiCmF_xHqqkZx_ CFCMolipDrawSrvrItem::OnDraw _xZkqqHx_iCkKiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
//	UpdateAllItems(NULL);
////----- 01.09.16 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
//	// WORD_xZkqqHx_iCmJ_xHqqkZx_MolipDraw_xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiCpAjFkBjAjEiMmCiBhFiMgAiOkOiCpAiOhHjCoIiClFiCmEjDfMiCoIiCmCiCkPiBhG_xHqqkZx_
//	// _xZkqqHx_iBhFiDiKiDjDiDeOjDfMiCoIiCmCiCkPiBhGiCpAiOhHjCoIiClFiClNiPoKiNiHiBeB_xHqqkZx_UpdateAllViews _xZkqqHx_iCpAiOmAiNhDiClFiCmIiCkCiCmGiBeB_xHqqkZx_
//	// _xZkqqHx_iDhGiDiKiDjDiDfOiIpDiNpMiCmMiDeDiDiBiBfLiDfHiCmMiBeBjFkBjAjEiMmCiCmM_xHqqkZx_OLE_xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiCmMiKnEiCmF_xHqqkZx_
//	// _xZkqqHx_jDpMjBnGiCkGiCkKjAlGiClGiCmEiClFiCnMiCkEiBeCiJoGjGmKiCmN_xHqqkZx_OK_xZkqqHx_iCmIiCmMiCmFiMkJiCmCiCkPiCmJiCkNiCkCiDgPiDePiBeC_xHqqkZx_
//	// _xZkqqHx_iLeDiCpAiCmCiCkPiCoJiClBiCmGiBeC_xHqqkZx_
////	UpdateAllViews(NULL);
//	UpdateAllViews(g_pView);
} // CFCFoundDoc::OutCurrentSubCoreFormat.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::InVersionCcoreFormat
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iOhHjCoIiClDiCoKiClNiDgPiBfLiDfHiDiHiDjDiCmMjFkBiNiHiDfCiDeBiBgJ_xHqqkZx_ccore_xZkqqHx_iBgKiDhEiDeAiDeDiDiLiCmMiDfIiDgHiDiMiBfLiDfHiCpA_xHqqkZx_
 *			_xZkqqHx_jDpMjHmNiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	lpStorage	:_xZkqqHx_jDpMjHmNiMlDiDfIiDgHiDiMiBfLiDfHiCpAiOhHjCoIiBeC_xHqqkZx_
 *			wcpVersion	:_xZkqqHx_jDpMjHmNiClHiCoJiDhEiDeAiDeDiDiLiCmMiDgPiBfLiDfHiDiHiDjDiCpAiOhHjCoIiBeCjHoB_xHqqkZx_:"3.0","4.0"
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_jHfMiCnPiDgPiBfLiDfHiDiHiDjDiCmMjClCiCnHiCkKiCmCiCkCiCmEiCkCiCoJiDfIiDgHiDiMiBfLiDfHiCpAjDmHiCnNiPgPiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.03.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::InVersionCcoreFormat (LPSTORAGE lpStorage, const wchar_t* wcpVersion)
{
	// _xZkqqHx_iDiPiBfLiDeOiDhEiDeAiDeDiDiL_xHqqkZx_(Write_xZkqqHx_jHhA_xHqqkZx_)_xZkqqHx_iCpAjAlGjAkMiBeC_xHqqkZx_
	FCWorkFile workFileFcore;
	try
	{
		// _xZkqqHx_iDhEiDeAiDeDiDiLjFmPiKlHiBeC_xHqqkZx_
		FCFileConvManager().DoConvert(	L"*ccore",
										wcpVersion,
										lpStorage,
										L"*fcore",
										FCHeaderInf::GetStcFileVersionString(),
										&workFileFcore.file,
										TRUE);
	} catch (CException* e)
	//----- _xZkqqHx_iDeHiDiJiBfLiPiIjHjN_xHqqkZx_ -----
	{
		// _xZkqqHx_iDeHiDiJiBfLiDiBiDgCiDfKiBfLiDfHjFfMiOkGiBeC_xHqqkZx_
		e->ReportError();
		throw e;
	}
	// _xZkqqHx_iDiPiBfLiDeOiDhEiDeAiDeDiDiLiCpAjAoGjDkKiCnGiInKjDkOiBeC_xHqqkZx_
	workFileFcore.file.Seek(0, CFile::begin);
	// _xZkqqHx_iMlLiDgPiBfLiDfHiDiHiDjDiDhEiDiJiDgCiDgHiDfCiDeBiCmMjDmHiCnNiNjOiCnNiPiIjHjNiBeC_xHqqkZx_
	InCurrentFcoreFormat(workFileFcore.file, NULL);
} // CFCFoundDoc::InVersionCcoreFormat.

//----- 06.03.30 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::InCcoreFormat
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFkBiNiHiDfCiDeBiDhEiDeIiBfLiDhNiDgCiDgHiCmMiDeBiBfLiDeKiDeDiDhFiCpAjDpMjHmNiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ar	:_xZkqqHx_jDpMjHmNiMlDiDeBiBfLiDeKiDeDiDhFiCpAiOhHjCoIiBeC_xHqqkZx_Undo_xZkqqHx_jHeMiMpIiCmFiCmIiCkPiCoKiCmOiCmIiCoHiCmIiCkCiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iDhEiDeIiBfLiDhNiDgCiDgHiMgAiOkOiCmNiBeB_xHqqkZx_InPortableFormat_xZkqqHx_iCmMiJpAjAoAiCpAiOfBiPmGiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.05.28 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCFoundDoc::InCcoreFormat (FCUndoArchive& ar)
//{
//	ASSERT(ar.GetIsForceFlat() == FALSE);
//
//	// ar _xZkqqHx_iCmFiDhHiDgCiDfPiCpAjDmHiCnNiNjOiCpBiCmFiCkJiCoHiMlDiCmJjGnPiClHiClNiCnPiCmJiDgPiDgCiDhEiDeAiDfEiDeDiDfJiCpAjAnNjCoIiBeC_xHqqkZx_
//	ar.ResetUndoBuffer(100, 200);
//
//	// FCHeaderInf::RegalCheck_xZkqqHx_iKnGjAjEiCkKiBeBiMmDiCkCiDgPiBfLiDfHiDiHiDjDiCmM_xHqqkZx_
//	// _xZkqqHx_iDhEiDeAiDeDiDiLiCmMiPoKiNiHiCmJjHoBiKePiCpAjEkNjAlGiClHiCoJiBeC_xHqqkZx_
//	try
//	{
//		// _xZkqqHx_iDhHiDgCiDfPiPoOjFpBiCmMjDmHiCnNiNjOiCnNiBeC_xHqqkZx_
//		m_headerInf.InStream(ar);
//		// _xZkqqHx_iDhHiDgCiDfPiDgAiDeGiDgCiDeOiBeCiDeHiDiJiBfLiBeBiMmDiCkCiPoKiNiHiCmNiDfIiDiNiBfLiPiIjHjNiCnGiBeC_xHqqkZx_
//		m_headerInf.RegalCheck(FD_DTP_STANDARD_FORMAT);
//		// ar_xZkqqHx_iCpAiNmFiPiJiCnMiCmFjGnPiClHiBeC_xHqqkZx_
//		ar.Undo(-1);
//		// ar _xZkqqHx_iCmMiDgPiDgCiDhEiDeAiDfEiDeDiDfJiCpAiCePiCmJjAnNjCoIiBeC_xHqqkZx_
//		ar.ResetUndoBuffer(0, 0);
//		// _xZkqqHx_iMlLiDgPiBfLiDfHiDiHiDjDjFkBiNiHiDfCiDeBiCmMjDmHiCnNiNjOiCnNiPiIjHjNiBeC_xHqqkZx_
//		InCurrentCcoreFormat(ar);
//		return;
//	} catch (CFCDDFileException* e)
//	//----- _xZkqqHx_iDeHiDiJiBfLiPiIjHjN_xHqqkZx_ -----
//	{
//		// _xZkqqHx_iDeHiDiJiBfL_xHqqkZx_ _xZkqqHx_iCkK_xHqqkZx_ _xZkqqHx_iDhEiDeAiDeDiDiLiDgPiBfLiDfHiDiHiDjDiIoBiCkCiCmFiCmNiCmIiCkCiPoKiNiHiCmNiDeHiDiJiBfLiCpAiDfIiDiNiBfLiBeC_xHqqkZx_
//		if (e->m_dwErrCode != IDS_ERR_FILE_WRONG_VERSION)
//			throw e;
//		e->Delete();
//	}
//	// _xZkqqHx_iDhEiDeAiDeDiDiLiDgPiBfLiDfHiDiHiDjDiIoBiCkCiCmMiPoKiNiHiBeC_xHqqkZx_
//	//---- _xZkqqHx_iDhEiDeAiDeDiDiLjFmPiKlHiPiIjHjNiCpAiOmAiNhDiClHiCoJ_xHqqkZx_ -----
//	if (!(g_->appMode & FD_RUNMODE_REPAIR_DOCUMENT))
//	//----- _xZkqqHx_iPeDjFjMiOjOiImIiKePiCmNiDiBiDgCiDfKiBfLiDfHjFfMiOkG_xHqqkZx_ -----
//	{
//		// _xZkqqHx_iDgPiBfLiDfHiDiHiDjD_xHqqkZx_ %s _xZkqqHx_iCmMjFlGiPjBiDhEiDeAiDeDiDiLiCmFiClHiBeCjFmPiKlHiClFiCmEjDmHiCnNiNjOiCnNiCnMiClHiBeC_xHqqkZx_
//		FFErrorBox(IDS_MSG_DOC_DIFF_VER_AND_CONVERT,
//			(const wchar_t*)FCHeaderInf::FileVersionToString(m_headerInf.GetFileVersion()));
//	}
//	// ar_xZkqqHx_iCpAiNmFiPiJiCnMiCmFjGnPiClHiBeC_xHqqkZx_
//	ar.Undo(-1);
//	// ar _xZkqqHx_iCmMiDgPiDgCiDhEiDeAiDfEiDeDiDfJiCpAiCePiCmJjAnNjCoIiBeC_xHqqkZx_
//	ar.ResetUndoBuffer(0, 0);
//
//	// _xZkqqHx_iDiPiBfLiDeOiDhEiDeAiDeDiDiL_xHqqkZx_(Write_xZkqqHx_jHhA_xHqqkZx_)_xZkqqHx_iCpAjAlGjAkMiBeC_xHqqkZx_
//	FCWorkFile workFileFcore;
//	try
//	{
//		// _xZkqqHx_iDhEiDeAiDeDiDiLjFmPiKlHiBeC_xHqqkZx_
//		FCFileConvManager().DoCOnvert2(	L"*ccore",
//										FCHeaderInf::FileVersionToString(m_headerInf.GetFileVersion()),
//										NULL,
//										&ar,
//										L"*fcore",
//										FCHeaderInf::GetStcFileVersionString(),
//										&workFileFcore.file,
//										NULL,
//										m_lpRootStg);
//	} catch (CException* e)
//	//----- _xZkqqHx_iDeHiDiJiBfLiPiIjHjN_xHqqkZx_ -----
//	{
//		// _xZkqqHx_iDeHiDiJiBfLiDiBiDgCiDfKiBfLiDfHjFfMiOkGiBeC_xHqqkZx_
//		e->ReportError();
//		throw e;
//	}
//	// _xZkqqHx_iDiPiBfLiDeOiDhEiDeAiDeDiDiLiCpAjAoGjDkKiCnGiInKjDkOiBeC_xHqqkZx_
//	workFileFcore.file.Seek(0, CFile::begin);
//	// _xZkqqHx_iMlLiDgPiBfLiDfHiDiHiDjDiDhEiDiJiDgCiDgHiDfCiDeBiCmMjDmHiCnNiNjOiCnNiPiIjHjNiBeC_xHqqkZx_
//	InCurrentFcoreFormat(workFileFcore.file, NULL);
//} // CFCFoundDoc::InCcoreFormat.
//----- 06.03.30 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::InFcoreFormat
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhEiDiJiDgCiDgHiDfCiDeBiDhEiDeIiBfLiDhNiDgCiDgHiCmMiDeBiBfLiDeKiDeDiDhFiCpAjDpMjHmNiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	file			:_xZkqqHx_jDpMjHmNiMlDiDhEiDeAiDeDiDiLiCpAiOhHjCoIiBeC_xHqqkZx_
 *			pCanvasStatRefer:_xZkqqHx_iDeMiDiDiDjDiDgPiDfIiPoOjFpBiCmMiDiKiDhEiDeAiDiMiDjDiDfIiCpAiOhHjCoIiBeC_xHqqkZx_
 *							 _xZkqqHx_iClBiCmMjCgMiCkKiOhHjCoIiClDiCoKiClNiPoKiNiHiBeBjDmHiCnNiNjOiCnMiCoKiClN_xHqqkZx_
 *							 _xZkqqHx_iDeMiDiDiDjDiDgPiDfIiPoOjFpBiCmFiCmNiCmIiCkNiBeBiClBiCmMjCgMiCpA_xHqqkZx_
 *							 _xZkqqHx_iOgHiCmBiCmEiPiJiKpKiJlLiClDiCoKiCoJiBeCjFhDjHhGiCmMiPoKiNiHiCmN_xHqqkZx_NULL_xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *			bIsRedraw		:_xZkqqHx_jDmHiCnNiNjOiCnNiMoDiBeBiNmEjFgAiJoGiClHiCoJiCkJiCmHiCkEiCkJiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iDhEiDeIiBfLiDhNiDgCiDgHiMgAiOkOiCmNiBeB_xHqqkZx_InPortableFormat_xZkqqHx_iCmMiJpAjAoAiCpAiOfBiPmGiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.05.28 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::InFcoreFormat (	CFile& file,
									FCCanvasStat* pCanvasStatRefer,
									BOOL bIsRedraw)
{
//----- 06.02.27 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	// FCHeaderInf::RegalCheck_xZkqqHx_iKnGjAjEiCkKiBeBiMmDiCkCiDgPiBfLiDfHiDiHiDjDiCmM_xHqqkZx_
//	// _xZkqqHx_iDhEiDeAiDeDiDiLiCmMiPoKiNiHiCmJjHoBiKePiCpAjEkNjAlGiClHiCoJiBeC_xHqqkZx_
//	try
//	{
//		// _xZkqqHx_iDhEiDeAiDeDiDiLiImKjChFiCpAiOoGjDlOiBeC_xHqqkZx_0_xZkqqHx_iCmGiCmNiMmAiCoHiCmIiCkCiBeC_xHqqkZx_
//		const DWORD dwPosition = file.GetPosition();
//		// _xZkqqHx_iDhHiDgCiDfPiPoOjFpBiCmMjDmHiCnNiNjOiCnNiBeC_xHqqkZx_
//		m_headerInf.InStream(file);
//		// _xZkqqHx_iDhHiDgCiDfPiDgAiDeGiDgCiDeOiBeCiDeHiDiJiBfLiBeBiMmDiCkCiPoKiNiHiCmNiDfIiDiNiBfLiPiIjHjNiCnGiBeC_xHqqkZx_
//		m_headerInf.RegalCheck(	FD_DTP_PORTABLE_FORMAT,
//								FD_DTP_TEMPLATE_FORMAT,
//								FD_DTP_WORK_FORMAT);
//		// file_xZkqqHx_iCpAiDhHiDgCiDfPjDmHiCnNiNjOiCnNjBePiCmJjGnPiClHiBeC_xHqqkZx_
//		file.Seek(dwPosition, CFile::begin);
//		// _xZkqqHx_iMlLiDgPiBfLiDfHiDiHiDjDiDhEiDiJiDgCiDgHiDfCiDeBiCmMjDmHiCnNiNjOiCnNiPiIjHjNiBeC_xHqqkZx_
//		InCurrentFcoreFormat(file, pCanvasStatRefer, bIsRedraw);
//	} catch (CFCDDFileException* e)
//	//----- _xZkqqHx_iDeHiDiJiBfLiPiIjHjN_xHqqkZx_ -----
//	{
//		// _xZkqqHx_iDeHiDiJiBfL_xHqqkZx_ _xZkqqHx_iCkK_xHqqkZx_ _xZkqqHx_iDhEiDeAiDeDiDiLiDgPiBfLiDfHiDiHiDjDiIoBiCkCiCmFiCmNiCmIiCkCiPoKiNiHiCmNiDeHiDiJiBfLiCpAiDfIiDiNiBfLiBeC_xHqqkZx_
//		if (e->m_dwErrCode != IDS_ERR_FILE_WRONG_VERSION)
//			throw e;
//
//		// _xZkqqHx_iDhEiDeAiDeDiDiLiDgPiBfLiDfHiDiHiDjDiIoBiCkCiCmMiPoKiNiHiBeC_xHqqkZx_
//		//---- _xZkqqHx_iDhEiDeAiDeDiDiLjFmPiKlHiPiIjHjNiCpAiOmAiNhDiClHiCoJ_xHqqkZx_ -----
//		e->Delete();
//		if (!(g_->appMode & FD_RUNMODE_REPAIR_DOCUMENT))
//		//----- _xZkqqHx_iPeDjFjMiOjOiImIiKePiCmNiDiBiDgCiDfKiBfLiDfHjFfMiOkG_xHqqkZx_ -----
//		{
//			// _xZkqqHx_iDgPiBfLiDfHiDiHiDjD_xHqqkZx_ %s _xZkqqHx_iCmMjFlGiPjBiDhEiDeAiDeDiDiLiCmFiClHiBeCjFmPiKlHiClFiCmEjDmHiCnNiNjOiCnNiCnMiClHiBeC_xHqqkZx_
//			FFErrorBox(IDS_MSG_DOC_DIFF_VER_AND_CONVERT,
//				(const wchar_t*)FCHeaderInf::FileVersionToString(m_headerInf.GetFileVersion()));
//		}
//		// file_xZkqqHx_iCpAiNmFiPiJiCnMiCmFjGnPiClHiBeC_xHqqkZx_
//		file.Seek(0, CFile::begin);
//
//#ifndef _DEBUG
//_xZkqqHx_iClHiCnHiCmEiCmM_xHqqkZx_DoCOnvert2_xZkqqHx_iCmMiDeDiDiBiBfLiDfHiIpIjAjEiCpAiDgAiDeGiDgCiDeO_xHqqkZx_
//EXPORT_xZkqqHx_iDhEiDeAiDeDiDiLiCmJiDeDiDiBiBfLiDfHiCkKjGlDiCkNiCmEiCkCiCkCiCmMiCkJiBeI_xHqqkZx_
//
//_xZkqqHx_iClHiCnHiCmEiCmM_xHqqkZx_DoCOnvert2_xZkqqHx_iCmFiBeBiOlIjEhDiClFiClNiPoKiNiHiCmM_xHqqkZx_ throw _xZkqqHx_iPiIjHjNiCpAjCmHiJmBiBeC_xHqqkZx_
//#endif//_DEBUG
//
//		// _xZkqqHx_iDiBiDiCiDiKiDhEiDeAiDeDiDiLiCpAjAlGjAkMiBeC_xHqqkZx_
//		CMemFile memFileWrite;
//		FCFileConvManager().DoCOnvert2(	L"*fcore",
//										FCHeaderInf::FileVersionToString(m_headerInf.GetFileVersion()),
//										&file,
//										NULL,
//										L"*fcore",
//										FCHeaderInf::GetStcFileVersionString(),
//										&memFileWrite,
//										NULL,
//										NULL);
//
//		// _xZkqqHx_iPgPjHmNiDgGiBfLiDfOiDfEiDeDiDfJiCmMiOfKiPgPiBeC_xHqqkZx_
//		const DWORD dwNewDataSz = memFileWrite.GetLength();
//		// CMemFile_xZkqqHx_iCmMiDgPiDgCiDhEiDeAiCpAjAnIiCoIjHkDiClHiBeC_xHqqkZx_
//		BYTE* pNewData = memFileWrite.Detach();
//		// _xZkqqHx_iMlLiDgPiBfLiDfHiDiHiDjDiDhEiDiJiDgCiDgHiDfCiDeBiCmMjDmHiCnNiNjOiCnNiPiIjHjNiBeC_xHqqkZx_
//		InCurrentFcoreFormat(CMemFile(pNewData, dwNewDataSz), pCanvasStatRefer, bIsRedraw);
//		// CMemFile_xZkqqHx_iCmMiDgPiDgCiDhEiDeAiCpAiJpAjFpKiBeC_xHqqkZx_
//		free(pNewData);
//	}
//----- 06.02.27 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	// FCHeaderInf::RegalCheck_xZkqqHx_iKnGjAjEiCkKiBeBiMmDiCkCiDgPiBfLiDfHiDiHiDjDiCmM_xHqqkZx_
	// _xZkqqHx_iDhEiDeAiDeDiDiLiCmMiPoKiNiHiCmJjHoBiKePiCpAjEkNjAlGiClHiCoJiBeC_xHqqkZx_
	try
	{
		// _xZkqqHx_iDhEiDeAiDeDiDiLiImKjChFiCpAiOoGjDlOiBeC_xHqqkZx_0_xZkqqHx_iCmGiCmNiMmAiCoHiCmIiCkCiBeC_xHqqkZx_
		const DWORD dwPosition = file.GetPosition();
		// _xZkqqHx_iDhHiDgCiDfPiPoOjFpBiCmMjDmHiCnNiNjOiCnNiBeC_xHqqkZx_
		m_headerInf.InStream(file);
		// _xZkqqHx_iDhHiDgCiDfPiDgAiDeGiDgCiDeOiBeCiDeHiDiJiBfLiBeBiMmDiCkCiPoKiNiHiCmNiDfIiDiNiBfLiPiIjHjNiCnGiBeC_xHqqkZx_
		m_headerInf.RegalCheck(	FD_DTP_PORTABLE_FORMAT,
								FD_DTP_TEMPLATE_FORMAT,
								FD_DTP_WORK_FORMAT);
		// file_xZkqqHx_iCpAiDhHiDgCiDfPjDmHiCnNiNjOiCnNjBePiCmJjGnPiClHiBeC_xHqqkZx_
		file.Seek(dwPosition, CFile::begin);
		// _xZkqqHx_iMlLiDgPiBfLiDfHiDiHiDjDiDhEiDiJiDgCiDgHiDfCiDeBiCmMjDmHiCnNiNjOiCnNiPiIjHjNiBeC_xHqqkZx_
		InCurrentFcoreFormat(file, pCanvasStatRefer, bIsRedraw);
		return;
	} catch (CFCDDFileException* e)
	//----- _xZkqqHx_iDeHiDiJiBfLiPiIjHjN_xHqqkZx_ -----
	{
		// _xZkqqHx_iDeHiDiJiBfL_xHqqkZx_ _xZkqqHx_iCkK_xHqqkZx_ _xZkqqHx_iDhEiDeAiDeDiDiLiDgPiBfLiDfHiDiHiDjDiIoBiCkCiCmFiCmNiCmIiCkCiPoKiNiHiCmNiDeHiDiJiBfLiCpAiDfIiDiNiBfLiBeC_xHqqkZx_
		if (e->m_dwErrCode != IDS_ERR_FILE_WRONG_VERSION)
			throw e;
		e->Delete();
	}
	// _xZkqqHx_iDhEiDeAiDeDiDiLiDgPiBfLiDfHiDiHiDjDiIoBiCkCiCmMiPoKiNiHiBeC_xHqqkZx_
	//---- _xZkqqHx_iDhEiDeAiDeDiDiLjFmPiKlHiPiIjHjNiCpAiOmAiNhDiClHiCoJ_xHqqkZx_ -----
	if (!(g_->appMode & FD_RUNMODE_REPAIR_DOCUMENT))
	//----- _xZkqqHx_iPeDjFjMiOjOiImIiKePiCmNiDiBiDgCiDfKiBfLiDfHjFfMiOkG_xHqqkZx_ -----
	{
		// _xZkqqHx_iDgPiBfLiDfHiDiHiDjD_xHqqkZx_ %s _xZkqqHx_iCmMjFlGiPjBiDhEiDeAiDeDiDiLiCmFiClHiBeCjFmPiKlHiClFiCmEjDmHiCnNiNjOiCnNiCnMiClHiBeC_xHqqkZx_
		FFErrorBox(IDS_MSG_DOC_DIFF_VER_AND_CONVERT,
			(const wchar_t*)FCHeaderInf::FileVersionToString(m_headerInf.GetFileVersion()));
	}
	// file_xZkqqHx_iCpAiNmFiPiJiCnMiCmFjGnPiClHiBeC_xHqqkZx_
	file.Seek(0, CFile::begin);

//----- 06.03.28 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	// _xZkqqHx_iDiBiDiCiDiKiDhEiDeAiDeDiDiLiCpAjAlGjAkMiBeC_xHqqkZx_
//	CMemFile memFileWrite;
//	try
//	{
//		FCFileConvManager().DoCOnvert2(	L"*fcore",
//										FCHeaderInf::FileVersionToString(m_headerInf.GetFileVersion()),
//										&file,
//										NULL,
//										L"*fcore",
//										FCHeaderInf::GetStcFileVersionString(),
//										&memFileWrite,
//										NULL,
//										NULL);
//	} catch (CException* e)
//	//----- _xZkqqHx_iDeHiDiJiBfLiPiIjHjN_xHqqkZx_ -----
//	{
//		// _xZkqqHx_iDeHiDiJiBfLiDiBiDgCiDfKiBfLiDfHjFfMiOkGiBeC_xHqqkZx_
//		e->ReportError();
//		throw e;
//	}
//	// _xZkqqHx_iPgPjHmNiDgGiBfLiDfOiDfEiDeDiDfJiCmMiOfKiPgPiBeC_xHqqkZx_
//	const DWORD dwNewDataSz = memFileWrite.GetLength();
//	// CMemFile_xZkqqHx_iCmMiDgPiDgCiDhEiDeAiCpAjAnIiCoIjHkDiClHiBeC_xHqqkZx_
//	BYTE* pNewData = memFileWrite.Detach();
//	// _xZkqqHx_iMlLiDgPiBfLiDfHiDiHiDjDiDhEiDiJiDgCiDgHiDfCiDeBiCmMjDmHiCnNiNjOiCnNiPiIjHjNiBeC_xHqqkZx_
//	InCurrentFcoreFormat(CMemFile(pNewData, dwNewDataSz), pCanvasStatRefer, bIsRedraw);
//	// CMemFile_xZkqqHx_iCmMiDgPiDgCiDhEiDeAiCpAiJpAjFpKiBeC_xHqqkZx_
//	free(pNewData);
//----- 06.03.28 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	// _xZkqqHx_iDiPiBfLiDeOiDhEiDeAiDeDiDiL_xHqqkZx_(Write_xZkqqHx_jHhA_xHqqkZx_)_xZkqqHx_iCpAjAlGjAkMiBeC_xHqqkZx_
	FCWorkFile workFileFcore;
	try
	{
		FCFileConvManager().DoConvert(	L"*fcore",
										FCHeaderInf::FileVersionToString(m_headerInf.GetFileVersion()),
										&file,
										L"*fcore",
										FCHeaderInf::GetStcFileVersionString(),
										&workFileFcore.file,
										TRUE);
	} catch (CException* e)
	//----- _xZkqqHx_iDeHiDiJiBfLiPiIjHjN_xHqqkZx_ -----
	{
		// _xZkqqHx_iDeHiDiJiBfLiDiBiDgCiDfKiBfLiDfHjFfMiOkGiBeC_xHqqkZx_
		e->ReportError();
		throw e;
	}
	// _xZkqqHx_iDiPiBfLiDeOiDhEiDeAiDeDiDiLiCpAjAoGjDkKiCnGiInKjDkOiBeC_xHqqkZx_
	workFileFcore.file.Seek(0, CFile::begin);
	// _xZkqqHx_iMlLiDgPiBfLiDfHiDiHiDjDiDhEiDiJiDgCiDgHiDfCiDeBiCmMjDmHiCnNiNjOiCnNiPiIjHjNiBeC_xHqqkZx_
	InCurrentFcoreFormat(workFileFcore.file, pCanvasStatRefer, bIsRedraw);
//----- 06.03.28 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
//----- 06.02.27 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
} // CFCFoundDoc::InFcoreFormat.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::InCurrentCcoreFormat
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iMlLiDgPiBfLiDfHiDiHiDjDiCmMjFkBiNiHiDfCiDeBiDhEiDeIiBfLiDhNiDgCiDgHiCmMiDeBiBfLiDeKiDeDiDhFiCpAjDpMjHmNiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ar	:_xZkqqHx_jDpMjHmNiMlDiDeBiBfLiDeKiDeDiDhFiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iDhEiDeIiBfLiDhNiDgCiDgHiMgAiOkOiCmNiBeB_xHqqkZx_InPortableFormat_xZkqqHx_iCmMiJpAjAoAiCpAiOfBiPmGiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.05.31 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::InCurrentCcoreFormat (FCUndoArchive& ar)
{
	// _xZkqqHx_iDhHiDgCiDfPiPoOjFpBiCmMjDmHiCnNiNjOiCnNiBeC_xHqqkZx_m_headerInf _xZkqqHx_iCmJiCmNiKpJiCmJjDmHiCnNiNjOiCnMiCoKiCmEiCkCiCoJiBeC_xHqqkZx_
	// InOldCoreFormat _xZkqqHx_iCkJiCoHiMmEiCnBiPgPiClDiCoKiClNiPoKiNiHiBeBiMmDiCkCiDgPiBfLiDfHiDiHiDjDiPoOjFpBiCpA_xHqqkZx_
	// _xZkqqHx_iPoDiPjBiCkLiClFiCmIiCkCiCoGiCkEiCmJiBeB_xHqqkZx_m_headerInf _xZkqqHx_iCmJiCmNjDmHiCnNiNjOiCnMiCmIiCkCiBeC_xHqqkZx_
	FCHeaderInf headerInf;
	headerInf.InStream(ar);
	// _xZkqqHx_iDhHiDgCiDfPiDgAiDeGiDgCiDeOiBeCiDeHiDiJiBfLiBeBiMmDiCkCiPoKiNiHiCmNiDfIiDiNiBfLiPiIjHjNiCnGiBeC_xHqqkZx_
	headerInf.RegalCheck(	FD_DTP_STANDARD_FORMAT,
							FD_DTP_PORTABLE_FORMAT,
							FD_DTP_TEMPLATE_FORMAT,
							FD_DTP_WORK_FORMAT);

	// ccore_xZkqqHx_iCmMiPoKiNiHiBeB_xHqqkZx_PNG_xZkqqHx_iDhEiDeIiBfLiDhNiDgCiDgHiCkKiDhHiDgCiDfPjClMiMoDiCmJjBhNjDpMiClDiCoKiCmEiCkCiCoJiBeC_xHqqkZx_
	// PNG_xZkqqHx_jCiGiCmM_xHqqkZx_iTXt_xZkqqHx_iDgAiDiDiDjDiDeOiCkJiCoHjFlGiPjBiDhGiDiNiDhAiDgFiDeCiCmMiCnNjDmHiCnNiNjOiCnNiBeBiOgDiCoIiCmN_xHqqkZx_
	// _xZkqqHx_iDfIiDeMiDgCiDhGiClHiCoJiBeC_xHqqkZx_
//----- 06.03.28 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	FFPngRead32BitData(ar, NULL, NULL,
//					m_wstrDocumentProperty,
//					sizeof(m_wstrDocumentProperty) / sizeof(m_wstrDocumentProperty[0]),
//					NULL);
//----- 06.03.28 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	FFPngRead32BitImageAndText(	ar, NULL, NULL,
								m_wstrDocumentProperty,
								sizeof(m_wstrDocumentProperty) / sizeof(m_wstrDocumentProperty[0]),
								TRUE);
//----- 06.03.28 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
	// _xZkqqHx_iDfEiDhFiDfCiDeBiCpAjDpMjHmNiBeC_xHqqkZx_
	InCurrentSubCoreFormat(	ar,
							headerInf.GetFileType(),
							NULL,
							TRUE);
} // CFCFoundDoc::InCurrentCcoreFormat.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::InCurrentFcoreFormat
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iMlLiDgPiBfLiDfHiDiHiDjDiCmMiDhEiDiJiDgCiDgHiDfCiDeBiDhEiDeIiBfLiDhNiDgCiDgHiCmMiDeBiBfLiDeKiDeDiDhFiCpAjDpMjHmNiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	file				:_xZkqqHx_jDpMjHmNiMlDiDeBiBfLiDeKiDeDiDhFiCpAiOhHjCoIiBeC_xHqqkZx_
 *			pCanvasStatRefer	:_xZkqqHx_iDeMiDiDiDjDiDgPiDfIiPoOjFpBiCmMiDiKiDhEiDeAiDiMiDjDiDfIiCpAiOhHjCoIiBeC_xHqqkZx_
 *								 _xZkqqHx_iClBiCmMjCgMiCkKiOhHjCoIiClDiCoKiClNiPoKiNiHiBeBjDmHiCnNiNjOiCnMiCoKiClN_xHqqkZx_
 *								 _xZkqqHx_iDeMiDiDiDjDiDgPiDfIiPoOjFpBiCmFiCmNiCmIiCkNiBeBiClBiCmMjCgMiCpA_xHqqkZx_
 *								 _xZkqqHx_iOgHiCmBiCmEiPiJiKpKiJlLiClDiCoKiCoJiBeC_xHqqkZx_
 *			bIsRedraw			:_xZkqqHx_jDmHiCnNiNjOiCnNiMoDiBeBiNmEjFgAiJoGiClHiCoJiCkJiCmHiCkEiCkJiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iDhEiDeIiBfLiDhNiDgCiDgHiMgAiOkOiCmNiBeB_xHqqkZx_InPortableFormat_xZkqqHx_iCmMiJpAjAoAiCpAiOfBiPmGiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.05.31 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::InCurrentFcoreFormat (CFile& file,
										FCCanvasStat* pCanvasStatRefer,
										BOOL bIsRedraw)
{
	// _xZkqqHx_iDhHiDgCiDfPiPoOjFpBiCmMjDmHiCnNiNjOiCnNiBeC_xHqqkZx_m_headerInf _xZkqqHx_iCmJiCmNiKpJiCmJjDmHiCnNiNjOiCnMiCoKiCmEiCkCiCoJiBeC_xHqqkZx_
	// InOldCoreFormat _xZkqqHx_iCkJiCoHiMmEiCnBiPgPiClDiCoKiClNiPoKiNiHiBeBiMmDiCkCiDgPiBfLiDfHiDiHiDjDiPoOjFpBiCpA_xHqqkZx_
	// _xZkqqHx_iPoDiPjBiCkLiClFiCmIiCkCiCoGiCkEiCmJiBeB_xHqqkZx_m_headerInf _xZkqqHx_iCmJiCmNjDmHiCnNiNjOiCnMiCmIiCkCiBeC_xHqqkZx_
	FCHeaderInf headerInf;
	headerInf.InStream(file);
	// _xZkqqHx_iDhHiDgCiDfPiDgAiDeGiDgCiDeOiBeCiDeHiDiJiBfLiBeBiMmDiCkCiPoKiNiHiCmNiDfIiDiNiBfLiPiIjHjNiCnGiBeC_xHqqkZx_
	headerInf.RegalCheck(	FD_DTP_STANDARD_FORMAT,
							FD_DTP_PORTABLE_FORMAT,
							FD_DTP_TEMPLATE_FORMAT,
							FD_DTP_WORK_FORMAT);

	// DD_xZkqqHx_jFlGiPjBiDhGiDiNiDhAiDgFiDeCiDfIiDgHiDiKiBfLiDiAiCmMjDmHiCnNiPgPiClFiBeC_xHqqkZx_
	long lStreamSize;
	file.Read(&lStreamSize, sizeof(lStreamSize));
	BYTEVector vStream(lStreamSize);
	file.Read(&vStream.front(), lStreamSize);

	StreamToDocumentProperty(	m_wstrDocumentProperty,
								FD_DPID_END,
								&vStream.front(),
								lStreamSize);
	// _xZkqqHx_iDfEiDhFiDfCiDeBiCpAjDpMjHmNiBeC_xHqqkZx_
	InCurrentSubCoreFormat(	FCUndoArchive(&file, FD_ARCHIVE_LOAD, this),
							headerInf.GetFileType(),
							pCanvasStatRefer,
							bIsRedraw);
} // CFCFoundDoc::InCurrentFcoreFormat.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::InCurrentSubCoreFormat
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iMlLiDgPiBfLiDfHiDiHiDjDiCmMiDfEiDhFiDfCiDeBiBgJiDhEiDiJiDgCiDgHiBeFjFkBiNiHiBgKiDhEiDeIiBfLiDhNiDgCiDgHiCmM_xHqqkZx_
 *			_xZkqqHx_iDeBiBfLiDeKiDeDiDhFiCpAjDpMjHmNiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ar					:_xZkqqHx_jDpMjHmNiMlDiDeBiBfLiDeKiDeDiDhFiCpAiOhHjCoIiBeC_xHqqkZx_
 *			pCanvasStatRefer	:_xZkqqHx_iDeMiDiDiDjDiDgPiDfIiPoOjFpBiCmMiDiKiDhEiDeAiDiMiDjDiDfIiCpAiOhHjCoIiBeC_xHqqkZx_
 *								 _xZkqqHx_iClBiCmMjCgMiCkKiOhHjCoIiClDiCoKiClNiPoKiNiHiBeBjDmHiCnNiNjOiCnMiCoKiClN_xHqqkZx_
 *								 _xZkqqHx_iDeMiDiDiDjDiDgPiDfIiPoOjFpBiCmFiCmNiCmIiCkNiBeBiClBiCmMjCgMiCpA_xHqqkZx_
 *								 _xZkqqHx_iOgHiCmBiCmEiPiJiKpKiJlLiClDiCoKiCoJiBeC_xHqqkZx_
 *			bIsRedraw			:_xZkqqHx_jDmHiCnNiNjOiCnNiMoDiBeBiNmEjFgAiJoGiClHiCoJiCkJiCmHiCkEiCkJiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iDhEiDeIiBfLiDhNiDgCiDgHiMgAiOkOiCmNiBeB_xHqqkZx_InPortableFormat_xZkqqHx_iCmMiJpAjAoAiCpAiOfBiPmGiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.05.31 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::InCurrentSubCoreFormat (	FCUndoArchive& ar,
											WORD wFileType,
											FCCanvasStat* pCanvasStatRefer,
											BOOL bIsRedraw)
{
	// _xZkqqHx_iDfIiDgHiDiKiBfLiDiAjDpMjHmNjBePiPiIjHjNiBeC_xHqqkZx_
	if (g_pView != NULL)
		g_pView->PrepareStreamIn();
	// _xZkqqHx_iDhGiDiKiDjDiDfOiPoOjFpBjDjJiCpAjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
	// _xZkqqHx_iDiPiBfLiDeOiDhEiDeIiBfLiDhNiDgCiDgHiCmMiPoKiNiHiCmNjAnNjCoIiClFiCmIiCkCiBeC_xHqqkZx_HistView,HistDraw_xZkqqHx_iCmN_xHqqkZx_
	// _xZkqqHx_iDfIiDhMiDgCiDgHjAnIiCoIjBnGiCkGiCmMjDhIiCmJiDhGiDiKiDjDiDfOiPoOjFpBiCkKjFmPiNfIiClDiCoKiCoJiCmMiCpAiNeEiCnMiCmIiCkCiClNiCnPiBeC_xHqqkZx_
	// _xZkqqHx_iCnMiClNiBeBiDhGiDiKiDjDiDfOiPoOjFpBiCmMjAnNjCoIiCmNiOjOiKnEiCkKiCkJiCkJiCoJiBgJiCePiBeEiCfCjFgCjCpGjDhIiBgKiBeC_xHqqkZx_
	if (wFileType != FD_DTP_WORK_FORMAT)
		FFGetApp()->InStream(ar);
	// _xZkqqHx_iKmCiLkLiPoOjFpBiCpAjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
	g_pEnv->InStream(ar);
	// _xZkqqHx_iDgDiBfLiDiLjAnNjCoIiPoOjFpBiCpAjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
	if (g_pToolManager != NULL)
		g_pToolManager->InStream(ar, this);
	else
		FCToolManager::SkipStream(ar);
	SheetManager()->InStream(ar);
	// _xZkqqHx_iDiKiDjDiDeOiPoOjFpBiCpAjDpMjHmNiClHiCoJiBeC_xHqqkZx_
	m_pLinkManager->InStream(ar);
	// _xZkqqHx_iDiMiDfHiDfIiDgHiDiKiPoOjFpBiCpAjDpMjHmNiClHiCoJiBeC_xHqqkZx_
	if (g_pReg->GetCanWriteRegistry())
		g_pReg->InStream(ar);
	else
		g_pReg->SkipStream(ar);
	// _xZkqqHx_iDhCiDiFiBfLiCmMjFnCiPfHiPpDjBnEiCpAiDfIiDgHiDiKiBfLiDiAiCkJiCoHjDpMjHmNiClHiCoJiBeC_xHqqkZx_

	// _xZkqqHx_iDeMiDiDiDjDiDgPiDfIiPoOjFpBiCpAjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
	m_canvasStat.InStream(ar);

	// _xZkqqHx_iDeMiDiDiDjDiDgPiDfIiPoOjFpBiCmMiDiKiDhEiDeAiDiMiDjDiDfIiCkKiOhHjCoIiClDiCoKiCmEiCkCiCoJiPoKiNiHiBeC_xHqqkZx_
	// _xZkqqHx_iDeMiDiDiDjDiDgPiDfIiPoOjFpBiCpAiDiKiDhEiDeAiDiMiDjDiDfIiCmMjCgMiCmJjAnNjCoIiBeC_xHqqkZx_
	// _xZkqqHx_iBgJjHjKjHpAiInKjDkOiCmIiCmHiCmFiBeBiDfJiBfLiDiAjCgMiCoCiDhCiDiFiBfLjCiGjAfDiImKjChFiCkKiClIiCoKiCoJiCmMiCpAjGgIiCkOiPoKiNiHiCmJjHhAiCkCiCoJiBgK_xHqqkZx_
	if (pCanvasStatRefer != NULL)
	{
		// pCanvasStatRefer_xZkqqHx_iCmNiBeB_xHqqkZx_FCCanvasStat _xZkqqHx_iCmMiDfEiDhFiDeOiDiJiDfIiCmMiPoKiNiHiCoAiCkAiCoJiClNiCnPiBeB_xHqqkZx_
		// m_canvasStat = *pCanvasStatRefer;
		// m_canvasStat.UpdateCanvas();
		// _xZkqqHx_iCmMiPiHiCmFiMmEiCpBiCmFiCmNiCkCiCkPiCmIiCkCiBeC_xHqqkZx_
		// _xZkqqHx_iDeMiDiDiDjDiDgPiDfIiPoOjFpBiCpAiDePiDiNiBfLiDgPiDiLiCnGjElNiJgGiBeC_xHqqkZx_
		pCanvasStatRefer->UpdateCanvas();
		m_canvasStat = *pCanvasStatRefer;
	} else
	{
		// _xZkqqHx_iDeMiDiDiDjDiDgPiDfIiPoOjFpBiCpAiDePiDiNiBfLiDgPiDiLiCnGjElNiJgGiBeC_xHqqkZx_
		m_canvasStat.UpdateCanvas();
	}
	// _xZkqqHx_jFlGiPjBiCkKiKeKiCkCiCmEiCkCiCoJiPpDjBnEiCmJiClHiCoJiBeC_xHqqkZx_
	m_bIsDocumentOpened = TRUE;

	// _xZkqqHx_jFlGiPjBiDhEiDeAiDeDiDiLiCpAjDmHiCnNiNjOiCpBiClOiMoDiPiIjHjNiBeC_xHqqkZx_
	AfterLoadDocument(bIsRedraw);
} // CFCFoundDoc::InCurrentSubCoreFormat.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OutPortableFormat
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhMiBfLiDfOiDhFiDiLiDhEiDeIiBfLiDhNiDgCiDgHiCmMiDgGiBfLiDfOiCpAiPjBiCkLiPgPiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	file		:_xZkqqHx_iPjBiCkLiNjOiCnOiDhEiDeAiDeDiDiLiCpAiOhHjCoIiBeC_xHqqkZx_
 *			szImage		:_xZkqqHx_iPgPjHmNiClHiCoJiDeDiDiBiBfLiDfHiCmMiDfEiDeDiDfJiCpAiOhHjCoIiBeC_xHqqkZx_
 *			wcpVersion	:_xZkqqHx_iPgPjHmNiClHiCoJiDgPiBfLiDfHiDiHiDjDiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iDhEiDeIiBfLiDhNiDgCiDgHiMgAiOkOiCmNiBeB_xHqqkZx_InPortableFormat_xZkqqHx_iCmMiJpAjAoAiCpAiOfBiPmGiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.06.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OutPortableFormat (CFile& file,
									const CSize& szImage,
									const wchar_t* wcpVersion,
									BOOL bIsOutObject,
									BOOL bIsOutChip)
{
//----- 06.03.28 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	//----- _xZkqqHx_jGhLjBmMiPoOjFpBiCmMiPjBiCkLiPgPiClF_xHqqkZx_ -----
//	// _xZkqqHx_iDiBiDiCiDiKiDhEiDeAiDeDiDiLiCpAjAlGjAkMiBeC_xHqqkZx_
//	CMemFile memRawDataFile;
//	// _xZkqqHx_iOhHjCoIiDgPiBfLiDfHiDiHiDjDiCmMiDhEiDiJiDgCiDgHiDfCiDeBiDhEiDeAiDeDiDiLiCpAiPgPjHmNiBeC_xHqqkZx_
//	OutVersionFcoreFormat(memRawDataFile, FD_DTP_PORTABLE_FORMAT, wcpVersion, bIsOutObject, bIsOutChip);
//	// _xZkqqHx_iDfEiDeDiDfJiCmMiOfKiPgPiBeC_xHqqkZx_
//	DWORD dwRawDataSize = memRawDataFile.GetLength();
//	// CMemFile_xZkqqHx_iCmMiDgPiDgCiDhEiDeAiCpAjAnIiCoIjHkDiClHiBeC_xHqqkZx_
//	BYTE* pRawData = memRawDataFile.Detach();
//
//	//----- _xZkqqHx_jGhLjBmMiPoOjFpBiCmMiIlDiPgL_xHqqkZx_ -----
//
//	// _xZkqqHx_iIlDiPgLiDfCiDeBiDhEiDeAiDeDiDiLiBeC_xHqqkZx_
//	BYTEVector vCompressBuff;
//
//	//----- pRawData _xZkqqHx_iCmMjAoGjDkKiCmJiCkAiCoJiDhHiDgCiDfPiCpAiPjBiCkLiPgPiClH_xHqqkZx_ ------
//	const BYTE* bypTmpData = pRawData;
//	// _xZkqqHx_iDhHiDgCiDfPiCpAiPjBiCkLiPgPiClHiBeC_xHqqkZx_
//	FFWriteStream(vCompressBuff, bypTmpData, FCHeaderInf::GetStreamSize());
//	// _xZkqqHx_iDhHiDgCiDfPiDfEiDeDiDfJjFkKjBjHiCoJiBeC_xHqqkZx_
//	bypTmpData += FCHeaderInf::GetStreamSize();
//
//	//----- _xZkqqHx_jFlGiPjBiDhGiDiNiDhAiDgFiDeCiCpAiDfIiDeMiDgCiDhG_xHqqkZx_ -----
//	long lDocPropertySize;
//	FFReadData(lDocPropertySize, bypTmpData);
//	bypTmpData += lDocPropertySize;
//
//	// _xZkqqHx_iIlDiPgLiDfCiDeBiDhEiDeAiDeDiDiLiCpAiNoMjAkMiBeC_xHqqkZx_
//	dwRawDataSize -= (bypTmpData - pRawData);
//	FFWriteLZ77DataBlock(vCompressBuff, bypTmpData, dwRawDataSize);
//
//	// CMemFile_xZkqqHx_iCmMiDgPiDgCiDhEiDeAiCpAiJpAjFpKiBeC_xHqqkZx_
//	free(pRawData);
//
//	//----- _xZkqqHx_jFfMiOiGiCmMiDhCiDgCiDgHiDhNiDgCiDhGiCpAiNoMjAkM_xHqqkZx_ -----
//	BYTEVector byvBitBuff;
//	MakeFrontPagePNGImage32(byvBitBuff, szImage);
//	// _xZkqqHx_iDhMiBfLiDfOiDhFiDiLiDhEiDeIiBfLiDhNiDgCiDgHiCmJiCnMiCmGiCnPiCoJiBeC_xHqqkZx_
//	FFPngWrite32BitData(file, &szImage, byvBitBuff.begin(),
//						m_wstrDocumentProperty,
//						sizeof(m_wstrDocumentProperty) / sizeof(m_wstrDocumentProperty[0]),
//						vCompressBuff.begin(), vCompressBuff.size());
//
//	// _xZkqqHx_iImIiJlKiCmNiBeBiOjPiCmMjHjNjHfCiCmFiNoNiPjMiBeC_xHqqkZx_
//	// WORD2000_xZkqqHx_iCmJ_xHqqkZx_DD3_xZkqqHx_jFlGiPjBiCpA_xHqqkZx_OLE_xZkqqHx_jDfMiCoIjFhEiCkPiBeC_xHqqkZx_DClick_xZkqqHx_iCmFjFnCiPfHiPpDjBnEiCmJiClFiCmEiBeB_xHqqkZx_
//	// _xZkqqHx_jFjEjFgJiCpAiCfAiMmCiDfCiDhDiBfLiClFiCmEiClHiCkOiPeJjHlJiBeCiDfCiDhDiBfLiClFiClNjFjEjFgJiClOiCkPiCmJiCmIiCoJiBeC_xHqqkZx_
////---------------------------------------------------------------------
////	// _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiCmJjAnKjBlBiClDiCoKiCmEiCkCiCoJjBfDiCmEiCmM_xHqqkZx_OLE_xZkqqHx_iDiKiDjDiDeOiDeBiDeDiDgFiDiAiCmJjCmKjCgNiBeC_xHqqkZx_
////	// OLE _xZkqqHx_iDeBiDeDiDgFiDiAiCkKiOkJjDkOiDiKiDjDiDeOiCmGiClFiCmEiDgIiDeMiDiFiDiBiDjDiDgHiCmGiDiKiDjDiDeOiClDiCoKiCmEiCkCiCoKiCmOiBeB_xHqqkZx_
////	// _xZkqqHx_iDeBiDeDiDgFiDiAiCmNjFmPiNfIiCpAjElNiJgGiClFiCmEiNfIjAfGiClDiCoKiCnMiClHiBeC_xHqqkZx_
////	// _xZkqqHx_iClBiCmMiKnGjAjEjCiGiCmF_xHqqkZx_ CFCMolipDrawSrvrItem::OnDraw _xZkqqHx_iCkKiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
////	UpdateAllItems(NULL);
//////----- 01.09.16 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
////	// WORD_xZkqqHx_iCmJ_xHqqkZx_MolipDraw_xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiCpAjFkBjAjEiMmCiBhFiMgAiOkOiCpAiOhHjCoIiClFiCmEjDfMiCoIiCmCiCkPiBhG_xHqqkZx_
////	// _xZkqqHx_iBhFiDiKiDjDiDeOjDfMiCoIiCmCiCkPiBhGiCpAiOhHjCoIiClFiClNiPoKiNiHiBeB_xHqqkZx_UpdateAllViews _xZkqqHx_iCpAiOmAiNhDiClFiCmIiCkCiCmGiBeB_xHqqkZx_
////	// _xZkqqHx_iDhGiDiKiDjDiDfOiIpDiNpMiCmMiDeDiDiBiBfLiDfHiCmMiBeBjFkBjAjEiMmCiCmM_xHqqkZx_OLE_xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiCmMiKnEiCmF_xHqqkZx_
////	// _xZkqqHx_jDpMjBnGiCkGiCkKjAlGiClGiCmEiClFiCnMiCkEiBeCiJoGjGmKiCmN_xHqqkZx_OK_xZkqqHx_iCmIiCmMiCmFiMkJiCmCiCkPiCmJiCkNiCkCiDgPiDePiBeC_xHqqkZx_
////	// _xZkqqHx_iLeDiCpAiCmCiCkPiCoJiClBiCmGiBeC_xHqqkZx_
//////	UpdateAllViews(NULL);
////	UpdateAllViews(g_pView);
//----- 06.03.28 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	//----- _xZkqqHx_jGhLjBmMiPoOjFpBiCmMiPjBiCkLiPgPiClF_xHqqkZx_ -----
	// Undo_xZkqqHx_iDhEiDeAiDeDiDiLiCkKjDpMiCmBiCmEiCkCiCoJiDgGiDeCiDiMiDeOiDgHiDiKiCmJiDiGiDgKiBfLiDeOiCmIiDhEiDeAiDeDiDiLjGlMiCpAiNoMjAkMiBeC_xHqqkZx_
	FCWorkFile workFileRawData;

	// _xZkqqHx_iOhHjCoIiDgPiBfLiDfHiDiHiDjDiCmMiDhEiDiJiDgCiDgHiDfCiDeBiDhEiDeAiDeDiDiLiCpAiPgPjHmNiBeC_xHqqkZx_
	OutVersionFcoreFormat(workFileRawData.file, FD_DTP_PORTABLE_FORMAT, wcpVersion, bIsOutObject, bIsOutChip, TRUE);
	workFileRawData.file.Seek(0, CFile::begin);

	//----- _xZkqqHx_jGhLjBmMiPoOjFpBiCmMiIlDiPgL_xHqqkZx_ -----

	// _xZkqqHx_iIlDiPgLiDgGiBfLiDfOiDgPiDgCiDhEiDeAiBeC_xHqqkZx_
	BYTEVector vCompressBuff;
	//----- pRawData _xZkqqHx_iCmMjAoGjDkKiCmJiCkAiCoJiDhHiDgCiDfPiCpAiPjBiCkLiPgPiClH_xHqqkZx_ ------
	vCompressBuff.resize(FCHeaderInf::GetStreamSize());
	workFileRawData.file.Read(&vCompressBuff.front(), FCHeaderInf::GetStreamSize());

	//----- _xZkqqHx_jFlGiPjBiDhGiDiNiDhAiDgFiDeCiCpAiDfIiDeMiDgCiDhG_xHqqkZx_ -----
	long lDocPropertySize;
	workFileRawData.file.Read(&lDocPropertySize, sizeof(lDocPropertySize));
	workFileRawData.file.Seek(lDocPropertySize, CFile::current);

	//----- _xZkqqHx_jFfMiOiGiCmMiDhCiDgCiDgHiDhNiDgCiDhGiCpAiNoMjAkM_xHqqkZx_ -----
	BYTEVector byvBitBuff;
	MakeFrontPagePNGImage32(byvBitBuff, szImage);
	FCUndoArchive ar(&file, FD_ARCHIVE_STORE);
	// ar_xZkqqHx_iCmJ_xHqqkZx_PNG_xZkqqHx_iDgGiBfLiDfOiCmMjAoGjDkKiCkJiCoH_xHqqkZx_mdRw_xZkqqHx_iDgAiDiDiDjDiDeOiCmMjClMjBePiCnMiCmFiCpAiPgPjHmNiClHiCoJiBeC_xHqqkZx_
	FCPngWriteStruct* ps = FFPngWrite32Begin(ar, &szImage, byvBitBuff.begin(),
											m_wstrDocumentProperty,
											sizeof(m_wstrDocumentProperty) / sizeof(m_wstrDocumentProperty[0]));
	byvBitBuff.clear();

	BYTEVector vWorkBuff(FD_MDRW_CHUNK_RAW_SIZE);
	for (;;)
	{
		DWORD dwReadCount = workFileRawData.file.Read(&vWorkBuff.front(), vWorkBuff.size());
		if (dwReadCount == 0) break;
		// _xZkqqHx_iIlDiPgLiDfCiDeBiDhEiDeAiDeDiDiLiCpAiNoMjAkMiBeC_xHqqkZx_
		FFWriteLZ77DataBlock(vCompressBuff, &vWorkBuff.front(), dwReadCount);
		// MDRW_xZkqqHx_iDgAiDiDiDjDiDeOiCpAiPjBiCkLiNjOiCnOiBeC_xHqqkZx_
		FFPngWrite32MdrwChunk(ps, &vCompressBuff.front(), vCompressBuff.size());
		// _xZkqqHx_iIlDiPgLiDgGiBfLiDfOiDgPiDgCiDhEiDeAiCpAiDeOiDiKiDeBiBeC_xHqqkZx_
		vCompressBuff.clear();
	}
	// ar_xZkqqHx_iCmJ_xHqqkZx_PNG_xZkqqHx_iCmMiPeJjCfLiCpAiPgPjHmNiClHiCoJiBeC_xHqqkZx_
	FFPngWrite32End(ps);

	// _xZkqqHx_iImIiJlKiCmNiBeBiOjPiCmMjHjNjHfCiCmFiNoNiPjMiBeC_xHqqkZx_
	// WORD2000_xZkqqHx_iCmJ_xHqqkZx_DD3_xZkqqHx_jFlGiPjBiCpA_xHqqkZx_OLE_xZkqqHx_jDfMiCoIjFhEiCkPiBeC_xHqqkZx_DClick_xZkqqHx_iCmFjFnCiPfHiPpDjBnEiCmJiClFiCmEiBeB_xHqqkZx_
	// _xZkqqHx_jFjEjFgJiCpAiCfAiMmCiDfCiDhDiBfLiClFiCmEiClHiCkOiPeJjHlJiBeCiDfCiDhDiBfLiClFiClNjFjEjFgJiClOiCkPiCmJiCmIiCoJiBeC_xHqqkZx_
//---------------------------------------------------------------------
//	// _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiCmJjAnKjBlBiClDiCoKiCmEiCkCiCoJjBfDiCmEiCmM_xHqqkZx_OLE_xZkqqHx_iDiKiDjDiDeOiDeBiDeDiDgFiDiAiCmJjCmKjCgNiBeC_xHqqkZx_
//	// OLE _xZkqqHx_iDeBiDeDiDgFiDiAiCkKiOkJjDkOiDiKiDjDiDeOiCmGiClFiCmEiDgIiDeMiDiFiDiBiDjDiDgHiCmGiDiKiDjDiDeOiClDiCoKiCmEiCkCiCoKiCmOiBeB_xHqqkZx_
//	// _xZkqqHx_iDeBiDeDiDgFiDiAiCmNjFmPiNfIiCpAjElNiJgGiClFiCmEiNfIjAfGiClDiCoKiCnMiClHiBeC_xHqqkZx_
//	// _xZkqqHx_iClBiCmMiKnGjAjEjCiGiCmF_xHqqkZx_ CFCMolipDrawSrvrItem::OnDraw _xZkqqHx_iCkKiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
//	UpdateAllItems(NULL);
////----- 01.09.16 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
//	// WORD_xZkqqHx_iCmJ_xHqqkZx_MolipDraw_xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiCpAjFkBjAjEiMmCiBhFiMgAiOkOiCpAiOhHjCoIiClFiCmEjDfMiCoIiCmCiCkPiBhG_xHqqkZx_
//	// _xZkqqHx_iBhFiDiKiDjDiDeOjDfMiCoIiCmCiCkPiBhGiCpAiOhHjCoIiClFiClNiPoKiNiHiBeB_xHqqkZx_UpdateAllViews _xZkqqHx_iCpAiOmAiNhDiClFiCmIiCkCiCmGiBeB_xHqqkZx_
//	// _xZkqqHx_iDhGiDiKiDjDiDfOiIpDiNpMiCmMiDeDiDiBiBfLiDfHiCmMiBeBjFkBjAjEiMmCiCmM_xHqqkZx_OLE_xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiCmMiKnEiCmF_xHqqkZx_
//	// _xZkqqHx_jDpMjBnGiCkGiCkKjAlGiClGiCmEiClFiCnMiCkEiBeCiJoGjGmKiCmN_xHqqkZx_OK_xZkqqHx_iCmIiCmMiCmFiMkJiCmCiCkPiCmJiCkNiCkCiDgPiDePiBeC_xHqqkZx_
//	// _xZkqqHx_iLeDiCpAiCmCiCkPiCoJiClBiCmGiBeC_xHqqkZx_
////	UpdateAllViews(NULL);
//	UpdateAllViews(g_pView);
//----- 06.03.28 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
} // CFCFoundDoc::OutPortableFormat.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::InPortableFormat
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhMiBfLiDfOiDhFiDiLiDhEiDeIiBfLiDhNiDgCiDgHiCmMiDgGiBfLiDfOiCpAjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	file		:_xZkqqHx_jDmHiCnNiPgPiClHiDhEiDeAiDeDiDiLiCpAiOhHjCoIiBeC_xHqqkZx_
 *			pCanvasStatRefer	:CanvasStat_xZkqqHx_iCmMiOfBiPmGiCpAiOhHjCoIiBeCiClBiCmMjCgMiCkK_xHqqkZx_
 *								 NULL_xZkqqHx_iCmFiCmIiCkCiPoKiNiHiCmNiBeB_xHqqkZx_CanvasStat_xZkqqHx_iCmMjAnNjCoIiOjOiCmJiBeB_xHqqkZx_
 *								 file_xZkqqHx_iCkJiCoHiCmMjDmHiCnNiNjOiCnNiCoGiCoIiClBiCmMjCgMiCkKjHeEjAoGiClFiCmE_xHqqkZx_
 *								 _xZkqqHx_jAnNjCoIiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iKgFiDgGiBfLiDfOiDhEiDeIiBfLiDhNiDgCiDgHiCpAiJpAjAoAiClHiCoJiBeC_xHqqkZx_
 *
 *	------------------------------ PNG_xZkqqHx_iDgGiBfLiDfOiMgAiOkO_xHqqkZx_ ----------------------------------
 *
 *
 *	PNG_xZkqqHx_iDgGiBfLiDfOjBfDjBmMiCmMiMgAiOkOiBeC_xHqqkZx_
 *	_xZkqqHx_iEkBiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEkC_xHqqkZx_
 *	_xZkqqHx_iEkAiDfGiDePiDgMiDgAiDiDiEkAiDgAiDiDiDjDiDeO_xHqqkZx_1 _xZkqqHx_iEkAiDgAiDiDiDjDiDeO_xHqqkZx_2 _xZkqqHx_iEkAiBgDiEkAiDgAiDiDiDjDiDeO_xHqqkZx_n _xZkqqHx_iEkA_xHqqkZx_
 *	_xZkqqHx_iEkEiEjPiEjPiEjPiEjPiEjPiEkIiEjPiEjPiEjPiEjPiEjPiEkIiEjPiEjPiEjPiEjPiEjPiEkIiEjPiEkIiEjPiEjPiEjPiEjPiEjPiEkD_xHqqkZx_
 *
 *
 *	PNG_xZkqqHx_iDgGiBfLiDfOiCmMiDgAiDiDiDjDiDeOiMgAiOkOiBeC_xHqqkZx_
 *	_xZkqqHx_iEkBiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjP_xHqqkZx_  _xZkqqHx_iEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkC_xHqqkZx_
 *	_xZkqqHx_iEkAiCePiEkAiCfAiEkAiCfBiEkAiCfCiEkAiCePiEkAiCfAiEkAiCfBiEkAiCfCiEkAiCePiEkAiCfAiEkAiBgDiEkAiCiOiEkAiCePiEkAiCfAiEkAiCfBiEkAiCfCiEkA_xHqqkZx_
 *	_xZkqqHx_iEkFiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEjP_xHqqkZx_  _xZkqqHx_iEjPiEjPiEkJiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkH_xHqqkZx_
 *	_xZkqqHx_iEkA_xHqqkZx_   _xZkqqHx_iDgGiBfLiDfOjClH_xHqqkZx_   _xZkqqHx_iEkA_xHqqkZx_  _xZkqqHx_iDgAiDiDiDjDiDeOjGlM_xHqqkZx_  _xZkqqHx_iEkA_xHqqkZx_    _xZkqqHx_iDgGiBfLiDfO_xHqqkZx_    _xZkqqHx_iEkA_xHqqkZx_      CRC     _xZkqqHx_iEkA_xHqqkZx_
 *
 *
 *  _xZkqqHx_iIoKjEmKjDeJiCmI_xHqqkZx_PNG_xZkqqHx_iMgAiOkOiBgJjCiNiBeG_xHqqkZx_iTXt_xZkqqHx_iDgAiDiDiDjDiDeOiMgAiOkOiImIiKePiCmJiCoAiBeBjBlMiCmMiDgFiDeMiDfIiDgHiDgAiDiDiDjDiDeOiMgAiOkOiCkKiCkAiCoJiBgK_xHqqkZx_
 *	_xZkqqHx_iEkBiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEkG_xHqqkZx_  _xZkqqHx_iEkGiEjPiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkG_xHqqkZx_  _xZkqqHx_iEkGiEjPiEjPiEjPiEjPiEjPiEjPiEkC_xHqqkZx_
 *	_xZkqqHx_iEkA_xHqqkZx_    8 Byte    _xZkqqHx_iEkA_xHqqkZx_   n Byte   _xZkqqHx_iEkA_xHqqkZx_   n Byte   _xZkqqHx_iEkAiBgDiEkA_xHqqkZx_   n Byte   _xZkqqHx_iEkA_xHqqkZx_   n Byte     _xZkqqHx_iEkAiBgDiEkA_xHqqkZx_   n Byte   _xZkqqHx_iEkA_xHqqkZx_
 *	_xZkqqHx_iEkFiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEjPiEjPiEjPiEkJ_xHqqkZx_  _xZkqqHx_iEkFiEjPiEjPiEjPiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkJ_xHqqkZx_  _xZkqqHx_iEkFiEjPiEjPiEjPiEjPiEjPiEjPiEkH_xHqqkZx_
 *	_xZkqqHx_iEkA_xHqqkZx_ PNG_xZkqqHx_iDfGiDePiDgMiDgAiDiDiEkA_xHqqkZx_IHDR_xZkqqHx_iDgAiDiDiDjDiDeOiEkA_xHqqkZx_iTXt_xZkqqHx_iDgAiDiDiDjDiDeOiEkAiBgDiEkA_xHqqkZx_iTXt_xZkqqHx_iDgAiDiDiDjDiDeOiEkA_xHqqkZx_IDAT_xZkqqHx_iDgAiDiDiDjDiDeO_xHqqkZx_  _xZkqqHx_iEkAiBgDiEkA_xHqqkZx_IEND_xZkqqHx_iDgAiDiDiDjDiDeOiEkA_xHqqkZx_
 *  _xZkqqHx_iEkA_xHqqkZx_              _xZkqqHx_iEkA_xHqqkZx_            _xZkqqHx_iEkA_xHqqkZx_            _xZkqqHx_iEkA_xHqqkZx_  _xZkqqHx_iEkA_xHqqkZx_            _xZkqqHx_iEkA_xHqqkZx_              _xZkqqHx_iEkA_xHqqkZx_  _xZkqqHx_iEkA_xHqqkZx_            _xZkqqHx_iEkA_xHqqkZx_
 *  _xZkqqHx_iEkA_xHqqkZx_ PNG_xZkqqHx_iCmMiOkPjFmKiOhB_xHqqkZx_  _xZkqqHx_iEkAiDeDiDiBiBfLiDfHiPoOjFpBiEkAiDgFiDeMiDfIiDgHiPoOjFpBiEkA_xHqqkZx_  _xZkqqHx_iEkAiDgFiDeMiDfIiDgHiPoOjFpBiEkAiDeDiDiBiBfLiDfHiDgGiBfLiDfOiEkA_xHqqkZx_  _xZkqqHx_iEkA_xHqqkZx_ PNG_xZkqqHx_iCmMiPeJjCfL_xHqqkZx_  _xZkqqHx_iEkA_xHqqkZx_
 *
 *
 *	------------------------------ _xZkqqHx_iDhMiBfLiDfOiDhFiDiLiDhEiDeAiDeDiDiLiDhEiDeIiBfLiDhNiDgCiDgH_xHqqkZx_ ----------------------------------
 *
 *
 *	_xZkqqHx_iDhMiBfLiDfOiDhFiDiLiDhEiDeAiDeDiDiLiDhEiDeIiBfLiDhNiDgCiDgH_xHqqkZx_(.MDPF)
 *	_xZkqqHx_iEkBiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEkG_xHqqkZx_  _xZkqqHx_iEkGiEjPiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEkC_xHqqkZx_
 *	_xZkqqHx_iEkA_xHqqkZx_    8 Byte    _xZkqqHx_iEkA_xHqqkZx_   n Byte   _xZkqqHx_iEkA_xHqqkZx_   n Byte   _xZkqqHx_iEkAiBgDiEkA_xHqqkZx_   n Byte   _xZkqqHx_iEkA_xHqqkZx_   n Byte     _xZkqqHx_iEkA_xHqqkZx_    n Byte    _xZkqqHx_iEkA_xHqqkZx_   n Byte   _xZkqqHx_iEkA_xHqqkZx_
 *	_xZkqqHx_iEkFiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEjPiEjPiEjPiEkJ_xHqqkZx_  _xZkqqHx_iEkFiEjPiEjPiEjPiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEjPiEjPiEjPiEkH_xHqqkZx_
 *	_xZkqqHx_iEkA_xHqqkZx_ PNG_xZkqqHx_iDfGiDePiDgMiDgAiDiDiEkA_xHqqkZx_IHDR_xZkqqHx_iDgAiDiDiDjDiDeOiEkA_xHqqkZx_iTXt_xZkqqHx_iDgAiDiDiDjDiDeOiEkAiBgDiEkA_xHqqkZx_iTXt_xZkqqHx_iDgAiDiDiDjDiDeOiEkA_xHqqkZx_IDAT_xZkqqHx_iDgAiDiDiDjDiDeO_xHqqkZx_  _xZkqqHx_iEkA_xHqqkZx_ mdRw_xZkqqHx_iDgAiDiDiDjDiDeO_xHqqkZx_ _xZkqqHx_iEkA_xHqqkZx_IEND_xZkqqHx_iDgAiDiDiDjDiDeOiEkA_xHqqkZx_
 *  _xZkqqHx_iEkA_xHqqkZx_              _xZkqqHx_iEkA_xHqqkZx_            _xZkqqHx_iEkA_xHqqkZx_                              _xZkqqHx_iEkA_xHqqkZx_              _xZkqqHx_iEkA_xHqqkZx_              _xZkqqHx_iEkA_xHqqkZx_            _xZkqqHx_iEkA_xHqqkZx_
 *  _xZkqqHx_iEkA_xHqqkZx_ PNG_xZkqqHx_iCmMiOkPjFmKiOhB_xHqqkZx_  _xZkqqHx_iEkAiDeDiDiBiBfLiDfHiPoOjFpBiEkAiBkJiEjPiEjP_xHqqkZx_ DD_xZkqqHx_jFlGiPjBiDhGiDiNiDhAiDgFiDeC_xHqqkZx_ _xZkqqHx_iEjPiEjPiBkIiEkAiDeDiDiBiBfLiDfHiDgGiBfLiDfOiEkAiBkJ_xHqqkZx_ DD_xZkqqHx_iDgGiBfLiDfO_xHqqkZx_ _xZkqqHx_iBkIiEkA_xHqqkZx_ PNG_xZkqqHx_iCmMiPeJjCfL_xHqqkZx_  _xZkqqHx_iEkA_xHqqkZx_
 *
 *
 *	_xZkqqHx_iDhMiBfLiDfOiDhFiDiLiDhEiDeAiDeDiDiLiDhEiDeIiBfLiDhNiDgCiDgHiCmM_xHqqkZx_mdRw_xZkqqHx_iDgAiDiDiDjDiDeO_xHqqkZx_
 *	_xZkqqHx_iEkBiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEkC_xHqqkZx_
 *	_xZkqqHx_iEkA_xHqqkZx_ 4 Byte _xZkqqHx_iEkA_xHqqkZx_    4 Byte    _xZkqqHx_iEkA_xHqqkZx_n Byte_xZkqqHx_iEkA_xHqqkZx_ 1 Byte _xZkqqHx_iEkA_xHqqkZx_      4 Byte      _xZkqqHx_iEkA_xHqqkZx_    n Byte    _xZkqqHx_iEkA_xHqqkZx_4 Byte_xZkqqHx_iEkA_xHqqkZx_
 *	_xZkqqHx_iEkFiEjPiEjPiEjPiEjPiEkJiEjPiEkGiEjPiEkGiEjPiEkGiEjPiEkJiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEkH_xHqqkZx_
 *	_xZkqqHx_iEkAiDgGiBfLiDfOjClHiEkAiCiNiEkAiCiEiEkAiChBiEkAiCjHiEkAiDhHiDgCiDfPiEkAiIlDiPgLjFpLjGeAiEkAiJpAjDiAiMoDiDgGiBfLiDfOiDfEiDeDiDfJiEkAiBkGiIlDiPgLiDfEiDhFiDfCiDeBiEkA_xHqqkZx_  CRC _xZkqqHx_iEkA_xHqqkZx_
 *                            _xZkqqHx_iEkA_xHqqkZx_      _xZkqqHx_iEkA_xHqqkZx_                                            _xZkqqHx_iEkA_xHqqkZx_
 *                            _xZkqqHx_iEkA_xHqqkZx_      _xZkqqHx_iEkAiBkJiEjPiEjPiEjPiEjPiEjP_xHqqkZx_ LZ77_xZkqqHx_iDgGiBfLiDfOiDhFiDiNiDgCiDeO_xHqqkZx_ _xZkqqHx_iEjPiEjPiEjPiEjPiEjPiBkIiEkA_xHqqkZx_
 *                            _xZkqqHx_iEkA_xHqqkZx_                                                    _xZkqqHx_iEkA_xHqqkZx_
 *                            _xZkqqHx_iEkAiBkJiEjPiEjPiEjPiEjPiEjPiEjPiEjP_xHqqkZx_ mdRw_xZkqqHx_iDgAiDiDiDjDiDeOiDgGiBfLiDfO_xHqqkZx_ _xZkqqHx_iEjPiEjPiEjPiEjPiEjPiEjPiEjPiBkIiEkA_xHqqkZx_
 *
 *  _xZkqqHx_iBkG_xHqqkZx_ _xZkqqHx_iIlDiPgLiDfEiDhFiDfCiDeBiCmNiBeBiDhEiDiJiDgCiDgHiDfEiDhFiDfCiDeBiCpA_xHqqkZx_LZ77_xZkqqHx_iIlDiPgLiClFiCmEiNoMjAkMiBeC_xHqqkZx_
 *
 *
 *	------------------------------ _xZkqqHx_iDfIiDfOiDjDiDfPiBfLiDgIiDhEiDeAiDeDiDiLiDhEiDeIiBfLiDhNiDgCiDgH_xHqqkZx_ ----------------------------------
 *
 *
 *	_xZkqqHx_iDfIiDfOiDjDiDfPiBfLiDgIiDhEiDeAiDeDiDiLiDhEiDeIiBfLiDhNiDgCiDgHiBgJjFkBiNiHiDhEiDeAiDeDiDiLiBgK_xHqqkZx_(.MDRW)
 *	_xZkqqHx_iEkBiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkC_xHqqkZx_
 *	_xZkqqHx_iEkA_xHqqkZx_       n Byte       _xZkqqHx_iEkA_xHqqkZx_       n Byte       _xZkqqHx_iEkA_xHqqkZx_       n Byte       _xZkqqHx_iEkA_xHqqkZx_
 *	_xZkqqHx_iEkFiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkH_xHqqkZx_
 *	_xZkqqHx_iEkAjFkBiNiHiDhEiDeAiDeDiDiLiDgGiBfLiDfOiBgDiEkAjFkBiNiHiDfCiDeBiDhEiDeIiBfLiDhNiDgCiDgHiEkAjFkBiNiHiDhEiDeAiDeDiDiLiDgGiBfLiDfOiBgDiEkA_xHqqkZx_
 *
 *
 *	------------------------------ _xZkqqHx_iDhCiDiFiBfLiDeBiDhEiDeAiDeDiDiLiDhEiDeIiBfLiDhNiDgCiDgH_xHqqkZx_ ----------------------------------
 *
 *
 *  _xZkqqHx_jAoGjDkKiCmJiDhHiDgCiDfPiCpAjDpMiCoKiCmIiCkPiCoKiCmOiDhEiDeIiDiLiDfPiCmFiDhGiDiMiDhCiDiFiBfLiCmFiCkLiCoJiCmMiClOiCkKiBeBiDhHiDgCiDfPiCpAjDpMiCoKiCmIiCkCiCmGiBeB_xHqqkZx_InternetExplorer_xZkqqHx_iCmFiCmN_xHqqkZx_PNG_xZkqqHx_iMgAiOkOiCmGiCnNiCmIiClDiCoK_xHqqkZx_ PNG_xZkqqHx_iDhCiDiFiBfLiDeBiCkKiLeOjDkOiClDiCoKiCmEiClFiCnMiCkEiBeC_xHqqkZx_
 *
 *	_xZkqqHx_iDhCiDiFiBfLiDeBiDhEiDeAiDeDiDiLiDhEiDeIiBfLiDhNiDgCiDgH_xHqqkZx_(.MDVF)
 *	_xZkqqHx_iEkBiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEkG_xHqqkZx_  _xZkqqHx_iEkGiEjPiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkG_xHqqkZx_  _xZkqqHx_iEkGiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEkC_xHqqkZx_
 *	_xZkqqHx_iEkA_xHqqkZx_n Byte_xZkqqHx_iEkA_xHqqkZx_    8 Byte    _xZkqqHx_iEkA_xHqqkZx_   n Byte   _xZkqqHx_iEkA_xHqqkZx_   n Byte   _xZkqqHx_iEkAiBgDiEkA_xHqqkZx_   n Byte   _xZkqqHx_iEkA_xHqqkZx_   n Byte     _xZkqqHx_iEkA_xHqqkZx_    n Byte    _xZkqqHx_iEkA_xHqqkZx_    n Byte    _xZkqqHx_iEkAiBgDiEkA_xHqqkZx_    n Byte    _xZkqqHx_iEkA_xHqqkZx_   n Byte   _xZkqqHx_iEkA_xHqqkZx_
 *	_xZkqqHx_iEkFiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEjPiEjPiEjPiEkJ_xHqqkZx_  _xZkqqHx_iEkFiEjPiEjPiEjPiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkJ_xHqqkZx_  _xZkqqHx_iEkJiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEjPiEjPiEjPiEkH_xHqqkZx_
 *	_xZkqqHx_iEkAiDhHiDgCiDfPiEkA_xHqqkZx_ PNG_xZkqqHx_iDfGiDePiDgMiDgAiDiDiEkA_xHqqkZx_IHDR_xZkqqHx_iDgAiDiDiDjDiDeOiEkA_xHqqkZx_iTXt_xZkqqHx_iDgAiDiDiDjDiDeOiEkAiBgDiEkA_xHqqkZx_iTXt_xZkqqHx_iDgAiDiDiDjDiDeOiEkA_xHqqkZx_IDAT_xZkqqHx_iDgAiDiDiDjDiDeO_xHqqkZx_  _xZkqqHx_iEkA_xHqqkZx_ mdRw_xZkqqHx_iDgAiDiDiDjDiDeO_xHqqkZx_ _xZkqqHx_iEkA_xHqqkZx_ mdVf_xZkqqHx_iDgAiDiDiDjDiDeO_xHqqkZx_ _xZkqqHx_iEkAiBgDiEkA_xHqqkZx_ mdVf_xZkqqHx_iDgAiDiDiDjDiDeO_xHqqkZx_ _xZkqqHx_iEkA_xHqqkZx_IEND_xZkqqHx_iDgAiDiDiDjDiDeOiEkA_xHqqkZx_
 *	_xZkqqHx_iEkA_xHqqkZx_      _xZkqqHx_iEkA_xHqqkZx_              _xZkqqHx_iEkA_xHqqkZx_            _xZkqqHx_iEkA_xHqqkZx_                              _xZkqqHx_iEkA_xHqqkZx_              _xZkqqHx_iEkA_xHqqkZx_              _xZkqqHx_iEkA_xHqqkZx_              _xZkqqHx_iEkA_xHqqkZx_  _xZkqqHx_iEkA_xHqqkZx_              _xZkqqHx_iEkA_xHqqkZx_            _xZkqqHx_iEkA_xHqqkZx_
 *	_xZkqqHx_iEkA_xHqqkZx_      _xZkqqHx_iEkA_xHqqkZx_ PNG_xZkqqHx_iCmMiOkPjFmKiOhB_xHqqkZx_  _xZkqqHx_iEkAiDeDiDiBiBfLiDfHiPoOjFpBiEkAiBkJiEjPiEjP_xHqqkZx_ DD_xZkqqHx_jFlGiPjBiDhGiDiNiDhAiDgFiDeC_xHqqkZx_ _xZkqqHx_iEjPiEjPiBkIiEkAiDeDiDiBiBfLiDfHiDgGiBfLiDfOiEkAiBkJ_xHqqkZx_ DD_xZkqqHx_iDgGiBfLiDfO_xHqqkZx_ _xZkqqHx_iBkIiEkAiBkJ_xHqqkZx_ DD_xZkqqHx_iDgGiBfLiDfO_xHqqkZx_ _xZkqqHx_iBkIiEkAiBgDiEkAiBkJ_xHqqkZx_ DD_xZkqqHx_iDgGiBfLiDfO_xHqqkZx_ _xZkqqHx_iBkIiEkA_xHqqkZx_ PNG_xZkqqHx_iCmMiPeJjCfL_xHqqkZx_  _xZkqqHx_iEkA_xHqqkZx_
 *
 *
 *	_xZkqqHx_iDhCiDiFiBfLiDeBiDhEiDeAiDeDiDiLiDhEiDeIiBfLiDhNiDgCiDgHiCmM_xHqqkZx_mdRw_xZkqqHx_iDgAiDiDiDjDiDeO_xHqqkZx_
 *	_xZkqqHx_iEkBiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEkC_xHqqkZx_
 *	_xZkqqHx_iEkA_xHqqkZx_ 4 Byte _xZkqqHx_iEkA_xHqqkZx_    4 Byte    _xZkqqHx_iEkA_xHqqkZx_ 1 Byte _xZkqqHx_iEkA_xHqqkZx_      4 Byte      _xZkqqHx_iEkA_xHqqkZx_      n Byte      _xZkqqHx_iEkA_xHqqkZx_4 Byte_xZkqqHx_iEkA_xHqqkZx_
 *	_xZkqqHx_iEkFiEjPiEjPiEjPiEjPiEkJiEjPiEkGiEjPiEkGiEjPiEkGiEjPiEkJiEjPiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEkH_xHqqkZx_
 *	_xZkqqHx_iEkAiDgGiBfLiDfOjClHiEkAiCiNiEkAiCiEiEkAiChBiEkAiCjHiEkAiIlDiPgLjFpLjGeAiEkAiJpAjDiAiMoDiDgGiBfLiDfOiDfEiDeDiDfJiEkAiBkGiIlDiPgL_xHqqkZx_VINDEX_xZkqqHx_iDgGiBfLiDfOiEkA_xHqqkZx_  CRC _xZkqqHx_iEkA_xHqqkZx_
 *                            _xZkqqHx_iEkA_xHqqkZx_                                                _xZkqqHx_iEkA_xHqqkZx_
 *                            _xZkqqHx_iEkAiBkJiEjPiEjPiEjPiEjPiEjPiEjP_xHqqkZx_ LZ77_xZkqqHx_iDgGiBfLiDfOiDhFiDiNiDgCiDeO_xHqqkZx_ _xZkqqHx_iEjPiEjPiEjPiEjPiEjPiEjPiBkIiEkA_xHqqkZx_
 *
 *  _xZkqqHx_iBkG_xHqqkZx_ _xZkqqHx_iIlDiPgL_xHqqkZx_VINDEX_xZkqqHx_iDgGiBfLiDfOiCmNiBeBjEpBiIlDiPgL_xHqqkZx_VINDEX_xZkqqHx_iDgGiBfLiDfOiCpA_xHqqkZx_LZ77_xZkqqHx_iIlDiPgLiClFiCmEiNoMjAkMiBeC_xHqqkZx_
 *
 *
 *	mdVf_xZkqqHx_iDgAiDiDiDjDiDeO_xHqqkZx_
 *	_xZkqqHx_iEkBiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEkC_xHqqkZx_
 *	_xZkqqHx_iEkA_xHqqkZx_ 4 Byte _xZkqqHx_iEkA_xHqqkZx_    4 Byte    _xZkqqHx_iEkA_xHqqkZx_ 1 Byte _xZkqqHx_iEkA_xHqqkZx_      4 Byte      _xZkqqHx_iEkA_xHqqkZx_      n Byte      _xZkqqHx_iEkA_xHqqkZx_4 Byte_xZkqqHx_iEkA_xHqqkZx_
 *	_xZkqqHx_iEkFiEjPiEjPiEjPiEjPiEkJiEjPiEkGiEjPiEkGiEjPiEkGiEjPiEkJiEjPiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEkH_xHqqkZx_
 *	_xZkqqHx_iEkAiDgGiBfLiDfOjClHiEkAiCiNiEkAiCiEiEkAiChFiEkAiCiGiEkAiIlDiPgLjFpLjGeAiEkAiJpAjDiAiMoDiDgGiBfLiDfOiDfEiDeDiDfJiEkAiBkGiIlDiPgL_xHqqkZx_VSHEET_xZkqqHx_iDgGiBfLiDfOiEkA_xHqqkZx_  CRC _xZkqqHx_iEkA_xHqqkZx_
 *                            _xZkqqHx_iEkA_xHqqkZx_                                                _xZkqqHx_iEkA_xHqqkZx_
 *                            _xZkqqHx_iEkAiBkJiEjPiEjPiEjPiEjPiEjPiEjP_xHqqkZx_ LZ77_xZkqqHx_iDgGiBfLiDfOiDhFiDiNiDgCiDeO_xHqqkZx_ _xZkqqHx_iEjPiEjPiEjPiEjPiEjPiEjPiBkIiEkA_xHqqkZx_
 *                            _xZkqqHx_iEkA_xHqqkZx_                                                _xZkqqHx_iEkA_xHqqkZx_
 *                            _xZkqqHx_iEkAiBkJiEjPiEjPiEjPiEjPiEjPiEjP_xHqqkZx_ mdVf_xZkqqHx_iDgAiDiDiDjDiDeOiDgGiBfLiDfO_xHqqkZx_ _xZkqqHx_iEjPiEjPiEjPiEjPiEjPiEjPiBkIiEkA_xHqqkZx_
 *
 *  _xZkqqHx_iBkG_xHqqkZx_ _xZkqqHx_iIlDiPgL_xHqqkZx_VSHEET_xZkqqHx_iDgGiBfLiDfOiCmNiBeBjEpBiIlDiPgL_xHqqkZx_VSHEET_xZkqqHx_iDgGiBfLiDfOiCpA_xHqqkZx_LZ77_xZkqqHx_iIlDiPgLiClFiCmEiNoMjAkMiBeC_xHqqkZx_
 *
 *
 *	_xZkqqHx_jEpBiIlDiPgL_xHqqkZx_VINDEX_xZkqqHx_iDgGiBfLiDfOiDhEiDeIiBfLiDhNiDgCiDgH_xHqqkZx_
 *	_xZkqqHx_iEkBiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkC_xHqqkZx_
 *	_xZkqqHx_iEkA_xHqqkZx_             n Byte             _xZkqqHx_iEkA_xHqqkZx_                   n Byte                     _xZkqqHx_iEkA_xHqqkZx_  n Byte      _xZkqqHx_iEkA_xHqqkZx_
 *	_xZkqqHx_iEkFiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkH_xHqqkZx_
 *	_xZkqqHx_iEkAiKmCiLkLiPoOjFpBiBgJjEhHiMgJjAhNiBeBiDgAiDgCiDhGiCpAiPjMiCkNiBgKiEkAiDfGiBfLiDgH_xHqqkZx_/_xZkqqHx_iDiMiDeDiDiEiBfL_xHqqkZx_/_xZkqqHx_iDgHiDgCiDhGiBeBiDhLiDgHiDiAiDiMiDeDiDiEiBfLjFjEjFgJiPoOjFpBiEkAiDeMiDiDiDjDiDgPiDfIiPoOjFpBiEkA_xHqqkZx_
 *
 *
 *	_xZkqqHx_jEpBiIlDiPgL_xHqqkZx_VSHEET_xZkqqHx_iDgGiBfLiDfOiDhEiDeIiBfLiDhNiDgCiDgH_xHqqkZx_
 *	_xZkqqHx_iEkBiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkC_xHqqkZx_
 *	_xZkqqHx_iEkA_xHqqkZx_ 4 Byte _xZkqqHx_iEkA_xHqqkZx_                 n Byte                 _xZkqqHx_iEkA_xHqqkZx_       n Byte       _xZkqqHx_iEkA_xHqqkZx_
 *	_xZkqqHx_iEkFiEjPiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkH_xHqqkZx_
 *	_xZkqqHx_iEkAiDfGiBfLiDgH_xHqqkZx_ID_xZkqqHx_iEkAiKmCiLkLiPoOjFpBiBgJiClBiCmMiDfGiBfLiDgHiCmFjFeLjHhGiCmIjEhHiMgJjAhNiCmMiCnNiBgKiEkAiClBiCmMiDfGiBfLiDgHiCmMjFjEjFgJiPoOjFpBiEkA_xHqqkZx_
 *
 *
 *	------------------------------ _xZkqqHx_iDfCiDeBiDhEiDeAiDeDiDiLiDhEiDeIiBfLiDhNiDgCiDgH_xHqqkZx_ ----------------------------------
 *
 *
 *	_xZkqqHx_iDhEiDiJiDgCiDgHiDfCiDeBiDhEiDeIiBfLiDhNiDgCiDgHiBgJ_xHqqkZx_fcore_xZkqqHx_iBgK_xHqqkZx_
 *	_xZkqqHx_iEkBiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkC_xHqqkZx_
 *	_xZkqqHx_iEkA_xHqqkZx_n Byte_xZkqqHx_iEkA_xHqqkZx_            n Byte            _xZkqqHx_iEkA_xHqqkZx_     n Byte     _xZkqqHx_iEkA_xHqqkZx_
 *	_xZkqqHx_iEkFiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkH_xHqqkZx_
 *	_xZkqqHx_iEkAiDhHiDgCiDfPiEkA_xHqqkZx_DD_xZkqqHx_jFlGiPjBiDhGiDiNiDhAiDgFiDeCiBgJiDfIiDgHiDiKiBfLiDiAiBgKiEkAiDhEiDiJiDgCiDgHiDfEiDhFiDfCiDeBiEkA_xHqqkZx_
 *
 *
 *	_xZkqqHx_jFkBiNiHiDfCiDeBiDhEiDeIiBfLiDhNiDgCiDgHiBgJ_xHqqkZx_ccore_xZkqqHx_iBgK_xHqqkZx_
 *	_xZkqqHx_iEkBiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkC_xHqqkZx_
 *	_xZkqqHx_iEkA_xHqqkZx_n Byte_xZkqqHx_iEkA_xHqqkZx_       n Byte         _xZkqqHx_iEkA_xHqqkZx_    n Byte    _xZkqqHx_iEkA_xHqqkZx_
 *	_xZkqqHx_iEkFiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkH_xHqqkZx_
 *	_xZkqqHx_iEkAiDhHiDgCiDfPiEkA_xHqqkZx_ ccore-PNG_xZkqqHx_iDhEiDeIiBfLiDhNiDgCiDgHiEkA_xHqqkZx_ _xZkqqHx_jFkBiNiHiDfEiDhFiDfCiDeB_xHqqkZx_ _xZkqqHx_iEkA_xHqqkZx_
 *
 *
 *	ccore-PNG_xZkqqHx_iDhEiDeIiBfLiDhNiDgCiDgH_xHqqkZx_
 *	_xZkqqHx_iEkBiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEkG_xHqqkZx_  _xZkqqHx_iEkGiEjPiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkG_xHqqkZx_  _xZkqqHx_iEkGiEjPiEjPiEjPiEjPiEjPiEjPiEkC_xHqqkZx_
 *	_xZkqqHx_iEkA_xHqqkZx_    8 Byte    _xZkqqHx_iEkA_xHqqkZx_   n Byte   _xZkqqHx_iEkA_xHqqkZx_   n Byte   _xZkqqHx_iEkAiBgDiEkA_xHqqkZx_   n Byte   _xZkqqHx_iEkA_xHqqkZx_   n Byte     _xZkqqHx_iEkAiBgDiEkA_xHqqkZx_   n Byte   _xZkqqHx_iEkA_xHqqkZx_
 *	_xZkqqHx_iEkFiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEjPiEjPiEjPiEkJ_xHqqkZx_  _xZkqqHx_iEkFiEjPiEjPiEjPiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkJ_xHqqkZx_  _xZkqqHx_iEkFiEjPiEjPiEjPiEjPiEjPiEjPiEkH_xHqqkZx_
 *	_xZkqqHx_iEkA_xHqqkZx_ PNG_xZkqqHx_iDfGiDePiDgMiDgAiDiDiEkA_xHqqkZx_IHDR_xZkqqHx_iDgAiDiDiDjDiDeOiEkA_xHqqkZx_iTXt_xZkqqHx_iDgAiDiDiDjDiDeOiEkAiBgDiEkA_xHqqkZx_iTXt_xZkqqHx_iDgAiDiDiDjDiDeOiEkA_xHqqkZx_IDAT_xZkqqHx_iDgAiDiDiDjDiDeO_xHqqkZx_  _xZkqqHx_iEkAiBgDiEkA_xHqqkZx_IEND_xZkqqHx_iDgAiDiDiDjDiDeOiEkA_xHqqkZx_
 *  _xZkqqHx_iEkA_xHqqkZx_              _xZkqqHx_iEkA_xHqqkZx_            _xZkqqHx_iEkA_xHqqkZx_                              _xZkqqHx_iEkA_xHqqkZx_              _xZkqqHx_iEkA_xHqqkZx_  _xZkqqHx_iEkA_xHqqkZx_            _xZkqqHx_iEkA_xHqqkZx_
 *  _xZkqqHx_iEkA_xHqqkZx_ PNG_xZkqqHx_iCmMiOkPjFmKiOhB_xHqqkZx_  _xZkqqHx_iEkAiDeDiDiBiBfLiDfHiPoOjFpBiEkAiBkJiEjPiEjP_xHqqkZx_ DD_xZkqqHx_jFlGiPjBiDhGiDiNiDhAiDgFiDeC_xHqqkZx_ _xZkqqHx_iEjPiEjPiBkIiEkAiDeDiDiBiBfLiDfHiDgGiBfLiDfOiEkA_xHqqkZx_  _xZkqqHx_iEkA_xHqqkZx_ PNG_xZkqqHx_iCmMiPeJjCfL_xHqqkZx_  _xZkqqHx_iEkA_xHqqkZx_
 *
 *
 *	_xZkqqHx_iDfEiDhFiDfCiDeBiBgJiDhEiDiJiDgCiDgH_xHqqkZx_/_xZkqqHx_jFkBiNiHiBgKiDhEiDeIiBfLiDhNiDgCiDgHiBgJ_xHqqkZx_fcore_xZkqqHx_iCmMiPoKiNiHiCmNiDhEiDiJiDgCiDgHiDfCiDeB_xHqqkZx_/ccore_xZkqqHx_iCmMiPoKiNiHiCmNjFjEjFgJiPoOjFpB_xHqqkZx_(OLE_xZkqqHx_jFjEjFgJ_xHqqkZx_)_xZkqqHx_iCkKjFkBiNiHiDhEiDeAiDeDiDiLiBgK_xHqqkZx_
 *	_xZkqqHx_iEkBiEjPiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkC_xHqqkZx_
 *	_xZkqqHx_iEkA_xHqqkZx_   n Byte   _xZkqqHx_iEkA_xHqqkZx_ n Byte _xZkqqHx_iEkA_xHqqkZx_    n Byte    _xZkqqHx_iEkA_xHqqkZx_          n Byte        _xZkqqHx_iEkA_xHqqkZx_  n Byte  _xZkqqHx_iEkA_xHqqkZx_  n Byte      _xZkqqHx_iEkA_xHqqkZx_  n Byte      _xZkqqHx_iEkA_xHqqkZx_
 *	_xZkqqHx_iEkFiEjPiEjPiEjPiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkH_xHqqkZx_
 *	_xZkqqHx_iEkAiDhGiDiKiDjDiDfOiPoOjFpBiEkAiKmCiLkLiPoOjFpBiEkAiDgDiBfLiDiLjAnNjCoIiPoOjFpBiEkAiDfGiBfLiDgH_xHqqkZx_/_xZkqqHx_iDiMiDeDiDiEiBfL_xHqqkZx_/_xZkqqHx_jFjEjFgJiPoOjFpBiEkAiDiKiDjDiDeOiPoOjFpBiEkAiDiMiDfHiDfIiDgHiDiKiPoOjFpBiEkAiDeMiDiDiDjDiDgPiDfIiPoOjFpBiEkA_xHqqkZx_
 *
 *
 *  _xZkqqHx_iChHiDfCiDeBiDhEiDeIiBfLiDhNiDgCiDgHiBgJ_xHqqkZx_xcore_xZkqqHx_iBgKiCmNiBeBiDhEiDiJiDgCiDgHiDfCiDeBiCmGjDkPiClGiClOiCkKiBeBjFjNiNeMiLmIjApMjFjEjFgJiCmMjBkEjApMiCmMiLnPiOjHiDhIiDfHiDeGiLmIjApMiCpA_xHqqkZx_
 *  _xZkqqHx_iMhGiOfKiNmPiCnNiBeCiDfCiDjDiDgPiBfLiDfOiCmFiLnPiOjHiDhIiDfHiDeGiLmIjApMiCpAjHhAiCkCiCoJiMgAiOkOiCmJjFmPiKlHiClHiCoJiPoKiNiHiCmNiBeB_xHqqkZx_xcore_xZkqqHx_iCpAiOhHjCoIiClHiCoJiBeC_xHqqkZx_
 *
 *
 *	------------------------------ DD_xZkqqHx_jFlGiPjBiDhGiDiNiDhAiDgFiDeC_xHqqkZx_ ----------------------------------
 *
 *
 *	DD_xZkqqHx_jFlGiPjBiDhGiDiNiDhAiDgFiDeCiBgJiDfIiDgHiDiKiBfLiDiAiBgK_xHqqkZx_
 *  _xZkqqHx_iEkBiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEkC_xHqqkZx_
 *  _xZkqqHx_iEkA_xHqqkZx_   long   _xZkqqHx_iEkA_xHqqkZx_   n Byte   _xZkqqHx_iEkA_xHqqkZx_  n Byte  _xZkqqHx_iEkA_xHqqkZx_  n Byte  _xZkqqHx_iEkA_xHqqkZx_   n Byte   _xZkqqHx_iEkA_xHqqkZx_
 *  _xZkqqHx_iEkEiEjPiEjPiEjPiEjPiEjPiEkIiEjPiEjPiEjPiEjPiEjPiEjPiEkIiEjPiEjPiEjPiEjPiEjPiEkIiEjPiEjPiEjPiEjPiEjPiEkIiEjPiEjPiEjPiEjPiEjPiEjPiEkD_xHqqkZx_
 *  _xZkqqHx_iEkAiDfIiDgHiDiKiBfLiDiAiEkAjFlGiPjBiDfOiDeDiDgHiDiLiEkA_xHqqkZx_ _xZkqqHx_jFlGiPjBiNoMiOnC_xHqqkZx_ _xZkqqHx_iEkA_xHqqkZx_ _xZkqqHx_jFlGiPjBjAoAjGlO_xHqqkZx_ _xZkqqHx_iEkAjFlGiPjBiDfCiDiBiDjDiDgHiEkA_xHqqkZx_
 *  _xZkqqHx_iEkAiDfEiDeDiDfJ_xHqqkZx_    _xZkqqHx_iEkAiDfKiDePiDiBiDjDiDgH_xHqqkZx_  _xZkqqHx_iEkAiDfKiDePiDiBiDjDiDgHiEkAiDfKiDePiDiBiDjDiDgHiEkAiDfKiDePiDiBiDjDiDgH_xHqqkZx_  _xZkqqHx_iEkA_xHqqkZx_
 *              _xZkqqHx_iEkA_xHqqkZx_                                                  _xZkqqHx_iEkA_xHqqkZx_
 *              _xZkqqHx_iEkAiBkJiEjPiEjPiEjPiEjPiEjPiEjPiEjP_xHqqkZx_ _xZkqqHx_iDfIiDgHiDiKiBfLiDiAiDfEiDeDiDfJ_xHqqkZx_ _xZkqqHx_iEjPiEjPiEjPiEjPiEjPiEjPiEjPiBkIiEkA_xHqqkZx_
 *
 *
 *  _xZkqqHx_iKgFiDfKiDePiDiBiDjDiDgH_xHqqkZx_
 *  _xZkqqHx_iEkGiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkG_xHqqkZx_
 *  _xZkqqHx_iEkA_xHqqkZx_ WORD _xZkqqHx_iEkA_xHqqkZx_     _xZkqqHx_jFlGiOjKjAjE_xHqqkZx_     _xZkqqHx_iEkA_xHqqkZx_
 *  _xZkqqHx_iEkIiEjPiEjPiEjPiEkIiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkI_xHqqkZx_
 *  _xZkqqHx_iEkAjFlGiOjKjAjEiEkA_xHqqkZx_UNICODE _xZkqqHx_iDgFiDeMiDfIiDgHiEkA_xHqqkZx_
 *
 *
 *	------------------------------ _xZkqqHx_iDhEiDeAiDeDiDiLiDeJiBfLiDhGiDjDiOoIiPiH_xHqqkZx_ ----------------------------------
 *
 *			_xZkqqHx_iDhEiDeAiDeDiDiLiCpAiKeKiCkN_xHqqkZx_(.mdrw)
 *				_xZkqqHx_iBkL_xHqqkZx_
 *			CFCFoundDoc::OnOpenDocument
 *				_xZkqqHx_iBkL_xHqqkZx_
 *			CFCFoundDoc::Serialize
 *				_xZkqqHx_iBkL_xHqqkZx_
 *			CFCFoundDoc::InCoreFormat
 *
 *
 *			_xZkqqHx_iDhEiDeAiDeDiDiLiCpAiKeKiCkN_xHqqkZx_(.mdpf)
 *				_xZkqqHx_iBkL_xHqqkZx_
 *			CFCFoundDoc::OnOpenDocument
 *				_xZkqqHx_iBkL_xHqqkZx_
 *			CFCFoundDoc::InPortableFormat
 *				_xZkqqHx_iBkL_xHqqkZx_
 *			CFCFoundDoc::InCoreFormat
 *
 *
 *			_xZkqqHx_iDhEiDeAiDeDiDiLiCpAjFnLjBlG_xHqqkZx_(.mdrw)
 *				_xZkqqHx_iBkL_xHqqkZx_
 *			CFCFoundDoc::OnSaveDocument
 *				_xZkqqHx_iBkL_xHqqkZx_
 *			CFCFoundDoc::Serialize
 *				_xZkqqHx_iBkL_xHqqkZx_
 *			CFCFoundDoc::OutCoreFormat
 *
 *
 *			_xZkqqHx_iDhEiDeAiDeDiDiLiCpAjFnLjBlG_xHqqkZx_(.mdpf)
 *				_xZkqqHx_iBkL_xHqqkZx_
 *			CFCFoundDoc::OnSaveDocument
 *				_xZkqqHx_iBkL_xHqqkZx_
 *			CFCFoundDoc::OutPortableFormat
 *				_xZkqqHx_iBkL_xHqqkZx_
 *			CFCFoundDoc::OutCoreFormat
 *
 *
 *			_xZkqqHx_iDfCiDhDiBfL_xHqqkZx_
 *				_xZkqqHx_iBkL_xHqqkZx_
 *			CFCMolipDrawSrvrItem::Serialize
 *				_xZkqqHx_iBkL_xHqqkZx_
 *			CFCFoundDoc::OutCoreFormat
 *
 *
 *			_xZkqqHx_jDfMiCoIjFhEiCkP_xHqqkZx_
 *				_xZkqqHx_iBkL_xHqqkZx_
 *			CFCMolipDrawSrvrItem::Serialize
 *				_xZkqqHx_iBkL_xHqqkZx_
 *			CFCFoundDoc::InCoreFormat
 *
 *
 *			OLE_xZkqqHx_iLeOjDkO_xHqqkZx_
 *				_xZkqqHx_iBkL_xHqqkZx_
 *			COleServerDoc::OnOpenEmbedding
 *				_xZkqqHx_iBkL_xHqqkZx_
 *			CFCFoundDoc::OnOpenDocument
 *				_xZkqqHx_iBkL_xHqqkZx_
 *			CFCFoundDoc::Serialize
 *				_xZkqqHx_iBkL_xHqqkZx_
 *			CFCFoundDoc::InCoreFormat
 *
 *
 *			OLE_xZkqqHx_iCmMiNfIjAfGiBeBiPeJjHlJ_xHqqkZx_
 *				_xZkqqHx_iBkL_xHqqkZx_
 *			COleServerDoc::XPersistStorage::Save
 *				_xZkqqHx_iBkL_xHqqkZx_
 *			COleServerDoc::OnSaveEmbedding(IStorage*)
 *				_xZkqqHx_iBkL_xHqqkZx_
 *			CFCDynamicDrawDoc::OnSaveDocument(NULL)
 *				_xZkqqHx_iBkL_xHqqkZx_
 *			CFCFoundDoc::OnSaveDocument(NULL)
 *				_xZkqqHx_iBkL_xHqqkZx_
 *			COleServerDoc::OnSaveDocument(NULL)
 *				_xZkqqHx_iBkL_xHqqkZx_
 *			COleLinkingDoc::OnSaveDocument(NULL)
 *				_xZkqqHx_iBkL_xHqqkZx_
 *			COleDocument::OnSaveDocument(NULL)
 *				_xZkqqHx_iBkL_xHqqkZx_
 *			COleLinkingDoc::SaveToStorage(NULL)
 *				_xZkqqHx_iBkL_xHqqkZx_
 *			COleDocument::SaveToStorage(NULL)
 *				_xZkqqHx_iBkL_xHqqkZx_
 *			CFCFoundDoc::Serialize
 *				_xZkqqHx_iBkL_xHqqkZx_
 *			CFCFoundDoc::OutCoreFormat
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.06.11 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::InPortableFormat (CFile& file,
									FCCanvasStat* pCanvasStatRefer)
{
//----- 06.03.28 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	// PNG_xZkqqHx_iDhEiDeAiDeDiDiLiCkJiCoH_xHqqkZx_ mdRw_xZkqqHx_iDgAiDiDiDjDiDeOiDgGiBfLiDfOiCpAjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
//	WString wstrDocumentProperty[FD_DPID_END];	// _xZkqqHx_jFlGiPjBiDhGiDiNiDhAiDgFiDeCiBeC_xHqqkZx_
//	BYTEVector vCompressData;
//	FFPngRead32BitData(	file, NULL, NULL,
//						wstrDocumentProperty,
//						sizeof(wstrDocumentProperty) / sizeof(wstrDocumentProperty[0]),
//						&vCompressData);
//	//
//	// _xZkqqHx_iEkGiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkG_xHqqkZx_
//	// _xZkqqHx_iEkA_xHqqkZx_n Byte_xZkqqHx_iEkA_xHqqkZx_ 1 Byte _xZkqqHx_iEkA_xHqqkZx_      4 Byte      _xZkqqHx_iEkA_xHqqkZx_    n Byte    _xZkqqHx_iEkA_xHqqkZx_
//	// _xZkqqHx_iEkJiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkJ_xHqqkZx_
//	// _xZkqqHx_iEkAiDhHiDgCiDfPiEkAiIlDiPgLjFpLjGeAiEkAiJpAjDiAiMoDiDgGiBfLiDfOiDfEiDeDiDfJiEkAiBkGiIlDiPgLiDfEiDhFiDfCiDeBiEkA_xHqqkZx_
//	// _xZkqqHx_iEkA_xHqqkZx_      _xZkqqHx_iEkA_xHqqkZx_                                            _xZkqqHx_iEkA_xHqqkZx_
//	// _xZkqqHx_iEkA_xHqqkZx_      _xZkqqHx_iEkAiBkJiEjPiEjPiEjPiEjPiEjP_xHqqkZx_ LZ77_xZkqqHx_iDgGiBfLiDfOiDhFiDiNiDgCiDeO_xHqqkZx_ _xZkqqHx_iEjPiEjPiEjPiEjPiEjPiBkIiEkA_xHqqkZx_
//	// _xZkqqHx_iEkA_xHqqkZx_                                                    _xZkqqHx_iEkA_xHqqkZx_
//	// _xZkqqHx_iEkAiBkJiEjPiEjPiEjPiEjPiEjPiEjPiEjP_xHqqkZx_ mdRw_xZkqqHx_iDgAiDiDiDjDiDeOiDgGiBfLiDfO_xHqqkZx_ _xZkqqHx_iEjPiEjPiEjPiEjPiEjPiEjPiEjPiBkIiEkA_xHqqkZx_
//	//
//	const BYTE* bypCompressData = vCompressData.begin();
//	// _xZkqqHx_jEpBiIlDiPgLiDgGiBfLiDfOiDgPiDgCiDhEiDeAiBeC_xHqqkZx_
//	BYTEVector vRawDataBuff;
//	// _xZkqqHx_iDhHiDgCiDfPiCpAjAoGjDkKiCmJiLeMjIfOiBeC_xHqqkZx_
//	FFWriteStream(vRawDataBuff, bypCompressData, FCHeaderInf::GetStreamSize());
//	// _xZkqqHx_iDhHiDgCiDfPiDfEiDeDiDfJjFkKjBjHiCoJiBeC_xHqqkZx_
//	bypCompressData += FCHeaderInf::GetStreamSize();
//
//	// DD_xZkqqHx_jFlGiPjBiDhGiDiNiDhAiDgFiDeCiDfIiDgHiDiKiBfLiDiAiCpAiNoMjAkMiBeC_xHqqkZx_
//	BYTEVector vStreamProperty;
//	DocumentPropertyToStream(vStreamProperty, wstrDocumentProperty, FD_DPID_END);
//	// DD_xZkqqHx_jFlGiPjBiDhGiDiNiDhAiDgFiDeCiDfIiDgHiDiKiBfLiDiAiCpAiLeMjIfOiBeC_xHqqkZx_
//	vRawDataBuff << long(vStreamProperty.size());
//	FFWriteStream(vRawDataBuff, &vStreamProperty.front(), vStreamProperty.size());
//
//	// _xZkqqHx_jEpBiIlDiPgLiDgGiBfLiDfOiDgPiDgCiDhEiDeAiBeC_xHqqkZx_
//	// LZ77_xZkqqHx_iDgGiBfLiDfOiDhFiDiNiDgCiDeOiCpAiJpAjDiAiClFiBeBiDhEiDiJiDgCiDgHiDfEiDhFiDfCiDeBiCpAjDlOiCoJiBeC_xHqqkZx_
//	FFReadLZ77DataBlock(vRawDataBuff, bypCompressData, vCompressData.end() - bypCompressData);
//
//	// _xZkqqHx_iIlDiPgLiDgGiBfLiDfOiCpAiJpAjFpKiBeC_xHqqkZx_
//	vCompressData.clear();
//	// _xZkqqHx_jFfHiPiAiDhEiDeIiBfLiDhNiDgCiDgHjDpMjHmNiBeC_xHqqkZx_
//	InFcoreFormat(CMemFile(vRawDataBuff.begin(), vRawDataBuff.size()), pCanvasStatRefer);
//----- 06.03.28 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----

	FCUndoArchive ar(&file, FD_ARCHIVE_LOAD);
	// PNG_xZkqqHx_iDgGiBfLiDfOiCmM_xHqqkZx_MDRW_xZkqqHx_iDgAiDiDiDjDiDeOjBePiCnMiCmFiBgJiDeDiDiBiBfLiDfHiDgAiDiDiDjDiDeOiBeBiDhGiDiNiDhAiDgFiDeCiDgAiDiDiDjDiDeOiBgKiCpAjDmHiCnNiPgPiClHiBeC_xHqqkZx_
	WString wstrDocumentProperty[FD_DPID_END];	// _xZkqqHx_jFlGiPjBiDhGiDiNiDhAiDgFiDeCiBeC_xHqqkZx_
	FCPngReadStruct* ps = FFPngRead32Begin(	ar, NULL, NULL,
											wstrDocumentProperty,
											sizeof(wstrDocumentProperty) / sizeof(wstrDocumentProperty[0]));
	// MDRW_xZkqqHx_iDgAiDiDiDjDiDeOiCkKjBlGiNnNiClFiCmIiCkCiPoKiNiHiCmNiDhEiDeAiDeDiDiLjEgKjBlJiDeHiDiJiBfLiBeC_xHqqkZx_
	if (ps == NULL)
		FFThrowMiscException(IDS_ERR_FILE_DESTROIED);

	// Undo_xZkqqHx_iDhEiDeAiDeDiDiLiCkKjDpMiCmBiCmEiCkCiCoJiDgGiDeCiDiMiDeOiDgHiDiKiCmJiDiGiDgKiBfLiDeOiCmIiDhEiDeAiDeDiDiLjGlMiCpAiNoMjAkMiBeC_xHqqkZx_
	FCWorkFile workFileRawData;

	//
	// _xZkqqHx_iEkGiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkGiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkG_xHqqkZx_
	// _xZkqqHx_iEkA_xHqqkZx_n Byte_xZkqqHx_iEkA_xHqqkZx_ 1 Byte _xZkqqHx_iEkA_xHqqkZx_      4 Byte      _xZkqqHx_iEkA_xHqqkZx_    n Byte    _xZkqqHx_iEkA_xHqqkZx_
	// _xZkqqHx_iEkJiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkJiEjPiEjPiEjPiEjPiEjPiEjPiEjPiEkJ_xHqqkZx_
	// _xZkqqHx_iEkAiDhHiDgCiDfPiEkAiIlDiPgLjFpLjGeAiEkAiJpAjDiAiMoDiDgGiBfLiDfOiDfEiDeDiDfJiEkAiBkGiIlDiPgLiDfEiDhFiDfCiDeBiEkA_xHqqkZx_
	// _xZkqqHx_iEkA_xHqqkZx_      _xZkqqHx_iEkA_xHqqkZx_                                            _xZkqqHx_iEkA_xHqqkZx_
	// _xZkqqHx_iEkA_xHqqkZx_      _xZkqqHx_iEkAiBkJiEjPiEjPiEjPiEjPiEjP_xHqqkZx_ LZ77_xZkqqHx_iDgGiBfLiDfOiDhFiDiNiDgCiDeO_xHqqkZx_ _xZkqqHx_iEjPiEjPiEjPiEjPiEjPiBkIiEkA_xHqqkZx_
	// _xZkqqHx_iEkA_xHqqkZx_                                                    _xZkqqHx_iEkA_xHqqkZx_
	// _xZkqqHx_iEkAiBkJiEjPiEjPiEjPiEjPiEjPiEjPiEjP_xHqqkZx_ mdRw_xZkqqHx_iDgAiDiDiDjDiDeOiDgGiBfLiDfO_xHqqkZx_ _xZkqqHx_iEjPiEjPiEjPiEjPiEjPiEjPiEjPiBkIiEkA_xHqqkZx_
	//

	// _xZkqqHx_iNmFiPiJiCmM_xHqqkZx_MDRW_xZkqqHx_iDgAiDiDiDjDiDeOiCpAjDmHiCnNiPgPiClHiBeC_xHqqkZx_
	// _xZkqqHx_iNmFiPiJiCmM_xHqqkZx_MDRW_xZkqqHx_iDgAiDiDiDjDiDeOiCmMjAoGjDkKiCmJiCmNiBeBjEpBiIlDiPgLiCmMiDhHiDgCiDfPiPoOjFpBiCkKiLeMiNnKiClDiCoKiCmEiCkCiCoJiBeC_xHqqkZx_
	BYTEVector vCompressData;
	ps = FFPngRead32MdrwChunk(ps, vCompressData);
	const BYTE* bypCompressData = vCompressData.begin();
	// _xZkqqHx_iDhHiDgCiDfPjFjEjFkKiCpAiOoGiCoIiPgPiClFiCmEjAoGjDkKiCmJiPjBiCkLiNjOiCnOiBeC_xHqqkZx_
	workFileRawData.file.Write(bypCompressData, FCHeaderInf::GetStreamSize());
	// _xZkqqHx_iDhHiDgCiDfPiDfEiDeDiDfJjFkKjBjHiCoJiBeC_xHqqkZx_
	bypCompressData += FCHeaderInf::GetStreamSize();
	// DD_xZkqqHx_jFlGiPjBiDhGiDiNiDhAiDgFiDeCiDfIiDgHiDiKiBfLiDiAiCpAiNoMjAkMiBeC_xHqqkZx_
	BYTEVector vStreamProperty;
	DocumentPropertyToStream(vStreamProperty, wstrDocumentProperty, FD_DPID_END);
	// DD_xZkqqHx_jFlGiPjBiDhGiDiNiDhAiDgFiDeCiDfIiDgHiDiKiBfLiDiAiCpAiLeMjIfOiBeC_xHqqkZx_
	const long lDocPropertySize = vStreamProperty.size();
	workFileRawData.file.Write(&lDocPropertySize, sizeof(lDocPropertySize));
	workFileRawData.file.Write(&vStreamProperty.front(), vStreamProperty.size());
	vStreamProperty.clear();
	// _xZkqqHx_jEpBiIlDiPgLiDgGiBfLiDfOiDgPiDgCiDhEiDeAiBeC_xHqqkZx_
	BYTEVector vRawDataBuff;
	// _xZkqqHx_jEpBiIlDiPgLiDgGiBfLiDfOiDgPiDgCiDhEiDeAiBeC_xHqqkZx_
	// LZ77_xZkqqHx_iDgGiBfLiDfOiDhFiDiNiDgCiDeOiCpAiJpAjDiAiClFiBeBiDhEiDiJiDgCiDgHiDfEiDhFiDfCiDeBiCpAjDlOiCoJiBeC_xHqqkZx_
	FFReadLZ77DataBlock(vRawDataBuff, bypCompressData, vCompressData.end() - bypCompressData);
	// _xZkqqHx_iDhEiDiJiDgCiDgHiDfEiDhFiDfCiDeBiCpAiPjBiCkLiNjOiCnOiBeC_xHqqkZx_
	workFileRawData.file.Write(&vRawDataBuff.front(), vRawDataBuff.size());
	// _xZkqqHx_iIpIiCkLjBlBiCkL_xHqqkZx_MDRW_xZkqqHx_iDgAiDiDiDjDiDeOiCkKiCkAiCoJiPoKiNiHiCmNiBeBjBlBiCkPiCmEjDmHiCnNiPgPiClHiBeC_xHqqkZx_
	if (ps != NULL)
	{
		for (;;)
		{
			// MDRW_xZkqqHx_iDgAiDiDiDjDiDeOiCpAjDmHiCnNiPgPiClHiBeC_xHqqkZx_
			ps = FFPngRead32MdrwChunk(ps, vCompressData);
			if (ps == NULL) break;
			// _xZkqqHx_jEpBiIlDiPgLiDgGiBfLiDfOiDgPiDgCiDhEiDeAiBeC_xHqqkZx_
			// LZ77_xZkqqHx_iDgGiBfLiDfOiDhFiDiNiDgCiDeOiCpAiJpAjDiAiClFiBeBiDhEiDiJiDgCiDgHiDfEiDhFiDfCiDeBiCpAjDlOiCoJiBeC_xHqqkZx_
			FFReadLZ77DataBlock(vRawDataBuff, &vCompressData.front(), vCompressData.size());
			// _xZkqqHx_iDhEiDiJiDgCiDgHiDfEiDhFiDfCiDeBiCpAiPjBiCkLiNjOiCnOiBeC_xHqqkZx_
			workFileRawData.file.Write(&vRawDataBuff.front(), vRawDataBuff.size());
		}
	}
	// _xZkqqHx_iIlDiPgLiDgGiBfLiDfOiCpAiJpAjFpKiBeC_xHqqkZx_
	vCompressData.clear();
	// _xZkqqHx_jEpBiIlDiPgLiDgGiBfLiDfOiDgPiDgCiDhEiDeAiCpAiJpAjFpKiBeC_xHqqkZx_
	vRawDataBuff.clear();
	// _xZkqqHx_jFfHiPiAiDhEiDeIiBfLiDhNiDgCiDgHjDpMjHmNiBeC_xHqqkZx_
	workFileRawData.file.Seek(0, CFile::begin);
	InFcoreFormat(workFileRawData.file, pCanvasStatRefer);
//----- 06.03.28 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
} // CFCFoundDoc::InPortableFormat.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnOpenMdrwDocument
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFkBiNiHiDhEiDeAiDeDiDiLiCpAiKeKiCkNiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	wcpFilePath	:_xZkqqHx_iKeKiCkNiCnHiCkLiDhEiDeAiDeDiDiLjGlMiCpAiOhHjCoIiBeC_xHqqkZx_OLE_xZkqqHx_iCmMiPoKiNiHiCmN_xHqqkZx_NULL_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_jAkMiMpHiClFiClNiPoKiNiHiCmN_xHqqkZx_TRUE_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	OnOpenDocument _xZkqqHx_iCmFjFkBiNiHiDhEiDeAiDeDiDiLiCkKiOhHjCoIiClDiCoKiClNiPoKiNiHiCmJiBeBiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *			_xZkqqHx_jCmKiPoNiCmMiDhEiDeAiDeDiDiLiBeBiIlNiCkCiCmNiCgOiCgLiCgEiDfIiDgHiDiMiBfLiDfHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.03.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCFoundDoc::OnOpenMdrwDocument (const wchar_t* wcpFilePath)
{
	// _xZkqqHx_iClBiCmMiKnGjAjEiCmFiBeB_xHqqkZx_m_lpRootStg _xZkqqHx_iCpA_xHqqkZx_ _xZkqqHx_jAfGiClFiCkNiNoMiCmBiClNiDfIiDgHiDiMiBfLiDfHiCmFjChFiCkLiKlHiCkGiCoJiBeC_xHqqkZx_
	// _xZkqqHx_iClLiCmMiCnMiCnMiBeB_xHqqkZx_DeleteContents_xZkqqHx_iKnGjAjEiCkKiMmEiCmOiCoKiCoJiCnMiCmFjChFiCkLiKlHiCkGiClNiCnMiCnMiCmJ_xHqqkZx_
	// _xZkqqHx_iClFiCmEiCkIiCkNiBeC_xHqqkZx_
	// _xZkqqHx_iDhEiDiJiDgCiDgHiDhEiDeAiDeDiDiLiCmMiCgOiCgLiCgEiCpAjDmHiCnNiNjOiCpBiClOiCoIiDeDiDjDiDhMiBfLiDgHiClFiClNiCoIiClHiCoJiCmGiBeB_xHqqkZx_
	// m_lpRootStg _xZkqqHx_iCmJiDfEiDhFiDfIiDgHiDiMiBfLiDfHiCkKiNoMiCoHiCoKiCoJiCoGiCkEiCmIiCmMiCmFiBeB_xHqqkZx_
	// _xZkqqHx_iPoNiCmJ_xHqqkZx_m_lpRootStg _xZkqqHx_iCmJjAfGiDfIiDgHiDiMiBfLiDfHiCkKiCkAiCoJiCoGiCkEiCmJiClHiCoJiBeC_xHqqkZx_
	// _xZkqqHx_iDhEiDeAiDeDiDiLiCpAjFnLjBlGiClHiCoJiCmGiCkLiCmNiBeBjAfGiDfIiDgHiDiMiBfLiDfHiCmJiDhEiDeAiDeDiDiLiCpAiPjBiCkLiNjOiCnNiBeB_xHqqkZx_
	// _xZkqqHx_iClLiCoKiCpA_xHqqkZx_ _xZkqqHx_iDeJiDiKiDfHiDgJiDiLiDfIiDgHiDiMiBfLiDfHiCmJjFkBiOmKiClHiCoJiBeC_xHqqkZx_
	// _xZkqqHx_iLiMiMgAiOkOiCmMiDhEiDeAiDeDiDiLiCpAjFnLjBlGiClHiCoJiPoKiNiHiCoAiBeBiClBiCmMiCnJiCkEiCkKjDhDiNiHiCkKjHmHiCkCiBeC_xHqqkZx_

	//----- Superclass_xZkqqHx_iKnGjAjEiOmAiNhD_xHqqkZx_ -----
	// _xZkqqHx_iImIiJlKiCmMiPiIjHjNjCiGiCkJiCoH_xHqqkZx_DeleteContents_xZkqqHx_iCpAiOmAiNhDiBeC_xHqqkZx_
	if (!BASE_CLASS::OnOpenDocument(WStrToTStr(wcpFilePath)))
	//----- _xZkqqHx_iDhEiDeAiDeDiDiLiCmMiDeJiBfLiDhGiDjDiCmJiOlIjEhDiClFiClNiPoKiNiH_xHqqkZx_ -----
	{
		if (wcpFilePath != NULL &&
			FCRecentList::Find(NULL, wcpFilePath, NULL) != -1)
		//----- _xZkqqHx_iNmFiLnPiOgHiCmBiClNiDhEiDeAiDeDiDiLiDiKiDfIiDgHiCmJjBlGiNnNiClHiCoJiPoKiNiH_xHqqkZx_ -----
		{
			// _xZkqqHx_iNmFiLnPiOgHiCmBiClNiDhEiDeAiDeDiDiLiCmMiDiKiDfIiDgHiCkJiCoHjDgPjIfOiCpAiNoNiPjMiClFiCnMiClHiCkJiBeI_xHqqkZx_
			if (FFMessageBox(IDS_MSG_IS_REMOVE_RECENT_FILE, 0, MB_YESNO) == IDYES)
			//----- YES_xZkqqHx_iCmMiPoKiNiH_xHqqkZx_ -----
			{
				// _xZkqqHx_iDiBiDgKiDiFiBfLiBhFiNmFiLnPiOgHiCmBiClNiDhEiDeAiDeDiDiLiBhGiCkJiCoHiNoNiPjMiBeC_xHqqkZx_
				for (;;)
				{
					short nRecentIndex = FCRecentList::Find(NULL, wcpFilePath, NULL);
					if (nRecentIndex == -1) break;
					FCRecentList::Del(nRecentIndex);
				}
			}
		}
		// _xZkqqHx_jFlGiPjBiCmNjFmCiClGiClNiPpDjBnEiCmJiCmIiCoJiClNiCnPiBeBjBfDiJoGjGmKiCpAiNmEjFgAiJoGiBeC_xHqqkZx_
		g_pView->SendRgnRedraw(TRUE);
		return FALSE;
	}

	//----- ReadOnly_xZkqqHx_iCkJiCmHiCkEiCkJiCpAjClCiCnHiCoJ_xHqqkZx_ -----
	BOOL bIsReadOnly;
	STATSTG ststg;
	// _xZkqqHx_iDfIiDgHiDiMiBfLiDfHiCmMiPpDjBnEiCpAjClCiCnHiCoJiBeCiDgIiDeMiDiFiDiBiDjDiDgHiDhEiDeAiDeDiDiLiCmN_xHqqkZx_ReadOnly_xZkqqHx_iCkJiBeI_xHqqkZx_
	m_lpRootStg->Stat(&ststg, 0);
	if (ststg.grfMode & STGM_WRITE || ststg.grfMode & STGM_READWRITE)
		bIsReadOnly = FALSE;
	else
		bIsReadOnly = TRUE;

//----- 06.05.03 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_iDhEiDeIiDiLiDfPjDoAiCmFiJeFiDeOiDiKiDgCiDeOiDiBiDgKiDiFiBfLiCkJiCoHjAfGiLeLiNoMjAkMiClFiClNiBhF_xHqqkZx_Dynamic Draw Document_xZkqqHx_iBhGiCmN_xHqqkZx_
	// _xZkqqHx_jCiGjAgHiCkKiLpDiCmIiCmMiCmFiBeBiClBiCoKiCmJjBmOiJjOiClHiCoJiBeC_xHqqkZx_
	if (m_headerInf.GetFileType() == FD_DTP_NONE)
	//----- _xZkqqHx_iDhHiDgCiDfPiPoOjFpBiCmJiDhEiDeAiDeDiDiLiDfOiDeDiDhGiCkKjAnNjCoIiClDiCoKiCmEiCkCiCmIiCkCiPoKiNiHiBeB_xHqqkZx_
	//		_xZkqqHx_jBkGiClP_xHqqkZx_ lpszPathName _xZkqqHx_iCmMiDhEiDeAiDeDiDiLiDfEiDeDiDfJ_xHqqkZx_ = 0 _xZkqqHx_iCmMiPoKiNiH_xHqqkZx_ ------
	{
		// _xZkqqHx_iDhHiDgCiDfPiPoOjFpBiCpAiPiJiKpKiJlLiBeC_xHqqkZx_
		m_headerInf.Init();
		// _xZkqqHx_iNoMjAkMjDpKiOjOiCpAiPiJiKpKiJlLiBeC_xHqqkZx_
		m_headerInf.InitCreateTime();
		WString strTmpl;
		// _xZkqqHx_jFfHiPiAiDgFiDjDiDhGiDiMiBfLiDgHiDhEiDeAiDeDiDiLjAnNjCoIiBeC_xHqqkZx_
		LoadStdTemplate(strTmpl);

	}
//----- 06.05.03 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----

	if (m_headerInf.GetFileVersion() != FCHeaderInf::GetStcFileVersion())
	//----- _xZkqqHx_iLiMiMgAiOkOiCmMiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iLiMiMgAiOkOiCmMiPoKiNiHiBeBiDhEiDeAiDeDiDiLjDmHiCnNiNjOiCnNjDhCjCiGiCmFiPiIjHjNiCpAjCiGjCgGiClFiCmE_xHqqkZx_
		// Serialize _xZkqqHx_iCpAiPeJjHlJiClHiCoJiBgJ_xHqqkZx_m_headerInf_xZkqqHx_iCmMiCnNjAnNjCoIiClDiCoKiCmEiCkCiCoJiBgKiBeC_xHqqkZx_
		// _xZkqqHx_iClBiCmMiClNiCnPiCnMiClOiDgGiBfLiDfOiCmNjDmHiCnNiNjOiCnMiCoKiCmEiCkCiCmIiCkCiBeC_xHqqkZx_

		// _xZkqqHx_iDhEiDiJiDgCiDgHiDfCiDeBiCpAjDmHiCnNiNjOiCnOiNnLiBeB_xHqqkZx_OLE_xZkqqHx_iCmMjDmHiCnNiNjOiCnNiCmF_xHqqkZx_ m_lpRootStg _xZkqqHx_iCmJ_xHqqkZx_
		// _xZkqqHx_iDfEiDhFiDfIiDgHiDiMiBfLiDfHiCpAiNoMjAkMiClHiCoJiJmCjEfMjAkLiCkKiCkAiCoJiBeC_xHqqkZx_
		// _xZkqqHx_iClBiCmMiClNiCnPiBeBiIoKiOjOjDeJiCmIiDfIiDgHiDiMiBfLiDfHiCpAiNoMjAkMiClFiBeB_xHqqkZx_m_lpRootStg _xZkqqHx_iCmJjAnNjCoIiClFiCmEiCkIiCkNiBeC_xHqqkZx_
		// m_lpRootStg _xZkqqHx_iCmMiDfIiDgHiDiMiBfLiDfHiCmNiLiMiMgAiOkOiCmIiCmMiCmFiBeBiClBiCmMiCnMiCnM_xHqqkZx_ m_lpRootStg _xZkqqHx_iCmJ_xHqqkZx_
		// _xZkqqHx_iOgDiClFiCmEiCkIiCkNiCmMiCmNiCnMiClIiCkCiBeC_xHqqkZx_

		//---- _xZkqqHx_iDhEiDeAiDeDiDiLjFmPiKlHiPiIjHjNiCmMiMhIiNjAiDiBiDgCiDfKiBfLiDfHiCpAjFfMiOkG_xHqqkZx_ -----
		if (!(g_->appMode & FD_RUNMODE_REPAIR_DOCUMENT))
		//----- _xZkqqHx_iPeDjFjMiOjOiImIiKePiCmNiDiBiDgCiDfKiBfLiDfHjFfMiOkG_xHqqkZx_ -----
		{
			// _xZkqqHx_iDgPiBfLiDfHiDiHiDjD_xHqqkZx_ %s _xZkqqHx_iCmMjFlGiPjBiDhEiDeAiDeDiDiLiCmFiClHiBeCjFmPiKlHiClFiCmEjDmHiCnNiNjOiCnNiCnMiClHiBeC_xHqqkZx_
			FFErrorBox(IDS_MSG_DOC_DIFF_VER_AND_CONVERT,
				(const wchar_t*)FCHeaderInf::FileVersionToString(m_headerInf.GetFileVersion()));
		}

		// TMP_xZkqqHx_iDgGiDeCiDiMiDeOiDgHiDiKiCmJiDiGiDgKiBfLiDeOiCmIiDhEiDeAiDeDiDiLjGlMiCpAiNoMjAkMiBeC_xHqqkZx_
		WString wstrTmpPath;
		FFMakeUniqTmpFileName(wstrTmpPath, L"work", L".tmp");
		// TMP_xZkqqHx_iDgGiDeCiDiMiDeOiDgHiDiKiCmJjAfGiClFiCkCiDfIiDgHiDiMiBfLiDfHiCpAiNoMjAkMiBeC_xHqqkZx_
		// wstrTmpPath_xZkqqHx_iCmMjBoDiCoNiCoIiCmJ_xHqqkZx_NULL_xZkqqHx_iCpAiOhHjCoIiClHiCoKiCmOiIoKiOjOiDfIiDgHiDiMiBfLiDfHiCpA_xHqqkZx_
		// _xZkqqHx_iNoMjAkMiCmFiCkLiCoJiCkKiBeBiDfDiDhOiCkKiOgDiCmBiCmEiCoAiOkJjDkOiCmFiNoNiPjMiCmFiCkLiCoJiCoGiCkE_xHqqkZx_
		// _xZkqqHx_jGlMjBePiCpAiCmCiCkPiCmEiNoMjAkMiClHiCoJiBeC_xHqqkZx_
		LPSTORAGE lpNewStorage = NULL;
		SCODE sc = ::StgCreateDocfile(wstrTmpPath,
			STGM_READWRITE|STGM_TRANSACTED|STGM_SHARE_DENY_WRITE|STGM_CREATE,
			0, &lpNewStorage);
		// _xZkqqHx_iDfIiDgHiDiMiBfLiDfHiCkKiNoMjAkMiCmFiCkLiCmIiCkCiPoKiNiHiCmN_xHqqkZx_FALSE_xZkqqHx_iBeC_xHqqkZx_
		if (sc != S_OK) return FALSE;

		try
		{
			// m_lpRootStg _xZkqqHx_iCpAjFnLjBlGiClFiBeBjAfGiClFiCkCiDfIiDgHiDiMiBfLiDfHiCmJjDpMiCoKjBnGiCkGiCoJiBeC_xHqqkZx_
			LPSTORAGE lpOrigStorage = m_lpRootStg;
			const FCAutoBackup<LPSTORAGE> backupStorage(m_lpRootStg, lpNewStorage);
			// _xZkqqHx_iMlDiCmMiDfIiDgHiDiMiBfLiDfHiCkJiCoHiDgGiBfLiDfOiCpAjDmHiCnNiPgPiClFiCmE_xHqqkZx_V4_xZkqqHx_iCmMiDhEiDiJiDgCiDgHiDfCiDeBiCmJjFmPiKlHiBeC_xHqqkZx_
			// _xZkqqHx_iDhEiDiJiDgCiDgHiDfCiDeBiCpAjDmHiCnNiNjOiCnOiBeCiClBiCmMiNnL_xHqqkZx_ OLE_xZkqqHx_iCmIiCmHiCmN_xHqqkZx_lpNewStorage_xZkqqHx_iCmJjAnNjCoIiClDiCoKiCoJiBeC_xHqqkZx_
			InVersionCcoreFormat(lpOrigStorage, FCHeaderInf::FileVersionToString(m_headerInf.GetFileVersion()));
		} catch (CException* e)
		//----- _xZkqqHx_iDeHiDiJiBfLiPiIjHjN_xHqqkZx_ -----
		{
			// _xZkqqHx_iDeHiDiJiBfLiDiBiDgCiDfKiBfLiDfHjFfMiOkGiBeC_xHqqkZx_
			e->ReportError();
			e->Delete();
			// _xZkqqHx_iIoKiOjOiDfIiDgHiDiMiBfLiDfHiCpAiNoNiPjMiBeC_xHqqkZx_
			lpNewStorage->Release();
			FFDeleteFile(wstrTmpPath);
			return FALSE;
		}
		// m_lpRootStg _xZkqqHx_iCpAjBoDjHjNiDfIiDgHiDiMiBfLiDfHiCmJjFmPiNfIiBeC_xHqqkZx_
		m_lpOriginalStorage = m_lpRootStg;
		m_lpRootStg = lpNewStorage;
		m_lpSubstStorage = lpNewStorage;
		m_wstrSubstFilePath = wstrTmpPath;
	}
	m_bIsReadOnly = bIsReadOnly;
	return TRUE;
} // CFCFoundDoc::OnOpenMdrwDocument.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnOpenMdpfDocument
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhEiDiJiDgCiDgHiDhEiDeAiDeDiDiLiCpAiKeKiCkNiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	wcpFilePath	:_xZkqqHx_iKeKiCkNiCnHiCkLiDhEiDeAiDeDiDiLjGlMiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_jAkMiMpHiClFiClNiPoKiNiHiCmN_xHqqkZx_TRUE_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	OnOpenDocument _xZkqqHx_iCmFiDhEiDiJiDgCiDgHiDhEiDeAiDeDiDiLiCkKiOhHjCoIiClDiCoKiClNiPoKiNiHiCmJiBeBiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.03.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCFoundDoc::OnOpenMdpfDocument (const wchar_t* wcpFilePath)
{
	// _xZkqqHx_iDhEiDeAiDeDiDiLiDfPiDhFiDiLiDeOiDiKiDgCiDeOiCmJiCoGiCoJiLeOjDkOiCmMiPoKiNiHiBeB_xHqqkZx_OnNewDocument _xZkqqHx_iCpAiMgPiCmIiCkCiClNiCnPiBeB_xHqqkZx_
	// m_pRootStrage == NULL _xZkqqHx_iCmGiCmIiCoIiBeB_xHqqkZx_OLE_xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiCmMjDmHiCnNiNjOiCnNiCkKiPgPjHiIiCmIiCkCiBeC_xHqqkZx_
	// _xZkqqHx_iClBiCoKiCpAjEpAiCkPiCoJiClNiCnPiBeBiClBiClBiCmF_xHqqkZx_BASE_CLASS::OnNewDocument_xZkqqHx_iCpAiOmAiNhDiClHiCoJiBeC_xHqqkZx_
	BASE_CLASS::OnNewDocument();
	DeleteContents();

	// _xZkqqHx_iDhEiDiJiDgCiDgHiDhEiDeAiDeDiDiLiCpAiDeJiBfLiDhGiDjDiBeC_xHqqkZx_
	if (m_pFileOpen->Open(WStrToTStr(wcpFilePath), CFile::modeReadWrite | CFile::shareDenyWrite, NULL))
	//----- Read/Write _xZkqqHx_iCmFiDeJiBfLiDhGiDjDiCmFiCkLiClNiPoKiNiH_xHqqkZx_ -----
	{
		m_bIsReadOnly = FALSE;
	} else
	if (m_pFileOpen->Open(WStrToTStr(wcpFilePath), CFile::modeRead | CFile::shareDenyNone, NULL))
	//----- Read _xZkqqHx_iCmFiDeJiBfLiDhGiDjDiCmFiCkLiClNiPoKiNiH_xHqqkZx_ -----
	{
		m_bIsReadOnly = TRUE;
	} else
	//----- _xZkqqHx_iDeJiBfLiDhGiDjDiCmFiCkLiCmIiCkJiCmBiClNiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iDhEiDeAiDeDiDiLiBhF_xHqqkZx_%s_xZkqqHx_iBhGiCpAiDeJiBfLiDhGiDjDiCmFiCkLiCnMiClJiCpBiBeC_xHqqkZx_
		FFErrorBox(	IDS_ERR_MSG_CANNOT_OPEN_FILE,
					wcpFilePath);
		// _xZkqqHx_iNmFiLnPiOgHiCmBiClNiDhEiDeAiDeDiDiLiCmMiDiKiDfIiDgHiCkJiCoHjDgPjIfOiCpAiNoNiPjMiClFiCnMiClHiCkJiBeI_xHqqkZx_
		if (FFMessageBox(IDS_MSG_IS_REMOVE_RECENT_FILE, 0, MB_YESNO) == IDYES)
		//----- YES_xZkqqHx_iCmMiPoKiNiH_xHqqkZx_ -----
		{
			// _xZkqqHx_iDiBiDgKiDiFiBfLiBhFiNmFiLnPiOgHiCmBiClNiDhEiDeAiDeDiDiLiBhGiCkJiCoHiNoNiPjMiBeC_xHqqkZx_
			for (;;)
			{
				short nRecentIndex = FCRecentList::Find(NULL, wcpFilePath, NULL);
				if (nRecentIndex == -1) break;
				FCRecentList::Del(nRecentIndex);
			}
		}
		// _xZkqqHx_jFlGiPjBiCmNjFmCiClGiClNiPpDjBnEiCmJiCmIiCoJiClNiCnPiBeBjBfDiJoGjGmKiCpAiNmEjFgAiJoGiBeC_xHqqkZx_
		g_pView->SendRgnRedraw(TRUE);
		return FALSE;
	}

	// _xZkqqHx_jCiGjAgHiCkKiLpDiCmMiDhEiDeAiDeDiDiLiCmMiPoKiNiHiCoAiCkAiCoJiClBiCmGiCmJjCiNiInDiBeC_xHqqkZx_
	if (m_pFileOpen->GetLength() != 0)
	//----- _xZkqqHx_iDhEiDeAiDeDiDiLjClHiCkK_xHqqkZx_0_xZkqqHx_iCmFiCmIiCkCiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iDhEiDeAiDeDiDiLiImKjChFiCpAjAoGjDkKiCmJiBeC_xHqqkZx_
		m_pFileOpen->SeekToBegin();
		// _xZkqqHx_iDhEiDeIiDiLiDfPjDoAiCmFiJeFiDeOiDiKiDgCiDeOiDiBiDgKiDiFiBfLiCkJiCoHjAfGiLeLiNoMjAkMiClFiClN_xHqqkZx_
		// _xZkqqHx_jFlGiPjBiDhEiDeAiDeDiDiLiCmNiBeBiLpDiCmMiDhEiDeAiDeDiDiLiBeC_xHqqkZx_
		InPortableFormat(*m_pFileOpen, NULL);
	}
	return TRUE;
} // CFCFoundDoc::OnOpenMdpfDocument.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnSaveMdrwDocument
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFkBiNiHiDhEiDeAiDeDiDiLiCpAjFnLjBlGiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	wcpFilePath	:_xZkqqHx_jFnLjBlGiClHiCnHiCkLiDhEiDeAiDeDiDiLjGlMiCpAiOhHjCoIiBeC_xHqqkZx_OLE_xZkqqHx_iCmMiPoKiNiHiCmN_xHqqkZx_NULL_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_jAkMiMpHiClFiClNiPoKiNiHiCmN_xHqqkZx_TRUE_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	OnSaveDocument _xZkqqHx_iCmFjFkBiNiHiDhEiDeAiDeDiDiLiCkKiOhHjCoIiClDiCoKiClNiPoKiNiHiCmJiBeBiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *			_xZkqqHx_jCmKiPoNiCmMiDhEiDeAiDeDiDiLiBeBiIlNiCkCiCmNiCgOiCgLiCgEiDfIiDgHiDiMiBfLiDfHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.03.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCFoundDoc::OnSaveMdrwDocument (	const wchar_t* wcpFilePath,
										BOOL bShowConvWarnning)
{
	if (wcpFilePath != NULL && !m_bRemember)
	//----- _xZkqqHx_jGlMjBePiCpAiCmCiCkPiCmEiDfCiDhDiBfLiCpAjFnLjBlGiClHiCoJiPoKiNiH_xHqqkZx_ -----
	{
		// wcpFilePath != NULL _xZkqqHx_iCmNiBeB_xHqqkZx_!IsEmbedded() _xZkqqHx_iCmFiCmNiCkCiCkPiCmIiCkCiBeC_xHqqkZx_
		// OLE_xZkqqHx_jFnCiPfHjCiGiCmJ_xHqqkZx_ _xZkqqHx_jGlMjBePiCpAiCmCiCkPiCmEiDfCiDhDiBfLjFnLjBlG_xHqqkZx_ _xZkqqHx_iCkKiOmAiNhDiClDiCoKiCoJiPoKiNiHiCkKiCkAiCoJiClNiCnPiBeC_xHqqkZx_
		// Save Copy As _xZkqqHx_iCmMiDfAiBfLiDfIiBeC_xHqqkZx_
		// _xZkqqHx_iDhEiDeAiDeDiDiLiDgPiBfLiDfHiDiHiDjDiCmNjDkPiClGiCmFiCmIiCkPiCoKiCmOiCmIiCoHiCmIiCkCiBeC_xHqqkZx_
		if (wcscmp(FCHeaderInf::GetStcFileVersionString(), m_wstrSaveVersion) != 0)
			FFThrowMiscUnknown();
		// Baseclass_xZkqqHx_iKnGjAjEiCpAiOmAiNhDiBeCjAfGiClFiCkCiDfIiDgHiDiMiBfLiDfHiCpAiNoMjAkMiClFiBeB_xHqqkZx_m_lpRootStg _xZkqqHx_iCpA_xHqqkZx_
		// _xZkqqHx_jChFiCkLiKlHiCkGiClNiMoDiCmJjFnLjBlGiBeCiClLiCmMiCkAiCmG_xHqqkZx_ m_lpRootStg _xZkqqHx_iCpAiMlDiCmJjGnPiClHiBeC_xHqqkZx_
		// _xZkqqHx_iJlNiCmMjFjLiNoMjHhAiCoAjGlDiCkCiClNiCnPiBeBiClLiCmMiCnMiCnM_xHqqkZx_Baseclass_xZkqqHx_iKnGjAjEiCpAiOmAiNhDiClHiCoJiBeC_xHqqkZx_
		return BASE_CLASS::OnSaveDocument(WStrToTStr(wcpFilePath));
	}

	if (m_lpSubstStorage == NULL)
	//----- _xZkqqHx_iCnMiClOjBoDjHjNiDfIiDgHiDiMiBfLiDfHiCkKiNoMiCoHiCoKiCmEiCkCiCmIiCkCiPoKiNiH_xHqqkZx_ -----
	{
		// TMP_xZkqqHx_iDgGiDeCiDiMiDeOiDgHiDiKiCmJiDiGiDgKiBfLiDeOiCmIiDhEiDeAiDeDiDiLjGlMiCpAiNoMjAkMiBeC_xHqqkZx_
		WString wstrTmpPath;
		FFMakeUniqTmpFileName(wstrTmpPath, L"work", L".tmp");
		// _xZkqqHx_iIoKiOjOiDfIiDgHiDiMiBfLiDfHiCpAiNoMjAkMiBeC_xHqqkZx_
		LPSTORAGE lpNewStorage = NULL;
		SCODE sc = ::StgCreateDocfile(wstrTmpPath,
			STGM_READWRITE|STGM_TRANSACTED|STGM_SHARE_DENY_WRITE|STGM_CREATE,
			0, &lpNewStorage);
		// _xZkqqHx_iNoMjAkMiCmFiCkLiCmIiCkCiPoKiNiHiCmNjFjMiLeBiBeC_xHqqkZx_
		if (sc != S_OK) return FALSE;

		// _xZkqqHx_iClBiClBiCmFiBeB_xHqqkZx_m_lpRootStg->CopyTo(0, NULL, NULL, lpNewStorage) _xZkqqHx_iCpAiOgHiCmBiCmE_xHqqkZx_
		// _xZkqqHx_iCkCiClNiCkKiBeBiClBiCkEiClHiCoJiCmGiLhEjFpLiMpMiCmM_xHqqkZx_ CopyTo _xZkqqHx_iCkKiBgJjDkOiNoMiCmNiClHiCoJiCkKiBgKiDeHiDiJiBfLiCpAjFnEiClHiCoGiCkEiCmJiCmIiCoJiBeC_xHqqkZx_
		// _xZkqqHx_iClLiCmMiClNiCnPiBeB_xHqqkZx_SaveToStorage()_xZkqqHx_iCmFjFnLjBlGiClHiCoJiCoGiCkEiCmJiClFiClNiBeC_xHqqkZx_
		try
		{
//----- 06.06.23 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//			// m_lpRootStg _xZkqqHx_iCpAjFnLjBlGiClFiBeBjAfGiClFiCkCiDfIiDgHiDiMiBfLiDfHiCmJjDpMiCoKjBnGiCkGiCoJiBeC_xHqqkZx_
//			LPSTORAGE lpOrigStorage = m_lpRootStg;
//			const FCAutoBackup<LPSTORAGE> backupStorage(m_lpRootStg, lpNewStorage);
//			const FCAutoBackup<BOOL> backupSameAsLoad(m_bSameAsLoad, FALSE);
//			const FCAutoBackup<BOOL> backupRemember(m_bRemember, TRUE);
//			// _xZkqqHx_jFnLjBlGiClHiCoJiBeC_xHqqkZx_
//			SaveToStorage();
//			// OLE_xZkqqHx_iDeBiDeDiDgFiDiAiCmJiDfIiDgHiDiMiBfLiDfHiPoOjFpBiCkKiOgDiCoJiCmMiCmFiBeBiClLiCoKiCpAiPmBiLiOiBeC_xHqqkZx_
//			CommitItems(TRUE);
//----- 06.06.23 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
			// m_lpRootStg _xZkqqHx_iCpAjFnLjBlGiClFiBeBjAfGiClFiCkCiDfIiDgHiDiMiBfLiDfHiCmJjDpMiCoKjBnGiCkGiCoJiBeC_xHqqkZx_
			const FCAutoBackup<LPSTORAGE> backupStorage(m_lpRootStg, lpNewStorage);
//----- 06.06.23 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//			const FCAutoBackup<BOOL> backupSameAsLoad(m_bSameAsLoad, FALSE);
//			const FCAutoBackup<BOOL> backupRemember(m_bRemember, TRUE);
//----- 06.06.23 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
			// _xZkqqHx_jAfGiClFiCkCiDfIiDgHiDiMiBfLiDfHiCmJiKgNiOmAiCmJjFnLjBlGiClDiCoKiCoJiCoGiCkEiBeB_xHqqkZx_
			// SaveToStorage _xZkqqHx_iCmMiOmAiNhDjBePiCmJ_xHqqkZx_ m_bSameAsLoad = FALSE, m_bRemember = TRUE _xZkqqHx_iCpA_xHqqkZx_
			// _xZkqqHx_jAnNjCoIiClFiCmEiCkCiClNiCkKiBeB_xHqqkZx_Windows 98 _xZkqqHx_iCmF_xHqqkZx_DD4_xZkqqHx_iCmJiDhJiDeDiDjDiDgHiCkJiCoHjDfMiCoIjFhEiCkPiClFiCmE_xHqqkZx_
			// mdrw_xZkqqHx_iMgAiOkOiCmFjFnLjBlGiClFiCoGiCkEiCmGiClHiCoJiCmGiBeBiDeHiDiJiBfLiCkKjEkNjAlGiClFiClNiBeC_xHqqkZx_
			// m_bSameAsLoad_xZkqqHx_iBeB_xHqqkZx_m_bRemember _xZkqqHx_iCmMjAnNjCoIiCpAiClJiClIiCmGiCoAiBeBiDgFiDfIiDgHiClFiClNiMiLiJmK_xHqqkZx_
			// _xZkqqHx_jGoCjBoIiCmIiCkNjDkOiNoMiClFiClNiClNiCnPiBeBiKePiClFiClNiBeC_xHqqkZx_

			// _xZkqqHx_jFnLjBlGiClHiCoJiBeC_xHqqkZx_
			SaveToStorage();
			// OLE_xZkqqHx_iDeBiDeDiDgFiDiAiCmJiDfIiDgHiDiMiBfLiDfHiPoOjFpBiCkKiOgDiCoJiCmMiCmFiBeBiClLiCoKiCpAiPmBiLiOiBeC_xHqqkZx_
			CommitItems(TRUE);
//----- 06.06.23 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
		} catch (CException* e)
		//----- _xZkqqHx_iDeHiDiJiBfLiPiIjHjN_xHqqkZx_ -----
		{
			// _xZkqqHx_iDeHiDiJiBfLiDiBiDgCiDfKiBfLiDfHjFfMiOkGiBeC_xHqqkZx_
			e->ReportError();
			e->Delete();
			// _xZkqqHx_iIoKiOjOiDfIiDgHiDiMiBfLiDfHiCpAiNoNiPjMiBeC_xHqqkZx_
			lpNewStorage->Release();
			FFDeleteFile(wstrTmpPath);
			return FALSE;
		}
		// m_lpRootStg _xZkqqHx_iCmJjBoDjHjNiDfIiDgHiDiMiBfLiDfHiCpAjAnNjCoIiBeC_xHqqkZx_
		m_lpOriginalStorage = m_lpRootStg;
		m_lpRootStg = lpNewStorage;
		m_lpSubstStorage = lpNewStorage;
		m_wstrSubstFilePath = wstrTmpPath;
	}
	if (wcpFilePath == NULL)
	//----- OLE_xZkqqHx_iCmMiPoKiNiH_xHqqkZx_ -----
	{
		// OLE_xZkqqHx_iCmMiPoKiNiHiBeBjFnLjBlGjAoGiDfIiDgHiDiMiBfLiDfHiCkKjFmPiNfIiClDiCoKiCoJiPoKiNiHiCoAiCkAiCoJiCkKiBeB_xHqqkZx_
		// _xZkqqHx_jFnLjBlGjAoGiCmN_xHqqkZx_ OnSaveDocument_xZkqqHx_iCpAiMmEiCnBiPgPiClHjBePiCmJ_xHqqkZx_ m_lpOriginalStorage _xZkqqHx_iCmJjAnNjCoI_xHqqkZx_
		// _xZkqqHx_iClDiCoKiCoJiCoGiCkEiCmJiCmIiCmBiCmEiCkCiCoJiBgJ_xHqqkZx_CFCFoundDoc::OnSaveEmbedding _xZkqqHx_iCpAiOfBiPmGiBgKiBeC_xHqqkZx_
		// _xZkqqHx_iClBiCmMiClNiCnPiBeBiCmHiCpBiCmIiPoKiNiHiCmFiCoA_xHqqkZx_ BASE_CLASS::OnSaveDocument _xZkqqHx_iCpA_xHqqkZx_
		// _xZkqqHx_iMmEiCnBiPgPiClFiCmE_xHqqkZx_ m_lpRootStg _xZkqqHx_iCmJjFnLjBlGiClFiCmEiCkJiCoHiBeBiClLiCoKiCpA_xHqqkZx_ m_lpOriginalStorage _xZkqqHx_iCmJ_xHqqkZx_
		// CopyTo _xZkqqHx_iClHiCoKiCmOiCoGiCkCiBeC_xHqqkZx_

		if (wcscmp(FCHeaderInf::GetStcFileVersionString(), m_wstrSaveVersion) == 0)
		//----- _xZkqqHx_iDeBiDhGiDiKiCmGjDkPiClGiDhEiDeAiDeDiDiLiDgPiBfLiDfHiDiHiDjDiCmMiPoKiNiH_xHqqkZx_ -----
		{
			// Baseclass_xZkqqHx_iKnGjAjEiCpAiOmAiNhDiBeC_xHqqkZx_m_lpRootStg_xZkqqHx_iCmJjFnLjBlGiClDiCoKiCoJiBeC_xHqqkZx_
			BASE_CLASS::OnSaveDocument(WStrToTStr(wcpFilePath));
			// _xZkqqHx_jFnLjBlGiClDiCoKiClNiDgGiBfLiDfOiCpAiDeJiDiKiDfHiDgJiDiLiDfIiDgHiDiMiBfLiDfHiCmJjFkBiOmKiClHiCoJiBeC_xHqqkZx_
			if (m_lpRootStg->CopyTo(0, NULL, NULL, m_lpOriginalStorage) == S_OK)
			{
				// _xZkqqHx_iDeJiDiKiDfHiDgJiDiLiDfIiDgHiDiMiBfLiDfHiCpAjFnLjBlGiBeC_xHqqkZx_
				m_lpOriginalStorage->Commit(STGC_OVERWRITE);
			} else
			{
				return FALSE;
			}
		} else
		//----- _xZkqqHx_iDeBiDhGiDiKiCmGiIoBiCkEiDhEiDeAiDeDiDiLiDgPiBfLiDfHiDiHiDjDiCmMiPoKiNiH_xHqqkZx_ -----
		{
			// Baseclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_Serialize _xZkqqHx_iCmFjCiGjCgGiClFiCmEjGnPiCmBiCmEiCkNiCoJiBeC_xHqqkZx_
			BASE_CLASS::OnSaveDocument(WStrToTStr(wcpFilePath));
			// _xZkqqHx_iDeJiDiKiDfHiDgJiDiLiDfIiDgHiDiMiBfLiDfHiCmJiLiMiDgPiBfLiDfHiDiHiDjDiCmMjFkBiNiHiDhEiDeAiDeDiDiLiCpAiPjBiCkLiNjOiCnOiBeC_xHqqkZx_
			OutVersionCcoreFormat(m_lpOriginalStorage, m_wstrSaveVersion, bShowConvWarnning);
		}
	} else
	//----- _xZkqqHx_iDhEiDeAiDeDiDiLiCmMiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iDhEiDeAiDeDiDiLiCmMiPoKiNiHiBeBjFnLjBlGjAoGiDfIiDgHiDiMiBfLiDfHiCmN_xHqqkZx_ OnSaveDocument_xZkqqHx_iCmJiCoGiCmBiCmE_xHqqkZx_
		// _xZkqqHx_iNoMjAkMiClDiCoKiCoJiBeC_xHqqkZx_
		// _xZkqqHx_iClBiCmMiClNiCnPiBeBiCnMiClI_xHqqkZx_ BASE_CLASS::OnSaveDocument _xZkqqHx_iCpAiMmEiCnBiPgPiClHjFeLjHhGiCkKiCkAiCoJiBeC_xHqqkZx_

		if (wcscmp(FCHeaderInf::GetStcFileVersionString(), m_wstrSaveVersion) == 0)
		//----- _xZkqqHx_iDeBiDhGiDiKiCmGjDkPiClGiDhEiDeAiDeDiDiLiDgPiBfLiDfHiDiHiDjDiCmMiPoKiNiH_xHqqkZx_ -----
		{
			if (wcsicmp(TStrToWStr(GetPathName()), wcpFilePath) == 0)
			//----- _xZkqqHx_jFnLjBlGiNmPiCnNiDhEiDeAiDeDiDiLiCmGjDkPiClGiDhEiDeAiDeDiDiLiCmMiPoKiNiH_xHqqkZx_ -----
			{
				// Baseclass_xZkqqHx_iKnGjAjEiCpAiOmAiNhDiBeC_xHqqkZx_m_lpRootStg _xZkqqHx_iCmNjDkPiClGiDfIiDgHiDiMiBfLiDfHiCkKiOgHiCoNiCoKiCoJiBeC_xHqqkZx_
				BASE_CLASS::OnSaveDocument(WStrToTStr(wcpFilePath));
				// _xZkqqHx_jFnLjBlGiClDiCoKiClNiDgGiBfLiDfOiCpAiDeJiDiKiDfHiDgJiDiLiDfIiDgHiDiMiBfLiDfHiCmJjFkBiOmKiClHiCoJiBeC_xHqqkZx_
				if (m_lpRootStg->CopyTo(0, NULL, NULL, m_lpOriginalStorage) == S_OK)
				{
					// _xZkqqHx_iDeJiDiKiDfHiDgJiDiLiDfIiDgHiDiMiBfLiDfHiCpAjFnLjBlGiBeC_xHqqkZx_
					m_lpOriginalStorage->Commit(STGC_OVERWRITE);
				} else
				{
					return FALSE;
				}
			} else
			//----- _xZkqqHx_jFnLjBlGiNmPiCnNiDhEiDeAiDeDiDiLiCmGiIoBiCkEiDhEiDeAiDeDiDiLiBeBiIlNiCkCiCmNjAfGiLeLjFnLjBlGiCmMiPoKiNiH_xHqqkZx_ -----
			{
				// _xZkqqHx_iCnMiClIiBeBiNkBiCmMiPpDjBnEiCpAiIoKiOjOiDfIiDgHiDiMiBfLiDfHiCmJjElNiJgGiClDiClJiCmEiCkIiCkNiBeC_xHqqkZx_
				// _xZkqqHx_iJlKiCmF_xHqqkZx_ _xZkqqHx_jAfGiClFiCkCiDfIiDgHiDiMiBfLiDfHiCmF_xHqqkZx_ BASE_CLASS::OnSaveDocument _xZkqqHx_iCpA_xHqqkZx_
				// _xZkqqHx_iOmAiNhDiClHiCoJiClNiCnPiBeBiIoKiOjOiDfIiDgHiDiMiBfLiDfHiCoAiNmFjAfGiCmMiPpDjBnEiCmJiClFiCmEiCkIiCkNiBeC_xHqqkZx_
				try
				{
//----- 06.06.23 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//					const FCAutoBackup<BOOL> backupSameAsLoad(m_bSameAsLoad, FALSE);
//					const FCAutoBackup<BOOL> backupRemember(m_bRemember, TRUE);
//----- 06.06.23 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
					// _xZkqqHx_iDfIiDgHiDiMiBfLiDfHiCmJiKgNiOmAiCmJjFnLjBlGiClDiCoKiCoJiCoGiCkEiBeB_xHqqkZx_
					// SaveToStorage _xZkqqHx_iCmMiOmAiNhDjBePiCmJ_xHqqkZx_ m_bSameAsLoad = FALSE, m_bRemember = TRUE _xZkqqHx_iCpA_xHqqkZx_
					// _xZkqqHx_jAnNjCoIiClFiCmEiCkCiClNiCkKiBeB_xHqqkZx_Windows 98 _xZkqqHx_iCmF_xHqqkZx_DD4_xZkqqHx_iCmJiDhJiDeDiDjDiDgHiCkJiCoHjDfMiCoIjFhEiCkPiClFiCmE_xHqqkZx_
					// mdrw_xZkqqHx_iMgAiOkOiCmFjFnLjBlGiClFiCoGiCkEiCmGiClHiCoJiCmGiBeBiDeHiDiJiBfLiCkKjEkNjAlGiClFiClNiBeC_xHqqkZx_
					// m_bSameAsLoad_xZkqqHx_iBeB_xHqqkZx_m_bRemember _xZkqqHx_iCmMjAnNjCoIiCpAiClJiClIiCmGiCoAiBeBiDgFiDfIiDgHiClFiClNiMiLiJmK_xHqqkZx_
					// _xZkqqHx_jGoCjBoIiCmIiCkNjDkOiNoMiClFiClNiClNiCnPiBeBiKePiClFiClNiBeC_xHqqkZx_

					SaveToStorage();
					CommitItems(TRUE);
				} catch (CException* e)
				//----- _xZkqqHx_iDeHiDiJiBfLiPiIjHjN_xHqqkZx_ -----
				{
					// _xZkqqHx_iDeHiDiJiBfLiDiBiDgCiDfKiBfLiDfHjFfMiOkGiBeC_xHqqkZx_
					e->ReportError();
					e->Delete();
					return FALSE;
				}
				// m_lpRootStg _xZkqqHx_iCmJiCmNjAfGiClFiCkCiDfIiDgHiDiMiBfLiDfHiCkKiKiEiCoIjDjGiCmEiCoHiCoKiCoJiCmMiCmFiBeB_xHqqkZx_
				// _xZkqqHx_iMlDiCmJjGnPiClFiCmEiCkIiCkNiBeC_xHqqkZx_
				m_lpRootStg = m_lpOriginalStorage;
				m_lpOriginalStorage = NULL;
				// Baseclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeCiClBiClBiCmFiBeB_xHqqkZx_m_lpRootStg _xZkqqHx_iCmNjFmPiNfIiClDiCoKiCoJiCmNiClIiBeC_xHqqkZx_
				BASE_CLASS::OnSaveDocument(WStrToTStr(wcpFilePath));
				// _xZkqqHx_iIoKiOjOiDfIiDgHiDiMiBfLiDfHiCpA_xHqqkZx_ m_lpRootStg _xZkqqHx_iCmJjAnNjCoIiClHiCoJiBeC_xHqqkZx_
				m_lpOriginalStorage = m_lpRootStg;
				m_lpRootStg = m_lpSubstStorage;
			}
		} else
		//----- _xZkqqHx_iDeBiDhGiDiKiCmGiIoBiCkEiDhEiDeAiDeDiDiLiDgPiBfLiDfHiDiHiDjDiCmMiPoKiNiH_xHqqkZx_ -----
		{
			if (wcsicmp(TStrToWStr(GetPathName()), wcpFilePath) == 0)
			//----- _xZkqqHx_jFnLjBlGiNmPiCnNiDhEiDeAiDeDiDiLiCmGjDkPiClGiDhEiDeAiDeDiDiLiCmMiPoKiNiH_xHqqkZx_ -----
			{
				// Baseclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_Serialize _xZkqqHx_iCmFjCiGjCgGiClFiCmEjGnPiCmBiCmEiCkNiCoJiBeC_xHqqkZx_
				BASE_CLASS::OnSaveDocument(WStrToTStr(wcpFilePath));
				// _xZkqqHx_iDeJiDiKiDfHiDgJiDiLiDfIiDgHiDiMiBfLiDfHiCmJiLiMiDgPiBfLiDfHiDiHiDjDiCmMjFkBiNiHiDhEiDeAiDeDiDiLiCpAiPjBiCkLiNjOiCnOiBeC_xHqqkZx_
				OutVersionCcoreFormat(m_lpOriginalStorage, m_wstrSaveVersion, bShowConvWarnning);
			} else
			//----- _xZkqqHx_jFnLjBlGiNmPiCnNiDhEiDeAiDeDiDiLiCmGiIoBiCkEiDhEiDeAiDeDiDiLiBeBiIlNiCkCiCmNjAfGiLeLjFnLjBlGiCmMiPoKiNiH_xHqqkZx_ -----
			{
				// m_lpRootStg _xZkqqHx_iCmJiCmNjAfGiClFiCkCiDfIiDgHiDiMiBfLiDfHiCkKiKiEiCoIjDjGiCmEiCoHiCoKiCoJiCmMiCmFiBeB_xHqqkZx_
				// _xZkqqHx_iMlDiCmJjGnPiClFiCmEiCkIiCkNiBeC_xHqqkZx_
				m_lpRootStg = m_lpOriginalStorage;
				m_lpOriginalStorage = NULL;
				// Baseclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_Serialize _xZkqqHx_iCmFjCiGjCgGiClFiCmEjGnPiCmBiCmEiCkNiCoJiBeC_xHqqkZx_
				BASE_CLASS::OnSaveDocument(WStrToTStr(wcpFilePath));
				// _xZkqqHx_iIoKiOjOiDfIiDgHiDiMiBfLiDfHiCpA_xHqqkZx_ m_lpRootStg _xZkqqHx_iCmJjAnNjCoIiClHiCoJiBeC_xHqqkZx_
				m_lpOriginalStorage = m_lpRootStg;
				m_lpRootStg = m_lpSubstStorage;
				// _xZkqqHx_iDeJiDiKiDfHiDgJiDiLiDfIiDgHiDiMiBfLiDfHiCmJiLiMiDgPiBfLiDfHiDiHiDjDiCmMjFkBiNiHiDhEiDeAiDeDiDiLiCpAiPjBiCkLiNjOiCnOiBeC_xHqqkZx_
				OutVersionCcoreFormat(m_lpOriginalStorage, m_wstrSaveVersion, bShowConvWarnning);
			}
		}
	}
	return TRUE;
} // CFCFoundDoc::OnSaveMdrwDocument.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnSaveMdpfDocument
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhEiDiJiDgCiDgHiDhEiDeAiDeDiDiLiCpAjFnLjBlGiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	wcpFilePath	:_xZkqqHx_jFnLjBlGiClHiCnHiCkLiDhEiDeAiDeDiDiLjGlMiCpAiOhHjCoIiBeC_xHqqkZx_OLE_xZkqqHx_iCmMiPoKiNiHiCmN_xHqqkZx_NULL_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_jAkMiMpHiClFiClNiPoKiNiHiCmN_xHqqkZx_TRUE_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	OnSaveDocument _xZkqqHx_iCmFiDhEiDiJiDgCiDgHiDhEiDeAiDeDiDiLiCkKiOhHjCoIiClDiCoKiClNiPoKiNiHiCmJiBeBiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.03.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCFoundDoc::OnSaveMdpfDocument (	const wchar_t* wcpFilePath,
										BOOL bShowConvWarnning)
{
	if (m_pFileOpen->m_hFile == CFile::hFileNull ||
		m_pFileOpen->GetFilePath().CompareNoCase(WStrToTStr(wcpFilePath)) != 0)
	//----- _xZkqqHx_iClBiCoKiCnMiCmFiKeKiCkCiCmEiCkCiClNiDhEiDeAiDeDiDiLiCmGiInJiCmIiCoJiPoKiNiH_xHqqkZx_ -----
	{
		CFile* pNewFile = new CFile();
		if (!pNewFile->Open(WStrToTStr(wcpFilePath),
							CFile::modeCreate |
							CFile::modeReadWrite |
							CFile::shareDenyWrite,
							NULL))
		//----- _xZkqqHx_jAfGiClFiCkCiDhEiDeAiDeDiDiLiCmMiDeJiBfLiDhGiDjDiCmJiOlIjEhDiClFiClNiPoKiNiH_xHqqkZx_ -----
		{
			delete pNewFile;
			// _xZkqqHx_iDhEiDeAiDeDiDiLiBhF_xHqqkZx_%s_xZkqqHx_iBhGiCmMjFnLjBlGiCmJiOlIjEhDiClFiCnMiClFiClNiBeC_xHqqkZx_
			::FFErrorBox(	IDS_ERR_MSG_FAIL_SAVE_FILE,
							wcpFilePath);
			return FALSE;
		}
		// _xZkqqHx_iClBiCoKiCnMiCmFiKeKiCkCiCmEiCkCiClNiDhEiDeAiDeDiDiLiCpAjFmCiClGiCmEiBeBjAfGiClFiCkCiDhEiDeAiDeDiDiLiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
		if (m_pFileOpen->m_hFile != CFile::hFileNull)
			m_pFileOpen->Close();
		delete m_pFileOpen;
		m_pFileOpen = pNewFile;
	}
	// _xZkqqHx_iDhEiDeAiDeDiDiLiCpAiLpDiCmJiClHiCoJiBeCiClBiCkEiClFiCmIiCkCiCmGiBeBiDhEiDeAiDeDiDiLiCmM_xHqqkZx_
	// _xZkqqHx_iMoDiCoLiCmJjHfNiMhGiCmIiDfDiDhOiCkKiOgDiCoJiJmCjEfMjAkLiCkKiCkAiCoJiBeC_xHqqkZx_
	m_pFileOpen->SetLength(0);
	OutPortableFormat(*m_pFileOpen, CSize(120, 120), m_wstrSaveVersion, TRUE, TRUE);
	// _xZkqqHx_iDhEiDeAiDeDiDiLiCpAiDhEiDiJiDgCiDfGiDiFiBeC_xHqqkZx_
	m_pFileOpen->Flush();
	// Undo_xZkqqHx_iDfCiDhNiDjDiDgIiDhEiDeAiDeDiDiLiCoAiPjBiCkLiNjOiCnOiClNiCnPiCmJiBeBiDhEiDiJiDgCiDfGiDiFiClHiCoJiBeC_xHqqkZx_
	// _xZkqqHx_iDgPiDgCiDeOiDeBiDgCiDhGiNlHjFkKiDhEiDeAiDeDiDiLiCpAiNoMjAkMiClFiCmIiCkCiBeC_xHqqkZx_
	if (!g_pFileServer->FlushAll2())
		FFThrowMiscException(FFGetDDErrorMessage());
	// _xZkqqHx_iPeDjAlDiDhEiDiJiDePiCpAiJpAiPjMiBeC_xHqqkZx_
	SetModifiedFlag(FALSE);
	return TRUE;
} // CFCFoundDoc::OnSaveMdpfDocument.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::DeleteAndInitContents
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFlGiPjBiCpAjFmCiClGiCmEiPiJiKpKiJlLiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	bIsCloseFile	:_xZkqqHx_iDeJiBfLiDhGiDjDjCiGiCmMiDhEiDeAiDeDiDiLiCpAjFmCiClGiCoJiCkJiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	DeleteContents _xZkqqHx_iCmMiPiIjHjNiCpAiClBiClBiCmJiInKjDkOiBeCiDhEiDeAiDeDiDiLiCpAjFmCiClGiCmIiCkCiPoKiNiHiCmM_xHqqkZx_
 *			_xZkqqHx_iPiIjHjNiCpAjCmHiJmBiClFiClNiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.11.25 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::DeleteAndInitContents (BOOL bIsCloseFile)
{
	// _xZkqqHx_iPeDjAlDiDhEiDiJiDePiCpAiDeOiDiKiDeBiBeC_xHqqkZx_
	SetModifiedFlag(FALSE);
	// _xZkqqHx_iDhCiDiFiBfLiCmMiPiJiKpKiJlLiPiIjHjNiCpAiMmEiCnBiPgPiClHiBeCiDhCiDiFiBfLiCkK_xHqqkZx_NULL_xZkqqHx_iCmMiPoKiNiHiCmNiBeB_xHqqkZx_
	// _xZkqqHx_iDgDiBfLiDiLiDhNiDgMiBfLiDfHiDiDiClOiCkPiCmFiCoAiPiJiKpKiJlLiClHiCoJiBeC_xHqqkZx_
	if (g_pView != NULL)
		g_pView->DeleteContents();
	else
		g_pToolManager->DeleteContents(this);

	//----- _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiCkKjEgKiJpDiClDiCoKiCoJjBePiCmJiImIiJlKiCmMjFnLjBlGiPiIjHjN_xHqqkZx_ -----
	// _xZkqqHx_iPjBiCkLiNjOiCnNiCgOiCgK_xHqqkZx_ _xZkqqHx_iBjF_xHqqkZx_ _xZkqqHx_iDiGiBfLiDfFiPeDjFjMiDiCiBfLiDgIiImIiKePiCmMiPoKiNiHiBeB_xHqqkZx_Undo_xZkqqHx_iDhEiDeAiDeDiDiLiCpAjFmCiClGiCoJiBeC_xHqqkZx_
	if (!m_bIsReadOnly &&
		!(g_->appMode & FD_RUNMODE_REPAIR_DOCUMENT)) CloseUndo();

	//----- _xZkqqHx_jFjEjFgJiCpAiNoNiPjM_xHqqkZx_ -----
	// _xZkqqHx_iDfGiBfLiDgHiDhNiDgMiBfLiDfHiDiDiBfLjDgPjIfOjBfDiCmEiCmMjFjEjFgJiCpAiNoNiPjMiBjFiPiJiKpKiJlLiBeC_xHqqkZx_
	m_pSheetManager->DeleteAll();
	m_pSheetManager->Initialize();
	// _xZkqqHx_jFfMiOkGjFjEjFgJ_xHqqkZx_ID_xZkqqHx_iDgFiBfLiDhFiDiLiCpAiDeOiDiKiDeB_xHqqkZx_.
	m_oitpObjIDTbl->ClearAll();
	// _xZkqqHx_jDgPjIfOiDiJiDhIiDiLjFjEjFgJiCpAiDeOiDiKiDeBiBeC_xHqqkZx_
	m_stObjLabel->clear();
	// _xZkqqHx_iKmCiLkLjFnLjBlGjFmPjAjEiCpAiDgGiDhEiDeIiDiLiDgHjCgMiCmFiPiJiKpKiJlLiBeC_xHqqkZx_
	if (g_pEnv != NULL) g_pEnv->InitDefault();

	// _xZkqqHx_iDgDiBfLiDiLiCmMiPeJjHlJiPiIjHjNiBeC_xHqqkZx_
	g_pToolManager->Terminate();
	// _xZkqqHx_iDgDiBfLiDiLiCmMiPiJiKpKiJlLiBeC_xHqqkZx_
	g_pToolManager->Initialize();

	// _xZkqqHx_iDiKiDjDiDeOiDhNiDgMiBfLiDfHiDiDiCpAiDeOiDiKiDeBiBeC_xHqqkZx_
	m_pLinkManager->ClearAll();
	if (FFGetMainWnd()->IsAvailable())
	{
		// _xZkqqHx_iDgAiDgCiDhGiDfIiDgHiDeBiDfEiDeDiDfJiCpAiNmEiMhGiOfKiBeC_xHqqkZx_
		FFGetMainWnd()->PostMessage(WM_USER_UPDATE_CHIP_STORE,
									0,
									LPARAM(-1));
	}

//----- 06.04.17 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_iDeMiDiDiDjDiDgPiDfIiCmMjFfMiOkGiPpDjBnEiCpAiPiJiKpKiJlLiBeC_xHqqkZx_
	m_canvasStat.Init();
//----- 06.04.17 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----

	if (bIsCloseFile)
	//----- _xZkqqHx_iDhEiDeAiDeDiDiLiCpAjFmCiClGiCoJiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiCmNjFmCiClGiCmEiCkCiCoJiPpDjBnEiCmJiBeC_xHqqkZx_
		m_bIsDocumentOpened = FALSE;
		// _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiDhEiDeAiDeDiDiLiCmN_xHqqkZx_ReadOnly_xZkqqHx_iCkJiBeI_xHqqkZx_
		m_bIsReadOnly = TRUE;
		// _xZkqqHx_iDhEiDiMiBfLiDiAiDeFiDeCiDjDiDgIiDeFiCmMiDfOiDeDiDgHiDiLiCpAjFmPiNfIiBeCiClBiCoKiCpAiClFiCmIiCkCiCmGiBeBiBhFjFmCiClGiCmEiKeKiCkNiBhGiCmF_xHqqkZx_
		// _xZkqqHx_iCkEiCnMiCkNiDfOiDeDiDgHiDiLiCkKjFmPiNfIiClDiCoKiCmIiCkCiPoKiNiHiCkKiCkAiCoJiBeC_xHqqkZx_
		SetTitle(NULL);
		// _xZkqqHx_iDhEiDeIiDiLiDfPjDoAiCmFiJeFiDeOiDiKiDgCiDeOiDiBiDgKiDiFiBfLiCkJiCoHjAfGiLeLiNoMjAkMiClFiClNiBhF_xHqqkZx_Dynamic Draw Document_xZkqqHx_iBhGiCmJ_xHqqkZx_
		// _xZkqqHx_iJlNiCkJiCpAjFgAiClBiCkEiCmGiClHiCoJiCmGjHiOiClPiCoJiClNiCnPiBeBiImIiJlKiCmMiPiIjHjNiCkKjFeLjHhGiBeC_xHqqkZx_
		// _xZkqqHx_iDhHiDgCiDfPiPoOjFpBiCpAiPmBiLiOiBeC_xHqqkZx_
		m_headerInf.Clear();
		// _xZkqqHx_iKeKiCkCiCmEiCkCiCoJiDhEiDeAiDeDiDiLiCkKiCkAiCoKiCmOjFmCiClGiCoJiBeC_xHqqkZx_
		if (m_pFileOpen->m_hFile != CFile::hFileNull)
			m_pFileOpen->Close();
		// _xZkqqHx_jFnLjBlGiClHiCoJiDhEiDeAiDeDiDiLiCmMiDgPiBfLiDfHiDiHiDjDiBeC_xHqqkZx_
		m_wstrSaveVersion = FCHeaderInf::GetStcFileVersionString();
		// _xZkqqHx_jFnLjBlGiClHiCoJiDgPiBfLiDfHiDiHiDjDiCpAjGoCiCkCiNiHiCoNiClJiCoJiCkJiBeI_xHqqkZx_
		m_bAskSaveVersion = FALSE;
		// _xZkqqHx_iDfIiBfLiDhAiBfLiDeOiDiJiDfIiCmMiDiBiDjDiDgPiKnGjAjEiOmAiNhDiBeC_xHqqkZx_
		BASE_CLASS::DeleteContents();
	}

	// _xZkqqHx_iDhCiDiFiBfLiCmMiPiJiKpKiJlLiPiIjHjNiCpAiMmEiCnBiPgPiClHiBeCiDhCiDiFiBfLiCkK_xHqqkZx_NULL_xZkqqHx_iCmMiPoKiNiHiCmNiBeB_xHqqkZx_
	// _xZkqqHx_iDgDiBfLiDiLiDhNiDgMiBfLiDfHiDiDiClOiCkPiCmFiCoAiPiJiKpKiJlLiClHiCoJiBeC_xHqqkZx_
	// HistDraw_xZkqqHx_iCmMjFlGiPjBjAfGiLeLiNoMjAkMiCmIiCmHiCmFiBeB_xHqqkZx_View_xZkqqHx_jGlDiClFiCmMiPoKiNiHiCkKiCkAiCoJiBeC_xHqqkZx_
	if (g_pView != NULL)
		g_pView->InitContents();
	else
		g_pToolManager->InitContents(this);

	// _xZkqqHx_iDhEiDiMiBfLiDiAiCmMiPiJiKpKiJlLiPiIjHjNiCpAiMmEiCnBiPgPiClHiBeC_xHqqkZx_
	if (FFGetMainWnd()->IsAvailable())
		FFGetMainWnd()->DeleteContents();

	//----- _xZkqqHx_iDgGiDhEiDeIiDiLiDgHjHhAiOiGiCpAiDhGiDiKiDjDiDfOiCmJjAnNjCoI_xHqqkZx_ -----
	FD_BEGIN_CHECK_TIME(L"SetPrinterPaperSize");
	switch (g_->appMode & FD_APPMODE_MASK)
	{
		case FD_APPMODE_HISTORICDRAW:	// HistoricDraw_xZkqqHx_iCmMiPoKiNiHiBeC_xHqqkZx_
		case FD_APPMODE_HISTORYVIEWER:	// _xZkqqHx_jHjKjHpAiDhCiDiFiBfLiDeBiCmMiPoKiNiHiBeC_xHqqkZx_
			// HistView,HistDraw_xZkqqHx_iCmMiPoKiNiHiCmNiDhGiDiKiDjDiDfOiCmMjAnNjCoIiCpAiClFiCmIiCkCiBeC_xHqqkZx_
			// _xZkqqHx_iDhGiDiKiDjDiDfOiCmMjAnNjCoIiCmNiOjOiKnEiCkKiCkJiCkJiCoJiBgJiCePiBeEiCfCjFgCjCpGjDhIiBgKiCmMiCmFiBeB_xHqqkZx_
			// _xZkqqHx_iDfIiDhMiDgCiDgHiCmMjAnIiCoIjBnGiCkGiCmMjDhIiCmJjAnNjCoIiClFiCmEiCkCiCmEiCmNiBeBjAkLjEfMiCkK_xHqqkZx_
			// _xZkqqHx_jCjIiClFiCkNjCoBiJlKiClFiCmEiClFiCnMiCkEiBeC_xHqqkZx_
			// _xZkqqHx_iCnMiClNiBeBiDfIiDhMiDgCiDgHjDmHiCnNiPgPiClFiCmMjDhIiCmJiDhGiDiKiDjDiDfOiCmMjAnNjCoIiCkKjFmPiNfI_xHqqkZx_
			// _xZkqqHx_iClDiCoKiCmEiClFiCnMiCkEiCmMiCmNiNkCiCoJiBeC_xHqqkZx_
			// _xZkqqHx_jBoDiCoNiCoIiCmJiDiMiDfHiDfIiDgHiDiKiCmJiLeMjIfOiClDiClJiCoJiBeC_xHqqkZx_
		break;
	default:
	  {
		short nPaperType;
		mmetol mmPaperWidth;
		mmetol mmPaperHeight;
		g_pEnv->GetDocPaperSize(nPaperType, mmPaperWidth, mmPaperHeight);
		if (g_pEnv->GetDocPaperOrientation() == DMORIENT_LANDSCAPE)
			::Exchange(mmPaperWidth, mmPaperHeight);
		CPoint ptPaperSize(	D2L(10.0 * mmPaperWidth),
							D2L(10.0 * mmPaperHeight));
		FFGetApp()->SetPrinterPaperSize(g_pEnv->GetDocPaperOrientation(), ptPaperSize, WORD(nPaperType));
	  }
	}
	FD_END_CHECK_TIME;
} // CFCFoundDoc::DeleteAndInitContents.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::AfterLoadDocument
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFlGiPjBiDhEiDeAiDeDiDiLiCpAjDmHiCnNiNjOiCpBiClOiMoDiPiIjHjNiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	bIsRedraw	:_xZkqqHx_iDhCiDiFiBfLiCpAiNmEjFgAiJoGiClHiCoJiCkJiCmHiCkEiCkJiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.07.02 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::AfterLoadDocument (BOOL bIsRedraw)
{
	// _xZkqqHx_iDfGiBfLiDgHjFmPiNfIiCpAiDhCiDiFiBfLiCmJjCmKjCgNiBeCjBeJjBpAjFjEjFgJiCmMjFmPiNfIjDjJiCpAiNhDiCkEiBeC_xHqqkZx_
	if (g_pView != NULL)
	//----- View_xZkqqHx_iCkKjBlGiNnNiClHiCoJiPoKiNiH_xHqqkZx_ -----
	{
//----- 06.05.13 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
//----- 06.06.23 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//		// _xZkqqHx_iDhEiDeAiDeDiDiLiDfCiDjDiDgPiBfLiDfOiBfLiCmJiCoGiCoJjBlMiMgAiOkOiCmFiBeBiDgFiDeMiDfIiDgHiCmM_xHqqkZx_
//		// _xZkqqHx_iDiMiDeDiDeBiDeFiDgHiCkKiCmIiClDiCoKiCmEiCkCiCmIiCkCiPoKiNiHiCmJiCmNiBeBiClBiClBiCmF_xHqqkZx_
//		// _xZkqqHx_iDiMiDeDiDeBiDeFiDgHiClHiCoJiBeC_xHqqkZx_
//		struct my
//		{
//			static BOOL EnumAllObject (FCObjDynabase* pObj, void* data)
//			{
//				if (pObj->GetRichText() != NULL)
//				{
//					FCObjFigure* pFig = (FCObjFigure*)pObj;
//					//----- m_mmY _xZkqqHx_iCkKiPfMjFkKiPkMiClDiCkCiPoKiNiHiCmNiDiMiDeDiDeBiDeFiDgH_xHqqkZx_ ------
//					if (pFig->GetRichText()->GetTextData().at(0).m_mmY < -10000.0)
//						pFig->GetRichText()->CalcTextLayout(NULL, pFig);
//				}
//				return TRUE;
//			}
//		};
//		// _xZkqqHx_iDfGiBfLiDgHjCiGiCmMjBfDiCmEiCmMjFjEjFgJiCmJjBmOiClFiCmEiBeB_xHqqkZx_EnumAllObject _xZkqqHx_iCpAiOmAiNhDiBeC_xHqqkZx_
//		SheetManager()->CallForAllObject(my::EnumAllObject, NULL);
//----- 06.06.23 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
		// _xZkqqHx_iDhEiDeAiDeDiDiLiDfCiDjDiDgPiBfLiDfOiBfLiCmJiCoGiCoJjBlMiMgAiOkOiCmFiBeBiDgFiDeMiDfIiDgHiCmM_xHqqkZx_
		// _xZkqqHx_iDiMiDeDiDeBiDeFiDgHiCkKiCmIiClDiCoKiCmEiCkCiCmIiCkCiPoKiNiHiCmJiCmNiBeBiClBiClBiCmF_xHqqkZx_
		// _xZkqqHx_iDiMiDeDiDeBiDeFiDgHiClHiCoJiBeC_xHqqkZx_
		struct my
		{
			static BOOL EnumAllObjectFrame (FCObjDynabase* pObj, void* data)
			{
				const DBLRect mmrt = pObj->GetResizeFrame();
				if (mmrt.right < mmrt.left)
					pObj->CalcResizeFrame();
				return TRUE;
			}
			static BOOL EnumAllObjectText (FCObjDynabase* pObj, void* data)
			{
				if (pObj->GetRichText() != NULL)
				{
					FCObjFigure* pFig = (FCObjFigure*)pObj;
					//----- m_mmY _xZkqqHx_iCkKiPfMjFkKiPkMiClDiCkCiPoKiNiHiCmNiDiMiDeDiDeBiDeFiDgH_xHqqkZx_ ------
					if (pFig->GetRichText()->GetTextData().at(0).m_mmY < -10000.0)
						pFig->GetRichText()->CalcTextLayout(NULL, pFig);
				}
				return TRUE;
			}
		};
		// _xZkqqHx_iKmCiLkLiBeC_xHqqkZx_
		g_pEnv->CallForAllObject(my::EnumAllObjectFrame, NULL);
		// _xZkqqHx_iDgDiBfLiDiLjDoAjFjEjFjEjFgJiBeC_xHqqkZx_
		g_pView->CallForAllObject(my::EnumAllObjectFrame, NULL);
		// _xZkqqHx_iDfGiBfLiDgHiPoDiCmMjFjEjFgJiBeC_xHqqkZx_
		SheetManager()->CallForAllObject(my::EnumAllObjectFrame, NULL);

		// _xZkqqHx_iKmCiLkLiBeC_xHqqkZx_
		g_pEnv->CallForAllObject(my::EnumAllObjectText, NULL);
		// _xZkqqHx_iDgDiBfLiDiLjDoAjFjEjFjEjFgJiBeC_xHqqkZx_
		g_pView->CallForAllObject(my::EnumAllObjectText, NULL);
		// _xZkqqHx_iDfGiBfLiDgHiPoDiCmMjFjEjFgJiBeC_xHqqkZx_
		SheetManager()->CallForAllObject(my::EnumAllObjectText, NULL);
//----- 06.06.23 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
//----- 06.05.13 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
		// FCEnv_xZkqqHx_iCmMiDfGiBfLiDgHiDfEiDeDiDfJjFmPiNfIiCpAjFfMiOkGiCmJjElNiJgGiBeC_xHqqkZx_
		g_pView->UpdateScrollSize();
		//----- _xZkqqHx_iDhCiDiFiBfLiCpAiNmEjFgAiJoGiClHiCoJiCkJiBeI_xHqqkZx_ -----
		// HistoricDraw_xZkqqHx_iCmFiBeBiDhEiDeAiDeDiDiLiCpAiDeJiBfLiDhGiDjDjClMiMoDiCmJ_xHqqkZx_
		// _xZkqqHx_iBhFiDhGiDiNiDfHiDeGiDeOiDgHiCmJiDiGiBfLiDfFiBfLjDgPjIfOiClDiCoKiCmEiCkCiCnMiClJiCpBiBhGiCmMiDfPiDeDiDeBiDiNiDePiCkK_xHqqkZx_
		// _xZkqqHx_jFfMiOkGiClDiCoKiClNiPoKiNiHiBeBiJlKiCkK_xHqqkZx_ PostRgnRedraw(TRUE) _xZkqqHx_iClOiCmGiNmEjFgAiJoGiCmJ_xHqqkZx_
		// _xZkqqHx_iOlIjEhDiClHiCoJiBeC_xHqqkZx_
		if (bIsRedraw)
			g_pView->SendRgnRedraw(TRUE);	// _xZkqqHx_jBfDiJoGjGmKiNmEjFgAiJoGiBeC_xHqqkZx_
		// _xZkqqHx_iDfGiBfLiDgHjFmPiNfIiCpAiDhCiDiFiBfLiCmJjCmKjCgNiBeCjBeJjBpAjFjEjFgJiCmMjFmPiNfIjDjJiCpAiNhDiCkEiBeC_xHqqkZx_
		g_pView->SendMessage(WM_USER_CURRENT_SHEET_CHANGED);
		// View _xZkqqHx_iCmJjFfHiPiAiDgDiBfLiDiLiCpAjAnNjCoIiBeC_xHqqkZx_ReadOnly_xZkqqHx_iCmMjAnNjCoIiMoDiCmJjCgMiCkKjFmPiCoNiCoJiClNiCnPiBeC_xHqqkZx_
// 06.12.26 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//		g_pView->PostMessage(WM_COMMAND, ID_TOOL_SELECT, (LPARAM)0);
		g_pView->SwitchCurrentTool(ID_TOOL_SELECT, FALSE);
	}
	if (FFGetMainWnd()->IsAvailable())
	//----- Frame_xZkqqHx_iCkKjBlGiNnNiClHiCoJiPoKiNiH_xHqqkZx_ -----
	{
		FFGetMainWnd()->SendMessage(WM_USER_SHEET_CHANGED);
		FFGetMainWnd()->SendMessage(WM_USER_CURRENT_SHEET_CHANGED);
		// _xZkqqHx_iDgAiDgCiDhGiDfIiDgHiDeBiDfEiDeDiDfJiCpAiNmEiMhGiOfKiBeC_xHqqkZx_
		FFGetMainWnd()->PostMessage(WM_USER_UPDATE_CHIP_STORE,
									0,
									LPARAM(-1));
		// _xZkqqHx_iDhEiDiMiBfLiDiAiCmMiPiJiKpKiJlLiPiIjHjNiCpAiMmEiCnBiPgPiClHiBeC_xHqqkZx_
		FFGetMainWnd()->InitContents();
	}
} // CFCFoundDoc::AfterLoadDocument.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::SheetManager
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	SheetManager_xZkqqHx_iCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	SheetManager_xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.12.28 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
FCSheetManager* CFCFoundDoc::SheetManager () const
{
	return m_pSheetManager;
} // CFCFoundDoc::SheetManager.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::CurrentSheet
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	LayerManager_xZkqqHx_iCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	LayerManager_xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.12.18 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
FCLayerManager* CFCFoundDoc::CurrentSheet () const
{
	// _xZkqqHx_iDiMiDeDiDiEiBfLiDhNiDgMiBfLiDfHiDiDiBeC_xHqqkZx_
	return m_pSheetManager->GetSheet(GetCurrentSheetId());
} // CFCFoundDoc::CurrentSheet.

//----- 04.08.13 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::Gate
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDhNiDjDiDgIiDfBiBfLiDgHiCpAjFnEiClHiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDfCiDhNiDjDiDgIiDfBiBfLiDgHiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.08.31 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//FCHiCommandTable* CFCFoundDoc::Gate () const
//{
//	return m_pGate;
//} // CFCFoundDoc::Gate.
//----- 04.08.13 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::DoPasteNative
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgMiDeDiDgFiDeCiDhFiDgGiBfLiDfOiCmMiDhJiBfLiDfIiDgHiPiIjHjNiCpAiNhDiCkEiBeC_xHqqkZx_MolipDraw_xZkqqHx_iCmN_xHqqkZx_Copy_xZkqqHx_iOjOiCmJ_xHqqkZx_
 *			OLE_xZkqqHx_iDgGiBfLiDfOiCmJiNiHiCoNiClJiCmEiDgMiDeDiDgFiDeCiDhFiDgGiBfLiDfOiCpAiDeOiDiKiDgCiDhGiDhLiBfLiDgIiCmJ_xHqqkZx_
 *			_xZkqqHx_jDfNjBjHiClFiCmEiCkCiCoJiCmMiCmFiBeBiDgMiDeDiDgFiDeCiDhFiDgGiBfLiDfOiCpAiClLiCmMiCnMiCnMiPiIjHjNiCmFiCkLiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pDataObject	: OLE_xZkqqHx_iDgGiBfLiDfOiCpAiOjNiCmC_xHqqkZx_COleDataObject_xZkqqHx_iMfOiBeC_xHqqkZx_
 *			vNewObj		: _xZkqqHx_jAfGiLeLiCmJiNoMjAkMiClFiClNjFjEjFgJiCpAjBhNjDpMiClHiCoJ_xHqqkZx_Vector.
 *
 * <_xZkqqHx_jCiNiInD_xHqqkZx_>	_xZkqqHx_jDoAjFjEiCmFiDfCiDhNiDjDiDgIiCpAjEkNiNhDiClHiCoJiBeCiDfKiDgCiDfGiDiHiDjDiCmNiKePjFjEiCmFiKeKiOgOiClHiCoJiClBiCmGiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.04.30 Fukushiro M. OLE_xZkqqHx_iCmMiDhJiBfLiDfIiDgHiCmJjBmOiJjOiBeC_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::DoPasteNative (COleDataObject* pDataObject,
								 ObjDynabaseVector& vNewObj)
{
	// _xZkqqHx_jFjEjFgJiDiKiDfIiDgHiCpAiDeOiDiKiDeBiBeC_xHqqkZx_
	vNewObj.clear();
	// get file refering to clipboard data
	CFile* pFile = pDataObject->GetFileData(g_cfDDFile);
	if (pFile == NULL)	return;

	// connect the file to the archive and read the contents
	FCUndoArchive ar(pFile, FD_ARCHIVE_LOAD);
	ar.SetDocument(this);	// for COleClientItem serialize.

	/*----------------------------------------------------------------
		_xZkqqHx_iKpJiCmJjFjEjFgJiCkKjDgPjIfOiClDiCoKiCmEiCkCiCoJiOjOiCmNiBeBjFjEjFgJiCmMjCmHiJmBiPiIjHjNiCpAiNhDiCkEiBeC_xHqqkZx_
		_xZkqqHx_jFjEjFgJ_xHqqkZx_ID_xZkqqHx_iCkKiPgEjFkBiClHiCoJiCmMiCpAjEpAiCkPiCoJiClNiCnPiCmJiBeB_xHqqkZx_
		_xZkqqHx_iHeA_xHqqkZx_ _xZkqqHx_iKpJjBlGiCmMiDgFiBfLiDhFiDiLiCpAjBnCjEpAiClFiBeBiIoKiOjOjDeJiCmIiDgFiBfLiDhFiDiLiCpAiNoMjAkMiClHiCoJiBeC_xHqqkZx_
		_xZkqqHx_iHeB_xHqqkZx_ _xZkqqHx_iIoKiOjOjDeJiCmIiDgFiBfLiDhFiDiLiCmJjFjEjFgJiCpAjDgPjIfOiClHiCoJiBeC_xHqqkZx_
		_xZkqqHx_iHeC_xHqqkZx_ _xZkqqHx_jFjEjFgJiCmM_xHqqkZx_ID->_xZkqqHx_jFjEjFgJiDhMiDeDiDjDiDfOjFmPiKlHiPiIjHjNiCpAiNhDiCkEiBeC_xHqqkZx_
		_xZkqqHx_iHeD_xHqqkZx_ _xZkqqHx_iKpJjBlGiCmMiDgFiBfLiDhFiDiLiCpAjFjMiLeBiClFiBeBiIoKiOjOjDeJiCmIiDgFiBfLiDhFiDiLiCmMjFjEjFgJiCpAiIoKiCmCiClIiCmC_xHqqkZx_
		   _xZkqqHx_iKpJjBlGiCmMiDgFiBfLiDhFiDiLiCmJjDgPjIfOiClFiCmEiCoEiCkNiBeC_xHqqkZx_
	------------------------------------------------------------------*/
	// _xZkqqHx_iDfIiDgHiDiKiBfLiDiAjDpMjHmNjBePiPiIjHjNiBeC_xHqqkZx_
	g_pView->PrepareStreamIn();
	// InStream_xZkqqHx_iCmJjEpFiCkGiCmE_xHqqkZx_ID_xZkqqHx_iDgFiBfLiDhFiDiLiCpAiMpAiKlHiBeC_xHqqkZx_
	FCObjIDTbl idtable;
	DWORDSet stObjLabel;
	// _xZkqqHx_jFjEjFgJ_xHqqkZx_ID_xZkqqHx_iDgFiBfLiDhFiDiLiCpAiBeBiDiKiDfFiBfLiDhF_xHqqkZx_ID_xZkqqHx_iCpAjGiEiCnPiCmEiPiJiKpKiJlLiBeC_xHqqkZx_
	CFCFoundDoc::InitObjIdTblByReservedId(idtable);
	FC2Fold<FCObjIDTbl*, DWORDSet*> oitpBackup = SetObjIDTbl(&idtable, &stObjLabel);
	// InStream_xZkqqHx_iCmJjEpFiCkGiCmEiDfGiBfLiDgHiDhNiDgMiBfLiDfHiDiDiCpAiMpAiKlHiBeC_xHqqkZx_
	FCSheetManager sheetManager;
	FCSheetManager* pSMOrig = SetSheetManager(&sheetManager);
	// _xZkqqHx_iDiKiDjDiDeOiDhNiDgMiBfLiDfHiDiDiCpAiMpAiKlHiBeC_xHqqkZx_
	FCLinkManager lnkMgr;
	FCLinkManager* pLnkMgrBack = SetLinkManager(&lnkMgr);
	// _xZkqqHx_iKmCiLkLiDeOiDiJiDfIiBeCiDgGiBfLiDfOiCmMiJlMjDmHiCnNiNjOiCnNiCmJiOgHjHhAiBeC_xHqqkZx_
	FCEnv envSub;
	FCConvEnv convEnv(&envSub);
	//----- _xZkqqHx_iDgGiBfLiDfOiCpAjDmHiCnNiNjOiCnO_xHqqkZx_ -----
	// _xZkqqHx_iDhHiDgCiDfPiCpAiDfIiDeMiDgCiDhGiClHiCoJiBeC_xHqqkZx_
	FCHeaderInf().InStream(ar);
	long lDocPropertySize;
	// _xZkqqHx_jFlGiPjBiDhGiDiNiDhAiDgFiDeCiCpAiDfIiDeMiDgCiDhGiClHiCoJiBeC_xHqqkZx_
	ar >> lDocPropertySize;
	ar.Skip(lDocPropertySize);
	// _xZkqqHx_iDhGiDiKiDjDiDfOiPoOjFpBjDjJiCpAiDfIiDeMiDgCiDhGiClHiCoJiBeC_xHqqkZx_
	CFCMolipDrawApp::SkipStream(ar);
	// _xZkqqHx_iKmCiLkLiPoOjFpBiCpAiDfEiDhFiKmCiLkLiCmJjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
	envSub.InStream(ar);
	// _xZkqqHx_iDgDiBfLiDiLjAnNjCoIiPoOjFpBiCpAiDfIiDeMiDgCiDhGiClHiCoJiBeC_xHqqkZx_
	FCToolManager::SkipStream(ar);
	// ID_xZkqqHx_iDgFiBfLiDhFiDiLiCmJjFjEjFgJiCpAjDmHiNjOiCnOiBeC_xHqqkZx_
	SheetManager()->InStream(ar);
	// _xZkqqHx_iDiKiDjDiDeOiPoOjFpBiCpAjDpMjHmNiClHiCoJiBeC_xHqqkZx_
	m_pLinkManager->InStream(ar);
	// _xZkqqHx_iDiMiDfHiDfIiDgHiDiKiPoOjFpBiBeBiDhCiDiFiBfLiCmMjFnCiPfHiPpDjBnEiCmNjFhDjHhGiCmIiCmMiCmFjDmHiCnNiNjOiCnMiCmIiCkCiBeC_xHqqkZx_
	// _xZkqqHx_jBnOjEpAiClFiCmEiCkCiClNiDiKiDjDiDeOiDhNiDgMiBfLiDfHiDiDiCpAjFjMiLeBiBeC_xHqqkZx_
	SetLinkManager(pLnkMgrBack);
	// _xZkqqHx_jBnCjEpAiClFiCmEiCkCiClNiDfGiBfLiDgHiDhNiDgMiBfLiDfHiDiDiCpAjFjMiLeBiBeC_xHqqkZx_
	(void)SetSheetManager(pSMOrig);
	// vNewObj_xZkqqHx_iCmJiChJiDeJiBfLiDfPiBfLiCpAiDfCiDhDiBfLiBeC_xHqqkZx_
	sheetManager.GetFrontSheet()->GetZOrder(vNewObj, FDOZ_ON_ANY);
	// _xZkqqHx_jBnOjEpAiClFiCmEiCkCiClN_xHqqkZx_ID_xZkqqHx_iDgFiBfLiDhFiDiLiCpAjGnPiClHiBeC_xHqqkZx_
	SetObjIDTbl(oitpBackup.first, oitpBackup.second);
	ObjDynabaseVector::iterator iObj;
	//----- _xZkqqHx_iLnGiOhOjFjEjFgJiCkKjDfMiCoIjFhEiCkPiClDiCoKiCmIiCkCiCkJiMjPiNlI_xHqqkZx_ -----
	BOOL bIsViolate = FALSE;
	for (long lC = 0; !bIsViolate && GetForbiddenObject(lC) != FDOJ_NONE; lC++)
	{
		//----- _xZkqqHx_iLnGiOhOjFjEjFgJiCkKiIoKiCmCiCmFiCoAiKnMiCnMiCoKiCoJiCkJiCmHiCkEiCkJiCpAiMjPiNlI_xHqqkZx_ -----
		for (iObj = vNewObj.begin(); !bIsViolate && iObj != vNewObj.end(); iObj++)
			bIsViolate = (*iObj)->IsMemberKindOf(GetForbiddenObject(lC));
		if (bIsViolate)
		//----- _xZkqqHx_iLnGiOhOjFjEjFgJiCkKiKnMiCnMiCoKiCoJiPoKiNiH_xHqqkZx_ -----
		{
			// _xZkqqHx_iClBiClBiCmJ_xHqqkZx_XX_xZkqqHx_jFjEjFgJiCpAjDfMiCoIjFhEiCkPiCoJiClBiCmGiCmNiCmFiCkLiCnMiClJiCpBiBeC_xHqqkZx_
			FFErrorBox(IDS_ERR_MSG_CANNOT_PASTE_XXX_HERE,
										FFObjTypeToStr(GetForbiddenObject(lC)));
			for (iObj = vNewObj.begin(); iObj != vNewObj.end(); iObj++)
			{
				// _xZkqqHx_iClBiClBiCmF_xHqqkZx_FCObjDynabase::Terminate()_xZkqqHx_iCmNiOmAiNhDiClFiCmIiCkCiBeC_xHqqkZx_
				// Molip_xZkqqHx_iCpA_xHqqkZx_OLE_xZkqqHx_iCmGiClFiCmEiDhJiBfLiDfIiDgHiClFiClNjAoGiCmMiDeBiDhGiDiKiCkJiCoHiBeB_xHqqkZx_Molip_xZkqqHx_iNmEjFnCiPfHiCkKiCmFiCkLiCmIiCkNiCmIiCmBiCmEiClFiCnMiCkEiClNiCnPiBeC_xHqqkZx_
				// _xZkqqHx_jFjEjFgJiOkJjBmMiCmMiNoNiPjMiBeC_xHqqkZx_
				delete *iObj;
			}
			// _xZkqqHx_jFjEjFgJiDiKiDfIiDgHiCpAiDeOiDiKiDeBiBeC_xHqqkZx_
			vNewObj.clear();
		}
	}
	// ObjID_xZkqqHx_iCmMiDfEiDhFiDgFiBfLiDhFiDiLiCmJjDgPjIfOiClDiCoKiClNjFjEjFgJiCpAiBeBjAlDiOkOiCmIiDgFiBfLiDhFiDiLiCmJjDgPjIfOiClHiCoJiBeC_xHqqkZx_
	if (!vNewObj.empty())
	//----- Embedded_xZkqqHx_iDgGiBfLiDfOiJmCiCmMiPoKiNiH_xHqqkZx_ -----
	{
		for (iObj = vNewObj.begin(); iObj != vNewObj.end(); iObj++)
		{
			(*iObj)->RegisterObjID();
		}
		// _xZkqqHx_jDgPjIfOjAeGiBeBjFjEjFgJ_xHqqkZx_ID_xZkqqHx_iCmIiCmHiBeBjFjEjFgJiCmMjBkOjAkLjCiGiCmJiLeMjIfOiClDiCoKiClN_xHqqkZx_ID_xZkqqHx_iCpAjFmPiKlHiClHiCoJiBeC_xHqqkZx_
		for (iObj = vNewObj.begin(); iObj != vNewObj.end(); iObj++)
		{
			// _xZkqqHx_jFjEjFgJiCmMiKmCiLkLjBkOjAkLiCpA_xHqqkZx_"_xZkqqHx_iDfEiDhFiKmCiLkL_xHqqkZx_ID<->_xZkqqHx_iKmCiLkL_xHqqkZx_ID"_xZkqqHx_jFmPiKlHiBeCjDoAjFjEiCmFiDfCiDhNiDjDiDgIjEkNiNhDiCmJjCiNiInDiBeC_xHqqkZx_
			(*iObj)->ConvertEnvProp(&convEnv);
		}

		// _xZkqqHx_jFjEjFgJjAlGjAkMiCmMiLeMjIfOiBeC_xHqqkZx_
		for (iObj = vNewObj.begin(); iObj != vNewObj.end(); iObj++)
			MulticmdCreate1Obj(*iObj, GetCurrentSheetId(), LAST_LAYER_ORDER);

		// _xZkqqHx_iDiKiDjDiDeOiDhNiDgMiBfLiDfHiDiDiCmMiDfEiDhFiDgFiBfLiDhFiDiLiCmMiDiKiDjDiDeOjCiGiCmMjFjEjFgJ_xHqqkZx_ID_xZkqqHx_iCpAjFmPiKlHiClFiBeB_xHqqkZx_
		// _xZkqqHx_iDiBiDeDiDjDiDgFiBfLiDhFiDiLiCnGjCmHiJmBiBeCjFjEjFgJjAlGjAkMiDfCiDhNiDjDiDgIjEkNiNhDiMoDiCmFiCmIiCkCiCmGjDkOiNoMiClFiCmIiCkCiBeC_xHqqkZx_
		FCLinkManager::ConvertSubToMain(&lnkMgr, &idtable);
	}
	ar.Close();
	delete pFile;
	//----- _xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiDfEiDeDiDfJiCmMiMhIiNjAjFfMiOkGiCmGiBeBjDfMiCoIjFhEiCkPiLnGiOhOiCmMiPiIjHjN_xHqqkZx_ -----
	if (!vNewObj.empty())
	//----- Embedded_xZkqqHx_iDgGiBfLiDfOiJmCiCmMiPoKiNiH_xHqqkZx_ -----
	{
		DBLRect mmrtFrame;
		::GetResizeFrame(mmrtFrame, &vNewObj.at(0), vNewObj.size());
		DBLRect mmrtSheet = g_pEnv->GetSheetRect();
		if (mmrtSheet.Width() < mmrtFrame.Width() || mmrtSheet.Height() < mmrtFrame.Height())
		//----- _xZkqqHx_iDfGiBfLiDgHiDfEiDeDiDfJiCpAiJhKiCkGiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
		{
			//----- _xZkqqHx_iDiBiDgCiDfKiBfLiDfHiDhAiDgMiDiLiCmMjFfMiOkG_xHqqkZx_ -----
			// _xZkqqHx_jFjEjFgJiCmMiDfEiDeDiDfJiCkKiDfGiBfLiDgHiDfEiDeDiDfJiCpAiJhKiCkGiCmEiCkCiCnMiClHiBeC_xHqqkZx_
			FFShowMsgPanel(IDS_MSG_OBJECTS_OVER_SHEET_SIZE);
		}
	}
} // CFCFoundDoc::DoPasteNative.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::DoPasteEmbedded
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jBlMiDeBiDhGiDiKiCmM_xHqqkZx_OLE_xZkqqHx_iDgGiBfLiDfOiCmMjDfMiCoIjFhEiCkPiPiIjHjNiCpAiNhDiCkEiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pDataObject	:OLE_xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgH_xHqqkZx_
 *			vNewObj		:_xZkqqHx_jAfGiLeLiCmJiNoMjAkMiClFiClNjFjEjFgJiCpAjFnLjBlGiClHiCoJiBeC_xHqqkZx_
 *			bAsLink		:_xZkqqHx_iDiKiDjDiDeOjDfMiCoIjFhEiCkPiCkJiCmHiCkEiCkJiOhHjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jCiNiInD_xHqqkZx_>	_xZkqqHx_jDoAjFjEiCmFiDfCiDhNiDjDiDgIiCpAjEkNiNhDiClHiCoJiBeCiDfKiDgCiDfGiDiHiDjDiCmNiKePjFjEiCmFiKeKiOgOiClHiCoJiClBiCmGiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	98.11.11 Fukushiro M. _xZkqqHx_iDfCiDiBiDjDiDgHiNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::DoPasteEmbedded (	COleDataObject* pDataObject,
									ObjDynabaseVector& vNewObj,
									BOOL bAsLink)
{
	// _xZkqqHx_jFjEjFgJiDiKiDfIiDgHiCpAiDeOiDiKiDeBiBeC_xHqqkZx_
	vNewObj.clear();
	// paste embedded
	CMolipDrawCntrItem4_0* pItem = new CMolipDrawCntrItem4_0(this);	// COleClientItem_xZkqqHx_iCmM_xHqqkZx_Subclass.
	ASSERT_VALID(pItem);

	TRY
	{
//----- 05.07.12 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//		if (!pItem->CreateFromData(pDataObject) &&
//			!pItem->CreateStaticFromData(pDataObject))
//		{
//			AfxThrowMemoryException();      // any exception will do
//		}
//----- 05.07.12 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
		BOOL bCreateItem;
		if (bAsLink)
			bCreateItem = pItem->CreateLinkFromData(pDataObject);
		else
			bCreateItem = pItem->CreateFromData(pDataObject);

//----- 06.03.27 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
		// _xZkqqHx_jAmDjDeJ_xHqqkZx_ActiveX_xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiCmGiClFiCmEiNoMjAkMiBeC_xHqqkZx_
		if (!bCreateItem)
			bCreateItem = pItem->CreateStaticFromData(pDataObject);
//----- 06.03.27 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
		if (!bCreateItem)
		{
//----- 06.03.27 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//			// pItem->CreateStaticFromData _xZkqqHx_iCmNiMmEiCmOiCmIiCkCiBeC_xHqqkZx_
//			// _xZkqqHx_jAmDjDeJiCmIiDgGiBfLiDfOiCmFiCkNiCoJiClBiCmGiCmNiCkAiCoIjDlOiCmIiCkCiBeC_xHqqkZx_
//----- 06.03.27 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
			AfxThrowMemoryException();      // any exception will do
		}
//----- 05.07.12 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
		// IrfanView _xZkqqHx_iCmFjDfMiCoIjFhEiCkPiClNiKeHiCmMiDfEiDeDiDfJiCkKjBoFiCkLiCkCiPoKiNiHiCmIiCmHiCmJjBmOiPiIiBeC_xHqqkZx_
		// _xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiDfEiDeDiDfJiCmMiMhIiNjAjFfMiOkGiCmGiBeBjDfMiCoIjFhEiCkPiLnGiOhOiCmMiPiIjHjNiBeC_xHqqkZx_
		DBLPoint mmptSize = lg2mm(pItem->GetSize(), g_->dDisplayPPM);
		if (FD_OBJ_MAX_W < mmptSize.x || FD_OBJ_MAX_H < mmptSize.y)
		//----- _xZkqqHx_jFjEjFgJiCmMiDfEiDeDiDfJiMmAjDhIjCgMiCpAiJhKiCkGiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
		{
			//----- _xZkqqHx_iDeHiDiJiBfLiDiBiDgCiDfKiBfLiDfHiCmMjFfMiOkG_xHqqkZx_ -----
			// _xZkqqHx_jFjEjFgJiCmMiDfEiDeDiDfJiCkKjBoFiCkLiClHiCkMiCnMiClHiBeC_xHqqkZx_
			FFErrorBox(IDS_ERR_MSG_OBJECT_TOO_LARGE);
			FFThrowMiscUnknown();
		}

		// OLE_xZkqqHx_jFjEjFgJiCpAiNoMjAkMiBeCiDfEiDeDiDfJiCmN_xHqqkZx_OLE_xZkqqHx_iDeBiDeDiDgFiDiAjAnNjCoIiOjOiCmJiMiIjCoIiClHiCoJiClNiCnPiBeBjDeLjDjGiCmFjHmHiCkCiBeC_xHqqkZx_
		FCObjOle* pObj = (FCObjOle*)::NewFDObjAny(FDOJ_OLE);
		// OLE_xZkqqHx_jFjEjFgJiCmJ_xHqqkZx_OLE_xZkqqHx_iDeBiDeDiDgFiDiAiCpAjAnNjCoIiClHiCoJiBeCiClBiCmMiOjOiBeBjFjEjFgJiDfEiDeDiDfJiCoAiMiIjCoIiClDiCoKiCoJiBeC_xHqqkZx_
		pObj->SetOleClientItemAndSize(pItem);
		// _xZkqqHx_jFjEjFgJ_xHqqkZx_ID_xZkqqHx_iCpAiOoGjDlOiClFiBeBjFjEjFgJiCmJjAnNjCoIiClHiCoJiBeC_xHqqkZx_
		pObj->RegisterObjID();
		// _xZkqqHx_jFjEjFgJjAlGjAkMiCmMiLeMjIfOiBeC_xHqqkZx_
		MulticmdCreate1Obj(pObj, GetCurrentSheetId(), LAST_LAYER_ORDER);
		// _xZkqqHx_iDhJiBfLiDfIiDgHjFjEjFgJiDiKiDfIiDgHiCmJjCmHiJmBiBeC_xHqqkZx_
		vNewObj.push_back(pObj);
		// try to get initial presentation data

		DBLRect mmrtSheet = g_pEnv->GetSheetRect();
		if (mmrtSheet.Width() < mmptSize.x || mmrtSheet.Height() < mmptSize.y)
		//----- _xZkqqHx_iDfGiBfLiDgHiDfEiDeDiDfJiCpAiJhKiCkGiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
		{
			// _xZkqqHx_iMhIiNjAiCmMiCnNiBeC_xHqqkZx_
			//----- _xZkqqHx_iDiBiDgCiDfKiBfLiDfHiDhAiDgMiDiLiCmMjFfMiOkG_xHqqkZx_ -----
			// _xZkqqHx_jFjEjFgJiCmMiDfEiDeDiDfJiCkKiDfGiBfLiDgHiDfEiDeDiDfJiCpAiJhKiCkGiCmEiCkCiCnMiClHiBeC_xHqqkZx_
			FFShowMsgPanel(IDS_MSG_OBJECTS_OVER_SHEET_SIZE);
		}
	}
	CATCH_ALL(e)
	{
		e->Delete();
		// clean up item
		pItem->Delete();
		FFErrorBox(IDP_FAILED_TO_CREATE);
	}
	END_CATCH_ALL
} // CFCFoundDoc::DoPasteEmbedded.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::DoPasteEmf
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDeOiDiKiDgCiDhGiDhLiBfLiDgIiCmM_xHqqkZx_EMF_xZkqqHx_iDgGiBfLiDfOiCpAjDfMiCoIjFhEiCkPiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	vNewObj	:_xZkqqHx_jAfGiLeLiCmJiNoMjAkMiClDiCoKiClNjFjEjFgJiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.07.12 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::DoPasteEmf (ObjDynabaseVector& vNewObj)
{
	// _xZkqqHx_jFjEjFgJiDiKiDfIiDgHiCpAiDeOiDiKiDeBiBeC_xHqqkZx_
	vNewObj.clear();
	// _xZkqqHx_iDeOiDiKiDgCiDhGiDhLiBfLiDgIiCpAiDeJiBfLiDhGiDjDiCmFiCkLiCmIiCkCiPoKiNiHiCmNjFjMiLeBiBeC_xHqqkZx_
	if (!::OpenClipboard(NULL)) return;
	// _xZkqqHx_iDeKiBfLiDfMiDiLiMgAiPpDiCpAjBnCiClPjFfMiOkGiCnGjFmPiNfIiBeC_xHqqkZx_
	BeginWaitCursor();
	// _xZkqqHx_iDeOiDiKiDgCiDhGiDhLiBfLiDgIiCkJiCoHiDiBiDfOiDhEiDeAiDeDiDiLiDgOiDjDiDgIiDiLiCpAiOoGjDlOiBeC_xHqqkZx_
	HENHMETAFILE hEMF = (HENHMETAFILE)::GetClipboardData(CF_ENHMETAFILE);
	hEMF = ::CopyEnhMetaFile(hEMF, NULL);
	// _xZkqqHx_iDeOiDiKiDgCiDhGiDhLiBfLiDgIiCpAjFmCiClGiCoJiBeC_xHqqkZx_
	::CloseClipboard();
	// _xZkqqHx_iDeKiBfLiDfMiDiLiMgAiPpDiCpAjGnPiClHiBeC_xHqqkZx_
	EndWaitCursor();
	// _xZkqqHx_iDiBiDfOiDhEiDeAiDeDiDiLiDgOiDjDiDgIiDiLiCkKjGlDiMpIiCmMiPoKiNiHiCmNjFjMiLeBiBeC_xHqqkZx_
	if (hEMF == NULL) return;
	// _xZkqqHx_iDiBiDfOiDhEiDeAiDeDiDiLiCmMiDhHiDgCiDfPiPoOjFpBiCpAiOoGjDlOiBeC_xHqqkZx_
	ENHMETAHEADER header;
	::GetEnhMetaFileHeader(hEMF, sizeof(ENHMETAHEADER), &header);
	// header.rclFrame_xZkqqHx_iCmN_xHqqkZx_0.01mm_xZkqqHx_jCfAiImKiCmMiDhEiDiMiBfLiDiAiDfEiDeDiDfJiBgJ_xHqqkZx_MSDN_xZkqqHx_iCmM_xHqqkZx_0.1mm_xZkqqHx_iCmNiMoLjAeBiBgKiBeC_xHqqkZx_
	// header.rclFrame_xZkqqHx_iCpAiOmAiNmAjFfHjCfAiImK_xHqqkZx_(mm_xZkqqHx_jCfAiImK_xHqqkZx_)_xZkqqHx_iCmJjFmPiKlHiBeC_xHqqkZx_
	DBLRect mmrtImage(header.rclFrame.left, header.rclFrame.top,
						header.rclFrame.right, header.rclFrame.bottom);
	mmrtImage /= 100.0;
//----- 02.11.06 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ (_xZkqqHx_iKgHjCkDiDiBiDfOiDhEiDeAiDeDiDiLiCmMiDhHiDgCiDfPiCpAiPjBjBnGiCkGiCmEiBeBjAlIjDhIiCpAiNiCiCnPiCoJ_xHqqkZx_)-----
//	// GetDeviceCaps(HORZRES) / GetDeviceCaps(HORZSIZE) _xZkqqHx_iCmJiKoOiCmDiCkCiClN_xHqqkZx_
//	// mm _xZkqqHx_jCfAiImKiCpA_xHqqkZx_GetDeviceCaps(LOGPIXELSX)_xZkqqHx_iCmJiKoOiCmDiCkCiClN_xHqqkZx_ mm _xZkqqHx_jCfAiImKiCmJjFmPiKlHiClHiCoJiBeC_xHqqkZx_
//	mmrtImage = mmreal2own(mmrtImage);
//----- 02.11.06 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ (_xZkqqHx_iKgHjCkDiDiBiDfOiDhEiDeAiDeDiDiLiCmMiDhHiDgCiDfPiCpAiPjBjBnGiCkGiCmEiBeBjAlIjDhIiCpAiNiCiCnPiCoJ_xHqqkZx_)-----

//----- 02.09.13 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ (_xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiDfEiDeDiDfJiCmMiMhIiNjAjFfMiOkGiCmGiBeBjDfMiCoIjFhEiCkPiLnGiOhOiCmMiPiIjHjN_xHqqkZx_)-----
	if (FD_OBJ_MAX_W < mmrtImage.Width() || FD_OBJ_MAX_H < mmrtImage.Height())
	//----- _xZkqqHx_jFjEjFgJiCmMiDfEiDeDiDfJiMmAjDhIjCgMiCpAiJhKiCkGiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
	{
		//----- _xZkqqHx_iDeHiDiJiBfLiDiBiDgCiDfKiBfLiDfHiCmMjFfMiOkG_xHqqkZx_ -----
		// _xZkqqHx_jFjEjFgJiCmMiDfEiDeDiDfJiCkKjBoFiCkLiClHiCkMiCnMiClHiBeC_xHqqkZx_
		FFErrorBox(IDS_ERR_MSG_OBJECT_TOO_LARGE);
		// _xZkqqHx_iDiBiDfOiDhEiDeAiDeDiDiLiDgOiDjDiDgIiDiLiCpAjFmCiClGiCoJiBeC_xHqqkZx_
		DeleteEnhMetaFile(hEMF);
		return;
	}
//----- 02.09.13 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ (_xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiDfEiDeDiDfJiCmMiMhIiNjAjFfMiOkGiCmGiBeBjDfMiCoIjFhEiCkPiLnGiOhOiCmMiPiIjHjN_xHqqkZx_)-----

	// _xZkqqHx_iDiBiDfOiDhEiDeAiDeDiDiLiDgOiDjDiDgIiDiLiCkJiCoHiDiBiDfOiDhEiDeAiDeDiDiLiDgGiBfLiDfOiCpAiOoGjDlOiBeC_xHqqkZx_
	UINT dwSize = ::GetEnhMetaFileBits(hEMF, 0, NULL);
	BYTEVector vbyBuff;
	vbyBuff.assign(dwSize);
	GetEnhMetaFileBits(hEMF, dwSize, &vbyBuff[0]);
	// _xZkqqHx_iDiBiDfOiDhEiDeAiDeDiDiLiDgOiDjDiDgIiDiLiCpAjFmCiClGiCoJiBeC_xHqqkZx_
	DeleteEnhMetaFile(hEMF);
	// _xZkqqHx_iDfKiDgCiDfGiDiHiDjDiCpAiKeKiOgOiClHiCoJiBeC_xHqqkZx_
	SessionBegin();
	// _xZkqqHx_iDiBiDfOiDhEiDeAiDeDiDiLiCpAjDgPjIfOiClHiCoJiBeC_xHqqkZx_
//----- 01.02.27 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	EmfImageID emid = CmdAppend1EmfImage(
//								FCEmfImageRec(&vbyBuff[0], dwSize, L""));
//----- 01.02.27 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	EmfImageID emid;
	CmdInsert1EmfImage(emid, FCEmfImageRec(&vbyBuff[0], dwSize, L""));
//----- 01.02.27 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
	//----- _xZkqqHx_iDiBiDfOiDhEiDeAiDeDiDiLjFfMiOkGjHhAiCmJiLoJiMgAjFjEjFgJiCpAiNoMjAkMiClHiCoJ_xHqqkZx_ -----
	FCObjRect* pObj = FCObjRect::CreateEMFObjRect(mmrtImage, emid);
	// _xZkqqHx_jFjEjFgJ_xHqqkZx_ID_xZkqqHx_iCpAiOoGjDlOiClFiBeBjFjEjFgJiCmJjAnNjCoIiClHiCoJiBeC_xHqqkZx_
	pObj->RegisterObjID();
	// _xZkqqHx_jFjEjFgJjAlGjAkMiCmMiLeMjIfOiBeC_xHqqkZx_
	MulticmdCreate1Obj(pObj, GetCurrentSheetId(), LAST_LAYER_ORDER);
	// _xZkqqHx_iLeMjIfOiDfKiDgCiDfGiDiHiDjDiCmMiPeJjHlJiBeC_xHqqkZx_
	SessionEnd();
	// _xZkqqHx_iNoMjAkMiClFiClNjFjEjFgJiCpAiDiKiDfIiDgHiCmJjAnNjCoIiBeC_xHqqkZx_
	vNewObj.push_back(pObj);
//----- 02.09.13 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ (_xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiDfEiDeDiDfJiCmMiMhIiNjAjFfMiOkGiCmGiBeBjDfMiCoIjFhEiCkPiLnGiOhOiCmMiPiIjHjN_xHqqkZx_)-----
	DBLRect mmrtSheet = g_pEnv->GetSheetRect();
	if (mmrtSheet.Width() < mmrtImage.Width() || mmrtSheet.Height() < mmrtImage.Height())
	//----- _xZkqqHx_iDfGiBfLiDgHiDfEiDeDiDfJiCpAiJhKiCkGiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
	{
		//----- _xZkqqHx_iDiBiDgCiDfKiBfLiDfHiDhAiDgMiDiLiCmMjFfMiOkG_xHqqkZx_ -----
		// _xZkqqHx_jFjEjFgJiCmMiDfEiDeDiDfJiCkKiDfGiBfLiDgHiDfEiDeDiDfJiCpAiJhKiCkGiCmEiCkCiCnMiClHiBeC_xHqqkZx_
//----- 04.08.23 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//		WString strMsg;
//		strMsg.LoadString(IDS_MSG_OBJECTS_OVER_SHEET_SIZE);
//		FFShowMsgPanel(IDS_MSG_OBJECTS_OVER_SHEET_SIZE, strMsg);
//----- 04.08.23 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
		FFShowMsgPanel(IDS_MSG_OBJECTS_OVER_SHEET_SIZE);
//----- 04.08.23 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
	}
//----- 02.09.13 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ (_xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiDfEiDeDiDfJiCmMiMhIiNjAjFfMiOkGiCmGiBeBjDfMiCoIjFhEiCkPiLnGiOhOiCmMiPiIjHjN_xHqqkZx_)-----
} // CFCFoundDoc::DoPasteEmf.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::DoPasteText
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDeOiDiKiDgCiDhGiDhLiBfLiDgIiCmMiDgFiDeMiDfIiDgHiDgGiBfLiDfOiCpAjDfMiCoIjFhEiCkPiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	vNewObj	:_xZkqqHx_jAfGiLeLiCmJiNoMjAkMiClDiCoKiClNjFjEjFgJiCpAjFnEiClHiBeC_xHqqkZx_
 *			dwFormat:_xZkqqHx_iDhEiDeIiBfLiDhNiDgCiDgHiCpAiOhHjCoIiBeC_xHqqkZx_CF_RTF,CF_UNICODETEXT,CF_TEXT_xZkqqHx_iCkKiOhHjCoIiJmCjEfMiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iLoJiMgAjFjEjFgJiCpAiNoMjAkMiClFiBeBiLoJiMgAjFjEjFgJiCmJiDgFiDeMiDfIiDgHiCpAjDfMiCoIjFhEiCkPiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.07.13 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::DoPasteText (ObjDynabaseVector& vNewObj, UINT dwFormat)
{
	// _xZkqqHx_jFjEjFgJiDiKiDfIiDgHiCpAiDeOiDiKiDeBiBeC_xHqqkZx_
	vNewObj.clear();
	FCObjRect* pObj = (FCObjRect*)g_pToolManager->CommandID2Tool(ID_TOOL_RICH_TEXT)->GetInsideObject()->Duplicate();
	DBLRect mmrtFrame = pObj->GetResizeFrame();
	// _xZkqqHx_jFjEjFgJjCiGiCmMiDgFiDeMiDfIiDgHiDeJiDhFiDfHiDeGiDeOiDgHiCpAiNoMjAkMiBeC_xHqqkZx_
	FCRichText* pRichText = pObj->CreateRichText();
	FCRichText* pOldText = pObj->SetRichText(pRichText);
	if (pOldText != NULL) delete pOldText;
	// _xZkqqHx_iDeHiDgGiDeCiDfOiCmJiDgFiDeMiDfIiDgHiCpAjBjHiCoJiBeC_xHqqkZx_
	pRichText->OnStartToEditText(pObj, FD_RPT_H_LEFT | FD_RPT_V_TOP, FALSE, FALSE, NULL);
	// _xZkqqHx_iDgFiDeMiDfIiDgHiCpAjDfMiCoIjFhEiCkPiCoJiBeC_xHqqkZx_
	g_pView->GetRTFEditor()->OnPasteSpec(dwFormat);
	// _xZkqqHx_iDgFiDeMiDfIiDgHiCkKiOpLiCnMiCoJiDfEiDeDiDfJiCnGiCmMiKgHjBoFjHkGiBeC_xHqqkZx_
	double dRatioHorz;
	double dRatioVert;
	pRichText->OnStopToEditText(BYTEVector(), dRatioHorz, dRatioVert, pObj);
	// _xZkqqHx_iNlGiPoDiCpA_xHqqkZx_(0,0)_xZkqqHx_iCmJiNiHiCoNiClJiCmEiBeBiJeFiJlKiCpAiDfEiDeDiDfJjClCjAkOiBeC_xHqqkZx_
	mmrtFrame -= DBLPoint(mmrtFrame.left, mmrtFrame.top);
	mmrtFrame.right *= dRatioHorz;
	mmrtFrame.bottom *= dRatioVert;
	// _xZkqqHx_iJeFiJlKiCpAiDfIiDgJiDgCiDhGiCmJiNiHiCoNiClJiCoJiBeC_xHqqkZx_
	DBLRect mmrtNewFrame = mmrtFrame;
	FFSnapMP(&mmrtNewFrame.right, &mmrtNewFrame.bottom);
	if (almostless(mmrtNewFrame.right, mmrtFrame.right))
		FFSnapMoveMP(&mmrtNewFrame.right, NULL, 1, 0);
	if (almostless(mmrtNewFrame.bottom, mmrtFrame.bottom))
		FFSnapMoveMP(NULL, &mmrtNewFrame.bottom, 0, 1);
	// _xZkqqHx_jFjEjFgJiCpAiDiKiDfEiDeDiDfJiBeC_xHqqkZx_
	pObj->Resize(TRUE, TRUE, mmrtNewFrame, pObj->GetResizeFrame());
	// _xZkqqHx_iDfKiDgCiDfGiDiHiDjDiCpAiKeKiOgOiClHiCoJiBeC_xHqqkZx_
	SessionBegin();
	// _xZkqqHx_jFjEjFgJ_xHqqkZx_ID_xZkqqHx_iCpAiOoGjDlOiClFiBeBjFjEjFgJiCmJjAnNjCoIiClHiCoJiBeC_xHqqkZx_
	pObj->RegisterObjID();
	// _xZkqqHx_jFjEjFgJjAlGjAkMiCmMiLeMjIfOiBeC_xHqqkZx_
	MulticmdCreate1Obj(pObj, GetCurrentSheetId(), LAST_LAYER_ORDER);
//----- 06.12.05 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_iOgHiCoNiCoKiCmEiCkCiCmIiCkCiDhEiDeIiDjDiDgHiCpAjAkOjHjNiBeC_xHqqkZx_
	g_pDoc->MulticmdDeleteUnusedFonts();
//----- 06.12.05 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
	// _xZkqqHx_iLeMjIfOiDfKiDgCiDfGiDiHiDjDiCmMiPeJjHlJiBeC_xHqqkZx_
	SessionEnd();
	// _xZkqqHx_iNoMjAkMiClFiClNjFjEjFgJiCpAjDgPjIfOiBeC_xHqqkZx_
	vNewObj.push_back(pObj);
} // CFCFoundDoc::DoPasteText.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::DoPasteCsv
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDeOiDiKiDgCiDhGiDhLiBfLiDgIiCmMiDgFiDeMiDfIiDgHiDgGiBfLiDfOiCpA_xHqqkZx_CSV_xZkqqHx_iCmGiClFiCmEjDfMiCoIjFhEiCkPiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	vNewObj	:_xZkqqHx_jAfGiLeLiCmJiNoMjAkMiClDiCoKiClNjFjEjFgJiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_jFfMjFjEjFgJiCpAiNoMjAkMiClFiBeBjFfMjFjEjFgJiCmJiDgFiDeMiDfIiDgHiCpAjDfMiCoIjFhEiCkPiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.07.14 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::DoPasteCsv (ObjDynabaseVector& vNewObj)
{
	// _xZkqqHx_jFjEjFgJiDiKiDfIiDgHiCpAiDeOiDiKiDeBiBeC_xHqqkZx_
	vNewObj.clear();

	// _xZkqqHx_iDeOiDiKiDgCiDhGiDhLiBfLiDgIiCpAiDeJiBfLiDhGiDjDiCmFiCkLiCmIiCkCiPoKiNiHiCmNjFjMiLeBiBeC_xHqqkZx_
	if (!::OpenClipboard(NULL)) return;
	// _xZkqqHx_iDeKiBfLiDfMiDiLiMgAiPpDiCpAjBnCiClPjFfMiOkGiCnGjFmPiNfIiBeC_xHqqkZx_
	BeginWaitCursor();
	WString wstrText;
	// _xZkqqHx_iDeOiDiKiDgCiDhGiDhLiBfLiDgIiCkJiCoHiDgOiDjDiDgIiDiLiCpAiOoGjDlOiBeC_xHqqkZx_
	HANDLE hText = ::GetClipboardData(CF_UNICODETEXT);
	if (hText != NULL)
	{
		wstrText = (const wchar_t*)GlobalLock(hText);
		GlobalUnlock(hText);
	} else
	{
		hText = ::GetClipboardData(CF_TEXT);
		if (hText != NULL)
		{
			wstrText = AStrToWStr((const char*)GlobalLock(hText));
			GlobalUnlock(hText);
		}
	}
	// _xZkqqHx_iDeOiDiKiDgCiDhGiDhLiBfLiDgIiCpAjFmCiClGiCoJiBeC_xHqqkZx_
	::CloseClipboard();
	// _xZkqqHx_iDeKiBfLiDfMiDiLiMgAiPpDiCpAjGnPiClHiBeC_xHqqkZx_
	EndWaitCursor();

	// _xZkqqHx_iDgFiDeMiDfIiDgHiCpAiBeBiDfOiDhFiLoGjAnIiCoIiCmFiDhNiDgHiDiKiDgCiDeOiDfIiPpDiCmMiDgFiDeMiDfIiDgHjEhKjHpBiCmJiNoMiCoIjClMiClHiBeC_xHqqkZx_
	vector<WStringVector> vvTextTable;
//----- 06.11.20 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	vvTextTable.push_back(WStringVector());
//	const wchar_t* wcpText = wstrText.c_str();
//	for (;;)
//	{
//		WString wstrItem;
//		wchar_t wLastChar;
//		// CSV_xZkqqHx_iCmMiCfAiDeBiDeDiDgFiDiAiCpAjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
//		if (!FFGetCSVItem(wstrItem, wLastChar, wcpText))
//			break;
//		vvTextTable.back().push_back(wstrItem);
//		// _xZkqqHx_iJpMiNhDiDfCiBfLiDgIiCmFiPeJjHlJiClFiClNiPoKiNiHiCmNiBeBiNhDiCpAjCmHiJmBiBeC_xHqqkZx_
//		if (wLastChar == L'\n')
//			vvTextTable.push_back(WStringVector());
//		else
//		if (wLastChar == L'\0')
//			break;
//		ASSERT(wLastChar == L'\n' || wLastChar == L'\t');
//	}
//	// _xZkqqHx_iDgFiDeMiDfIiDgHjEhKjHpBiCmMiNmFiMoDiCmMiNhDiCkKiLpDiCmMiPoKiNiHiCmNiBeBiNmFiMoDiCmMiNhDiCpAiNoNiPjMiClHiCoJiBeC_xHqqkZx_
//	if (vvTextTable.back().size() == 0)
//		vvTextTable.pop_back();
//	else
//	if (vvTextTable.back().size() == 1 &&
//		vvTextTable.back().front().IsEmpty())
//		vvTextTable.pop_back();
//
//	// _xZkqqHx_iDgFiDeMiDfIiDgHjEhKjHpBiCmNiNhDiClCiCmGiCmJjHpBjAjEiCkKiInJiCmIiCoJiCmMiCmFiBeBiNmFjBoFiCmMjHpBjAjEiCpAiOfKiPgPiClHiCoJiBeC_xHqqkZx_
//	long lMaxColumn = 0;
//	long lLineIndex;
//	for (lLineIndex = 0; lLineIndex != vvTextTable.size(); lLineIndex++)
//		if (lMaxColumn < vvTextTable[lLineIndex].size())
//			lMaxColumn = vvTextTable[lLineIndex].size();
//----- 06.11.20 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	// _xZkqqHx_iDgFiDeMiDfIiDgHiCpAiBeBiDfOiDhFiLoGjAnIiCoIiCmFiDhNiDgHiDiKiDgCiDeOiDfIiPpDiCmMiDgFiDeMiDfIiDgHjEhKjHpBiCmJiNoMiCoIjClMiClHiBeC_xHqqkZx_
	FFGetCSVTable(vvTextTable, wstrText.c_str());
//----- 06.11.20 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----

	// _xZkqqHx_iDgDiBfLiDiLjDoAjFjEjFjEjFgJiCmMjFfMjFjEjFgJiCpAjFkBiOmKiClHiCoJiBeCiPiJiKpKiPpDjBnEiCmF_xHqqkZx_1x1_xZkqqHx_iCmMiDeBiDeDiDgFiDiAiCpAiOjNiCmBiCmEiCkCiCoJiBeC_xHqqkZx_
	FCObjTable* pObj = (FCObjTable*)g_pToolManager->CommandID2Tool(ID_TOOL_TABLE)->GetInsideObject()->Duplicate();
	// _xZkqqHx_jFfMjFjEjFgJiCpAjEhKjHpBiCmMiNhD_xHqqkZx_x_xZkqqHx_jHpBiCmMiDfEiDeDiDfJiCmJiPiJiKpKiJlLiClHiCoJiBeC_xHqqkZx_
// 06.11.22 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//	pObj->InitTable(vvTextTable.size(), lMaxColumn);
	pObj->InitTable(vvTextTable.size(), vvTextTable.front().size());
// 06.11.20 Fukushiro M. 1_xZkqqHx_iNhDjCmHiJmB_xHqqkZx_ ()
	long lLineIndex;
	for (lLineIndex = 0; lLineIndex != pObj->GetLineCount(); lLineIndex++)
	{
		mmetol mmMaxHeight = FD_OBJ_TABLE_MIN_CELL_HEIGHT;
		long lColumnIndex;
		for (lColumnIndex = 0; lColumnIndex != pObj->GetColumnCount(); lColumnIndex++)
		{
//----- 06.11.22 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//			// _xZkqqHx_jHpBjAjEiCkKjBkLiCoIiCmIiCkCiPoKiNiHiCmNiBeBiLpDiCmMjFlGiOjKiCpAjHpBiCmGiClFiCmEjCmHiJmBiBeC_xHqqkZx_
//			if (vvTextTable[lLineIndex].size() == lColumnIndex)
//				vvTextTable[lLineIndex].push_back(WString());
//----- 06.11.22 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
			if (!vvTextTable[lLineIndex][lColumnIndex].IsEmpty())
			//----- _xZkqqHx_iDfKiDiLiCmJjBhNjDpMiClHiCoJiDgFiDeMiDfIiDgHiCkKjBlGiNnNiClHiCoJiPoKiNiH_xHqqkZx_ -----
			{
				// _xZkqqHx_jFfMjFjEjFgJiCmMiDfKiDiLjFjEjFgJiCpAiOoGjDlOiBeC_xHqqkZx_
				FCObjTextRect* pObjText = pObj->GetCell(FCLineColumn(lLineIndex, lColumnIndex));
				// _xZkqqHx_iDgFiDeMiDfIiDgHiCpAiNoMjAkMiBeC_xHqqkZx_
				if (pObjText->GetRichText() == NULL)
					pObjText->SetRichText(pObjText->CreateRichText());
				// _xZkqqHx_iDgFiDeMiDfIiDgHiDeHiDgGiDeCiDfOiCmFjEpBjFfMiOkGjFnCiPfHiKeKiOgOiBeC_xHqqkZx_
				pObjText->GetRichText()->OnStartToEditText(pObjText, FD_RPT_V_TOP, FALSE, FALSE, NULL);
				// _xZkqqHx_iDgFiDeMiDfIiDgHiCpAjDfMiCoIjFhEiCkPiCoJiBeC_xHqqkZx_
				g_pView->GetRTFEditor()->OnChars(vvTextTable[lLineIndex][lColumnIndex]);
				// _xZkqqHx_iDgFiDeMiDfIiDgHiCkKiOpLiCnMiCoJiDfEiDeDiDfJiCnGiCmMiKgHjBoFjHkGiBeC_xHqqkZx_
				double dRatioHorz;
				double dRatioVert;
				pObjText->GetRichText()->OnStopToEditText(BYTEVector(), dRatioHorz, dRatioVert, pObjText);
				ASSERT(dRatioHorz == 1.0);
				mmetol mmHeight = pObjText->GetResizeFrame().Height() * dRatioVert;
				if (mmMaxHeight < mmHeight) mmMaxHeight = mmHeight;
			}
		}
		// _xZkqqHx_iClBiCmMiNhDiCmMiNiCiClDiCpAiOfKiPgPiBeC_xHqqkZx_
		mmetol mmNewHeight = mmMaxHeight;
		// _xZkqqHx_iDfIiDgJiDgCiDhGiCmJiNiHiCoNiClJiCoJiBeC_xHqqkZx_
		FFSnapMP(NULL, &mmNewHeight);
		if (almostless(mmNewHeight, mmMaxHeight))
			FFSnapMoveMP(NULL, &mmNewHeight, 0, 1);
		// _xZkqqHx_jFfMjFjEjFgJiCmMiNhDiNiCiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
		pObj->SetLineHeight(lLineIndex, mmNewHeight);
	}
	// _xZkqqHx_iDiKiDfEiDeDiDfJiDhEiDiMiBfLiDiAiCpAiNmEiMhGiOfKiBeC_xHqqkZx_
	pObj->CalcResizeFrame();
	// _xZkqqHx_iDfKiDgCiDfGiDiHiDjDiCpAiKeKiOgOiClHiCoJiBeC_xHqqkZx_
	SessionBegin();
	// _xZkqqHx_jFjEjFgJ_xHqqkZx_ID_xZkqqHx_iCpAiOoGjDlOiClFiBeBjFjEjFgJiCmJjAnNjCoIiClHiCoJiBeC_xHqqkZx_
	pObj->RegisterObjID();
	// _xZkqqHx_jFjEjFgJjAlGjAkMiCmMiLeMjIfOiBeC_xHqqkZx_
	MulticmdCreate1Obj(pObj, GetCurrentSheetId(), LAST_LAYER_ORDER);
	// _xZkqqHx_iLeMjIfOiDfKiDgCiDfGiDiHiDjDiCmMiPeJjHlJiBeC_xHqqkZx_
	SessionEnd();
	// _xZkqqHx_iNoMjAkMiClFiClNjFjEjFgJiCpAjDgPjIfOiBeC_xHqqkZx_
	vNewObj.push_back(pObj);
} // CFCFoundDoc::DoPasteCsv.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::GetForbiddenObject
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iClBiCmMiDgIiDeMiDiFiDiBiDjDiDgHiCmFiIlFiCkCiCkKiLnGiOhOiClDiCoKiClNjFjEjFgJiCmMiOoNjHnOiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	lIndex	:_xZkqqHx_iDeDiDjDiDgGiDgCiDeOiDfIiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_jFjEjFgJiOoNiBeCiOhHjCoIiCmMiDeDiDjDiDgGiDgCiDeOiDfIiCkKiNmFiMoDiCmIiCoHiCmO_xHqqkZx_ FDOJ_NONE_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iClBiCmMjFjEjFgJiOoNiCmMiDfEiDhFiDeOiDiJiDfIjBfDiCmEiCkKiLnGiOhOiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.04.12 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
FTObjectType CFCFoundDoc::GetForbiddenObject (long lIndex) const
{
	return FDOJ_NONE;
} // CFCFoundDoc::GetForbiddenObject.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OpenUndo
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	Undo_xZkqqHx_iDhEiDeAiDeDiDiLiCpAiDeJiBfLiDhGiDjDiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jCiNiInD_xHqqkZx_>	_xZkqqHx_iDeHiDiJiBfLiOjOiCmNjHoBiKePiCpAjEkNjAlGiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.03.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *			99.12.10 Fukushiro M. wcpPathName_xZkqqHx_iCpAjCmHiJmBiBeC_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OpenUndo ()
{
	// HistoricDraw _xZkqqHx_iCmFiCmNiClBiClBiCmNiMmEiCmOiCoKiCmIiCkCiBeC_xHqqkZx_

	// Undo_xZkqqHx_jHhAiDhEiDeAiDeDiDiLjGlMiCpAiNoMjAkMiBeC_xHqqkZx_
	WString wstrUndo;
	// _xZkqqHx_iDgHiDgCiDhGiDePiDiLiBfLiDhGiBeC_xHqqkZx_
	FCDbGroup dbTopGroup;
	long lC;
	for (lC = 0; lC < 5; lC++)
	{
		// TMP_xZkqqHx_iDgGiDeCiDiMiDeOiDgHiDiKiCmJiDiGiDgKiBfLiDeOiCmIiDhEiDeAiDeDiDiLjGlMiCpAiNoMjAkMiClHiCoJiBeC_xHqqkZx_
		wstrUndo = g_pFileServer->MakeUniqTmpTopGroupPath(FD_FILE_EXT_UNDO_WORK);
		// _xZkqqHx_iDePiDiLiBfLiDhGiCpAiNoMjAkMiBeC_xHqqkZx_
		FCDbReadLock readLock;
		FCDbWriteLock writeLock;
		dbTopGroup = g_pFileServer->CreateTopGroup(readLock, writeLock, HString(wstrUndo));
		// _xZkqqHx_iNoMjAkMiCmFiCkLiClNiPoKiNiHiCmNiDiLiBfLiDhGiCpAjElCiCkPiCoJiBeC_xHqqkZx_
		if (!dbTopGroup.GetIsInvalid())
		{
			// _xZkqqHx_iDfCiDhNiDjDiDgIiDgFiBfLiDhFiDiLiCmMiDiNiDgCiDeOiCpAjFnLjBlGiBeC_xHqqkZx_
			m_lockBankGate.Append(readLock);
			m_lockBankGate.Append(writeLock);
			break;
		}
	}
	// _xZkqqHx_iDgGiDeCiDiMiDeOiDgHiDiKiNoMjAkMiCmJiOlIjEhDiClFiClNiPoKiNiHiCmNiDeHiDiJiBfLiBeCiBhFiDgGiDeCiDiMiDeOiDgHiDiKiCkKiNoMjAkMiCmFiCkLiCnMiClJiCpBiBhG_xHqqkZx_
	if (lC == 5)
		FFThrowDDFileException(IDS_ERR_FILE_NOT_CREATE_DIRECTORY, wstrUndo);

	//----- _xZkqqHx_iDfCiDhNiDjDiDgIiDgFiBfLiDhFiDiLiNoMjAkM_xHqqkZx_ -----
	FCDbReadLock readLock;
	FCDbWriteLock writeLock;
	FCDbTable dbTable = dbTopGroup.CreateSubTable(	readLock,
													writeLock,
													NULL, 0,
													FDHI_COMMAND_TABLE_ID);
	// _xZkqqHx_iDfEiDhFiDgFiBfLiDhFiDiLiCmMiNoMjAkMiCmJiOlIjEhDiClFiClNiPoKiNiHiCmN_xHqqkZx_FALSE_xZkqqHx_iBeC_xHqqkZx_
	if (dbTable.GetIsInvalid())
		FFThrowMiscException(FFGetDDErrorMessage());
	// _xZkqqHx_iDiNiDgCiDeOiDgPiDjDiDeOiCmJiDiNiDgCiDeOiCpAjChOjAmPiBeC_xHqqkZx_
	m_lockBankGate.Append(readLock);
	m_lockBankGate.Append(writeLock);

	// Undo_xZkqqHx_iDhEiDeAiDeDiDiLiCmMiPiJiKpKiJlLiBeC_xHqqkZx_
	*m_pGate = dbTopGroup;
// 06.04.06 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//	m_pGate->WriteHeader(0, FFGetCurrentSecTime());
	m_pGate->WriteHeader(0, FFGetCurrentSecTime(), GUID_NULL);
	m_pGate->UpdateDataA(m_lockBankGate);

//----- 06.05.24 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_iMlLiNnNiCmMjHjKjHpAiDhEiDeAiDeDiDiLiImKjChFiCpAiDiKiDfKiDgCiDgHiBeC_xHqqkZx_
	m_fliLastSavedSessionIdx = GetNextSessionIndexAbout();
//----- 06.05.24 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----

	// Flush_xZkqqHx_jHhAiCmMiDfOiDeDiDhNiBfLjAnNjCoIiBeC_xHqqkZx_
	(void)FFGetMainWnd()->GetWnd()->KillTimer(FDTIMER_FRAME_FLUSH);
	(void)FFGetMainWnd()->GetWnd()->SetTimer(FDTIMER_FRAME_FLUSH, FD_INTERVAL_FRAME_FLUSH, NULL);
} // CFCFoundDoc::OpenUndo.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::CloseUndo
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	Undo_xZkqqHx_iDhEiDeAiDeDiDiLiCpAiDeOiDiNiBfLiDfJiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.03.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::CloseUndo ()
{
	// Undo_xZkqqHx_iDhEiDeAiDeDiDiLiCkKjFmCiClGiCmEiCkCiCoKiCmOjFjMiLeBiBeC_xHqqkZx_OnNewDocument_xZkqqHx_iCmMiNmFiPiJiCmF_xHqqkZx_DeleteContents
	// _xZkqqHx_iCkKiOmAiNhDiClDiCoKiCoJiInHiBeC_xHqqkZx_
	if (!m_pGate->IsOpened()) return;
	// Flush_xZkqqHx_jHhAiCmMiDfOiDeDiDhNiBfLiPeJjHlJiBeC_xHqqkZx_
	if (FFGetMainWnd()->IsAvailable())
		(void)FFGetMainWnd()->GetWnd()->KillTimer(FDTIMER_FRAME_FLUSH);
	// _xZkqqHx_iDfCiDhNiDjDiDgIiDgFiBfLiDhFiDiLiCmMiDiNiDgCiDeOiCpAiDeOiDiKiDeBiBeC_xHqqkZx_
	m_lockBankGate.Clear();
	// m_pGate->Clear()_xZkqqHx_iCmMjBePiCmJiDhEiDeAiDeDiDiLjGlMiCpAiLeMjIfOiBeC_xHqqkZx_
	HString hstrTopDirPath = m_pGate->GetTableName().GetTopDirPath();
	// Undo_xZkqqHx_iDhEiDeAiDeDiDiLiCpAjFmCiClGiCoJiBeC_xHqqkZx_
	m_pGate->Clear();
//----- 06.05.24 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_iMlLiNnNiCmMjHjKjHpAiDhEiDeAiDeDiDiLiImKjChFiCpAiDiKiDfKiDgCiDgHiBeC_xHqqkZx_
	m_fliLastSavedSessionIdx = -1;
//----- 06.05.24 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
	// _xZkqqHx_iOgDiCmBiClNiDgHiDiJiDjDiDfFiDeOiDfGiDiHiDjDiCpAiNoNiPjMiClHiCoJiBeC_xHqqkZx_
	g_pFileServer->ClearAllTransaction();
//----- 06.05.16 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// Write_xZkqqHx_iDiNiDgCiDeOiCmMiDeMiDiDiDgCiDfGiDiFiCpAiJpAiPjMiClHiCoJiBeC_xHqqkZx_
	g_pFileServer->ClearWriteLockForFlush();
//----- 06.05.16 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
	// Undo_xZkqqHx_iDhEiDeAiDeDiDiLiCpAiDgGiDeCiDiMiDeOiDgHiDiKiClCiCmGiNoNiPjMiBeC_xHqqkZx_
	g_pFileServer->DeleteTopGroup(hstrTopDirPath);
//----- 06.01.04 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
} // CFCFoundDoc::CloseUndo.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::CmdCreate1Obj
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iCfAjFjEjFgJiCpAiNoMjAkMiClHiCoJiDfCiDhNiDjDiDgIiCpAjEkNiNhDiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	protected_xZkqqHx_iCmJiClHiCoJiClNiCnPiBeBiDeDiDjDiDhGiDiKiDiBiDjDiDgHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.02.14 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::CmdCreate1Obj (FCObjDynabase* objp, SheetID stid, const FCLayerZOrder& lzorder)
{
	BASE_CLASS::CmdCreate1Obj(objp, stid, lzorder);
} // CFCFoundDoc::CmdCreate1Obj.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::CmdDelete1Obj
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iCfAjFjEjFgJiCpAiNoNiPjMiClHiCoJiDfCiDhNiDjDiDgIiCpAjEkNiNhDiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	protected_xZkqqHx_iCmJiClHiCoJiClNiCnPiBeBiDeDiDjDiDhGiDiKiDiBiDjDiDgHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.02.14 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::CmdDelete1Obj (FCObjDynabase* objp, SheetID stid)
{
	BASE_CLASS::CmdDelete1Obj(objp, stid);
} // CFCFoundDoc::CmdDelete1Obj.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::GetImageExportFormat
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iJoGjBjMiDeHiDeOiDfIiDhMiBfLiDgHiJmCjEfMiCmGiClFiCmEjDgPjIfOiClDiCoKiCmEiCkCiCoJiDhEiDeIiBfLiDhNiDgCiDgHiCmMiCkEiClPiBeB_xHqqkZx_
 *			_xZkqqHx_iOhHjCoIiClDiCoKiClNiDeDiDjDiDgGiDgCiDeOiDfIiCmMiDhEiDeIiBfLiDhNiDgCiDgHiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	dwFormatId	:_xZkqqHx_iDhEiDeIiBfLiDhNiDgCiDgHiDeDiDjDiDgGiDgCiDeOiDfIiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDhEiDeIiBfLiDhNiDgCiDgHiDiMiDfCiBfLiDgIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.03.19 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
const FCExportFormatRec& CFCFoundDoc::GetImageExportFormat (DWORD dwFormatId) const
{
	return m_vStrImageExportFormat[dwFormatId];
} // CFCFoundDoc::GetImageExportFormat.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::GetImageExportFormatCount
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iJoGjBjMiDeHiDeOiDfIiDhMiBfLiDgHiJmCjEfMiCmGiClFiCmEjDgPjIfOiClDiCoKiCmEiCkCiCoJiDhEiDeIiBfLiDhNiDgCiDgHiCmMjAjEiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iJoGjBjMiDeHiDeOiDfIiDhMiBfLiDgHiJmCjEfMiCmGiClFiCmEjDgPjIfOiClDiCoKiCmEiCkCiCoJiDhEiDeIiBfLiDhNiDgCiDgHiCmMjAjEiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.03.19 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
DWORD CFCFoundDoc::GetImageExportFormatCount () const
{
	return m_vStrImageExportFormat.size();
} // CFCFoundDoc::GetImageExportFormatCount.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::SaveSelectedObjectImage
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jBeJjBpAiClDiCoKiClNjFjEjFgJiCpAiBeBiOhHjCoIiClDiCoKiClNiJoGjBjMiMgAiOkOiCmFjFnLjBlGiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	dwFormatId		:_xZkqqHx_iJoGjBjMiDhEiDeIiBfLiDhNiDgCiDgHiCmM_xHqqkZx_ID_xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *			wcpFilePath		:_xZkqqHx_jFnLjBlGiClHiCoJiJoGjBjMiDhEiDeAiDeDiDiLjGlMiCpAiOhHjCoIiBeC_xHqqkZx_
 *			mmMarginLeft	:_xZkqqHx_iJoGjBjMiCmMiNlGjHfNjEjCiCpAiOhHjCoIiBeC_xHqqkZx_
 *			mmMarginTop		:_xZkqqHx_iJoGjBjMiCmMiPoDjHfNjEjCiCpAiOhHjCoIiBeC_xHqqkZx_
 *			mmMarginRight	:_xZkqqHx_iJoGjBjMiCmMiJeFjHfNjEjCiCpAiOhHjCoIiBeC_xHqqkZx_
 *			mmMarginBottom	:_xZkqqHx_iJoGjBjMiCmMiJlKjHfNjEjCiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.03.19 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::SaveSelectedObjectImage (DWORD dwFormatId,
										const wchar_t* wcpFilePath,
										mmetol mmMarginLeft,
										mmetol mmMarginTop,
										mmetol mmMarginRight,
										mmetol mmMarginBottom)
{
	switch (dwFormatId)
	{
	case 0:		// _xZkqqHx_iLeLjCoIiDhEiDeIiBfLiDhNiDgCiDgHiBeCiDiBiDfOiDhEiDeAiDeDiDiL_xHqqkZx_(.wmf)_xZkqqHx_iBeC_xHqqkZx_
		(void)CFCMolipDrawSrvrItem::SaveSelectedWMF(wcpFilePath,
													mmMarginLeft, mmMarginTop,
													mmMarginRight, mmMarginBottom);
		break;
	case 1:		// _xZkqqHx_iLeLjCoIiDhEiDeIiBfLiDhNiDgCiDgHiBeCiKgHjCkDiDiBiDfOiDhEiDeAiDeDiDiL_xHqqkZx_(.emf)_xZkqqHx_iBeC_xHqqkZx_
		(void)CFCMolipDrawSrvrItem::SaveSelectedEMF(wcpFilePath,
													mmMarginLeft, mmMarginTop,
													mmMarginRight, mmMarginBottom);
		break;
	default:	// _xZkqqHx_iDhGiDiJiDePiDeDiDjDiCmJiCoGiCoJjCpBiLjPiDhEiDeIiBfLiDhNiDgCiDgHiBeC_xHqqkZx_
		FCExport::SaveSelectedObjectImage(	dwFormatId, wcpFilePath,
											mmMarginLeft, mmMarginTop,
											mmMarginRight, mmMarginBottom);
	}
} // CFCFoundDoc::SaveSelectedObjectImage.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::CheckSaveDocName
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfKiBfLiDhFiClHiCoJiDgIiDeMiDiFiDiBiDjDiDgHjGlMiCpAiDgAiDeGiDgCiDeOiClHiCoJiBeC_xHqqkZx_OnSaveDocument_xZkqqHx_iCmM_xHqqkZx_
 *			_xZkqqHx_iNmFiPiJiCmFiDgAiDeGiDgCiDeOiClHiCoJiBeC_xHqqkZx_
 *			Win95_xZkqqHx_iCmM_xHqqkZx_FileDialog_xZkqqHx_iCmNiBeBiKgHjCkDiOhBjGkCiLeMjDpMiClOiCmG_xHqqkZx_3_xZkqqHx_jFlGiOjKiCmMiKgHjCkDiOhB_xHqqkZx_(.mdr)_xZkqqHx_iCpA_xHqqkZx_
 *			_xZkqqHx_jCmHiJmBiClHiCoJiCmMiCmFiBeBiClBiClBiCmFiClLiCoKiCpAiDgAiDeGiDgCiDeOiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	lpszPathName	:_xZkqqHx_iDhEiDeAiDeDiDiLiDhAiDfIjGlMiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_jAlDiClFiCkCiKgHjCkDiOhBiCmMiPoKiNiHiCmN_xHqqkZx_ TRUE_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.07.28 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCFoundDoc::CheckSaveDocName (const wchar_t* lpszPathName) const
{
	// OLE_xZkqqHx_iCkJiCoHiCmMiMmEiCnBiPgPiClFiCmMiPoKiNiHiBeC_xHqqkZx_
	if (lpszPathName == NULL || *lpszPathName == L'\0') return TRUE;

//----- 03.04.20 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	// _xZkqqHx_iDhEiDeAiDeDiDiLjGlMiCmMiKgHjCkDiOhB_xHqqkZx_(.mdrw)_xZkqqHx_jGlDiClFjFjEjFkKiCmMjFlGiOjKjHpBjClHiBeC_xHqqkZx_
//	int iLen = wcslen(lpszPathName) - wcslen(L".mdrw");
//	if (0 <= iLen && wcsicmp(lpszPathName + iLen, L".mdrw") == 0) return TRUE;
//	iLen = wcslen(lpszPathName) - wcslen(L".mdrw.new");
//	if (0 <= iLen && wcsicmp(lpszPathName + iLen, L".mdrw.new") == 0) return TRUE;
//	return FALSE;
//----- 03.04.20 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	// _xZkqqHx_iMfOjGlDiClF_xHqqkZx_ _xZkqqHx_iImIiKePiCmIiCoHjAfOiBeC_xHqqkZx_
	return (FFFileNameToFormat(lpszPathName) != FD_DTP_NONE);
//----- 03.04.20 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
} // CFCFoundDoc::CheckSaveDocName.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::GetObjectHintText
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jCmHjAnFiDhBiDjDiDgHiCmJjFfMiOkGiClHiCoJiDiBiDgCiDfKiBfLiDfHiCpAiNoMjAkMiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	wstrHint	:_xZkqqHx_iDiBiDgCiDfKiBfLiDfHiCpAjFnEiClHiBeC_xHqqkZx_
 *			pObj		:_xZkqqHx_iNoMjAkMiClHiCoJiDiBiDgCiDfKiBfLiDfHiCmMjBmOiPnLjFjEjFgJiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.07.07 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::GetObjectHintText (WString& wstrHint, const FCObjDynabase* pObj) const
{
	//	_xZkqqHx_jFjEjFgJiCmMiOoNjHnO_xHqqkZx_: %s\r\n
	//	_xZkqqHx_jFjEjFgJ_xHqqkZx_ID: %d\r\n
	//	_xZkqqHx_iNlGiPoDiNmAjFfH_xHqqkZx_: (%f, %f)\r\n
	//	_xZkqqHx_iJeFiJlKiNmAjFfH_xHqqkZx_: (%f, %f)\r\n
	//	_xZkqqHx_jFjN_xHqqkZx_ x _xZkqqHx_iNiCiClD_xHqqkZx_: (%f, %f)\r\n
	//	_xZkqqHx_jFjEjFgJiKhAjDhI_xHqqkZx_: %f\r\n
	//	_xZkqqHx_iDgFiDeMiDfIiDgHiKhAjDhI_xHqqkZx_: %f\r\n
	//	_xZkqqHx_iPiKjBkOiDiMiDeDiDiEiBfL_xHqqkZx_: %d.%s\r\n
	//	_xZkqqHx_iDiKiDjDiDeOjAoGiDiKiDfIiDgH_xHqqkZx_:\r\n
	//	%s\r\n
	//	_xZkqqHx_iDiKiDjDiDeOiMlDiDiKiDfIiDgH_xHqqkZx_\r\n
	//	%s

	// _xZkqqHx_jFjEjFgJiDhEiDiMiBfLiDiAiCpAiOoGjDlOiBeC_xHqqkZx_
	DBLRect mmrtFrame = pObj->GetResizeFrame();

	// _xZkqqHx_iDiKiDjDiDeOiMlDiDiKiDfIiDgHiOoGjDlOiBeC_xHqqkZx_
	WString wstrObjLinkIn;
	{
		DWORDSet stObjIdLinkIn;
		FCMolipRec rec;
		rec.dwObjID = pObj->GetObjID();
		rec.lMolipId = -1;
		DWORDSet stAffected;
		LinkManager()->GetAffectedByTo(stAffected, rec);
		DWORDSet::iterator iRec;
		for (iRec = stAffected.begin(); iRec != stAffected.end(); iRec++)
		{
			const FCLinkRec* pRec = LinkManager()->LinkIDtoLinkRec(*iRec);
			ASSERT(pRec->m_mlpTo.dwObjID == rec.dwObjID);
			stObjIdLinkIn.insert(pRec->m_mlpFrom.dwObjID);
		}
		DWORDSet::iterator iId;
		long lC;
		for (iId = stObjIdLinkIn.begin(), lC = 0; iId != stObjIdLinkIn.end(); iId++, lC++)
		{
			if (lC != 0 && (lC % 5) == 0)
				wstrObjLinkIn += L"\r\n";
			FCObjDynabase* pObjX = ObjID2Object(*iId);
			wstrObjLinkIn += FFFormatString(L"%d.%s,", *iId, FFObjTypeToStr(pObjX->Type()));
		}
		if (!wstrObjLinkIn.IsEmpty()) wstrObjLinkIn.ChopLast();
	}

	// _xZkqqHx_iDiKiDjDiDeOjAoGiDiKiDfIiDgHiOoGjDlOiBeC_xHqqkZx_
	WString wstrObjLinkOut;
	{
		DWORDSet stObjIdLinkOut;
		FCMolipRec rec;
		rec.dwObjID = pObj->GetObjID();
		rec.lMolipId = -1;
		DWORDSet stAffected;
		LinkManager()->GetAffectedByFrom(stAffected, rec);
		DWORDSet::iterator iRec;
		for (iRec = stAffected.begin(); iRec != stAffected.end(); iRec++)
		{
			const FCLinkRec* pRec = LinkManager()->LinkIDtoLinkRec(*iRec);
			ASSERT(pRec->m_mlpFrom.dwObjID == rec.dwObjID);
			stObjIdLinkOut.insert(pRec->m_mlpTo.dwObjID);
		}
		DWORDSet::iterator iId;
		long lC;
		for (iId = stObjIdLinkOut.begin(), lC = 0; iId != stObjIdLinkOut.end(); iId++, lC++)
		{
			if (lC != 0 && (lC % 5) == 0)
				wstrObjLinkOut += L"\r\n";
			FCObjDynabase* pObjX = ObjID2Object(*iId);
			wstrObjLinkOut += FFFormatString(L"%d.%s,", *iId, FFObjTypeToStr(pObjX->Type()));
		}
		if (!wstrObjLinkOut.IsEmpty()) wstrObjLinkOut.ChopLast();
	}

	// _xZkqqHx_iDiMiDeDiDiEiBfLiOoGjDlOiBeC_xHqqkZx_
	DWORD dwSelLayerIdx = ObjDynabaseToLZOrder(pObj).dwLayerIdx;
	WString wstrLayerName;
	GetCurrentSheet()->GetLayerInfo(&wstrLayerName, NULL, dwSelLayerIdx);

//----- 06.12.04 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	WString wstrArea;
	const double dArea = mm22hi2(pObj->CalcArea());
	if (0 <= dArea)
		wstrArea.Format(L"%f", dArea);
//----- 06.12.04 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----

	//	_xZkqqHx_jFjEjFgJiCmMiOoNjHnO_xHqqkZx_: %s\r\n
	//	_xZkqqHx_jFjEjFgJ_xHqqkZx_ID: %d\r\n
	//	_xZkqqHx_iNlGiPoDiNmAjFfH_xHqqkZx_: (%f, %f)\r\n
	//	_xZkqqHx_iJeFiJlKiNmAjFfH_xHqqkZx_: (%f, %f)\r\n
	//	_xZkqqHx_jFjN_xHqqkZx_ x _xZkqqHx_iNiCiClD_xHqqkZx_: (%f, %f)\r\n
	//	_xZkqqHx_jFjEjFgJiKhAjDhI_xHqqkZx_: %f\r\n
	//	_xZkqqHx_iDgFiDeMiDfIiDgHiKhAjDhI_xHqqkZx_: %f\r\n
// 06.12.04 Fukushiro M. 1_xZkqqHx_iNhDjCmHiJmB_xHqqkZx_ ()
	//	_xZkqqHx_jGmKjAmP_xHqqkZx_: %f\r\n
	//	_xZkqqHx_iPiKjBkOiDiMiDeDiDiEiBfL_xHqqkZx_: %d.%s\r\n
	//	_xZkqqHx_iDiKiDjDiDeOjAoGiDiKiDfIiDgH_xHqqkZx_:\r\n
	//	%s\r\n
	//	_xZkqqHx_iDiKiDjDiDeOiMlDiDiKiDfIiDgH_xHqqkZx_\r\n
	//	%s
	wstrHint.Format(FFLoadWString(IDS_FORM_OBJ_HINT).c_str(),
					FFObjTypeToStr(pObj->Type()),
					pObj->GetObjID(),
					mm2hi(mmrtFrame.left), mm2hi(mmrtFrame.top),
					mm2hi(mmrtFrame.right), mm2hi(mmrtFrame.bottom),
					mm2hi(mmrtFrame.Width()), mm2hi(mmrtFrame.Height()),
					pObj->GetAngle(),
					pObj->GetTextAngle(),
// 06.12.04 Fukushiro M. 1_xZkqqHx_iNhDjCmHiJmB_xHqqkZx_ ()
					wstrArea.c_str(),
					dwSelLayerIdx, wstrLayerName.c_str(),
					wstrObjLinkOut.c_str(),
					wstrObjLinkIn.c_str());
} // CFCFoundDoc::GetObjectHintText.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::PrepareWidePolySideBezier
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jBfDiCmEiCmMjFjNiNeMjFjEjFgJiCmJjBmOiClFiCmEiBeBjBkEjApMiCmMiLnPiOjHiDhIiDfHiDeGiLmIjApMiCpAjHhAiInDiClDiClJiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jCiNiInD_xHqqkZx_>	_xZkqqHx_iClBiCmMiKnGjAjEiCmNjFhDjHhGiCmJiBeCiPkLjHiIjDeJiCmJiCmNiNoNiPjMiClHiCnHiCkLiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_jCmKiPoNiCmNiDfIiDiMiDgCiDgIiCmJiCoGiCmBiCmEiDgPiDgCiDeOiDePiDiJiDeFiDjDiDgIiCmFiOfKiPgPiBeFjAnNjCoIiClDiCoKiCoJiCkKiBeB_xHqqkZx_
 *			_xZkqqHx_iClBiCoKiCpAiDfIiDiMiDgCiDgIiCkJiCoHiKePiClFiCmEiLkNjAkHjDeJiCmJiOfKiPgPiBeFjAnNjCoIiClDiClJiCoJiBeC_xHqqkZx_
 *			_xZkqqHx_iMhGiOfKiCmJiOjOiKnEiCkKiCkJiCkJiCoJiPoKiNiHiCkKiCkAiCoJiCmMiCmFjCiNiInDiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.03.03 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::PrepareWidePolySideBezier ()
{
	struct myFunc
	{
		static BOOL myPrepareSideBezier (FCObjDynabase* pObj, void* data)
		{
			if (pObj->IsKindOf(FDOJ_WIDE_POLY))
			{
				FCObjWidePoly* pPoly = (FCObjWidePoly*)pObj;
				pPoly->PrepareSideBezier();
			}
			return TRUE;
		}
	};
	// _xZkqqHx_jBfDiCmEiCmMjFjEjFgJiCmJjBmOiClFiCmEiBeB_xHqqkZx_myPrepareSideBezier_xZkqqHx_iKnGjAjEiCpAiOmAiNhDiClHiCoJiBeC_xHqqkZx_
	// _xZkqqHx_iKmCiLkLiBeC_xHqqkZx_
	g_pEnv->CallForAllObject(myFunc::myPrepareSideBezier, NULL);
	// _xZkqqHx_iDgDiBfLiDiLjDoAjFjEjFjEjFgJiBeC_xHqqkZx_
	g_pView->CallForAllObject(myFunc::myPrepareSideBezier, NULL);
	// _xZkqqHx_iDfGiBfLiDgHiPoDiCmMjFjEjFgJiBeC_xHqqkZx_
	SheetManager()->CallForAllObject(myFunc::myPrepareSideBezier, NULL);
} // CFCFoundDoc::PrepareWidePolySideBezier.

//----------<NOT EXPORT TO VIEWER>-----------
/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	myMakeFrontPagePNGImage32
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	FFMakePngImage32_xZkqqHx_iKnGjAjEiCnGiCmMiDfCiBfLiDiLiDgPiDgCiDeOiKnGjAjEiBeCiNmFiPiJiCmMiDfGiBfLiDgHiCmM_xHqqkZx_
 *			_xZkqqHx_iNlGiPoDiCmMiDeDiDiBiBfLiDfHiCpAjFgAiJoGiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pDC		:_xZkqqHx_jFgAiJoGjHhA_xHqqkZx_CDC_xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *			dwData
 *			szImage	:_xZkqqHx_iDeDiDiBiBfLiDfHiDfEiDeDiDfJiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jCiNiInD_xHqqkZx_>	static_xZkqqHx_iKnGjAjEiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.06.27 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
static void myMakeFrontPagePNGImage32 (CDC* pDC, DWORD dwData, const CSize& szImage)
{
	CFCFoundDoc* pDoc = (CFCFoundDoc*)dwData;
	// _xZkqqHx_iDhJiBfLiDfHiDfEiDeDiDfJiOoGjDlOiBeC_xHqqkZx_
	mmetol mmPageWidth;
	mmetol mmPageHeight;
	g_pEnv->GetDocPrnPageSize(mmPageWidth, mmPageHeight);

	double dZoomH = szImage.cx / mmPageWidth;
	double dZoomV = szImage.cy / mmPageHeight;
	double dZoom = (dZoomH < dZoomV) ? dZoomV : dZoomH;
	{
		// _xZkqqHx_iDfJiBfLiDiAjCgMiCpAiDgPiDgCiDeOiDeBiDgCiDhGiBeC_xHqqkZx_
		const FCAutoBackup<double> backupZoom(g_->dZoom, dZoom);
		// _xZkqqHx_iDhAiDiMiDgCiDgHiCpAiJpAiPmBiBeC_xHqqkZx_
		const FCAutoBackup<CPalette*> backupFDPalette(g_pFDPalette, NULL);
		// _xZkqqHx_iJoGjGmKiDeJiDhEiDfKiDgCiDgHiCpAiDgPiDgCiDeOiDeBiDgCiDhGiBeC_xHqqkZx_
		const FCAutoBackup<long> backupOffsetX(g_->lgOffsetX, 0.0);
		const FCAutoBackup<long> backupOffsetY(g_->lgOffsetY, 0.0);

		const DBLRect mmrtPage(0, 0, lg2mm(szImage.cx), lg2mm(szImage.cy));

		// _xZkqqHx_jFfMiOkGjHhAiChJiDeJiBfLiDfPiBfLiCpAiOoGjDlOiBeC_xHqqkZx_
		FCZOrder zOrder;
		// _xZkqqHx_iDiMiDeDiDiEiBfLiDhNiDgMiBfLiDfHiDiDiBeC_xHqqkZx_
		SheetID sidFront = pDoc->GetSheetManager()->SheetIndexToID(0);
		pDoc->GetSheetManager()->GetSheet(sidFront)->GetZOrder(zOrder, FDOZ_ON_DRAW, 0, pDoc->GetCurrentLayerIdx());

		FCZOrderIterator iObj;
		for (zOrder.Begin(iObj); !iObj.IsEnd(); iObj++)
		{
			// _xZkqqHx_jFjN_xHqqkZx_=0_xZkqqHx_iCmMjClMjApMjDjJiCmMiPoKiNiHiCoAiCkAiCoJiCmMiCmFiBeB_xHqqkZx_IsRectEmpty_xZkqqHx_iCmFiCmNiCmIiCkN_xHqqkZx_IsRectNull_xZkqqHx_iCpAiOgHiCkEiBeC_xHqqkZx_
			if (!(mmrtPage & (*iObj)->GetOuterFrame()).IsRectNull())
				(*iObj)->OnDraw(pDC, FALSE);
		}
	}
} // myMakeFrontPagePNGImage32.
//----------</NOT EXPORT TO VIEWER>-----------

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::MakeFrontPagePNGImage32
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iNmFiPiJiCmMiDfGiBfLiDgHiCmMiNmFiPiJiCmMiDhJiBfLiDfHiCmMiDhCiDgCiDgHiDhNiDgCiDhGiCpA_xHqqkZx_32bitDIB_xZkqqHx_iCmFiNoMjAkMiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	byvBitBuff	:_xZkqqHx_iDhCiDgCiDgHiDhNiDgCiDhGiDgGiBfLiDfOiCpAjFnEiClHiBeC_xHqqkZx_
 *			szImage		:_xZkqqHx_iDhCiDgCiDgHiDhNiDgCiDhGiCmMiDfEiDeDiDfJiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.04.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::MakeFrontPagePNGImage32 (BYTEVector& byvBitBuff, const CSize& szImage) const
{
//----- 03.06.27 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	CDC dcDisplay;
//	dcDisplay.CreateDC(_T("DISPLAY"), NULL, NULL, NULL);
//	CDC dc;
//	dc.CreateCompatibleDC(&dcDisplay);
//	BITMAPINFO bmi;
//	ZeroMemory(&bmi, sizeof(BITMAPINFO));
//	bmi.bmiHeader.biSize = sizeof(BITMAPINFOHEADER);
//	bmi.bmiHeader.biWidth = szImage.cx;
//	// _xZkqqHx_iPoDiCkJiCoHiJlKiCnGiCmM_xHqqkZx_DIB_xZkqqHx_iCmMiPoKiNiHiCmN_xHqqkZx_biHeight_xZkqqHx_iCkKjFiJiCmMjCgMiBeC_xHqqkZx_
//// 03.06.27 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
////	bmi.bmiHeader.biHeight = szImage.cy;
//	bmi.bmiHeader.biHeight = -szImage.cy;
//	bmi.bmiHeader.biPlanes = 1;
//	bmi.bmiHeader.biBitCount = 32;
//	bmi.bmiHeader.biCompression = BI_RGB;
//	bmi.bmiHeader.biSizeImage = szImage.cx * szImage.cy * 4;
//	BYTE* pbyBits;
//	HBITMAP hbitmap = CreateDIBSection(dc.m_hDC, &bmi, DIB_RGB_COLORS, (void**)&pbyBits, NULL, 0x0);
//	SelectObject(dc.m_hDC, hbitmap);
//	long x, y;
//	// alpha_xZkqqHx_jCgMiCpA_xHqqkZx_FF_xZkqqHx_iCmFiDiKiDfKiDgCiDgHiBeC_xHqqkZx_
//	for (y = 0; y < szImage.cy; y++)
//		for (x = 0; x < szImage.cx; x++)
//			pbyBits[4 * (x + y * szImage.cx) + 3] = 0xff;
//
//	// _xZkqqHx_iDgPiDgCiDeOiDePiDiJiDeFiDjDiDgIiCpAjDgIiCoIiCmCiCnEiClFiBeC_xHqqkZx_
//	dc.FillRect(CRect(0, 0, szImage.cx, szImage.cy),
//				CBrush::FromHandle((HBRUSH)::GetStockObject(WHITE_BRUSH)));
//
//	// _xZkqqHx_iDhJiBfLiDfHiDfEiDeDiDfJiOoGjDlOiBeC_xHqqkZx_
//	mmetol mmPageWidth;
//	mmetol mmPageHeight;
//	g_pEnv->GetDocPrnPageSize(mmPageWidth, mmPageHeight);
//
//	double dZoomH = szImage.cx / mmPageWidth;
//	double dZoomV = szImage.cy / mmPageHeight;
//	double dZoom = (dZoomH < dZoomV) ? dZoomV : dZoomH;
//	{
//		// _xZkqqHx_iDfJiBfLiDiAjCgMiCpAiDgPiDgCiDeOiDeBiDgCiDhGiBeC_xHqqkZx_
//		const FCAutoBackup<double> backupZoom(g_->dZoom, dZoom);
//		// _xZkqqHx_iDhAiDiMiDgCiDgHiCpAiJpAiPmBiBeC_xHqqkZx_
//		const FCAutoBackup<CPalette*> backupFDPalette(g_pFDPalette, NULL);
//		// _xZkqqHx_iJoGjGmKiDeJiDhEiDfKiDgCiDgHiCpAiDgPiDgCiDeOiDeBiDgCiDhGiBeC_xHqqkZx_
//		const FCAutoBackup<long> backupOffsetX(g_->lgOffsetX, 0.0);
//		const FCAutoBackup<long> backupOffsetY(g_->lgOffsetY, 0.0);
//
//		const DBLRect mmrtPage(0, 0, lg2mm(szImage.cx), lg2mm(szImage.cy));
//
//		// _xZkqqHx_jFfMiOkGjHhAiChJiDeJiBfLiDfPiBfLiCpAiOoGjDlOiBeC_xHqqkZx_
//		FCZOrder zOrder;
//		// _xZkqqHx_iDiMiDeDiDiEiBfLiDhNiDgMiBfLiDfHiDiDiBeC_xHqqkZx_
//		SheetID sidFront = GetSheetManager()->SheetIndexToID(0);
//		GetSheetManager()->GetSheet(sidFront)->GetZOrder(zOrder, FDOZ_ON_DRAW, 0, GetCurrentLayerIdx());
//
//		FCZOrderIterator iObj;
//		for (zOrder.Begin(iObj); !iObj.IsEnd(); iObj++)
//		{
//			// _xZkqqHx_jFjN_xHqqkZx_=0_xZkqqHx_iCmMjClMjApMjDjJiCmMiPoKiNiHiCoAiCkAiCoJiCmMiCmFiBeB_xHqqkZx_IsRectEmpty_xZkqqHx_iCmFiCmNiCmIiCkN_xHqqkZx_IsRectNull_xZkqqHx_iCpAiOgHiCkEiBeC_xHqqkZx_
//			if (!(mmrtPage & (*iObj)->GetOuterFrame()).IsRectNull())
//				(*iObj)->OnDraw(&dc, FALSE);
//		}
//	}
//
//	for (y = 0; y < szImage.cy; y++)
//	{
//		for (x = 0; x < szImage.cx; x++)
//		{
//			// RGB _xZkqqHx_iCmM_xHqqkZx_ R_xZkqqHx_iCmG_xHqqkZx_B_xZkqqHx_iCpAjDpMiCoKjBnGiCkGiCoJiBeC_xHqqkZx_
//			::Exchange(pbyBits[4 * (x + y * szImage.cx) + 0],
//						pbyBits[4 * (x + y * szImage.cx) + 2]);
//			// _xZkqqHx_jFgAiJoGiClFiClNjFjEjFkKiCmM_xHqqkZx_alpha_xZkqqHx_jCgMiCmN_xHqqkZx_0_xZkqqHx_iCmJiDiKiDfKiDgCiDgHiClDiCoKiCmEiCkCiCoJiClNiCnPiBeB_xHqqkZx_
//			// _xZkqqHx_jBfDiCmEiCmMjHmMiIoGiCmF_xHqqkZx_alpha_xZkqqHx_jCgMiCpAjElNjDfNiClDiClJiCoJiBeCiClBiCoKiCmJiCoGiCmBiCmEiBeB_xHqqkZx_
//			// _xZkqqHx_jFgAiJoGiClDiCoKiClNjFjEjFkKiCmM_xHqqkZx_alpha_xZkqqHx_jCgMiCmMiCnNiBeB_xHqqkZx_FF_xZkqqHx_iCkKjAnNjCoIiClDiCoKiCoJiBeC_xHqqkZx_
//			pbyBits[4 * (x + y * szImage.cx) + 3] ^= 0xff;
//		}
//	}
//	// ChipRec_xZkqqHx_iCmM_xHqqkZx_m_pBits_xZkqqHx_iCmMiDfEiDeDiDfJiBeC_xHqqkZx_
//	const DWORD dwChipBits = (szImage.cx * szImage.cy * 32) / 8;
//	byvBitBuff.resize(dwChipBits);
//	GetBitmapBits(hbitmap, dwChipBits, byvBitBuff.begin());
//	DeleteObject(hbitmap);
//----- 03.06.27 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	FFMakePngImage32(byvBitBuff, szImage,
					myMakeFrontPagePNGImage32, DWORD(this));
//----- 03.06.27 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
} // CFCFoundDoc::MakeFrontPagePNGImage32.

//----------<NOT EXPORT TO VIEWER>-----------
/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	myMakeTemplatePNGImage32
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	FFMakePngImage32_xZkqqHx_iKnGjAjEiCnGiCmMiDfCiBfLiDiLiDgPiDgCiDeOiKnGjAjEiBeCiDgFiDjDiDhGiDiMiBfLiDgHiCmM_xHqqkZx_
 *			_xZkqqHx_iDeDiDiBiBfLiDfHiCpAjFgAiJoGiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pDC		:_xZkqqHx_jFgAiJoGjHhA_xHqqkZx_CDC_xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *			dwData
 *			szImage	:_xZkqqHx_iDeDiDiBiBfLiDfHiDfEiDeDiDfJiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jCiNiInD_xHqqkZx_>	static_xZkqqHx_iKnGjAjEiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.06.27 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
static void myMakeTemplatePNGImage32 (CDC* pDC, DWORD dwData, const CSize& szImage)
{
	struct my
	{
		long lColumnSize;
		long lLineSize;
	};
	my* pMy = (my*)dwData;

	const CSize szOneBmp(szImage.cx / pMy->lColumnSize, szImage.cy / pMy->lLineSize);

	if (!g_pEnv->GetFreqChipGroupVector().empty())
	{
		ChipGroupID cgid = g_pEnv->GetFreqChipGroupVector().front();
		const FDChipIDVector& vChipId = g_pEnv->GetChipGroupRec(cgid)->m_vFreqChip;
		FDChipIDVector::const_iterator iCid = vChipId.begin();

		for (long lLine = 0; lLine < pMy->lLineSize; lLine++)
		{
			for (long lColumn = 0; lColumn < pMy->lColumnSize; lColumn++)
			{
				if (iCid == vChipId.end()) break;
				CRect lgrtOneBmp(lColumn * szOneBmp.cx,
								lLine * szOneBmp.cy,
								(lColumn + 1) * szOneBmp.cx,
								(lLine + 1) * szOneBmp.cy);

				FCObjDynabase* pObj = g_pEnv->GetChipRec(*iCid)->m_objpChipMaster;
				// _xZkqqHx_jFjEjFgJiCmMiKePjBkEiCmMiDhEiDiMiBfLiDiAiCpAiOoGjDlOiBeC_xHqqkZx_
				DBLRect mmrtOut = pObj->CalcExactOuterFrame();
				ASSERT(!almost0(mmrtOut.Width()));
				ASSERT(!almost0(mmrtOut.Height()));
				//----- _xZkqqHx_jFjEjFgJiCkKjFfMiOkGjIgHiCmJiOpLiCnMiCoJiCoGiCkEiCmIiDfJiBfLiDiAjCgMiCpAiMhGiOfK_xHqqkZx_ -----
				double dZoomW = (double(szOneBmp.cx) * 0.8) / mmrtOut.Width();
				double dZoomH = (double(szOneBmp.cy) * 0.8) / mmrtOut.Height();
				double dNewZoom = (dZoomW < dZoomH) ? dZoomW : dZoomH;

				// _xZkqqHx_iDfJiBfLiDiAjCgMiCpAiDgPiDgCiDeOiDeBiDgCiDhGiBeC_xHqqkZx_
				const FCAutoBackup<double> backupZoom(g_->dZoom, dNewZoom);
				// _xZkqqHx_iDhAiDiMiDgCiDgHiCpAiJpAiPmBiBeC_xHqqkZx_
				const FCAutoBackup<CPalette*> backupFDPalette(g_pFDPalette, NULL);

				// _xZkqqHx_jFjEjFgJiCpAiPoDiLeMiCmMiDfJiBfLiDiAiCmFjFgAiJoGiClFiClNiOjOiCmJiBeBjFfMiOkGjIgHiCmMjCiGjAfDiCmJ_xHqqkZx_
				// _xZkqqHx_jFfMiOkGiClDiCoKiCoJiCoGiCkEiCmJiDeJiDhEiDfKiDgCiDgHiCpAiMhGiOfKiBeC_xHqqkZx_
				CRect lgrtOut = mm2lg(mmrtOut);
				CPoint lgptOffset(	(szOneBmp.cx - lgrtOut.Width()) / 2,
									(szOneBmp.cy - lgrtOut.Height()) / 2);

				long lgNewOffsetX = mm2lg(mmrtOut.left) - lgptOffset.x - lgrtOneBmp.left;
				long lgNewOffsetY = mm2lg(mmrtOut.top) - lgptOffset.y - lgrtOneBmp.top;

				// _xZkqqHx_iJoGjGmKiDeJiDhEiDfKiDgCiDgHiCpAiDgPiDgCiDeOiDeBiDgCiDhGiBeC_xHqqkZx_
				const FCAutoBackup<long> backupOffsetX(g_->lgOffsetX, lgNewOffsetX);
				const FCAutoBackup<long> backupOffsetY(g_->lgOffsetY, lgNewOffsetY);

				{
					//----- _xZkqqHx_iDgAiDgCiDhGiKnEiCmMiDhEiDiMiBfLiDiAiCpAjFgAiJoG_xHqqkZx_ -----
					FCAutoDC atDC(pDC, FALSE, 0, 0);
					atDC.SetPen(PS_SOLID, 1, FD_COLREF_DARK_GRAY);
					atDC.MoveTo(lgrtOneBmp.left + 2, lgrtOneBmp.top + 2);
					atDC.LineTo(lgrtOneBmp.right - 2, lgrtOneBmp.top + 2);
					atDC.LineTo(lgrtOneBmp.right - 2, lgrtOneBmp.bottom - 2);
					atDC.LineTo(lgrtOneBmp.left + 2, lgrtOneBmp.bottom - 2);
					atDC.LineTo(lgrtOneBmp.left + 2, lgrtOneBmp.top + 2);

					atDC.MoveTo(lgrtOneBmp.left, lgrtOneBmp.top);
					atDC.LineTo(lgrtOneBmp.right, lgrtOneBmp.top);
					atDC.LineTo(lgrtOneBmp.right, lgrtOneBmp.bottom);
					atDC.LineTo(lgrtOneBmp.left, lgrtOneBmp.bottom);
					atDC.LineTo(lgrtOneBmp.left, lgrtOneBmp.top);

					atDC.SetPen(PS_SOLID, 1, FD_COLREF_WHITE);
					atDC.MoveTo(lgrtOneBmp.right - 1, lgrtOneBmp.top + 1);
					atDC.LineTo(lgrtOneBmp.right - 1, lgrtOneBmp.bottom - 1);
					atDC.LineTo(lgrtOneBmp.left + 1, lgrtOneBmp.bottom - 1);

					atDC.SetPen(PS_SOLID, 1, FD_COLREF_BLACK);
					atDC.MoveTo(lgrtOneBmp.left + 1, lgrtOneBmp.bottom - 1);
					atDC.LineTo(lgrtOneBmp.left + 1, lgrtOneBmp.top + 1);
					atDC.LineTo(lgrtOneBmp.right - 1, lgrtOneBmp.top + 1);
				}
				pObj->OnDraw(pDC, FALSE);

				iCid++;
			}
			if (iCid == vChipId.end()) break;
		}
	}
} // myMakeTemplatePNGImage32.
//----------</NOT EXPORT TO VIEWER>-----------

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::MakeTemplatePNGImage32
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgFiDjDiDhGiDiMiBfLiDgHiCmMiDhCiDgCiDgHiDhNiDgCiDhGiCpA_xHqqkZx_32bitDIB_xZkqqHx_iCmFiNoMjAkMiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	byvBitBuff	:_xZkqqHx_iDhCiDgCiDgHiDhNiDgCiDhGiDgGiBfLiDfOiCpAjFnEiClHiBeC_xHqqkZx_
 *			szImage		:_xZkqqHx_iDhCiDgCiDgHiDhNiDgCiDhGiCmMiDfEiDeDiDfJiCpAiOhHjCoIiBeC_xHqqkZx_
 *			lColumnSize	:_xZkqqHx_iDgAiDgCiDhGiCpAjFmAiCnHiCoJjHpBjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *			lLineSize	:_xZkqqHx_iDgAiDgCiDhGiCpAjFmAiCnHiCoJiNhDjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.06.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::MakeTemplatePNGImage32 (BYTEVector& byvBitBuff, const CSize& szImage,
									long lColumnSize, long lLineSize) const
{
//----- 03.06.27 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	CDC dcDisplay;
//	dcDisplay.CreateDC(_T("DISPLAY"), NULL, NULL, NULL);
//	CDC dc;
//	dc.CreateCompatibleDC(&dcDisplay);
//	BITMAPINFO bmi;
//	ZeroMemory(&bmi, sizeof(BITMAPINFO));
//	bmi.bmiHeader.biSize = sizeof(BITMAPINFOHEADER);
//	bmi.bmiHeader.biWidth = szImage.cx;
//	// _xZkqqHx_iPoDiCkJiCoHiJlKiCnGiCmM_xHqqkZx_DIB_xZkqqHx_iCmMiPoKiNiHiCmN_xHqqkZx_biHeight_xZkqqHx_iCkKjFiJiCmMjCgMiBeC_xHqqkZx_
//// 03.06.27 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
////	bmi.bmiHeader.biHeight = szImage.cy;
//	bmi.bmiHeader.biHeight = -szImage.cy;
//	bmi.bmiHeader.biPlanes = 1;
//	bmi.bmiHeader.biBitCount = 32;
//	bmi.bmiHeader.biCompression = BI_RGB;
//	bmi.bmiHeader.biSizeImage = szImage.cx * szImage.cy * 4;
//	BYTE* pbyBits;
//	HBITMAP hbitmap = CreateDIBSection(dc.m_hDC, &bmi, DIB_RGB_COLORS, (void**)&pbyBits, NULL, 0x0);
//	SelectObject(dc.m_hDC, hbitmap);
//	long x, y;
//	// alpha_xZkqqHx_jCgMiCpA_xHqqkZx_FF_xZkqqHx_iCmFiDiKiDfKiDgCiDgHiBeC_xHqqkZx_
//	for (y = 0; y < szImage.cy; y++)
//		for (x = 0; x < szImage.cx; x++)
//			pbyBits[4 * (x + y * szImage.cx) + 3] = 0xff;
//
//	// _xZkqqHx_iDgPiDgCiDeOiDePiDiJiDeFiDjDiDgIiCpAjDgIiCoIiCmCiCnEiClFiBeC_xHqqkZx_
//	dc.FillRect(CRect(0, 0, szImage.cx, szImage.cy),
//				CBrush::FromHandle((HBRUSH)::GetStockObject(WHITE_BRUSH)));
//
//	const CSize szOneBmp(szImage.cx / lColumnSize, szImage.cy / lLineSize);
//
//	if (!g_pEnv->GetFreqChipGroupVector().empty())
//	{
//		ChipGroupID cgid = g_pEnv->GetFreqChipGroupVector().front();
//		const FDChipIDVector& vChipId = g_pEnv->GetChipGroupRec(cgid)->m_vFreqChip;
//		FDChipIDVector::const_iterator iCid = vChipId.begin();
//
//		for (long lLine = 0; lLine < lLineSize; lLine++)
//		{
//			for (long lColumn = 0; lColumn < lColumnSize; lColumn++)
//			{
//				if (iCid == vChipId.end()) break;
//				CRect lgrtOneBmp(lColumn * szOneBmp.cx,
//								lLine * szOneBmp.cy,
//								(lColumn + 1) * szOneBmp.cx,
//								(lLine + 1) * szOneBmp.cy);
//
//				FCObjDynabase* pObj = g_pEnv->GetChipRec(*iCid)->m_objpChipMaster;
//				// _xZkqqHx_jFjEjFgJiCmMiKePjBkEiCmMiDhEiDiMiBfLiDiAiCpAiOoGjDlOiBeC_xHqqkZx_
//				DBLRect mmrtOut = pObj->CalcExactOuterFrame();
//				ASSERT(!almost0(mmrtOut.Width()));
//				ASSERT(!almost0(mmrtOut.Height()));
//				//----- _xZkqqHx_jFjEjFgJiCkKjFfMiOkGjIgHiCmJiOpLiCnMiCoJiCoGiCkEiCmIiDfJiBfLiDiAjCgMiCpAiMhGiOfK_xHqqkZx_ -----
//				double dZoomW = (double(szOneBmp.cx) * 0.8) / mmrtOut.Width();
//				double dZoomH = (double(szOneBmp.cy) * 0.8) / mmrtOut.Height();
//				double dNewZoom = (dZoomW < dZoomH) ? dZoomW : dZoomH;
//
//				// _xZkqqHx_iDfJiBfLiDiAjCgMiCpAiDgPiDgCiDeOiDeBiDgCiDhGiBeC_xHqqkZx_
//				const FCAutoBackup<double> backupZoom(g_->dZoom, dNewZoom);
//				// _xZkqqHx_iDhAiDiMiDgCiDgHiCpAiJpAiPmBiBeC_xHqqkZx_
//				const FCAutoBackup<CPalette*> backupFDPalette(g_pFDPalette, NULL);
//
//				// _xZkqqHx_jFjEjFgJiCpAiPoDiLeMiCmMiDfJiBfLiDiAiCmFjFgAiJoGiClFiClNiOjOiCmJiBeBjFfMiOkGjIgHiCmMjCiGjAfDiCmJ_xHqqkZx_
//				// _xZkqqHx_jFfMiOkGiClDiCoKiCoJiCoGiCkEiCmJiDeJiDhEiDfKiDgCiDgHiCpAiMhGiOfKiBeC_xHqqkZx_
//				CRect lgrtOut = mm2lg(mmrtOut);
//				CPoint lgptOffset(	(szOneBmp.cx - lgrtOut.Width()) / 2,
//									(szOneBmp.cy - lgrtOut.Height()) / 2);
//
//				long lgNewOffsetX = mm2lg(mmrtOut.left) - lgptOffset.x - lgrtOneBmp.left;
//				long lgNewOffsetY = mm2lg(mmrtOut.top) - lgptOffset.y - lgrtOneBmp.top;
//
//				// _xZkqqHx_iJoGjGmKiDeJiDhEiDfKiDgCiDgHiCpAiDgPiDgCiDeOiDeBiDgCiDhGiBeC_xHqqkZx_
//				const FCAutoBackup<long> backupOffsetX(g_->lgOffsetX, lgNewOffsetX);
//				const FCAutoBackup<long> backupOffsetY(g_->lgOffsetY, lgNewOffsetY);
//
//				{
//					//----- _xZkqqHx_iDgAiDgCiDhGiKnEiCmMiDhEiDiMiBfLiDiAiCpAjFgAiJoG_xHqqkZx_ -----
//					FCAutoDC atDC(&dc, FALSE, 0, 0);
//					atDC.SetPen(PS_SOLID, 1, FD_COLREF_DARK_GRAY);
//					atDC.MoveTo(lgrtOneBmp.left + 2, lgrtOneBmp.top + 2);
//					atDC.LineTo(lgrtOneBmp.right - 2, lgrtOneBmp.top + 2);
//					atDC.LineTo(lgrtOneBmp.right - 2, lgrtOneBmp.bottom - 2);
//					atDC.LineTo(lgrtOneBmp.left + 2, lgrtOneBmp.bottom - 2);
//					atDC.LineTo(lgrtOneBmp.left + 2, lgrtOneBmp.top + 2);
//
//					atDC.MoveTo(lgrtOneBmp.left, lgrtOneBmp.top);
//					atDC.LineTo(lgrtOneBmp.right, lgrtOneBmp.top);
//					atDC.LineTo(lgrtOneBmp.right, lgrtOneBmp.bottom);
//					atDC.LineTo(lgrtOneBmp.left, lgrtOneBmp.bottom);
//					atDC.LineTo(lgrtOneBmp.left, lgrtOneBmp.top);
//
//					atDC.SetPen(PS_SOLID, 1, FD_COLREF_WHITE);
//					atDC.MoveTo(lgrtOneBmp.right - 1, lgrtOneBmp.top + 1);
//					atDC.LineTo(lgrtOneBmp.right - 1, lgrtOneBmp.bottom - 1);
//					atDC.LineTo(lgrtOneBmp.left + 1, lgrtOneBmp.bottom - 1);
//
//					atDC.SetPen(PS_SOLID, 1, FD_COLREF_BLACK);
//					atDC.MoveTo(lgrtOneBmp.left + 1, lgrtOneBmp.bottom - 1);
//					atDC.LineTo(lgrtOneBmp.left + 1, lgrtOneBmp.top + 1);
//					atDC.LineTo(lgrtOneBmp.right - 1, lgrtOneBmp.top + 1);
//				}
//				pObj->OnDraw(&dc, FALSE);
//
//				iCid++;
//			}
//			if (iCid == vChipId.end()) break;
//		}
//	}
//
//	for (y = 0; y < szImage.cy; y++)
//	{
//		for (x = 0; x < szImage.cx; x++)
//		{
//			// RGB _xZkqqHx_iCmM_xHqqkZx_ R_xZkqqHx_iCmG_xHqqkZx_B_xZkqqHx_iCpAjDpMiCoKjBnGiCkGiCoJiBeC_xHqqkZx_
//			::Exchange(pbyBits[4 * (x + y * szImage.cx) + 0],
//						pbyBits[4 * (x + y * szImage.cx) + 2]);
//			// _xZkqqHx_jFgAiJoGiClFiClNjFjEjFkKiCmM_xHqqkZx_alpha_xZkqqHx_jCgMiCmN_xHqqkZx_0_xZkqqHx_iCmJiDiKiDfKiDgCiDgHiClDiCoKiCmEiCkCiCoJiClNiCnPiBeB_xHqqkZx_
//			// _xZkqqHx_jBfDiCmEiCmMjHmMiIoGiCmF_xHqqkZx_alpha_xZkqqHx_jCgMiCpAjElNjDfNiClDiClJiCoJiBeCiClBiCoKiCmJiCoGiCmBiCmEiBeB_xHqqkZx_
//			// _xZkqqHx_jFgAiJoGiClDiCoKiClNjFjEjFkKiCmM_xHqqkZx_alpha_xZkqqHx_jCgMiCmMiCnNiBeB_xHqqkZx_FF_xZkqqHx_iCkKjAnNjCoIiClDiCoKiCoJiBeC_xHqqkZx_
//			pbyBits[4 * (x + y * szImage.cx) + 3] ^= 0xff;
//		}
//	}
//	// ChipRec_xZkqqHx_iCmM_xHqqkZx_m_pBits_xZkqqHx_iCmMiDfEiDeDiDfJiBeC_xHqqkZx_
//	const DWORD dwChipBits = (szImage.cx * szImage.cy * 32) / 8;
//	byvBitBuff.resize(dwChipBits);
//	GetBitmapBits(hbitmap, dwChipBits, byvBitBuff.begin());
//	DeleteObject(hbitmap);
//----- 03.06.27 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	struct my
	{
		long lColumnSize;
		long lLineSize;
	};
	my My;
	My.lColumnSize = lColumnSize;
	My.lLineSize = lLineSize;
	FFMakePngImage32(byvBitBuff, szImage,
					myMakeTemplatePNGImage32, DWORD(&My));
//----- 03.06.27 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
} // CFCFoundDoc::MakeTemplatePNGImage32.

//----- 05.05.13 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	myReadyAfterChunk
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iOhHjCoIiCmMiDgAiDiDiDjDiDeOiDgGiBfLiDfOiCkKiBeBjBmOiPnLiCmGiCmIiCoJiDgAiDiDiDjDiDeOiCmMiPeJjCfLiCnMiCmFjBlFiCmBiCmE_xHqqkZx_
// *			_xZkqqHx_iCkCiCoJiCkJiCmHiCkEiCkJiCpAjClCiCnHiCoJiBeCiDeDiDjDiDfOiBfLiDgMiDgCiDgHiCkJiCoHiDhGiDiNiDePiDiMiDfIiCmF_xHqqkZx_
// *			_xZkqqHx_jDmHiCnNiNjOiCnOiPoKiNiHiCmJiBeBiDgGiBfLiDfOiCkKjFeLjHhGiCmIjFkKiClOiCkPjDmHiCnNiNjOiCnMiCoKiClNiCkJiDgAiDeGiDgCiDeO_xHqqkZx_
// *			_xZkqqHx_iClHiCoJiCmMiCmJiOgHiCkEiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ar			:_xZkqqHx_jDmHiCnNiNjOiCnNiDeBiBfLiDeKiDeDiDhFiCpAiOhHjCoIiBeCiDgAiDiDiDjDiDeOjAoGjDkK_xHqqkZx_
// *						 _xZkqqHx_iCmJiImKjChFiClFiCmEiCkCiCmIiCkPiCoKiCmOiCmIiCoHiCmIiCkCiBeC_xHqqkZx_
// *			bypChunkName:_xZkqqHx_iMjPiNpFjBmOiPnLiCmMiDgAiDiDiDjDiDeOjGlMiCpAiOhHjCoIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	0	:_xZkqqHx_iDgGiBfLiDfOjFhDjBkLiBeC_xHqqkZx_
// *			1	:_xZkqqHx_iMjPiNpFjBmOiPnLiCmMiDgAiDiDiDjDiDeOiPeJjCfLiCnMiCmFiDgGiBfLiDfOiCkKjBlFiCmBiCmEiCkCiCoJiBeC_xHqqkZx_
// *			2	:_xZkqqHx_iMjPiNpFjBmOiPnLiCmMiDgAiDiDiDjDiDeOiCmNjGlDiCkNiBeB_xHqqkZx_IEND_xZkqqHx_iDgAiDiDiDjDiDeOiCmFiPeJjHlJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.07.27 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//static long myReadyAfterChunk (FCUndoArchive& ar, const BYTE* bypChunkName)
//{
//	const BYTE* PNG_IEND = (const BYTE*)"IEND";
//	long lReady = 0;
//	try
//	{
//		while (lReady == 0)
//		{
//			// ar.Read_xZkqqHx_iBeB_xHqqkZx_ar.Skip_xZkqqHx_iCmNiBeBjFhDjBkLiCmMiPoKiNiHiDeHiDiJiBfLiCpAiDfIiDiNiBfLiBeC_xHqqkZx_
//			// _xZkqqHx_iDgAiDiDiDjDiDeOiDgGiBfLiDfOjClHiCpAjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
//			BYTE byaTmpChunkLen[4];
//			ar.Read(byaTmpChunkLen, 4);
//			DWORD dwChunkDataSize = FFPngGetUint32(byaTmpChunkLen);
//			// _xZkqqHx_iDgAiDiDiDjDiDeOjGlMiCpAjDmHiCnNiNjOiCnNiBeC_xHqqkZx_
//			BYTE byaTmpChunkName[4];
//			ar.Read(byaTmpChunkName, 4);
//			// _xZkqqHx_iDgAiDiDiDjDiDeOiDgGiBfLiDfOiCpAjBjHiCoJiBeC_xHqqkZx_
//			ar.Skip(dwChunkDataSize);
//			// CRC_xZkqqHx_iCpAjBjHiCoJiBeC_xHqqkZx_
//			ar.Skip(4);
//			if (memcmp(byaTmpChunkName, bypChunkName, 4) == 0)
//			//----- _xZkqqHx_iMjPiNpFjBmOiPnLiCmMiDgAiDiDiDjDiDeOiCmMiPoKiNiH_xHqqkZx_ -----
//			{
//				lReady = 1;
//			} else
//			if (memcmp(byaTmpChunkName, PNG_IEND, 4) == 0)
//			//----- IEND_xZkqqHx_iDgAiDiDiDjDiDeOiCmMiPoKiNiH_xHqqkZx_ -----
//			{
//				lReady = 2;
//			}
//		}
//	} catch (CException* e)
//	//----- _xZkqqHx_iDeHiDiJiBfLiPiIjHjN_xHqqkZx_ -----
//	{
//		e->Delete();
//	}
//	return lReady;
//} // myReadyAfterChunk.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnViewerDataAvailable
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	
// *			pCanvasStatRefer	:CanvasStat_xZkqqHx_iCmMiOfBiPmGiCpAiOhHjCoIiBeCiClBiCmMjCgMiCkK_xHqqkZx_
// *								 NULL_xZkqqHx_iCmFiCmIiCkCiPoKiNiHiCmNiBeB_xHqqkZx_CanvasStat_xZkqqHx_iCmMjAnNjCoIiOjOiCmJiBeB_xHqqkZx_
// *								 ar_xZkqqHx_iCkJiCoHiCmMjDmHiCnNiNjOiCnNiCoGiCoIiClBiCmMjCgMiCkKjHeEjAoGiClFiCmE_xHqqkZx_
// *								 _xZkqqHx_jAnNjCoIiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	
// *
// * <_xZkqqHx_iPnKiNnH_xHqqkZx_>	
// *
// * <_xZkqqHx_jCiNiInD_xHqqkZx_>	
// *
// * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.07.28 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//long CFCFoundDoc::OnViewerDataAvailable (SheetID& stid, FCUndoArchive& ar,
//										FCCanvasStat* pCanvasStatRefer)
//{
//	// _xZkqqHx_iDgGiBfLiDfOiCkKjBlFiCmBiCmEiCkCiCoJiCkJiBeI_xHqqkZx_
//	// 0: _xZkqqHx_iDgGiBfLiDfOjFhDjBkLiBeC_xHqqkZx_
//	// 1: _xZkqqHx_iMjPiNpFjBmOiPnLiCmMiDgAiDiDiDjDiDeOiPeJjCfLiCnMiCmFiDgGiBfLiDfOiCkKjBlFiCmBiCmEiCkCiCoJiBeC_xHqqkZx_
//	// 2: _xZkqqHx_iMjPiNpFjBmOiPnLiCmMiDgAiDiDiDjDiDeOiCmNjGlDiCkNiBeB_xHqqkZx_IEND_xZkqqHx_iDgAiDiDiDjDiDeOiCmFiPeJjHlJiBeC_xHqqkZx_
//	long lReady = 0;
//	// Undo_xZkqqHx_iDgPiDgCiDhEiDeAiCpAiNmFjBoFiCmJiBeC_xHqqkZx_
//	ar.ResetUndoBuffer(LONG_MAX, LONG_MAX);
//	if (m_NetFileProgress == NET_IMPORT_WAIT_TOP_DATA)
//	//----- _xZkqqHx_iNmFiPiJiCmMiDeDiDjDiDgGiDgCiDeOiDfIiDgGiBfLiDfOiCpAjBnCiCmBiCmEiCkCiCoJiPpDjBnE_xHqqkZx_ -----
//	{
//		// _xZkqqHx_iDhHiDgCiDfPiDfEiDeDiDfJiBeB_xHqqkZx_PNG_xZkqqHx_iDfGiDePiDgMiDgAiDiDiDfEiDeDiDfJiBeC_xHqqkZx_
//		const long lHeadSigSize = FCHeaderInf::GetStreamSize() + 8;
//		if (ar.Skip(lHeadSigSize) == lHeadSigSize)
//		{
//			// MDRW_xZkqqHx_iDgAiDiDiDjDiDeOiCmMiPeJiCoNiCoIiCnMiCmFiDgGiBfLiDfOiCkKjBlFiCmBiCmEiCkCiCoJiCkJiBeI_xHqqkZx_
//			lReady = myReadyAfterChunk(ar, FD_MDRW_CHUNK_NAME);
//			// ar_xZkqqHx_iCpAjAoGjDkKiCnGjGnPiClHiBeC_xHqqkZx_
//			ar.Undo(-1);
//			if (lReady == 1)
//			//----- _xZkqqHx_iMjPiNpFjBmOiPnLiCmMiDgAiDiDiDjDiDeOiPeJjCfLiCnMiCmFiDgGiBfLiDfOiCkKjBlFiCmBiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
//			{
//				// _xZkqqHx_iNmFiPiJiCkJiCoH_xHqqkZx_MDRW_xZkqqHx_iDgAiDiDiDjDiDeOiCmMiMoDiCnMiCmFjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
//				InCurViewerAfterMdrwChunk(ar, pCanvasStatRefer);
//				// _xZkqqHx_iDeDiDjDiDfOiBfLiDgMiDgCiDgHiDhEiDeAiDeDiDiLjDmHiCnNiNjOiCnNiCmMjAgJjClLiCpAjAgJiCnPiCoJiBeC_xHqqkZx_
//				m_NetFileProgress = NET_IMPORT_WAIT_SHEET_DATA;
//				// _xZkqqHx_jFmPiNfIiCkKjDpMiCmBiClNiDfGiBfLiDgHiBeC_xHqqkZx_
//				stid = SheetID(-1);
//			}
//		}
//	} else
//	if (m_NetFileProgress == NET_IMPORT_WAIT_SHEET_DATA)
//	//----- _xZkqqHx_iDfGiBfLiDgHiDgGiBfLiDfOiCpAjBnCiCmBiCmEiCkCiCoJiPpDjBnE_xHqqkZx_ -----
//	{
//		// _xZkqqHx_iDgGiBfLiDfOiCkKjBlFiCmBiCmEiCkCiCoJiCkJiBeI_xHqqkZx_
//		lReady = myReadyAfterChunk(ar, FD_MDVF_CHUNK_NAME);
//		// ar_xZkqqHx_iCpAjAoGjDkKiCnGjGnPiClHiBeC_xHqqkZx_
//		ar.Undo(-1);
//		if (lReady == 1)
//		//----- _xZkqqHx_iMjPiNpFjBmOiPnLiCmMiDgAiDiDiDjDiDeOiPeJjCfLiCnMiCmFiDgGiBfLiDfOiCkKjBlFiCmBiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
//		{
//			// MDVF_xZkqqHx_iDgAiDiDiDjDiDeOiCpAjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
//			stid = InCurViewerMdvfChunk(ar);
//		}
//	} else
//	//----- _xZkqqHx_jBfDiCmEiCmMjDmHiCnNiNjOiCnNiCkKiPeJjHlJiClFiClNiPpDjBnE_xHqqkZx_ -----
//	{
//		lReady = 2;
//	}
//
//	if (lReady == 2)
//	//----- _xZkqqHx_iMjPiNpFjBmOiPnLiCmMiDgAiDiDiDjDiDeOiCmNjGlDiCkNiBeB_xHqqkZx_IEND_xZkqqHx_iDgAiDiDiDjDiDeOiCmFiPeJjHlJiClFiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
//	{
//		m_NetFileProgress = NET_IMPORT_NONE;
//	}
//	return lReady;
//} // CFCFoundDoc::OnViewerDataAvailable.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::InCurViewerAfterMdrwChunk
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhCiDiFiBfLiDeBiDhEiDeIiBfLiDhNiDgCiDgHiCmMiBeBiNmFiPiJiCkJiCoH_xHqqkZx_MDRW_xZkqqHx_iDgAiDiDiDjDiDeOiCmMjClMiMoDiCnMiCmFjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ar					:_xZkqqHx_jDmHiCnNiNjOiCnNiDeBiBfLiDeKiDeDiDhFiCpAiOhHjCoIiBeC_xHqqkZx_
// *			pCanvasStatRefer	:CanvasStat_xZkqqHx_iCmMiOfBiPmGiCpAiOhHjCoIiBeCiClBiCmMjCgMiCkK_xHqqkZx_
// *								 NULL_xZkqqHx_iCmFiCmIiCkCiPoKiNiHiCmNiBeB_xHqqkZx_CanvasStat_xZkqqHx_iCmMjAnNjCoIiOjOiCmJiBeB_xHqqkZx_
// *								 ar_xZkqqHx_iCkJiCoHiCmMjDmHiCnNiNjOiCnNiCoGiCoIiClBiCmMjCgMiCkKjHeEjAoGiClFiCmE_xHqqkZx_
// *								 _xZkqqHx_jAnNjCoIiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jCiNiInD_xHqqkZx_>	_xZkqqHx_iDhEiDeAiDeDiDiLiCmJiInJiPoNiCkKiCkAiCoJiPoKiNiHiCmNiDeHiDiJiBfLiCpAiDfIiDiNiBfLiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.07.26 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCFoundDoc::InCurViewerAfterMdrwChunk (FCUndoArchive& ar,
//											FCCanvasStat* pCanvasStatRefer)
//{
//	// _xZkqqHx_iDhHiDgCiDfPiPoOjFpBiCmMjDmHiCnNiNjOiCnNiBeC_xHqqkZx_
//	m_headerInf.InStream(ar);
//	// _xZkqqHx_iDhHiDgCiDfPiDgAiDeGiDgCiDeOiBeCiDeHiDiJiBfLiBeBiMmDiCkCiPoKiNiHiCmNiDfIiDiNiBfLiPiIjHjNiCnGiBeC_xHqqkZx_
//	m_headerInf.RegalCheck(FD_DTP_VIEWER_FORMAT);
//	// png_ptr_xZkqqHx_iNfMjBkCjBmMiCpAiKgNjFnLiBeFiPiJiKpKiJlLiBeC_xHqqkZx_
//	FCPngReadStruct* ps = FFPngReadInitialize(ar);
//	CException* pException = NULL;
//	try
//	{
//		// _xZkqqHx_iDeDiDiBiBfLiDfHiCpAjAnNjCoIiBeC_xHqqkZx_
//		ps->m_szImage32 = NULL;
//		ps->m_vImage32 = NULL;
//		// _xZkqqHx_jFlGiPjBiDhGiDiNiDhAiDgFiDeCjCgMiCpAjAnNjCoIiBeC_xHqqkZx_
//		ps->m_wstraDocumentProperty = m_wstrDocumentProperty;
//		ps->m_lDocumentPropertySize = sizeof(m_wstrDocumentProperty) / sizeof(m_wstrDocumentProperty[0]);
//		// MDRW_xZkqqHx_iDgAiDiDiDjDiDeOiCmMjClMjBePiCnMiCmFiBgJiDeDiDiBiBfLiDfHiDgGiBfLiDfOiBeB_xHqqkZx_DD_xZkqqHx_jFlGiPjBiDhGiDiNiDhAiDgFiDeCiCpAiBgKjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
//		if (!FFPngReadUntilMdrwChunk(ps))
//		{
//			FFThrowDDFileException(IDS_ERR_FILE_WRONG_FORM, L"");
//		}
//		// MDRW_xZkqqHx_iDgAiDiDiDjDiDeOiCpAjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
//		BYTEVector vCompressBuff;
//		FFPngReadChunk(ps, vCompressBuff);
//		// LZ77_xZkqqHx_iDgGiBfLiDfOiDhFiDiNiDgCiDeOiCpAjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
//		BYTEVector vRawDataBuff;
//		FFReadLZ77DataBlock(vRawDataBuff,
//							vCompressBuff.begin(), vCompressBuff.size());
//		vCompressBuff.clear();
//		// _xZkqqHx_iDiBiDiCiDiKiDhEiDeAiDeDiDiLiCpAjAlGjAkMiBeC_xHqqkZx_
//		CMemFile memVIndexDataFile(vRawDataBuff.begin(), vRawDataBuff.size());
//		FCUndoArchive arMem(&memVIndexDataFile, FD_ARCHIVE_LOAD, this);
//		// _xZkqqHx_iDhCiDiFiBfLiDeBiDeDiDjDiDgGiDgCiDeOiDfIjDpMjHmNiBeC_xHqqkZx_
//		InCurViewerIndexData(arMem, pCanvasStatRefer);
//		// _xZkqqHx_iDeBiBfLiDeKiDeDiDhFiCpAjFmCiClGiCoJiBeC_xHqqkZx_
//		arMem.Terminate();
//		memVIndexDataFile.Close();
//		vRawDataBuff.clear();
//	} catch (CException* e)
//	//----- _xZkqqHx_iDeHiDiJiBfLiPiIjHjN_xHqqkZx_ -----
//	{
//		pException = e;
//	}
//	// _xZkqqHx_iCfBiCmCiCmMiNfMjBkCjBmMiCmMiDiBiDiCiDiKiCpAiJpAjFpKiBeC_xHqqkZx_
//	FFPngTerminate(ps);
//	// _xZkqqHx_iDeHiDiJiBfLiCmMiPoKiNiHiCmNiDfIiDiNiBfLiBeC_xHqqkZx_
//	if (pException != NULL) throw pException;
//} // CFCFoundDoc::InCurViewerAfterMdrwChunk.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::InCurViewerMdvfChunk
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhCiDiFiBfLiDeBiDhEiDeIiBfLiDhNiDgCiDgHiCmMiBeB_xHqqkZx_MDVF_xZkqqHx_iDgAiDiDiDjDiDeOiCpAjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ar	:_xZkqqHx_jDmHiCnNiNjOiCnNiDeBiBfLiDeKiDeDiDhFiCpAiOhHjCoIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_jDmHiCnNiNjOiCnMiCoKiClNiDfGiBfLiDgHiCmM_xHqqkZx_ID_xZkqqHx_iBeCjDmHiCnNiNjOiCnMiCoKiCmIiCkJiCmBiClNiPoKiNiHiCmN_xHqqkZx_SheetID(-1)_xZkqqHx_iBeC_xHqqkZx_
// *
// * <_xZkqqHx_jCiNiInD_xHqqkZx_>	_xZkqqHx_iDhEiDeAiDeDiDiLiCmJiInJiPoNiCkKiCkAiCoJiPoKiNiHiCmNiDeHiDiJiBfLiCpAiDfIiDiNiBfLiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.07.26 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//SheetID CFCFoundDoc::InCurViewerMdvfChunk (FCUndoArchive& ar)
//{
//	SheetID stid = SheetID(-1);
//	// png_ptr_xZkqqHx_iNfMjBkCjBmMiCpAiKgNjFnLiBeFiPiJiKpKiJlLiBeC_xHqqkZx_
//	FCPngReadStruct* ps = FFPngReadInitialize(ar);
//	CException* pException = NULL;
//	try
//	{
//		// MDVF_xZkqqHx_iDgAiDiDiDjDiDeOiCnMiCmFiDfIiDeMiDgCiDhGiBeC_xHqqkZx_
//		if (FFPngSkipUntilSpecChunk(ps, FD_MDVF_CHUNK_NAME))
//		{
//			// MDVF_xZkqqHx_iDgAiDiDiDjDiDeOiCpAjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
//			BYTEVector vCompressBuff;
//			FFPngReadChunk(ps, vCompressBuff);
//			// _xZkqqHx_jEpBiIlDiPgLiDgGiBfLiDfOiCpAiOoGjDlOiBeC_xHqqkZx_
//			BYTEVector vRawDataBuff;
//			FFReadLZ77DataBlock(vRawDataBuff, vCompressBuff.begin(),
//											vCompressBuff.size());
//			vCompressBuff.clear();
//			// _xZkqqHx_iDiBiDiCiDiKiDhEiDeAiDeDiDiLiCpAjAlGjAkMiBeC_xHqqkZx_
//			CMemFile memVSheetDataFile(vRawDataBuff.begin(), vRawDataBuff.size());
//			FCUndoArchive arMemVSheetData(&memVSheetDataFile, FD_ARCHIVE_LOAD, this);
//			// _xZkqqHx_iDhCiDiFiBfLiDeBiDeDiDjDiDgGiDgCiDeOiDfIjDpMjHmNiBeC_xHqqkZx_
//			stid = InCurViewerSheetData(arMemVSheetData);
//			// _xZkqqHx_iDeBiBfLiDeKiDeDiDhFiCpAjFmCiClGiCoJiBeC_xHqqkZx_
//			arMemVSheetData.Terminate();
//			memVSheetDataFile.Close();
//			vRawDataBuff.clear();
//		}
//	} catch (CException* e)
//	//----- _xZkqqHx_iDeHiDiJiBfLiPiIjHjN_xHqqkZx_ -----
//	{
//		pException = e;
//	}
//	// _xZkqqHx_iCfBiCmCiCmMiNfMjBkCjBmMiCmMiDiBiDiCiDiKiCpAiJpAjFpKiBeC_xHqqkZx_
//	FFPngTerminate(ps);
//	// _xZkqqHx_iDeHiDiJiBfLiCmMiPoKiNiHiCmNiDfIiDiNiBfLiBeC_xHqqkZx_
//	if (pException != NULL) throw pException;
//	// _xZkqqHx_jDmHiCnNiNjOiCnMiCoKiClNiDfGiBfLiDgHiCmM_xHqqkZx_ID_xZkqqHx_iCpAjFnEiClHiBeC_xHqqkZx_
//	return stid;
//} // CFCFoundDoc::InCurViewerMdvfChunk.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::InCurViewerIndexData
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhCiDiFiBfLiDeBiDhEiDeIiBfLiDhNiDgCiDgHiCmMjEpBiIlDiPgL_xHqqkZx_VINDEX_xZkqqHx_iDgGiBfLiDfOiCpAjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ar	:_xZkqqHx_jDpMjHmNiMlDiDeBiBfLiDeKiDeDiDhFiCpAiOhHjCoIiBeC_xHqqkZx_
// *			pCanvasStatRefer	:_xZkqqHx_iDeMiDiDiDjDiDgPiDfIiPoOjFpBiCmMiDiKiDhEiDeAiDiMiDjDiDfIiCpAiOhHjCoIiBeC_xHqqkZx_
// *								 _xZkqqHx_iClBiCmMjCgMiCkKiOhHjCoIiClDiCoKiClNiPoKiNiHiBeBjDmHiCnNiNjOiCnMiCoKiClN_xHqqkZx_
// *								 _xZkqqHx_iDeMiDiDiDjDiDgPiDfIiPoOjFpBiCmFiCmNiCmIiCkNiBeBiClBiCmMjCgMiCpA_xHqqkZx_
// *								 _xZkqqHx_iOgHiCmBiCmEiPiJiKpKiJlLiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.07.03 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCFoundDoc::InCurViewerIndexData (FCUndoArchive& ar,
//										FCCanvasStat* pCanvasStatRefer)
//{
//	// _xZkqqHx_iKmCiLkLiPoOjFpBiCpAjDpMjHmNiBeC_xHqqkZx_
//	g_pEnv->InStream(ar);
//	// _xZkqqHx_jEhHiMgJjAhNiCpAjDpMjHmNiBeC_xHqqkZx_
//	g_pEnv->InEmfImage(ar);
//	// _xZkqqHx_iDfGiBfLiDgHiBeBjFjEjFgJiPoOjFpBiCpAjDpMjHmNiBeC_xHqqkZx_
//	m_pSheetManager->InTopBottomSheetStream(ar);
//	// _xZkqqHx_iDiMiDfHiDfIiDgHiDiKiPoOjFpBiCpAjDpMjHmNiClHiCoJiBeC_xHqqkZx_
//	g_pReg->InStream(ar);
//	// _xZkqqHx_iDeMiDiDiDjDiDgPiDfIiCmMjFfMiOkGiPpDjBnEiCpAjDpMjHmNiClHiCoJiBeC_xHqqkZx_
//	m_canvasStat.InStream(ar);
//	// _xZkqqHx_iDeMiDiDiDjDiDgPiDfIiPoOjFpBiCmMiDiKiDhEiDeAiDiMiDjDiDfIiCkKiOhHjCoIiClDiCoKiCmEiCkCiCoJiPoKiNiHiBeC_xHqqkZx_
//	// _xZkqqHx_iDeMiDiDiDjDiDgPiDfIiPoOjFpBiCpAiDiKiDhEiDeAiDiMiDjDiDfIiCmMjCgMiCmJjAnNjCoIiBeC_xHqqkZx_
//	// _xZkqqHx_iBgJjHjKjHpAiInKjDkOiCmIiCmHiCmFiBeBiDfJiBfLiDiAjCgMiCoCiDhCiDiFiBfLjCiGjAfDiImKjChFiCkKiClIiCoKiCoJiCmMiCpAjGgIiCkOiPoKiNiHiCmJjHhAiCkCiCoJiBgK_xHqqkZx_
//	if (pCanvasStatRefer != NULL)
//		m_canvasStat = *pCanvasStatRefer;
//	// _xZkqqHx_iDeMiDiDiDjDiDgPiDfIiPoOjFpBiCpAiDePiDiNiBfLiDgPiDiLiCnGjElNiJgGiBeC_xHqqkZx_
//	m_canvasStat.UpdateCanvas();
//} // CFCFoundDoc::InCurViewerIndexData.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::InCurViewerSheetData
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhCiDiFiBfLiDeBiDhEiDeIiBfLiDhNiDgCiDgHiCmMjEpBiIlDiPgL_xHqqkZx_VSHEET_xZkqqHx_iDgGiBfLiDfOiCpAjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ar	:_xZkqqHx_jDmHiCnNiNjOiCnNiDeBiBfLiDeKiDeDiDhFiCpAiOhHjCoIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_jDmHiCnNiNjOiCnMiCoKiClNiDfGiBfLiDgHiCmM_xHqqkZx_ID_xZkqqHx_iBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.07.03 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//SheetID CFCFoundDoc::InCurViewerSheetData (FCUndoArchive& ar)
//{
//	SheetID stid;
//	// _xZkqqHx_iDfGiBfLiDgH_xHqqkZx_ID_xZkqqHx_iCpAjDpMjHmNiBeC_xHqqkZx_
//	ar >> stid;
//	// _xZkqqHx_jEhHiMgJjAhNiCpAjDpMjHmNiBeC_xHqqkZx_
//	g_pEnv->InEmfImage(ar);
//	// _xZkqqHx_iDfGiBfLiDgHiBgJiDiMiDeDiDiEiBfLiDhNiDgMiBfLiDfHiDiDiBgKiCpAiOoGjDlOiBeC_xHqqkZx_
//	FCLayerManager* pSheet = m_pSheetManager->GetSheet(stid);
//	// _xZkqqHx_iClBiCmMiDfGiBfLiDgHiCmMiDiMiDeDiDiEiBfLiPoOjFpBiBeFjFjEjFgJiPoOjFpBiCpAjDpMjHmNiBeC_xHqqkZx_
//	pSheet->InStream(ar);
//	return stid;
//} // CFCFoundDoc::InCurViewerSheetData.
//----- 05.05.13 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnReqEnd
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	[ID_DREQ_END]_xZkqqHx_iCmMiPiIjHjNiKnGjAjEiBeC_xHqqkZx_
 *			_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiB_xHqqkZx_[_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiPeJjCfLiBeC_xHqqkZx_]_xZkqqHx_iCpAiPiIjHjNiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ret		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCmMiMiLiJmKiCpAjFnEiClHiBeC_xHqqkZx_
 *			arg		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *			reqLock	:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiDiNiDgCiDeOiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.09.20 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
FTDocReqResult CFCFoundDoc::OnReqEnd (FCReqBase& ret, FCReqLock& reqLock)
{
	// _xZkqqHx_jFnEjCgMjFmPjAjEiCpAiDeOiDiKiDeBiBeC_xHqqkZx_
	ret.Clear();
	return FD_DRR_OK;
} // CFCFoundDoc::OnReqEnd.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	myFindEndIf
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	iBegin_xZkqqHx_iBgA_xHqqkZx_iEnd_xZkqqHx_jCiGiCmMiBeBjDkPiClGjDpMiCoKiOhBiDiMiDhIiDiLiCmM_xHqqkZx_END_IF_xZkqqHx_iBeB_xHqqkZx_ELSE _xZkqqHx_iCmMiImKjChFiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	iBegin	:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiDeMiDiFiBfLiCmMjAoGjDkKiCpAiOhHjCoIiBeC_xHqqkZx_
 *			iEnd	:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiDeMiDiFiBfLiCmMiPeJjCfLiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	END_IF_xZkqqHx_iBeB_xHqqkZx_ELSE_xZkqqHx_iImKjChFiBeCiMkJiCmCiCkJiCoHiCmIiCkCiPoKiNiHiCmNiBeB_xHqqkZx_iEnd_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	04.01.03 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
static FCReqBaseAutoVector::iterator myFindEndIf (	FCReqBaseAutoVector::iterator iBegin,
													FCReqBaseAutoVector::iterator iEnd)
{
	long lIfNest = 1;
	FCReqBaseAutoVector::iterator iDr = iBegin;
	for (;;)
	{
		if (iDr == iEnd)
		{
			// IF_xZkqqHx_iCmJjBmOiJjOiClHiCoJ_xHqqkZx_END_IF_xZkqqHx_iCkKiCkAiCoIiCnMiClJiCpBiBeC_xHqqkZx_
			break;
		}
		if ((*iDr)->m_drqRequest == ID_DREQ_IF)
		{
			// IF_xZkqqHx_iCmMiPoKiNiHiCmNiBeBjDpMiCoKiOhBiDeKiDeFiDjDiDfOiCpAiDeBiDgCiDhGiBeC_xHqqkZx_
			lIfNest++;
		} else
		if ((*iDr)->m_drqRequest == ID_DREQ_END_IF)
		{
			if (lIfNest == 1) break;
			// END_IF_xZkqqHx_iCmMiPoKiNiHiCmNiBeBjDpMiCoKiOhBiDeKiDeFiDjDiDfOiCpAiDfPiDeFiDjDiBeC_xHqqkZx_
			lIfNest--;
		} else
		if ((*iDr)->m_drqRequest == ID_DREQ_ELSE)
		{
			if (lIfNest == 1) break;
		}
		iDr++;
	}
	return iDr;
} // myFindEndIf.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnReqIf
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	[ID_DREQ_IF]_xZkqqHx_iCmMiPiIjHjNiKnGjAjEiBeC_xHqqkZx_
 *			_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiB_xHqqkZx_[_xZkqqHx_iPpAiMiPiOmAiNhDiBeC_xHqqkZx_]_xZkqqHx_iCpAiPiIjHjNiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ret		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCmMiMiLiJmKiCpAjFnEiClHiBeC_xHqqkZx_
 *			arg		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *			reqLock	:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiDiNiDgCiDeOiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.09.20 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
FTDocReqResult CFCFoundDoc::OnReqIf (FCReqBase& ret, FCReqLock& reqLock)
{
	//----- _xZkqqHx_iPpAiMiPiBgJ_xHqqkZx_IF_CONDITION_xZkqqHx_iIpIjAjEiBgKiCpAiOoGjDlO_xHqqkZx_ -----
	// ID_DREQ_IF _xZkqqHx_iCmMiPoKiNiHiBeBiIpIjAjEiCkK_xHqqkZx_ ret _xZkqqHx_iCmJjDgOiClDiCoKiCmIiCkCiCmMiCmFiBeB_xHqqkZx_
	// _xZkqqHx_jClMjAnKjClCiCnHiCoJjFeLjHhGiCkKiCkAiCoJiBeC_xHqqkZx_

	// _xZkqqHx_iDgGiDhEiDeIiDiLiDgHiPpAiMiPiCmNiBeB_xHqqkZx_AND(a,b,c_xZkqqHx_iBeFiBeFiBeF_xHqqkZx_)
	// AND _xZkqqHx_iPpAiMiPiCkJiBeI_xHqqkZx_
	BOOL bIsAnd = TRUE;
	// NOT _xZkqqHx_iPpAiMiPiCkJiBeI_xHqqkZx_
	BOOL bIsNot = FALSE;

	map<FCReqBase::FTValueName, FCReqBase::FCAnyTypeValue2>::const_iterator iTv;
	if (!GetCurrentDocRequest()->IsNullIfCondition())
	//----- _xZkqqHx_iPpAiMiPiCkKiOhHjCoIiClDiCoKiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
	{
		switch (GetCurrentDocRequest()->GetIfCondition())
		{
		case IF_CONDITION::AND:
			bIsAnd = TRUE;
			bIsNot = FALSE;
			break;
		case IF_CONDITION::OR:
			bIsAnd = FALSE;
			bIsNot = FALSE;
			break;
		case IF_CONDITION::NOT_AND:
			bIsAnd = TRUE;
			bIsNot = TRUE;
			break;
		case IF_CONDITION::NOT_OR:
			bIsAnd = FALSE;
			bIsNot = TRUE;
			break;
		}
	}
	BOOL bIsTrue;
	// _xZkqqHx_iPpAiMiPiCmMiIoKjChGiCpAjClCiCnHiCoJiBeC_xHqqkZx_
	if (bIsAnd)
	//----- AND _xZkqqHx_iCmMiPoKiNiH_xHqqkZx_ -----
	{
		// IF_xZkqqHx_iIpIjAjEiCmFiOhHjCoIiClDiCoKiClNiPpAiMiPiCmGiIoKjChGiClHiCoJjCgMiClHiCnHiCmEiCkK_xHqqkZx_ ret_xZkqqHx_jCiGiCmJiCkAiCoKiCmOjAfOiBeC_xHqqkZx_
		map<FCReqBase::FTValueName, FCReqBase::FCAnyTypeValue2>::const_iterator iTv;
		for (iTv = GetCurrentDocRequest()->m_mpTypeToValue2.begin();
			 iTv != GetCurrentDocRequest()->m_mpTypeToValue2.end(); iTv++)
		{
			FCReqBase::FTValueName valueName = (*iTv).first;
			// _xZkqqHx_iIpIjAjEiBhFjBnCiClPiOjOiKnEiBhGiCmNiBeBjFfNiJlPiCmMjBmOiPnLiCmFiCmNiCmIiCkCiBeC_xHqqkZx_
			if (valueName == FCReqBase::WAIT_MILLISEC) continue;
			// _xZkqqHx_iIpIjAjEiBhF_xHqqkZx_IF_xZkqqHx_iPpAiMiPiBhGiCmNiBeBjFfNiJlPiCmMjBmOiPnLiCmFiCmNiCmIiCkCiBeC_xHqqkZx_
			if (valueName == FCReqBase::IF_CONDITION) continue;
			// _xZkqqHx_iPpAiMiPjCgMiCkKjBlGiNnNiClFiCmIiCkCiPoKiNiHiCmNiPeJjHlJiBeC_xHqqkZx_
			if (ret.IsNull(valueName)) break;
			// _xZkqqHx_iPpAiMiPjCgMiCkKiIoKjChGiClFiCmIiCkCiPoKiNiHiCmNiPeJjHlJiBeC_xHqqkZx_
			if (ret.GetValue(valueName).Compare((*iTv).second,
												FCReqBase::GetValueType(valueName)) != 0)
				break;
		}
		bIsTrue = (iTv == GetCurrentDocRequest()->m_mpTypeToValue2.end());
	} else
	//----- OR _xZkqqHx_iCmMiPoKiNiH_xHqqkZx_ -----
	{
		// IF_xZkqqHx_iIpIjAjEiCmFiOhHjCoIiClDiCoKiClNiPpAiMiPiCmGiIoKjChGiClHiCoJjCgMiCkKiIoKiCmCiCmFiCoA_xHqqkZx_ ret_xZkqqHx_jCiGiCmJiCkAiCoKiCmOjAfOiBeC_xHqqkZx_
		map<FCReqBase::FTValueName, FCReqBase::FCAnyTypeValue2>::const_iterator iTv;
		for (iTv = GetCurrentDocRequest()->m_mpTypeToValue2.begin();
			 iTv != GetCurrentDocRequest()->m_mpTypeToValue2.end(); iTv++)
		{
			FCReqBase::FTValueName valueName = (*iTv).first;
			// _xZkqqHx_iIpIjAjEiBhFjBnCiClPiOjOiKnEiBhGiCmNiBeBjFfNiJlPiCmMjBmOiPnLiCmFiCmNiCmIiCkCiBeC_xHqqkZx_
			if (valueName == FCReqBase::WAIT_MILLISEC) continue;
			// _xZkqqHx_iIpIjAjEiBhF_xHqqkZx_IF_xZkqqHx_iPpAiMiPiBhGiCmNiBeBjFfNiJlPiCmMjBmOiPnLiCmFiCmNiCmIiCkCiBeC_xHqqkZx_
			if (valueName == FCReqBase::IF_CONDITION) continue;
			// _xZkqqHx_iPpAiMiPjCgMiCkKjBlGiNnNiClFiCmIiCkCiPoKiNiHiCmNiOjPiCnGiBeC_xHqqkZx_
			if (ret.IsNull(valueName)) continue;
			// _xZkqqHx_iPpAiMiPjCgMiCkKiIoKjChGiClHiCoJiPoKiNiHiCmNiPeJjHlJiBeC_xHqqkZx_
			if (ret.GetValue(valueName).Compare((*iTv).second,
												FCReqBase::GetValueType(valueName)) == 0)
				break;
		}
		bIsTrue = (iTv != GetCurrentDocRequest()->m_mpTypeToValue2.end());
	}
	// NOT_xZkqqHx_iCmMiPoKiNiHiCmNjCgMiCpAjDpMiCoKjBnGiCkGiCoJiBeC_xHqqkZx_
	if (bIsNot) bIsTrue = !bIsTrue;

	if (bIsTrue)
	//----- _xZkqqHx_jCgMiCkKjAfOiCmMiPoKiNiH_xHqqkZx_ -----
	{
		// IF_xZkqqHx_iCmJjBmOiJjOiClHiCoJ_xHqqkZx_END_IF_xZkqqHx_iCpAjCfEiClFiPgPiClFiCmEiNoNiPjMiClHiCoJiBeC_xHqqkZx_
		// _xZkqqHx_iIlNiCkCiCmNiBeB_xHqqkZx_IF_xZkqqHx_iCmJjBmOiJjOiClHiCoJ_xHqqkZx_ELSE_xZkqqHx_iCkKjBlGiNnNiClHiCoJiPoKiNiHiCmNiBeB_xHqqkZx_
		// [ELSE _xZkqqHx_iBgA_xHqqkZx_ END_IF]_xZkqqHx_iCmMiKnEiCpAiNoNiPjMiClHiCoJiBeC_xHqqkZx_

		FCReqBaseAutoVector::iterator iDr =
			myFindEndIf(m_pvDocRequest->begin() + 1, m_pvDocRequest->end());
		if (iDr == m_pvDocRequest->end())
		{
			// IF_xZkqqHx_iCmJjBmOiJjOiClHiCoJ_xHqqkZx_END_IF_xZkqqHx_iCkKiCkAiCoIiCnMiClJiCpBiBeC_xHqqkZx_
			FFSetDDError(IDS_ERR_MSG_END_IF_NOT_FOUND);
			return FD_DRR_ERR;
		}
		if ((*iDr)->m_drqRequest == ID_DREQ_END_IF)
		{
			// [END_IF]_xZkqqHx_iCpAiNoNiPjMiClHiCoJiBeC_xHqqkZx_
			m_pvDocRequest->erase(iDr);
		} else	// m_drqRequest == ID_DREQ_ELSE.
		{
			// [ELSE _xZkqqHx_iBgA_xHqqkZx_ END_IF]_xZkqqHx_iCpAiNoNiPjMiBeC_xHqqkZx_
			FCReqBaseAutoVector::iterator iDrBegin = iDr;
			iDr = myFindEndIf(iDr + 1, m_pvDocRequest->end());
			if (iDr == m_pvDocRequest->end())
			{
				// IF_xZkqqHx_iCmJjBmOiJjOiClHiCoJ_xHqqkZx_END_IF_xZkqqHx_iCkKiCkAiCoIiCnMiClJiCpBiBeC_xHqqkZx_
				FFSetDDError(IDS_ERR_MSG_END_IF_NOT_FOUND);
				return FD_DRR_ERR;
			}
			if ((*iDr)->m_drqRequest == ID_DREQ_END_IF)
			{
				// [ELSE _xZkqqHx_iBgA_xHqqkZx_ END_IF]_xZkqqHx_iCpAiNoNiPjMiBeC_xHqqkZx_
				m_pvDocRequest->erase(iDrBegin, iDr + 1);
			} else	// m_drqRequest == ID_DREQ_ELSE.
			{
				// IF_xZkqqHx_iCmJjBmOiJjOiClHiCoJ_xHqqkZx_END_IF_xZkqqHx_iCkKiCkAiCoIiCnMiClJiCpBiBeC_xHqqkZx_
				FFSetDDError(IDS_ERR_MSG_END_IF_NOT_FOUND);
				return FD_DRR_ERR;
			}
		}
	} else
	//----- _xZkqqHx_jCgMiCkKiLfFiCmMiPoKiNiH_xHqqkZx_ -----
	{
		// IF_xZkqqHx_iCmJjBmOiJjOiClHiCoJ_xHqqkZx_END_IF_xZkqqHx_iCpAjCfEiClFiPgPiClFiCmEiBeB_xHqqkZx_[IF _xZkqqHx_iBgA_xHqqkZx_ END_IF]_xZkqqHx_iCpAiNoNiPjMiClHiCoJiBeC_xHqqkZx_
		// _xZkqqHx_iIlNiCkCiCmNiBeB_xHqqkZx_IF_xZkqqHx_iCmJjBmOiJjOiClHiCoJ_xHqqkZx_ELSE_xZkqqHx_iCkKjBlGiNnNiClHiCoJiPoKiNiHiCmNiBeB_xHqqkZx_
		// [IF _xZkqqHx_iBgA_xHqqkZx_ ELSE]_xZkqqHx_iCmGiBeB_xHqqkZx_[END_IF]_xZkqqHx_iCpAiNoNiPjMiClHiCoJiBeC_xHqqkZx_

		FCReqBaseAutoVector::iterator iDr =
			myFindEndIf(m_pvDocRequest->begin() + 1, m_pvDocRequest->end());
		if (iDr == m_pvDocRequest->end())
		{
			// IF_xZkqqHx_iCmJjBmOiJjOiClHiCoJ_xHqqkZx_END_IF_xZkqqHx_iCkKiCkAiCoIiCnMiClJiCpBiBeC_xHqqkZx_
			FFSetDDError(IDS_ERR_MSG_END_IF_NOT_FOUND);
			return FD_DRR_ERR;
		}
		if ((*iDr)->m_drqRequest == ID_DREQ_END_IF)
		{
			// [IF _xZkqqHx_iBgA_xHqqkZx_ END_IF]_xZkqqHx_iCpAiNoNiPjMiClHiCoJiBeC_xHqqkZx_
			m_pvDocRequest->erase(m_pvDocRequest->begin() + 1, iDr + 1);
		} else	// m_drqRequest == ID_DREQ_ELSE.
		{
			// [IF _xZkqqHx_iBgA_xHqqkZx_ ELSE]_xZkqqHx_iCpAiNoNiPjMiClHiCoJiBeC_xHqqkZx_
			iDr = m_pvDocRequest->erase(m_pvDocRequest->begin() + 1, iDr + 1);
			// [END_IF]_xZkqqHx_iCpAiNoNiPjMiBeC_xHqqkZx_
			iDr = myFindEndIf(iDr, m_pvDocRequest->end());
			if (iDr == m_pvDocRequest->end())
			{
				// IF_xZkqqHx_iCmJjBmOiJjOiClHiCoJ_xHqqkZx_END_IF_xZkqqHx_iCkKiCkAiCoIiCnMiClJiCpBiBeC_xHqqkZx_
				FFSetDDError(IDS_ERR_MSG_END_IF_NOT_FOUND);
				return FD_DRR_ERR;
			}
			if ((*iDr)->m_drqRequest == ID_DREQ_END_IF)
			{
				// [END_IF]_xZkqqHx_iCpAiNoNiPjMiBeC_xHqqkZx_
				m_pvDocRequest->erase(iDr);
			} else	// m_drqRequest == ID_DREQ_ELSE.
			{
				// IF_xZkqqHx_iCmJjBmOiJjOiClHiCoJ_xHqqkZx_END_IF_xZkqqHx_iCkKiCkAiCoIiCnMiClJiCpBiBeC_xHqqkZx_
				FFSetDDError(IDS_ERR_MSG_END_IF_NOT_FOUND);
				return FD_DRR_ERR;
			}
		}
	}
	return FD_DRR_OK;
} // CFCFoundDoc::OnReqIf.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnReqCancel
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	[ID_DREQ_CANCEL]_xZkqqHx_iCmMiPiIjHjNiKnGjAjEiBeC_xHqqkZx_
 *			_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiB_xHqqkZx_[_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCpAiPeJjHlJiBeC_xHqqkZx_]_xZkqqHx_iCpAiPiIjHjNiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ret		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCmMiMiLiJmKiCpAjFnEiClHiBeC_xHqqkZx_
 *			arg		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *			reqLock	:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiDiNiDgCiDeOiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.09.20 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
FTDocReqResult CFCFoundDoc::OnReqCancel (FCReqBase& ret, FCReqLock& reqLock)
{
	// _xZkqqHx_iClBiCoKiImIiNhOiCmMiDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCpAiDeMiDiDiDjDiDfKiDiLiClHiCoJiBeC_xHqqkZx_
	return FD_DRR_CANCEL;
} // CFCFoundDoc::OnReqCancel.

//----- 03.09.25 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnReqNewDocument
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiB_xHqqkZx_[_xZkqqHx_jAfGiLeLjFlGiPjBiCpAiNoMjAkMiClHiCoJiBeC_xHqqkZx_]_xZkqqHx_iCpAiPiIjHjNiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ret		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCmMiMiLiJmKiCpAjFnEiClHiBeC_xHqqkZx_
// *			arg		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
// *			reqLock	:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiDiNiDgCiDeOiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.09.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//FTDocReqResult CFCFoundDoc::OnReqNewDocument (FCReqBase& ret, const	FCReqBase& arg,	FCReqLock& reqLock)
//{
//	if (!IsClosableTemporaryDocument())
//	//----- _xZkqqHx_iIoKiOjOjDeJiCmIjFlGiPjBiCmFiCmNiCmIiCkCiPoKiNiH_xHqqkZx_ -----
//	{
//		// _xZkqqHx_iMlLiNnNiBeBiDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiDeMiDiFiBfLiCmMjAoGjDkKiCmJiCmN_xHqqkZx_[_xZkqqHx_jAfGiLeLjFlGiPjBiCpAiNoMjAkMiClHiCoJ_xHqqkZx_]_xZkqqHx_iCkKjBlGiNnNiClHiCoJiBeC_xHqqkZx_
//		// _xZkqqHx_jFmKiCmI_xHqqkZx_EXE_xZkqqHx_iCmJiDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCpAiIpIiCkLjDgOiClHiBeC_xHqqkZx_
//		ExecDocRequest();
//		return FD_DRR_CANCEL;
//	}
//	AfxGetApp()->OnCmdMsg(ID_FILE_NEW, 0, NULL, NULL);
//	return FD_DRR_OK;
//} // CFCFoundDoc::OnReqNewDocument.
//----- 03.09.25 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnReqImportFile
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	[ID_DREQ_IMPORT_FILE]_xZkqqHx_iCmMiPiIjHjNiKnGjAjEiBeC_xHqqkZx_
 *			_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiB_xHqqkZx_[_xZkqqHx_iDhEiDeAiDeDiDiLiCpAiDeDiDjDiDhMiBfLiDgHiClHiCoJiBeC_xHqqkZx_]_xZkqqHx_iCpAiPiIjHjNiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ret		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCmMiMiLiJmKiCpAjFnEiClHiBeC_xHqqkZx_
 *			arg		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *			reqLock	:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiDiNiDgCiDeOiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.09.25 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
FTDocReqResult CFCFoundDoc::OnReqImportFile (FCReqBase& ret, FCReqLock& reqLock)
{
	ImportFile(ret.GetDocumentPath(), NULL);
//----- 06.06.13 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	// Undo_xZkqqHx_iDhEiDeAiDeDiDiLiCpAiDeJiBfLiDhGiDjDiClHiCoJiBeC_xHqqkZx_SetModifiedFlag(TRUE)_xZkqqHx_iCpAjHeMiMpIiCmJiClHiCoJiClNiCnPiBeC_xHqqkZx_
//	OpenUndo();
//	// _xZkqqHx_iPeDjAlDiDhEiDiJiDePiCpAjAnNjCoIiBeC_xHqqkZx_
//	SetModifiedFlag(TRUE);
//----- 06.06.13 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	// _xZkqqHx_jGlDiPpAiMiPiCmF_xHqqkZx_SetModifiedFlag(TRUE)_xZkqqHx_iCpAiOmAiNhDiClFiCmEiCkCiCoJiCmGiBeB_xHqqkZx_
	// _xZkqqHx_iDgFiDjDiDhGiDiMiBfLiDgHiDhEiDeAiDeDiDiLiCpAiDfPiDhFiDiLiDeOiDiKiDgCiDeOiCmFiLeOjDkOiClFiClNiPoKiNiHiCmJ_xHqqkZx_
	// _xZkqqHx_iKpJiCmJjFmPiNfIiNmPiCnNiCmGiCkCiCkEjElLjCgGiCkKiClDiCoKiCmEiClFiCnMiCkEiBeC_xHqqkZx_
	if (!IsClosableTemporaryDocument())
	//----- _xZkqqHx_iIoKiOjOjDeJiCmIjFlGiPjBiCmFiCmNiCmIiCkCiPoKiNiH_xHqqkZx_ -----
	{
		// Undo_xZkqqHx_iDhEiDeAiDeDiDiLiCpAiDeJiBfLiDhGiDjDiClHiCoJiBeC_xHqqkZx_SetModifiedFlag(TRUE)_xZkqqHx_iCpAjHeMiMpIiCmJiClHiCoJiClNiCnPiBeC_xHqqkZx_
		OpenUndo();
		// _xZkqqHx_iPeDjAlDiDhEiDiJiDePiCpAjAnNjCoIiBeC_xHqqkZx_
		SetModifiedFlag(TRUE);
	}
//----- 06.06.13 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
	return FD_DRR_OK;
} // CFCFoundDoc::OnReqImportFile.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnReqOpenDocument
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	[ID_DREQ_OPEN_DOCUMENT]_xZkqqHx_iCmMiPiIjHjNiKnGjAjEiBeC_xHqqkZx_
 *			_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiB_xHqqkZx_[_xZkqqHx_jFlGiPjBiCpAiKeKiCkNiBeC_xHqqkZx_]_xZkqqHx_iCpAiPiIjHjNiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ret		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCmMiMiLiJmKiCpAjFnEiClHiBeC_xHqqkZx_
 *			arg		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *			reqLock	:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiDiNiDgCiDeOiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.09.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
FTDocReqResult CFCFoundDoc::OnReqOpenDocument (FCReqBase& ret, FCReqLock&	reqLock)
{
	// _xZkqqHx_iNkBiKeKiCkCiCmEiCkCiCoJjFlGiPjBiCmGjDkPiClGiPoKiNiHiCmNjFjMiLeBiBeC_xHqqkZx_
	// _xZkqqHx_iClBiCmM_xHqqkZx_EXE_xZkqqHx_iCmGjDkPiClGjFlGiPjBiCpAiDfPiDhFiDiLiDeOiDiKiDgCiDeOiLeOjDkOiClFiClNiPoKiNiHiBeBjFmK_xHqqkZx_EXE_xZkqqHx_iCkK_xHqqkZx_
	// _xZkqqHx_iClBiCmM_xHqqkZx_EXE_xZkqqHx_iCmJiDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCpAjBjHjFhEiClHiCoJiBeCiClLiCmMiNnLiBeB_xHqqkZx_ID_DREQ_OPEN_DOCUMENT_xZkqqHx_iCoA_xHqqkZx_
	// _xZkqqHx_jBjHjFhEiClDiCoKiCoJiCkKiBeBjDkPiClGjFlGiPjBiCmFiCkAiCoKiCmOiKeKiCkJiCmIiCkCiCoGiCkEiCmJiClFiCmIiCkCiCmGiBeB_xHqqkZx_
	// _xZkqqHx_iJlKiCmM_xHqqkZx_ExecDocRequest()_xZkqqHx_iCkKiNmEiCnBjFmK_xHqqkZx_EXE_xZkqqHx_iCpAiLeOjDkOiClFiCmEiBeBjGlDiMmAiDiLiBfLiDhGiCmJiKnHiCmBiCmEiClFiCnMiCkEiBeC_xHqqkZx_
	if (_wcsicmp(ret.GetDocumentPath(), TStrToWStr(GetPathName())) == 0)
		return FD_DRR_OK;

	if (!IsClosableTemporaryDocument())
	//----- _xZkqqHx_iIoKiOjOjDeJiCmIjFlGiPjBiCmFiCmNiCmIiCkCiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iMlLiNnNiBeBiDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiDeMiDiFiBfLiCmMjAoGjDkKiCmJiCmN_xHqqkZx_[_xZkqqHx_jFlGiPjBiCpAiKeKiCkN_xHqqkZx_]_xZkqqHx_iCkKjBlGiNnNiClHiCoJiBeC_xHqqkZx_
		// _xZkqqHx_jFmKiCmI_xHqqkZx_EXE_xZkqqHx_iCmJiDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCpAiIpIiCkLjDgOiClHiBeC_xHqqkZx_
		ExecDocRequest();
		return FD_DRR_CANCEL;
	}
	AfxGetApp()->OpenDocumentFile(WStrToTStr(ret.GetDocumentPath()));
	return FD_DRR_OK;
} // CFCFoundDoc::OnReqOpenDocument.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnReqChangeSheetZoomCenter
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	[ID_DREQ_CHANGE_SHEET_ZOOM_CENTER]_xZkqqHx_iCmMiPiIjHjNiKnGjAjEiBeC_xHqqkZx_
 *			_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiB_xHqqkZx_[_xZkqqHx_iDeKiDiMiDjDiDgHiDfGiBfLiDgHiBeBiDfJiBfLiDiAiBeBjCiGjAfDiNmAjFfHiCpAjFmPiNfIiClHiCoJ_xHqqkZx_]_xZkqqHx_iCpA_xHqqkZx_
 *			_xZkqqHx_iPiIjHjNiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ret		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCmMiMiLiJmKiCpAjFnEiClHiBeC_xHqqkZx_
 *			arg		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *			reqLock	:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiDiNiDgCiDeOiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.09.20 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
FTDocReqResult CFCFoundDoc::OnReqChangeSheetZoomCenter (FCReqBase& ret, FCReqLock& reqLock)
{
	mmetol mmCenterX = DBL_MAX;
	mmetol mmCenterY = DBL_MAX;
	SheetID stid = FD_SHEET_UNSPECIFY;
	long lZoom = -1;

	if (!ret.IsNullMmX() && !ret.IsNullMmY())
	//----- _xZkqqHx_iDeMiDiDiDjDiDgPiDfIjCiGjAfDiNmAjFfHiCkKiOhHjCoIiClDiCoKiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
	{
		mmCenterX = ret.GetMmX();
		mmCenterY = ret.GetMmY();
	}

	if (!ret.IsNullSheetId())
	//----- _xZkqqHx_iDfGiBfLiDgH_xHqqkZx_ID_xZkqqHx_iCkKiOhHjCoIiClDiCoKiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
	{
		stid = ret.GetSheetId();
	}

	if (!ret.IsNullViewZoom256())
	//----- _xZkqqHx_jFfMiOkGiDfJiBfLiDiAiCkKiOhHjCoIiClDiCoKiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
	{
		lZoom = ret.GetViewZoom256();
	}
	// _xZkqqHx_iDhCiDiFiBfLiCmJiPpAiMiPiCpAjAnNjCoIiBeC_xHqqkZx_
	g_pView->SetScrollCenter(DBLPoint(mmCenterX, mmCenterY),
							 stid, lZoom, TRUE);
	return FD_DRR_OK;
} // CFCFoundDoc::OnReqChangeSheetZoomCenter.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnReqDlgImportFile
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	[ID_DREQ_DLG_IMPORT_FILE]_xZkqqHx_iCmMiPiIjHjNiKnGjAjEiBeC_xHqqkZx_
 *			_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiB_xHqqkZx_[_xZkqqHx_iDgFiDjDiDhGiDiMiBfLiDgHiCpAiKeKiCkNiBeC_xHqqkZx_]_xZkqqHx_iCpAiPiIjHjNiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ret		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCmMiMiLiJmKiCpAjFnEiClHiBeC_xHqqkZx_
 *			arg		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *			reqLock	:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiDiNiDgCiDeOiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.09.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
FTDocReqResult CFCFoundDoc::OnReqDlgImportFile (FCReqBase& ret, FCReqLock& reqLock)
{
	WString wstrFile;
	long lReturn;
	try
	{
//----- 06.06.13 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//		// _xZkqqHx_iDhEiDeAiDeDiDiLiDfPiDeDiDeBiDiNiDePiCpAiNoMjAkMiBeC_xHqqkZx_
//		lReturn = DoModalImportDialog(wstrFile);
//----- 06.06.13 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
		// _xZkqqHx_iDiMiDfHiDfIiDgHiDiKiCkJiCoHiNmFiMoDiCmJiDeDiDjDiDhMiBfLiDgHiClFiClNiDhEiDeAiDeDiDiLiCmMiDgGiDeCiDiMiDeOiDgHiDiKiCpAiOoGjDlOiBeC_xHqqkZx_
		const WString wstrLastImportDirectory = g_pReg->GetLastImportDirectory();
		if (!wstrLastImportDirectory.IsEmpty() &&
			FFIsThereFile(wstrLastImportDirectory) != FD_FILE_NOT_EXIST)
			lReturn = DoModalImportDialog(wstrFile, NULL, wstrLastImportDirectory);	// _xZkqqHx_iDhEiDeAiDeDiDiLiDfPiDeDiDeBiDiNiDePiCpAiNoMjAkMiBeC_xHqqkZx_
		else
			lReturn = DoModalImportDialog(wstrFile);	// _xZkqqHx_iDhEiDeAiDeDiDiLiDfPiDeDiDeBiDiNiDePiCpAiNoMjAkMiBeC_xHqqkZx_
//----- 06.06.13 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
	} catch (CException* e)
	//----- _xZkqqHx_iDeHiDiJiBfLiPiIjHjN_xHqqkZx_ -----
	{
		// _xZkqqHx_jCmKiPoNiCmNiDhEiDeAiDeDiDiLiDeHiDiJiBfLiCmIiCmMiCmFiClBiCmMiCnMiCnMiPiIjHjNiCpAjBlBiCkPiCoJiBeC_xHqqkZx_
		// _xZkqqHx_iClBiClBiCmFiPiIjHjNiCpAiOhOiCnPiCoJiCmGiBeBiLeOjDkOiCkKjFhDiJmCjEfMiCmJiCmIiCoJiPoKiNiHiCoAiCkAiCoJiClNiCnPiBeC_xHqqkZx_
		// _xZkqqHx_iDeHiDiJiBfLiDiBiDgCiDfKiBfLiDfHiCpAjAnNjCoIiBeC_xHqqkZx_
		FFSetDDErrorCodeMessage(FFGetErrorCode(e), FFGetErrorMessage(e));
		e->Delete();
		return FD_DRR_ERR;	// _xZkqqHx_iPiIjHjNiCkKiOlIjEhDiBeC_xHqqkZx_
	}
	// _xZkqqHx_iDfPiDeDiDeBiDiNiDePjFjMiLeBjCgMiCpAjAnNjCoIiBeC_xHqqkZx_
	ret.SetReturn(lReturn);
	if (lReturn == IDOK)
	//----- _xZkqqHx_iDgFiDjDiDhGiDiMiBfLiDgHiDhEiDeAiDeDiDiLiCkKiOhHjCoIiClDiCoKiClNiPoKiNiH_xHqqkZx_ -----
	{
		ASSERT(!wstrFile.IsEmpty());
//----- 06.06.13 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
		// _xZkqqHx_iDiMiDfHiDfIiDgHiDiKiCmJiNmFiMoDiCmJiDeDiDjDiDhMiBfLiDgHiClFiClNiDhEiDeAiDeDiDiLiCmMiDgGiDeCiDiMiDeOiDgHiDiKiCpAjAnNjCoIiBeC_xHqqkZx_
		g_pReg->SetLastImportDirectory(FFGetFileDirectory(wstrFile, TRUE));
//----- 06.06.13 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
		// _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiCmJiKnGiClHiCoJiIpIjAjEiCpAjFnEiClHiBeC_xHqqkZx_
		ret.SetDocumentPath(wstrFile.c_str());
	}
	return FD_DRR_OK;	// _xZkqqHx_iPiIjHjNiCkKjAkMiMpHiBeC_xHqqkZx_
} // CFCFoundDoc::OnReqDlgImportFile.

//----- 04.10.08 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnReqSetRecentDocumentList
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	[ID_DREQ_SET_RECENT_DOCUMENT_LIST]_xZkqqHx_iCmMiPiIjHjNiKnGjAjEiBeC_xHqqkZx_
// *			_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiB_xHqqkZx_[_xZkqqHx_iDhEiDeAiDeDiDiLjGlMiCpAiNmFiLnPiCmMiDiKiDfIiDgHiCmJjAnNjCoIiClHiCoJiBeC_xHqqkZx_]_xZkqqHx_iCpAiPiIjHjNiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ret		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCmMiMiLiJmKiCpAjFnEiClHiBeC_xHqqkZx_
// *			arg		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
// *			reqLock	:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiDiNiDgCiDeOiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.09.26 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//FTDocReqResult CFCFoundDoc::OnReqSetRecentDocumentList (FCReqBase& ret, FCReqLock& reqLock)
//{
//	if (GetIsDocumentOpened())
//	//----- _xZkqqHx_jFlGiPjBiCkKiDeJiBfLiDhGiDjDiClFiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
//	{
//		// _xZkqqHx_iDiBiDgKiDiFiBfLiBhFiNmFiLnPiOgHiCmBiClNiDhEiDeAiDeDiDiLiBhGiCmJjAnNjCoIiBeC_xHqqkZx_
//		FCRecentList::Add(TStrToWStr(GetPathName()), TStrToWStr(GetPathName()));
//	}
//	return FD_DRR_OK;
//} // CFCFoundDoc::OnReqSetRecentDocumentList.
//----- 04.10.08 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnReqMoveHistoryBackward
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	[ID_DREQ_MOVE_HISTORY_BACKWARD]_xZkqqHx_iCmMiPiIjHjNiKnGjAjEiBeC_xHqqkZx_
 *			_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiB_xHqqkZx_[_xZkqqHx_jHjKjHpAiImKjChFiCpAiMoDjFpLiCnGiCfAiCmCiInKjDkOiClHiCoJiBeC_xHqqkZx_]_xZkqqHx_iCpAiPiIjHjNiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ret		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCmMiMiLiJmKiCpAjFnEiClHiBeC_xHqqkZx_
 *			arg		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *			reqLock	:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiDiNiDgCiDeOiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.09.20 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
FTDocReqResult CFCFoundDoc::OnReqMoveHistoryBackward (FCReqBase& ret, FCReqLock& reqLock)
{
	if (!m_pGate->IsOpened())
		FFThrowMiscUnknown();
	// _xZkqqHx_iCnMiClIiMlLiNnNjBeJjBpAjCiGiCmMjFjEjFgJiCpAiJpAiPjMiBeCiDhNiBfLiDeOiCpAiPmBiClHiBeC_xHqqkZx_
	g_pView->ClearSelectObj(TRUE);
	// _xZkqqHx_iCfAiDfKiDgCiDfGiDiHiDjDjGnPiCoJiBeC_xHqqkZx_
	DWORDSet stObjID;
	m_pGate->MoveSessionPrev(stObjID);

//----- 05.11.09 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	// _xZkqqHx_jBeJjBpAiClDiCoKiClNjFjEjFgJiCkKiDhCiDiFiBfLiCmJiOpLiCnMiCoJiCoGiCkEiCmJiDfIiDeOiDiNiBfLiDiLiBjFiMmFjHeMiDiKiBfLiDfHiDiHiDjDiNmEjFgAiJoGiBeC_xHqqkZx_
//	g_pView->ScrollToObject(stObjID);
//	// _xZkqqHx_jAfGiClFiCkCjFjEjFgJiCpAjBeJjBpAiPpDjBnEiCmJiBeC_xHqqkZx_
//	g_pView->AppendSelectObj(stObjID, TRUE);
//	// stObjID _xZkqqHx_iCpA_xHqqkZx_ ret _xZkqqHx_iCmJjAnNjCoIiCmFiCkLiCoKiCmOiCkCiCkCiCmMiClOiCkKiBeB_xHqqkZx_
//	// _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmJiPoGiClJiCoJiCmJiCmNjBoFiCkLiClHiCkMiCoJiBeC_xHqqkZx_
//----- 05.11.09 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	// _xZkqqHx_jFjEjFgJiCpAjBeJjBpAiBeC_xHqqkZx_
	InsertDocRequest(1,
					ID_DREQ_SELECT_OBJECT,
					FCReqBase::OBJECT_ID_SET, &stObjID,
					FCReqBase::IS_SELECT_OBJECT, TRUE,
					FCReqBase::SCROLL_TO_FRAME, SCROLL_TO_FRAME::SCROLL_IF_OUT,
					FCReqBase::IS_DRAW_SELECT_MARK, TRUE,
					FCReqBase::NONE);
//----- 05.11.09 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
	return FD_DRR_OK;
} // CFCFoundDoc::OnReqMoveHistoryBackward.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnReqMoveHistoryForward
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	[ID_DREQ_MOVE_HISTORY_FORWARD]_xZkqqHx_iCmMiPiIjHjNiKnGjAjEiBeC_xHqqkZx_
 *			_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiB_xHqqkZx_[_xZkqqHx_jHjKjHpAiImKjChFiCpAjBePjFpLiCnGiCfAiCmCiInKjDkOiClHiCoJiBeC_xHqqkZx_]_xZkqqHx_iCpAiPiIjHjNiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ret		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCmMiMiLiJmKiCpAjFnEiClHiBeC_xHqqkZx_
 *			arg		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *			reqLock	:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiDiNiDgCiDeOiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.09.20 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
FTDocReqResult CFCFoundDoc::OnReqMoveHistoryForward (FCReqBase& ret, FCReqLock& reqLock)
{
	if (!m_pGate->IsOpened())
		FFThrowMiscUnknown();
	// _xZkqqHx_iCnMiClIiMlLiNnNjBeJjBpAjCiGiCmMjFjEjFgJiCpAiJpAiPjMiBeCiDhNiBfLiDeOiCpAiPmBiClHiBeC_xHqqkZx_
	g_pView->ClearSelectObj(TRUE);
	// _xZkqqHx_iCfAiDfKiDgCiDfGiDiHiDjDjAgJiCnOiBeC_xHqqkZx_
	DWORDSet stObjID;
	m_pGate->MoveSessionNext(stObjID);
//----- 05.11.09 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	// _xZkqqHx_jBeJjBpAiClDiCoKiClNjFjEjFgJiCkKiDhCiDiFiBfLiCmJiOpLiCnMiCoJiCoGiCkEiCmJiDfIiDeOiDiNiBfLiDiLiBjFiMmFjHeMiDiKiBfLiDfHiDiHiDjDiNmEjFgAiJoGiBeC_xHqqkZx_
//	g_pView->ScrollToObject(stObjID);
//	// _xZkqqHx_jAfGiClFiCkCjFjEjFgJiCpAjBeJjBpAiPpDjBnEiCmJiBeC_xHqqkZx_
//	g_pView->AppendSelectObj(stObjID, TRUE);
//	// stObjID _xZkqqHx_iCpA_xHqqkZx_ ret _xZkqqHx_iCmJjAnNjCoIiCmFiCkLiCoKiCmOiCkCiCkCiCmMiClOiCkKiBeB_xHqqkZx_
//	// _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmJiPoGiClJiCoJiCmJiCmNjBoFiCkLiClHiCkMiCoJiBeC_xHqqkZx_
//----- 05.11.09 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	// _xZkqqHx_jFjEjFgJiCpAjBeJjBpAiBeC_xHqqkZx_
	InsertDocRequest(1,
					ID_DREQ_SELECT_OBJECT,
					FCReqBase::OBJECT_ID_SET, &stObjID,
					FCReqBase::IS_SELECT_OBJECT, TRUE,
					FCReqBase::SCROLL_TO_FRAME, SCROLL_TO_FRAME::SCROLL_IF_OUT,
					FCReqBase::IS_DRAW_SELECT_MARK, TRUE,
					FCReqBase::NONE);
//----- 05.11.09 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
	return FD_DRR_OK;
} // CFCFoundDoc::OnReqMoveHistoryForward.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnReqRgnRedraw
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	[ID_DREQ_RGN_REDRAW]_xZkqqHx_iCmMiPiIjHjNiKnGjAjEiBeC_xHqqkZx_
 *			_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiB_xHqqkZx_[_xZkqqHx_iMmFjHeMiDiKiBfLiDfHiDiHiDjDiCpAiNmEjFgAiJoGiClHiCoJiBeC_xHqqkZx_]_xZkqqHx_iCpAiPiIjHjNiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ret		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCmMiMiLiJmKiCpAjFnEiClHiBeC_xHqqkZx_
 *			arg		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *			reqLock	:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiDiNiDgCiDeOiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.12.18 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
FTDocReqResult CFCFoundDoc::OnReqRgnRedraw (FCReqBase& ret, FCReqLock& reqLock)
{
	// IS_REDRAW_NOW _xZkqqHx_iIpIjAjEiCpAiNoMiCmBiCmEiBeB_xHqqkZx_PostRgnRedraw _xZkqqHx_iCmGiOgHiCkCjFkKiCkPiCoGiCkEiCmGiOhGiCmBiClNiCkKiBeB_xHqqkZx_
	// _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiOkJjBmMiBeBiOmAiNhDiCmMiDfOiDeDiDhOiDjDiDePiCkKjDmHiCnPiCmIiCkCiCmMiCmFiInDjGkBiCkKjGlDiCkCiBeC_xHqqkZx_
	// SendRgnRedraw _xZkqqHx_iCmMiCnNiCmFiCgOiCgKiBeC_xHqqkZx_

	if (!ret.IsNullRgnRedraw())
	//----- RGN_REDRAW _xZkqqHx_iDhAiDiJiDiBiBfLiDfOiCkKiOhHjCoIiClDiCoKiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
	{
		switch (ret.GetRgnRedraw())
		{
		case RGN_REDRAW::CLIENT_RGN:	// _xZkqqHx_iDeOiDiJiDeDiDeBiDjDiDgHjHmMiIoGiCpAiNmEjFgAiJoGiBeC_xHqqkZx_
			g_pView->SendRgnRedraw(TRUE);
			break;
		case RGN_REDRAW::IF_RGN_EXIST:	// _xZkqqHx_iDiKiBfLiDfHiDiHiDjDiCkKjBlGiNnNiClHiCoJiPoKiNiHiCmMiCnNiNmEjFgAiJoGiBeC_xHqqkZx_
			if (g_pView->GetUpdateRect(NULL))
				g_pView->SendRgnRedraw(FALSE);
			break;
		default:		// NONE_xZkqqHx_iBeC_xHqqkZx_
			g_pView->SendRgnRedraw(FALSE);
		}
	} else
	//----- RGN_REDRAW _xZkqqHx_iDhAiDiJiDiBiBfLiDfOiCkKiOhHjCoIiClDiCoKiCmEiCkCiCmIiCkCiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iMmFjHeMiDiKiBfLiDfHiDiHiDjDiCmMiNmEjFgAiJoGiBeC_xHqqkZx_
		g_pView->SendRgnRedraw(FALSE);
	}
	return FD_DRR_OK;
} // CFCFoundDoc::OnReqRgnRedraw.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnReqNop
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	[ID_DREQ_NOP]_xZkqqHx_iCmMiPiIjHjNiKnGjAjEiBeC_xHqqkZx_
 *			_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiB_xHqqkZx_[_xZkqqHx_iJlNiCoAiClFiCmIiCkCiBeC_xHqqkZx_]_xZkqqHx_iCpAiPiIjHjNiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ret		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCmMiMiLiJmKiCpAjFnEiClHiBeC_xHqqkZx_
 *			arg		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *			reqLock	:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiDiNiDgCiDeOiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	04.09.07 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
FTDocReqResult CFCFoundDoc::OnReqNop (FCReqBase& ret, FCReqLock& reqLock)
{
	return FD_DRR_OK;
} // CFCFoundDoc::OnReqNop.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnReqShellExecute
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	[ID_DREQ_SHELL_EXECUTE]_xZkqqHx_iCmMiPiIjHjNiKnGjAjEiBeC_xHqqkZx_
 *			_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiB_xHqqkZx_[ShellExecute("open")_xZkqqHx_iCpAiOmAiNhDiClHiCoJiBeC_xHqqkZx_]_xZkqqHx_iCpAiPiIjHjNiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ret		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCmMiMiLiJmKiCpAjFnEiClHiBeC_xHqqkZx_
 *			arg		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *			reqLock	:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiDiNiDgCiDeOiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.07.22 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
FTDocReqResult CFCFoundDoc::OnReqShellExecute (FCReqBase& ret, FCReqLock& reqLock)
{
	CString strFile = WStrToTStr(ret.GetFileName());
	ShellExecute(0, _T("open"), strFile, NULL, NULL, SW_SHOW);
	return FD_DRR_OK;
} // CFCFoundDoc::OnReqShellExecute.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnReqScrollToFrame
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	[ID_DREQ_SCROLL_TO_FRAME]_xZkqqHx_iCmMiPiIjHjNiKnGjAjEiBeC_xHqqkZx_
 *			_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiB_xHqqkZx_[_xZkqqHx_iDhEiDiMiBfLiDiAiCnGiDfIiDeOiDiNiBfLiDiLiClHiCoJiBeC_xHqqkZx_]_xZkqqHx_iCpAiPiIjHjNiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ret		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCmMiMiLiJmKiCpAjFnEiClHiBeC_xHqqkZx_
 *			arg		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *			reqLock	:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiDiNiDgCiDeOiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.11.10 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
FTDocReqResult CFCFoundDoc::OnReqScrollToFrame (FCReqBase& ret, FCReqLock& reqLock)
{
	const DBLRect mmrtFrame = ret.GetMmRect();
	long lScrollToFrame = SCROLL_TO_FRAME::SCROLL_ANYWAY;	// _xZkqqHx_iDgGiDhEiDeIiDiLiDgHiCmNiBhFjFeLiClIiDfIiDeOiDiNiBfLiDiLiBhG_xHqqkZx_
	if (!ret.IsNullScrollToFrame())
		lScrollToFrame = ret.GetScrollToFrame();
	if (lScrollToFrame == SCROLL_TO_FRAME::SCROLL_IF_OUT)
	//----- _xZkqqHx_iDhEiDiMiBfLiDiAiCkKiJoGjGmKjHmMiIoGiCmMiKePiCmJiPgPiClNiPoKiNiHiCmMiCnNiDfIiDeOiDiNiBfLiDiL_xHqqkZx_ -----
	{
		// _xZkqqHx_iJoGjGmKiCmMjFfMiOkGjHmMiIoGiCpAiLiBiCnPiCoJiBeC_xHqqkZx_
		DBLRect mmrtClient;
		g_pView->GetClientRectMM(mmrtClient);
		// _xZkqqHx_jFjN_xHqqkZx_=0_xZkqqHx_iCmMjClMjApMjDjJiCmMiPoKiNiHiCoAiCkAiCoJiCmMiCmFiBeB_xHqqkZx_IsRectEmpty_xZkqqHx_iCmFiCmNiCmIiCkN_xHqqkZx_IsRectNull_xZkqqHx_iCpAiOgHiCkEiBeC_xHqqkZx_
		if ((mmrtFrame & mmrtClient).IsRectNull())
		{
			// _xZkqqHx_iNmAjFfHiCkKjCiGjAfDiCmJiCkNiCoJiCoGiCkEiCmJiDfIiDeOiDiNiBfLiDiLiBjFiNmEjFgAiJoGiBeC_xHqqkZx_
			// _xZkqqHx_iMmFjHeMiDiKiBfLiDfHiDiHiDjDiCmNiBeBiDfIiDeOiDiNiBfLiDiLiKnGjAjEiCmFiCkEiCnMiCkNiPiIjHjNiClDiCoKiCoJiBeC_xHqqkZx_
			g_pView->SetScrollCenter(mmrtFrame.CenterPoint());
		}
	} else
	if (lScrollToFrame == SCROLL_TO_FRAME::SCROLL_ANYWAY)
	//----- _xZkqqHx_jFeLiClIiDfIiDeOiDiNiBfLiDiL_xHqqkZx_ -----
	{
		// _xZkqqHx_iNmAjFfHiCkKjCiGjAfDiCmJiCkNiCoJiCoGiCkEiCmJiDfIiDeOiDiNiBfLiDiLiBjFiNmEjFgAiJoGiBeC_xHqqkZx_
		// _xZkqqHx_iMmFjHeMiDiKiBfLiDfHiDiHiDjDiCmNiBeBiDfIiDeOiDiNiBfLiDiLiKnGjAjEiCmFiCkEiCnMiCkNiPiIjHjNiClDiCoKiCoJiBeC_xHqqkZx_
		g_pView->SetScrollCenter(mmrtFrame.CenterPoint());
	}
	return FD_DRR_OK;
} // CFCFoundDoc::OnReqScrollToFrame.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnReqSelectObject
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	[ID_DREQ_SELECT_OBJECT]_xZkqqHx_iCmMiPiIjHjNiKnGjAjEiBeC_xHqqkZx_
 *			_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiB_xHqqkZx_[_xZkqqHx_jFjEjFgJiCpAjBeJjBpAiClHiCoJiBeC_xHqqkZx_]_xZkqqHx_iCpAiPiIjHjNiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ret		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCmMiMiLiJmKiCpAjFnEiClHiBeC_xHqqkZx_
 *			arg		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *			reqLock	:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiDiNiDgCiDeOiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.11.09 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
FTDocReqResult CFCFoundDoc::OnReqSelectObject (FCReqBase& ret, FCReqLock& reqLock)
{
	// _xZkqqHx_jFlGiPjBiCkKjFmCiClGiCmEiCkCiCoJiPoKiNiHiCmNjFjMiLeBiBeC_xHqqkZx_
	if (!GetIsDocumentOpened())
		return FD_DRR_OK;

	//----- _xZkqqHx_iDhAiDiJiDiBiBfLiDfOiCpAiOoGjDlO_xHqqkZx_ -----
	// _xZkqqHx_jFjEjFgJiCpAjBeJjBpAiClHiCoJiCkJiBeI_xHqqkZx_
	BOOL bIsSelectObject = TRUE;
	if (!ret.IsNullIsSelectObject())
		bIsSelectObject = ret.GetIsSelectObject();
	// _xZkqqHx_jBeJjBpAiDhNiBfLiDeOiCpAjFgAiJoGiClHiCoJiCkJiBeI_xHqqkZx_
	BOOL bIsDrawSelectMark = TRUE;
	if (!ret.IsNullIsDrawSelectMark())
		bIsDrawSelectMark = ret.GetIsDrawSelectMark();

	// _xZkqqHx_jBeJjBpAiClHiCoJjFjEjFgJ_xHqqkZx_ID_xZkqqHx_iPfHiNiHiBeC_xHqqkZx_
	DWORDSet stObjectId;
	if (!ret.IsNullObjectIdSet())
		stObjectId = *ret.GetObjectIdSet();
	// _xZkqqHx_iKpJiCmJjBlGiNnNiClFiCmIiCkCjFjEjFgJiCmM_xHqqkZx_ID_xZkqqHx_iCmNiNoNiPjMiBeC_xHqqkZx_
	DWORDSet::iterator iId = stObjectId.begin();
	while (iId != stObjectId.end())
	{
		const FCObjDynabase* pObj = ObjID2Object(*iId);
		BOOL bCanSelect = FALSE;
		// _xZkqqHx_iImIiJlKiCmF_xHqqkZx_ Tool::CanHandle_xZkqqHx_iCpAjClCiCnHiCmIiCkCiCmGiBeB_xHqqkZx_Undo_xZkqqHx_iOjOiCmJ_xHqqkZx_
		// _xZkqqHx_iDgDiBfLiDiLiCkKiIlFiCkGiCmIiCkCjFjEjFgJiCpAjBeJjBpAiClHiCoJiDfAiBfLiDfIiCkKjAlGiClGiCoJiBeC_xHqqkZx_
		if (pObj != NULL &&
			pObj->GetGroupParent() == NULL &&
//----- 06.10.13 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//			CanDoOnObject(pObj, FDOZ_ON_SELECT))
//----- 06.10.13 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
			CanDoOnObject(pObj, FDOZ_ON_SELECT) &&
			g_pView->GetCurrentTool()->CanHandle(pObj))
//----- 06.10.13 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
			bCanSelect = TRUE;
		if (bCanSelect)
			iId++;
		else
			iId = stObjectId.erase(iId);
	}

	// _xZkqqHx_iMlLiNnNiCmMjBeJjBpAiCpAiJpAiPjMiBeC_xHqqkZx_
	if (bIsSelectObject)
		g_pView->ClearSelectObj(bIsDrawSelectMark);

	// g_pView->AppendSelectObj _xZkqqHx_iCmMjBePiCmJiBeBiDgFiDeMiDfIiDgHjBeJjBpAiCpAjAnNjCoIiClFiCmEiCkIiCkNiBeC_xHqqkZx_
	// g_pView->AppendSelectObj_xZkqqHx_iCmMiOmAiNhDiCmJiCoGiCmBiCmEiBeBiDgFiDeMiDfIiDgHjBeJjBpAjFjEjFkKiCoA_xHqqkZx_
	// _xZkqqHx_jFgAiJoGiClDiCoKiCoJiCmMiCmFiBeBjDhDiNiHiCkKiCoGiCkCiBeC_xHqqkZx_

	if (!ret.IsNullTextSelectionVector())
	//----- _xZkqqHx_iDgFiDeMiDfIiDgHjBeJjBpAjEhKjHpBiCkKjBlGiNnNiClHiCoJiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iDgFiDeMiDfIiDgHjBeJjBpAjEhKjHpBiCpAiOoGiCoIiPgPiClHiBeC_xHqqkZx_
		DWORDVector& vTextSelection = *ret.GetTextSelectionVector();

		// _xZkqqHx_iDgFiDeMiDfIiDgHjBeJjBpAjEhKjHpBiCmNiBeBiImIiJlKiCmMiNfMjBkCiCpAiOjNiCmCiBeC_xHqqkZx_
		// _xZkqqHx_jFjEjFgJ_xHqqkZx_1ID,_xZkqqHx_jBeJjBpAiKeKiOgO_xHqqkZx_1,_xZkqqHx_jBeJjBpAiPeJjHlJ_xHqqkZx_1,_xZkqqHx_jBeJjBpAiKeKiOgO_xHqqkZx_2,_xZkqqHx_jBeJjBpAiPeJjHlJ_xHqqkZx_2_xZkqqHx_iBeFiBeFiBeF_xHqqkZx_,_xZkqqHx_jBeJjBpAiKeKiOgO_xHqqkZx_n,_xZkqqHx_jBeJjBpAiPeJjHlJ_xHqqkZx_n,DWORD(-1),_xZkqqHx_jFjEjFgJ_xHqqkZx_2ID,_xZkqqHx_jBeJjBpAiKeKiOgO_xHqqkZx_1,_xZkqqHx_jBeJjBpAiPeJjHlJ_xHqqkZx_1,_xZkqqHx_iBeFiBeFiBeF_xHqqkZx_
		DWORDVector::const_iterator iIdx;
		for (iIdx = vTextSelection.begin();
			 iIdx != vTextSelection.end();)
		{
			const DWORD dwTextObjId = *iIdx;
			FCObjFigure* pTextObj = (FCObjFigure*)ObjID2Object(dwTextObjId);
			BOOL bSkip = FALSE;
			// _xZkqqHx_iOhHjCoIiClDiCoKiClNjFjEjFgJiCkKjBlGiNnNiClFiCmIiCkCiPoKiNiHiCmNiDfIiDeMiDgCiDhGiBeC_xHqqkZx_
			if (pTextObj == NULL)
				bSkip = TRUE;
			// _xZkqqHx_iDgFiDeMiDfIiDgHjBeJjBpAiCmFiOhHjCoIiClDiCoKiClNjFjEjFgJiCmMiDgHiDgCiDhGjFjEjFgJiCkKjBeJjBpAjBmOiPnLiCmFiCmIiCkCiPoKiNiHiCmNiDfIiDeMiDgCiDhGiBeC_xHqqkZx_
			if (!bSkip && stObjectId.find(pTextObj->GetGroupTop()->GetObjID()) == stObjectId.end())
				bSkip = TRUE;
			if (!bSkip)
			//----- _xZkqqHx_iDfIiDeMiDgCiDhGiClFiCmIiCkCiPoKiNiH_xHqqkZx_ -----
			{
				// _xZkqqHx_jFjEjFgJ_xHqqkZx_ID_xZkqqHx_iCpAjBjHiCoJiBeC_xHqqkZx_
				iIdx++;
				while (iIdx != vTextSelection.end())
				{
					if (*iIdx == DWORD(-1))
					{
						iIdx++;
						break;
					}
					// _xZkqqHx_jBeJjBpAjEmNiImNiCpAiOoGjDlOiBeC_xHqqkZx_
					DWORD dwSelFrom = *iIdx;
					iIdx++;
					DWORD dwSelUntil = *iIdx;
					iIdx++;
					// _xZkqqHx_iDgFiDeMiDfIiDgHjBeJjBpAiCpAjAnNjCoIiBeC_xHqqkZx_
// 06.03.02 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//					pTextObj->GetRichText()->AppendSelection(dwSelFrom, dwSelUntil);
					g_pView->AppendTextSelection(pTextObj->GetObjID(), dwSelFrom, dwSelUntil);
				}
			} else
			//----- _xZkqqHx_iDfIiDeMiDgCiDhGiClHiCoJiPoKiNiH_xHqqkZx_ -----
			{
				while (iIdx != vTextSelection.end())
				{
					if (*iIdx == DWORD(-1))
					{
						iIdx++;
						break;
					}
					iIdx++;
				}
			}
		}
	}


	if (!stObjectId.empty())
	//----- _xZkqqHx_jBeJjBpAjFjEjFgJiCkKjBlGiNnNiClHiCoJiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_jAfGiClFiCkCjFjEjFgJiCpAjBeJjBpAiPpDjBnEiCmJiBeC_xHqqkZx_
		if (bIsSelectObject)
			g_pView->AppendSelectObj(stObjectId, bIsDrawSelectMark);
		// _xZkqqHx_jFjEjFgJiCmJiKePjAnKiClHiCoJiNmFiPkMiCmMiDhEiDiMiBfLiDiAiBeC_xHqqkZx_
		DBLRect mmrtFrame;
		// _xZkqqHx_jFjEjFgJiCmJiKePjAnKiClHiCoJiNmFiPkMiCmMiDhEiDiMiBfLiDiAiCpAiLiBiCnPiCoJiBeC_xHqqkZx_
		::GetResizeFrame(mmrtFrame, stObjectId);
		// _xZkqqHx_jHmMiIoGiCnGiDfIiDeOiDiNiBfLiDiLiBeC_xHqqkZx_
		InsertDocRequest(1,
						ID_DREQ_SCROLL_TO_FRAME,
						FCReqBase::MM_RECT, mmrtFrame,
						FCReqBase::NONE);
	}
	return FD_DRR_OK;
} // CFCFoundDoc::OnReqSelectObject.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnReqMessageBox
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	[ID_DREQ_MESSAGE_BOX]_xZkqqHx_iCmMiPiIjHjNiKnGjAjEiBeC_xHqqkZx_
 *			_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiB_xHqqkZx_[_xZkqqHx_iDiBiDgCiDfKiBfLiDfHiDhLiDgCiDeOiDfIiCpAjFfMiOkGiClHiCoJiBeC_xHqqkZx_]_xZkqqHx_iCpAiPiIjHjNiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ret		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCmMiMiLiJmKiCpAjFnEiClHiBeC_xHqqkZx_
 *			arg		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *			reqLock	:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiDiNiDgCiDeOiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.11.09 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
FTDocReqResult CFCFoundDoc::OnReqMessageBox (FCReqBase& ret, FCReqLock& reqLock)
{
	//----- _xZkqqHx_iDhAiDiJiDiBiBfLiDfOiCpAiOoGjDlO_xHqqkZx_ -----
	long lCaptionId = 0;
	if (!ret.IsNullMessageCaptionId())
		lCaptionId = ret.GetMessageCaptionId();
	long lMessageBoxType = MB_OK;
	if (!ret.IsNullMessageBoxType())
		lMessageBoxType = ret.GetMessageBoxType();
	long lReturn = FFMessageBox(ret.GetMessageTextId(), lCaptionId, lMessageBoxType);
	ret.SetReturn(lReturn);
	return FD_DRR_OK;
} // CFCFoundDoc::OnReqMessageBox.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnReqPostMessage
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	[ID_DREQ_POST_MESSAGE]_xZkqqHx_iCmMiPiIjHjNiKnGjAjEiBeC_xHqqkZx_
 *			_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiB_xHqqkZx_[PostMessage_xZkqqHx_iCpAiOmAiNhDiClHiCoJiBeC_xHqqkZx_]_xZkqqHx_iCpAiPiIjHjNiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ret		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCmMiMiLiJmKiCpAjFnEiClHiBeC_xHqqkZx_
 *			arg		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *			reqLock	:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiDiNiDgCiDeOiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.11.22 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
FTDocReqResult CFCFoundDoc::OnReqPostMessage (FCReqBase& ret, FCReqLock& reqLock)
{
	if (::IsWindow(HWND(ret.GetHwnd())))
	//----- _xZkqqHx_iOhHjCoIiClDiCoKiClNiDeFiDeCiDjDiDgIiDeFiCkKjHeMiMpIiCmIiPoKiNiH_xHqqkZx_ -----
	{
		WPARAM wParam = 0;
		LPARAM lParam = 0;
		if (!ret.IsNullWparam())
			wParam = ret.GetWparam();
		if (!ret.IsNullLparam())
			lParam = ret.GetLparam();
		::PostMessage(HWND(ret.GetHwnd()), ret.GetMessage(), wParam, lParam);
	}
	return FD_DRR_OK;
} // CFCFoundDoc::OnReqPostMessage.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnReqSendMessage
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	[ID_DREQ_SEND_MESSAGE]_xZkqqHx_iCmMiPiIjHjNiKnGjAjEiBeC_xHqqkZx_
 *			_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiB_xHqqkZx_[SendMessage_xZkqqHx_iCpAiOmAiNhDiClHiCoJiBeC_xHqqkZx_]_xZkqqHx_iCpAiPiIjHjNiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ret		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCmMiMiLiJmKiCpAjFnEiClHiBeC_xHqqkZx_
 *			arg		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *			reqLock	:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiDiNiDgCiDeOiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.11.22 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
FTDocReqResult CFCFoundDoc::OnReqSendMessage (FCReqBase& ret, FCReqLock& reqLock)
{
	if (::IsWindow(HWND(ret.GetHwnd())))
	//----- _xZkqqHx_iOhHjCoIiClDiCoKiClNiDeFiDeCiDjDiDgIiDeFiCkKjHeMiMpIiCmIiPoKiNiH_xHqqkZx_ -----
	{
		WPARAM wParam = 0;
		LPARAM lParam = 0;
		if (!ret.IsNullWparam())
			wParam = ret.GetWparam();
		if (!ret.IsNullLparam())
			lParam = ret.GetLparam();
		::SendMessage(HWND(ret.GetHwnd()), ret.GetMessage(), wParam, lParam);
	}
	return FD_DRR_OK;
} // CFCFoundDoc::OnReqSendMessage.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnReqSetForeground
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	[ID_DREQ_SET_FOREGROUND]_xZkqqHx_iCmMiPiIjHjNiKnGjAjEiBeC_xHqqkZx_
 *			_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiB_xHqqkZx_[_xZkqqHx_iOhHjCoIiCmMiDeFiDeCiDjDiDgIiDeFiCpAiDhEiDeIiDeBiDePiDiJiDeFiDjDiDgIiJlLiClHiCoJiBeC_xHqqkZx_]_xZkqqHx_iCpAiPiIjHjNiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ret		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCmMiMiLiJmKiCpAjFnEiClHiBeC_xHqqkZx_
 *			arg		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *			reqLock	:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiDiNiDgCiDeOiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.11.22 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
FTDocReqResult CFCFoundDoc::OnReqSetForeground (FCReqBase& ret,	FCReqLock& reqLock)
{
	if (::IsWindow(HWND(ret.GetHwnd())))
	//----- _xZkqqHx_iOhHjCoIiClDiCoKiClNiDeFiDeCiDjDiDgIiDeFiCkKjHeMiMpIiCmIiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_jAnIiCoIjBnGiCkGjAoGiCkKiDeBiDeDiDfCiDjDiJlLiClDiCoKiCmEiCkCiClNiCoHiBeBiMlDiCmMiDfEiDeDiDfJiCmJjGnPiClHiBeC_xHqqkZx_
		if (::GetWindowLong(HWND(ret.GetHwnd()), GWL_STYLE) & WS_MINIMIZE)
			(void)::ShowWindow(HWND(ret.GetHwnd()), SW_RESTORE);
		// _xZkqqHx_iDhEiDeIiDeBiDePiDiJiDjDiDgIiDeFiDeCiDjDiDgIiDeFiCpAjAnIiCoIjBnGiCkGiBeC_xHqqkZx_
		(void)::SetForegroundWindow(HWND(ret.GetHwnd()));
	}
	return FD_DRR_OK;
} // CFCFoundDoc::OnReqSetForeground.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnReqIfNot
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	[ID_DREQ_IF_NOT]_xZkqqHx_iCmMiPiIjHjNiKnGjAjEiBeC_xHqqkZx_
 *			_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiB_xHqqkZx_[_xZkqqHx_iPpAiMiPiOmAiNhDiBeC_xHqqkZx_]_xZkqqHx_iCpAiPiIjHjNiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ret		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCmMiMiLiJmKiCpAjFnEiClHiBeC_xHqqkZx_
 *			arg		:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *			reqLock	:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCmMiPiIjHjNiKnGjAjEiCnGiCmMiDiNiDgCiDeOiIpIjAjEiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.02.02 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
FTDocReqResult CFCFoundDoc::OnReqIfNot (FCReqBase& ret, FCReqLock& reqLock)
{
	// _xZkqqHx_iMlLiNnNiCmMiDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCpA_xHqqkZx_ID_DREQ_IF_xZkqqHx_iCmJjChFiCkLiKlHiCkGiCmEiOmAiNhDiClHiCoJiBeC_xHqqkZx_
	// ID_DREQ_IF _xZkqqHx_iCmNiBeB_xHqqkZx_ret _xZkqqHx_iCmJjAmPiCnNjHkHiCmEiClNiIpIjAjEiCpAjDgOiClDiCmIiCkCiClNiCnPiBeB_xHqqkZx_
	// InsertDocRequest(1, ID_DREQ_IF)_xZkqqHx_iCmFjBoDjHhAiCmNiPgPjHiIiCmIiCkCiBeC_xHqqkZx_
	GetCurrentDocRequest()->m_drqRequest = ID_DREQ_IF;
	// _xZkqqHx_iPpAiMiPiCmJ_xHqqkZx_ NOT_AND _xZkqqHx_iCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
	GetCurrentDocRequest()->SetIfCondition(IF_CONDITION::NOT_AND);
	// _xZkqqHx_iCoAiCkEiIoKjDhIiDgHiDiJiDeDiBeC_xHqqkZx_
	return FD_DRR_RETRY;
} // CFCFoundDoc::OnReqIfNot.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::InitGlobal
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiCmMiDfCiDjDiDfIiDgHiDiJiDeOiDfOiCkJiCoHiOmAiNhDiBeC_xHqqkZx_
 *			_xZkqqHx_iNmFiPiJiCmMiOmAiNhDiCmMiCmGiCkLiCmMiCnNiDePiDiNiBfLiDgPiDiLjFmPjAjEiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pDoc	:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	02.12.08 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::InitGlobal (CFCFoundDoc* pDoc)
{
	if (s_lGlobalCounter == 0)
	{
		g_pDoc = pDoc;
		// _xZkqqHx_iDePiDiNiBfLiDgPiDiLiCmJjAnNjCoIiClDiCoKiCoJiDgIiDeMiDiFiDiBiDjDiDgHiCmMiCnNiBeB_xHqqkZx_
		// _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCpAiJmCjEfMiCmJiClHiCoJiBeC_xHqqkZx_
		pDoc->EnableDocumentRequest();
	}
	s_lGlobalCounter++;
} // CFCFoundDoc::InitGlobal.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::TerminateGlobal
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiCmMiDgGiDfIiDgHiDiJiDeOiDfOiCkJiCoHiOmAiNhDiBeC_xHqqkZx_
 *			_xZkqqHx_iNmFiMoDiCmMiOmAiNhDiCmMiCmGiCkLiCmMiCnNiDePiDiNiBfLiDgPiDiLjFmPjAjEiCpAiNoNiPjMiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	02.12.08 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::TerminateGlobal ()
{
	s_lGlobalCounter--;
	if (s_lGlobalCounter == 0)
		g_pDoc = NULL;
} // CFCFoundDoc::TerminateGlobal.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnNewDocument
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	[_xZkqqHx_iDhEiDeAiDeDiDiL_xHqqkZx_]->[_xZkqqHx_jAfGiLeLiNoMjAkM_xHqqkZx_]_xZkqqHx_iDfCiDhNiDjDiDgIiCmJiCoGiCmBiCmEiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_SDI_xZkqqHx_iDeBiDhGiDiKiCmFiCmN_xHqqkZx_
 *			_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiDeJiDhFiDfHiDeGiDeOiDgHiCmN_xHqqkZx_[_xZkqqHx_jAfGiLeLiNoMjAkM_xHqqkZx_]_xZkqqHx_iDfCiDhNiDjDiDgIiCmMjDhIiCmJiNoMiCoIjClMiClDiCoKiCoJ_xHqqkZx_
 *			_xZkqqHx_iClBiCmGjGlDiCkNiBeBiOgHiCkCiCnMiCoNiClFiClDiCoKiCoJiClNiCnPiBeBjGhLiKnGjAjEiCmFiPiJiKpKiJlLiClHiCoJjFeLjHhGiCkKiCkAiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	TRUE	: _xZkqqHx_iKnGjAjEiCmMiOmAiNhDiCkKjAkMiMpHiClFiClNiPoKiNiH_xHqqkZx_
 *			FALSE	: _xZkqqHx_iKnGjAjEiCmMiOmAiNhDiCkKiOlIjEhDiClFiClNiPoKiNiH_xHqqkZx_
 *************************************************************************/
BOOL CFCFoundDoc::OnNewDocument ()
{
	// _xZkqqHx_iImIiJlKiCmMiPiIjHjNjCiGiCkJiCoH_xHqqkZx_DeleteContents_xZkqqHx_iCpAiOmAiNhDiBeC_xHqqkZx_
	// OnCloseDocument_xZkqqHx_iCmNiBeBiDeBiDhGiDiKiPeJjHlJiCnMiCmFiOmAiNhDiClDiCoKiCmIiCkCiBeC_xHqqkZx_
	if (!BASE_CLASS::OnNewDocument())
		return FALSE;

	// _xZkqqHx_iDhHiDgCiDfPiPoOjFpBiCpAiPiJiKpKiJlLiBeC_xHqqkZx_
	// _xZkqqHx_iClBiCmMiPiIjHjNiCpAiClFiCmIiCkCiCmGiBeBiDhEiDeIiDiLiDfPjDoAiCmFiJeFiDeOiDiKiDgCiDeOiDiBiDgKiDiFiBfLiCkJiCoHjAfGiLeLiNoMjAkMiClFiClN_xHqqkZx_
	// _xZkqqHx_iBhF_xHqqkZx_Dynamic Draw Document_xZkqqHx_iBhGiCmJiJlNiCkJiCpAjFgAiClBiCkEiCmGiClHiCoJiCmGjHiOiClPiCoJiBeC_xHqqkZx_
	m_headerInf.Init();
	// _xZkqqHx_iNoMjAkMjDpKiOjOiCpAiPiJiKpKiJlLiBeC_xHqqkZx_
	m_headerInf.InitCreateTime();

//----------<NOT EXPORT TO VIEWER>-----------
	WString strTmpl;
	// _xZkqqHx_jFfHiPiAiDgFiDjDiDhGiDiMiBfLiDgHiDhEiDeAiDeDiDiLjAnNjCoIiBeC_xHqqkZx_
	LoadStdTemplate(strTmpl);
//----------</NOT EXPORT TO VIEWER>-----------
	// _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiDhEiDeAiDeDiDiLiCmN_xHqqkZx_ReadOnly_xZkqqHx_iCkJiBeI_xHqqkZx_
	m_bIsReadOnly = FALSE;

//----- 05.07.02 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	// _xZkqqHx_iDhCiDiFiBfLiCmMiPiJiKpKiJlLiPiIjHjNiCpAiMmEiCnBiPgPiClHiBeC_xHqqkZx_
//	if (g_pView != NULL) g_pView->InitContents();
//	// _xZkqqHx_iDhEiDiMiBfLiDiAiCmMiPiJiKpKiJlLiPiIjHjNiCpAiMmEiCnBiPgPiClHiBeC_xHqqkZx_
//	if (FFGetMainWnd()->IsAvailable()) FFGetMainWnd()->InitContents();
//----- 05.07.02 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
	return TRUE;
} // CFCFoundDoc::OnNewDocument.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnOpenDocument
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiCpAiDeJiBfLiDhGiDjDiClHiCoJiBeC_xHqqkZx_[_xZkqqHx_iDiBiDgKiDiFiBfL_xHqqkZx_]_xZkqqHx_iBkI_xHqqkZx_[_xZkqqHx_iDhEiDeAiDeDiDiLiDeJiBfLiDhGiDjD_xHqqkZx_]_xZkqqHx_iCmF_xHqqkZx_
 *			_xZkqqHx_iOmAiNhDiClDiCoKiCoJiPoKiNiHiCmGiBeB_xHqqkZx_Windows_xZkqqHx_iCkJiCoHiDhEiDeAiDeDiDiLiDeOiDiKiDgCiDeOiCmJiCoGiCoJjClMjAnKiLeOjDkOiCmF_xHqqkZx_
 *			_xZkqqHx_iMmEiCmOiCoKiCoJiPoKiNiHiCkKiCkAiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	lpszPathName	:_xZkqqHx_iDeJiBfLiDhGiDjDiClHiCoJiDhEiDeAiDeDiDiLjGlM_xHqqkZx_.
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	TRUE	: _xZkqqHx_iKnGjAjEiCmMiOmAiNhDiCkKjAkMiMpHiClFiClNiPoKiNiH_xHqqkZx_
 *			FALSE	: _xZkqqHx_iKnGjAjEiCmMiOmAiNhDiCkKiOlIjEhDiClFiClNiPoKiNiH_xHqqkZx_
 *
 * <_xZkqqHx_jCiNiInD_xHqqkZx_>	Windows_xZkqqHx_iCkJiCoHiCmMjClMjAnKiLeOjDkOiCmFiCmNiBeB_xHqqkZx_OnNewDocument_xZkqqHx_iCmNiOmAiNhDiClDiCoKiCmIiCkCiClBiCmGiCmJ_xHqqkZx_
 *			_xZkqqHx_jCiNiInD_xHqqkZx_.
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	98.11.13 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCFoundDoc::OnOpenDocument (LPCTSTR lpszPathName)
{
//----- 06.03.29 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	if (lpszPathName == NULL)
//	//----- OLE_xZkqqHx_iLeOjDkOiCmMiPoKiNiH_xHqqkZx_ -----
//	{
//		//----- Superclass_xZkqqHx_iKnGjAjEiOmAiNhD_xHqqkZx_ -----
//		// _xZkqqHx_iImIiJlKiCmMiPiIjHjNjCiGiCkJiCoH_xHqqkZx_DeleteContents_xZkqqHx_iCpAiOmAiNhDiBeC_xHqqkZx_
//		if (!BASE_CLASS::OnOpenDocument(lpszPathName))
//			return FALSE;
//		//----- ReadOnly_xZkqqHx_iCkJiCmHiCkEiCkJiCpAjClCiCnHiCoJ_xHqqkZx_ -----
//		// m_lpRootStg_xZkqqHx_iCmN_xHqqkZx_COleDocument::OnOpenDocument _xZkqqHx_iCpAiOfBiPmGiBeC_xHqqkZx_
//		// m_lpRootStg_xZkqqHx_iCmNiBeB_xHqqkZx_COleDocument::LPSTORAGE m_lpRootStg;
//		// LPSTORAGE = IStorage*_xZkqqHx_iBeC_xHqqkZx_
//		STATSTG ststg;
//		// _xZkqqHx_iDfIiDgHiDiMiBfLiDfHiCmMiPpDjBnEiCpAjClCiCnHiCoJiBeCiDgIiDeMiDiFiDiBiDjDiDgHiDhEiDeAiDeDiDiLiCmN_xHqqkZx_ReadOnly_xZkqqHx_iCkJiBeI_xHqqkZx_
//		m_lpRootStg->Stat(&ststg, 0);
//		if (ststg.grfMode & STGM_WRITE || ststg.grfMode & STGM_READWRITE)
//			m_bIsReadOnly = FALSE;
//		else
//			m_bIsReadOnly = TRUE;
//		// _xZkqqHx_jFnLjBlGiClHiCoJiDgPiBfLiDfHiDiHiDjDiCpAjGoCiCkCiNiHiCoNiClJiCoJiCkJiBeI_xHqqkZx_
//		m_bAskSaveVersion = (m_headerInf.GetFileVersion() != FCHeaderInf::GetStcFileVersion());
//		return TRUE;
//	}
//	//----- OLE_xZkqqHx_iLeOjDkOiCmFiCmNiCmIiCkCiPoKiNiH_xHqqkZx_ -----
//	if (g_->appMode & FD_RUNMODE_REPAIR_DOCUMENT)
//	//----- _xZkqqHx_iPeDjFjMiDiCiBfLiDgIiCmMiPoKiNiH_xHqqkZx_ -----
//	{
////----- 06.03.29 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
////		//----- Superclass_xZkqqHx_iKnGjAjEiOmAiNhD_xHqqkZx_ -----
////		// _xZkqqHx_iImIiJlKiCmMiPiIjHjNjCiGiCkJiCoH_xHqqkZx_DeleteContents_xZkqqHx_iCpAiOmAiNhDiBeC_xHqqkZx_
////		if (!BASE_CLASS::OnOpenDocument(lpszPathName))
////			return FALSE;
////		return TRUE;
////----- 06.03.29 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
//		FFThrowMiscUnknown();
////----- 06.03.29 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
//	}
//	//----- _xZkqqHx_iPeDjFjMiDiCiBfLiDgIiCmFiCmNiCmIiCkCiPoKiNiH_xHqqkZx_ -----
//	FTDocumentFormat df = FFFileNameToFormat(TStrToWStr(lpszPathName));
//	switch (df)
//	{
//	case FD_DTP_STANDARD_FORMAT:	// _xZkqqHx_jCmKiPoNiDhEiDeIiBfLiDhNiDgCiDgHiCmMjFlGiPjBiBeC_xHqqkZx_(.mdrw)
//	  {
//		// Baseclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
//		if (!BASE_CLASS::OnOpenDocument(lpszPathName))
//		//----- _xZkqqHx_iDhEiDeAiDeDiDiLiCmMiDeJiBfLiDhGiDjDiCmJiOlIjEhDiClFiClNiPoKiNiH_xHqqkZx_ -----
//		{
//			if (FCRecentList::Find(NULL, TStrToWStr(lpszPathName), NULL) != -1)
//			//----- _xZkqqHx_iNmFiLnPiOgHiCmBiClNiDhEiDeAiDeDiDiLiDiKiDfIiDgHiCmJjBlGiNnNiClHiCoJiPoKiNiH_xHqqkZx_ -----
//			{
//				// _xZkqqHx_iNmFiLnPiOgHiCmBiClNiDhEiDeAiDeDiDiLiCmMiDiKiDfIiDgHiCkJiCoHjDgPjIfOiCpAiNoNiPjMiClFiCnMiClHiCkJiBeI_xHqqkZx_
//				if (FFMessageBox(IDS_MSG_IS_REMOVE_RECENT_FILE, 0, MB_YESNO) == IDYES)
//				//----- YES_xZkqqHx_iCmMiPoKiNiH_xHqqkZx_ -----
//				{
////----- 06.03.09 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
////					// _xZkqqHx_iDiBiDgKiDiFiBfLiBhFiNmFiLnPiOgHiCmBiClNiDhEiDeAiDeDiDiLiBhGiCkJiCoHiNoNiPjMiBeC_xHqqkZx_
////					FCRecentList::Del(NULL, TStrToWStr(lpszPathName), NULL);
////----- 06.03.09 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
//					// _xZkqqHx_iDiBiDgKiDiFiBfLiBhFiNmFiLnPiOgHiCmBiClNiDhEiDeAiDeDiDiLiBhGiCkJiCoHiNoNiPjMiBeC_xHqqkZx_
//					for (;;)
//					{
//						short nRecentIndex = FCRecentList::Find(NULL, TStrToWStr(lpszPathName), NULL);
//						if (nRecentIndex == -1) break;
//						FCRecentList::Del(nRecentIndex);
//					}
////----- 06.03.09 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
//				}
//			}
//			// _xZkqqHx_jFlGiPjBiCmNjFmCiClGiClNiPpDjBnEiCmJiCmIiCoJiClNiCnPiBeBjBfDiJoGjGmKiCpAiNmEjFgAiJoGiBeC_xHqqkZx_
//			g_pView->SendRgnRedraw(TRUE);
//			return FALSE;
//		}
//
//		// _xZkqqHx_iDhEiDeIiDiLiDfPjDoAiCmFiJeFiDeOiDiKiDgCiDeOiDiBiDgKiDiFiBfLiCkJiCoHjAfGiLeLiNoMjAkMiClFiClNiBhF_xHqqkZx_Dynamic Draw Document_xZkqqHx_iBhG_xHqqkZx_
//		// _xZkqqHx_iCmNiBeBiLpDiCmMiDhEiDeAiDeDiDiLiCmIiCmMiCmFiBeBiImIiJlKiCmMiPiIjHjNiCkKjFeLjHhGiCmGiCmIiCoJiBeC_xHqqkZx_
//		if (m_headerInf.GetFileType() == FD_DTP_NONE)
//		//----- _xZkqqHx_iDhHiDgCiDfPiPoOjFpBiCmJiDhEiDeAiDeDiDiLiDfOiDeDiDhGiCkKjAnNjCoIiClDiCoKiCmEiCkCiCmIiCkCiPoKiNiHiBeB_xHqqkZx_
//		//		_xZkqqHx_jBkGiClP_xHqqkZx_ lpszPathName _xZkqqHx_iCmMiDhEiDeAiDeDiDiLiDfEiDeDiDfJ_xHqqkZx_ = 0 _xZkqqHx_iCmMiPoKiNiH_xHqqkZx_ ------
//		{
//			// _xZkqqHx_iDhHiDgCiDfPiPoOjFpBiCpAiPiJiKpKiJlLiBeC_xHqqkZx_
//			m_headerInf.Init();
//			// _xZkqqHx_iNoMjAkMjDpKiOjOiCpAiPiJiKpKiJlLiBeC_xHqqkZx_
//			m_headerInf.InitCreateTime();
//			WString strTmpl;
//			// _xZkqqHx_jFfHiPiAiDgFiDjDiDhGiDiMiBfLiDgHiDhEiDeAiDeDiDiLjAnNjCoIiBeC_xHqqkZx_
//			LoadStdTemplate(strTmpl);
//		}
//		//----- ReadOnly_xZkqqHx_iCkJiCmHiCkEiCkJiCpAjClCiCnHiCoJ_xHqqkZx_ -----
//		// m_lpRootStg_xZkqqHx_iCmN_xHqqkZx_COleDocument::OnOpenDocument _xZkqqHx_iCpAiOfBiPmGiBeC_xHqqkZx_
//		// m_lpRootStg_xZkqqHx_iCmNiBeB_xHqqkZx_COleDocument::LPSTORAGE m_lpRootStg;
//		// LPSTORAGE = IStorage*_xZkqqHx_iBeC_xHqqkZx_
//		STATSTG ststg;
//		// _xZkqqHx_iDfIiDgHiDiMiBfLiDfHiCmMiPpDjBnEiCpAjClCiCnHiCoJiBeCiDgIiDeMiDiFiDiBiDjDiDgHiDhEiDeAiDeDiDiLiCmN_xHqqkZx_ReadOnly_xZkqqHx_iCkJiBeI_xHqqkZx_
//		m_lpRootStg->Stat(&ststg, 0);
//		if (ststg.grfMode & STGM_WRITE || ststg.grfMode & STGM_READWRITE)
//			m_bIsReadOnly = FALSE;
//		else
//			m_bIsReadOnly = TRUE;
//		break;
//	  }
//	case FD_DTP_PORTABLE_FORMAT:	// _xZkqqHx_iDhMiBfLiDfOiDhFiDiLiDhEiDeIiBfLiDhNiDgCiDgHiCmMjFlGiPjBiBeC_xHqqkZx_
//	  {
//		// _xZkqqHx_iDhEiDeAiDeDiDiLiDfPiDhFiDiLiDeOiDiKiDgCiDeOiCmJiCoGiCoJiLeOjDkOiCmMiPoKiNiHiBeB_xHqqkZx_OnNewDocument _xZkqqHx_iCpAiMgPiCmIiCkCiClNiCnPiBeB_xHqqkZx_
//		// m_pRootStrage == NULL _xZkqqHx_iCmGiCmIiCoIiBeB_xHqqkZx_OLE_xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiCmMjDmHiCnNiNjOiCnNiCkKiPgPjHiIiCmIiCkCiBeC_xHqqkZx_
//		// _xZkqqHx_iClBiCoKiCpAjEpAiCkPiCoJiClNiCnPiBeBiClBiClBiCmF_xHqqkZx_BASE_CLASS::OnNewDocument_xZkqqHx_iCpAiOmAiNhDiClHiCoJiBeC_xHqqkZx_
//		BASE_CLASS::OnNewDocument();
//		DeleteContents();
//
//		BOOL bReadOnly;
//		if (m_pFileOpen->Open(lpszPathName, CFile::modeReadWrite | CFile::shareDenyWrite, NULL))
//		//----- Read/Write _xZkqqHx_iCmFiDeJiBfLiDhGiDjDiCmFiCkLiClNiPoKiNiH_xHqqkZx_ -----
//		{
//			bReadOnly = FALSE;
//		} else
//		if (m_pFileOpen->Open(lpszPathName, CFile::modeRead | CFile::shareDenyNone, NULL))
//		//----- Read _xZkqqHx_iCmFiDeJiBfLiDhGiDjDiCmFiCkLiClNiPoKiNiH_xHqqkZx_ -----
//		{
//			bReadOnly = TRUE;
//		} else
//		//----- _xZkqqHx_iDeJiBfLiDhGiDjDiCmFiCkLiCmIiCkJiCmBiClNiPoKiNiH_xHqqkZx_ -----
//		{
//			// _xZkqqHx_iDhEiDeAiDeDiDiLiBhF_xHqqkZx_%s_xZkqqHx_iBhGiCpAiDeJiBfLiDhGiDjDiCmFiCkLiCnMiClJiCpBiBeC_xHqqkZx_
//			FFErrorBox(	FD_ERRBOX_SHOW,
//						IDS_ERR_MSG_CANNOT_OPEN_FILE,
//						(const wchar_t*)TStrToWStr(lpszPathName));
//			// _xZkqqHx_iNmFiLnPiOgHiCmBiClNiDhEiDeAiDeDiDiLiCmMiDiKiDfIiDgHiCkJiCoHjDgPjIfOiCpAiNoNiPjMiClFiCnMiClHiCkJiBeI_xHqqkZx_
//			if (FFMessageBox(IDS_MSG_IS_REMOVE_RECENT_FILE, 0, MB_YESNO) == IDYES)
//			//----- YES_xZkqqHx_iCmMiPoKiNiH_xHqqkZx_ -----
//			{
//				// _xZkqqHx_iDiBiDgKiDiFiBfLiBhFiNmFiLnPiOgHiCmBiClNiDhEiDeAiDeDiDiLiBhGiCkJiCoHiNoNiPjMiBeC_xHqqkZx_
//				for (;;)
//				{
//					short nRecentIndex = FCRecentList::Find(NULL, TStrToWStr(lpszPathName), NULL);
//					if (nRecentIndex == -1) break;
//					FCRecentList::Del(nRecentIndex);
//				}
//			}
//			// _xZkqqHx_jFlGiPjBiCmNjFmCiClGiClNiPpDjBnEiCmJiCmIiCoJiClNiCnPiBeBjBfDiJoGjGmKiCpAiNmEjFgAiJoGiBeC_xHqqkZx_
//			g_pView->SendRgnRedraw(TRUE);
//			return FALSE;
//		}
//		if (m_pFileOpen->GetLength() != 0)
//		//----- _xZkqqHx_iDhEiDeAiDeDiDiLjClHiCkK_xHqqkZx_0_xZkqqHx_iCmFiCmIiCkCiPoKiNiH_xHqqkZx_ -----
//		{
//			// _xZkqqHx_iDhEiDeAiDeDiDiLiImKjChFiCpAjAoGjDkKiCmJiBeC_xHqqkZx_
//			m_pFileOpen->SeekToBegin();
//			// _xZkqqHx_iDhEiDeIiDiLiDfPjDoAiCmFiJeFiDeOiDiKiDgCiDeOiDiBiDgKiDiFiBfLiCkJiCoHjAfGiLeLiNoMjAkMiClFiClN_xHqqkZx_
//			// _xZkqqHx_jFlGiPjBiDhEiDeAiDeDiDiLiCmNiBeBiLpDiCmMiDhEiDeAiDeDiDiLiBeC_xHqqkZx_
//			InPortableFormat(*m_pFileOpen, NULL);
//		}
//		// _xZkqqHx_iPjBiCkLiNjOiCnNiLjGiJmCiBeI_xHqqkZx_
//		m_bIsReadOnly = bReadOnly;
//		break;
//	  }
//	default:	// FD_DTP_NONE:				_xZkqqHx_iMfOjGlDiClFiBeC_xHqqkZx_
//		// _xZkqqHx_iKoOjGhLjDeJiCmJiCmNiClBiClBiCmJiClBiCmIiCkCiDgOiDfJiBeC_xHqqkZx_
//		// CFCCommandLineInfo::ParseDocRequest_xZkqqHx_iKnGjAjEiCmJiCoGiCmBiCmEiBeBiPoDiLeMiCmM_xHqqkZx_
//		// _xZkqqHx_iDfOiDeDiDhGiImIiKePiCmMiDhEiDeAiDeDiDiLiCmNiDeDiDjDiDhMiBfLiDgHiCmJiCnMiCoNiClDiCoKiCoJiBeC_xHqqkZx_
//		FFThrowDDFileException(IDS_ERR_FILE_WRONG_FORM, L"");
//	}
//	// _xZkqqHx_jFnLjBlGiClHiCoJiDgPiBfLiDfHiDiHiDjDiCpAjGoCiCkCiNiHiCoNiClJiCoJiCkJiBeI_xHqqkZx_
//	m_bAskSaveVersion = (m_headerInf.GetFileVersion() != FCHeaderInf::GetStcFileVersion());
//	// _xZkqqHx_iDiBiDgKiDiFiBfLiBhFiNmFiLnPiOgHiCmBiClNiDhEiDeAiDeDiDiLiBhGiCmJjAnNjCoIiBeC_xHqqkZx_
//	WString wstrPathName = TStrToWStr(lpszPathName);
//	FCRecentList::Add(FCRecentList::AbbreviatePath(wstrPathName), wstrPathName, wstrPathName);
//	return TRUE;
//----- 06.03.29 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	//----- _xZkqqHx_iPeDjFjMiDiCiBfLiDgIiCmMiPoKiNiH_xHqqkZx_ -----
	if (g_->appMode & FD_RUNMODE_REPAIR_DOCUMENT)
		FFThrowMiscUnknown();

	if (lpszPathName == NULL)
	//----- OLE_xZkqqHx_iLeOjDkOiCmMiPoKiNiH_xHqqkZx_ -----
	{
		if (!OnOpenMdrwDocument(NULL))
			return FALSE;
	} else
	//----- _xZkqqHx_iDhEiDeAiDeDiDiLiLeOjDkOiCmMiPoKiNiH_xHqqkZx_ -----
	{
		FTDocumentFormat df = FFFileNameToFormat(TStrToWStr(lpszPathName));
		switch (df)
		{
		case FD_DTP_STANDARD_FORMAT:	// _xZkqqHx_jCmKiPoNiDhEiDeIiBfLiDhNiDgCiDgHiCmMjFlGiPjBiBeC_xHqqkZx_(.mdrw)
			if (!OnOpenMdrwDocument(TStrToWStr(lpszPathName)))
				return FALSE;
			break;
		case FD_DTP_PORTABLE_FORMAT:	// _xZkqqHx_iDhMiBfLiDfOiDhFiDiLiDhEiDeIiBfLiDhNiDgCiDgHiCmMjFlGiPjBiBeC_xHqqkZx_
			if (!OnOpenMdpfDocument(TStrToWStr(lpszPathName)))
				return FALSE;
			break;
		default:	// FD_DTP_NONE:				_xZkqqHx_iMfOjGlDiClFiBeC_xHqqkZx_
			// _xZkqqHx_iKoOjGhLjDeJiCmJiCmNiClBiClBiCmJiClBiCmIiCkCiDgOiDfJiBeC_xHqqkZx_
			// CFCCommandLineInfo::ParseDocRequest_xZkqqHx_iKnGjAjEiCmJiCoGiCmBiCmEiBeBiPoDiLeMiCmM_xHqqkZx_
			// _xZkqqHx_iDfOiDeDiDhGiImIiKePiCmMiDhEiDeAiDeDiDiLiCmNiDeDiDjDiDhMiBfLiDgHiCmJiCnMiCoNiClDiCoKiCoJiBeC_xHqqkZx_
			FFThrowDDFileException(IDS_ERR_FILE_WRONG_FORM, L"");
		}
	}
	// _xZkqqHx_iDhEiDeIiDiLiDfPjDoAiCmFiJeFiDeOiDiKiDgCiDeOiDiBiDgKiDiFiBfLiCkJiCoHjAfGiLeLiNoMjAkMiClFiClNiBhF_xHqqkZx_Dynamic Draw Document_xZkqqHx_iBhG_xHqqkZx_
	// _xZkqqHx_iCmNiBeBiLpDiCmMiDhEiDeAiDeDiDiLiCmIiCmMiCmFiBeBiImIiJlKiCmMiPiIjHjNiCkKjFeLjHhGiCmGiCmIiCoJiBeC_xHqqkZx_
	if (m_headerInf.GetFileType() == FD_DTP_NONE)
	//----- _xZkqqHx_iDhHiDgCiDfPiPoOjFpBiCmJiDhEiDeAiDeDiDiLiDfOiDeDiDhGiCkKjAnNjCoIiClDiCoKiCmEiCkCiCmIiCkCiPoKiNiHiBeB_xHqqkZx_
	//		_xZkqqHx_jBkGiClP_xHqqkZx_ wcpFilePath _xZkqqHx_iCmMiDhEiDeAiDeDiDiLiDfEiDeDiDfJ_xHqqkZx_ = 0 _xZkqqHx_iCmMiPoKiNiH_xHqqkZx_ ------
	{
		// _xZkqqHx_iDhHiDgCiDfPiPoOjFpBiCpAiPiJiKpKiJlLiBeC_xHqqkZx_
		m_headerInf.Init();
		// _xZkqqHx_iNoMjAkMjDpKiOjOiCpAiPiJiKpKiJlLiBeC_xHqqkZx_
		m_headerInf.InitCreateTime();
		WString strTmpl;
		// _xZkqqHx_jFfHiPiAiDgFiDjDiDhGiDiMiBfLiDgHiDhEiDeAiDeDiDiLjAnNjCoIiBeC_xHqqkZx_
		LoadStdTemplate(strTmpl);
	}
	// _xZkqqHx_jFnLjBlGiClHiCoJiDgPiBfLiDfHiDiHiDjDiCpAjGoCiCkCiNiHiCoNiClJiCoJiCkJiBeI_xHqqkZx_
	m_bAskSaveVersion = (m_headerInf.GetFileVersion() != FCHeaderInf::GetStcFileVersion());
	// _xZkqqHx_iDiBiDgKiDiFiBfLiBhFiNmFiLnPiOgHiCmBiClNiDhEiDeAiDeDiDiLiBhGiCmJjAnNjCoIiBeC_xHqqkZx_
	if (lpszPathName != NULL)
	//----- OLE_xZkqqHx_iOmAiNhDiCmFiCmNiCmIiCkCiPoKiNiH_xHqqkZx_ -----
	{
		WString wstrPathName = TStrToWStr(lpszPathName);
		FCRecentList::Add(FCRecentList::AbbreviatePath(wstrPathName), wstrPathName, wstrPathName);
//----- 06.04.13 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
		// _xZkqqHx_iDeKiDiMiDjDiDgHiDgGiDeCiDiMiDeOiDgHiDiKiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
		FFSetCurrentDirectory(FFGetFileDirectory(wstrPathName, TRUE));
//----- 06.04.13 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
	}
	return TRUE;
//----- 06.03.29 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
} // CFCFoundDoc::OnOpenDocument.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::DeleteContents
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiCmMiDgGiBfLiDfOiCpAiNoNiPjMiClFiBeBiNmEiCnBiPiJiKpKiJlLiClHiCoJiBeC_xHqqkZx_
 *			_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgH_xHqqkZx_ _xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiOkJjAgHiCmNjEgKiKpMiClJiClIiBeBiDgIiDeMiDiFiDiBiDjDiDgHiCmM_xHqqkZx_
 *			_xZkqqHx_iDgGiBfLiDfOiCpAiNoNiPjMiClHiCoJiClNiCnPiCmJiBeBiDhEiDiMiBfLiDiAiDiPiBfLiDeOiCkKiMmEiCnBiPgPiClHiBeC_xHqqkZx_
 *			_xZkqqHx_iImIiJlKiCmMiCfCiCmCiCmMiKnGjAjEiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *			_xZkqqHx_iBeF_xHqqkZx_COleServerDoc::OnNewDocument
 *			_xZkqqHx_iBeF_xHqqkZx_COleServerDoc::OnOpenDocument
 *			_xZkqqHx_iBeF_xHqqkZx_CFrameWnd::OnClose
 *
 * <_xZkqqHx_jCiNiInD_xHqqkZx_>	_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjEgKiKpMiOjOiCmJiClBiCmMiKnGjAjEiCkKiMmEiCmOiCoKiCoJiOjOiCmNiBeBiKpJiCmJ_xHqqkZx_View_xZkqqHx_iCmNjEgKiKpM_xHqqkZx_
 *			_xZkqqHx_iClDiCoKiCmEiCkCiCoJiClBiCmGiCmJjCiNiInD_xHqqkZx_.
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	98.10.15 Fukushiro M. _xZkqqHx_iDfCiDiBiDjDiDgHiNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::DeleteContents ()
{
//----- 06.03.29 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	if (m_lpOriginalStorage != NULL)
	//----- _xZkqqHx_iDeJiDiKiDfHiDgJiDiLiDfIiDgHiDiMiBfLiDfHiCkKjFnLiMoMiClDiCoKiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iDeJiDiKiDfHiDgJiDiLiDfIiDgHiDiMiBfLiDfHiCpAiMlDiCmJjGnPiClHiBeC_xHqqkZx_
		m_lpRootStg = m_lpOriginalStorage;
		m_lpOriginalStorage = NULL;
	}
	if (m_lpSubstStorage != NULL)
	//----- _xZkqqHx_jFkBiOmKiDfIiDgHiDiMiBfLiDfHiCkKiCkAiCoJiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_jFkBiOmKiDfIiDgHiDiMiBfLiDfHiCpAjFmCiClGiCoJiBeC_xHqqkZx_
		m_lpSubstStorage->Release();
		// _xZkqqHx_jFkBiOmKiDfIiDgHiDiMiBfLiDfHiCmMjFmPjAjEiCpAiPiJiKpKiJlLiBeC_xHqqkZx_
		m_lpSubstStorage = NULL;
		// _xZkqqHx_jFkBiOmKiClFiClNjFlGiPjBiCpAiNoNiPjMiBeC_xHqqkZx_
		FFDeleteFile(m_wstrSubstFilePath);
		m_wstrSubstFilePath.Empty();
	}
//----- 06.03.29 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
	// _xZkqqHx_jFlGiPjBiPoOjFpBiCpAiNoNiPjMiBeC_xHqqkZx_
	DeleteAndInitContents(TRUE);
} // CFCFoundDoc::DeleteContents.

/////////////////////////////////////////////////////////////////////////////
// CFCFoundDoc _xZkqqHx_iDfEiBfLiDgPiBfL_xHqqkZx_ _xZkqqHx_iDeDiDjDiDhGiDiKiDiBiDjDiDgFiBfLiDfGiDiHiDjD_xHqqkZx_

//----- 03.08.31 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnGetEmbeddedItem
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	
// *
// * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	
// *
// * <_xZkqqHx_iPnKiNnH_xHqqkZx_>	
// *
// * <_xZkqqHx_jCiNiInD_xHqqkZx_>	
// *
// * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.06.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//COleServerItem* CFCFoundDoc::OnGetEmbeddedItem ()
//{
//	// OnGetEmbeddedItem _xZkqqHx_iCmNiDgIiDeMiDiFiDiBiDjDiDgHiCmGiKnGjIeBjFhEiCkPiCoHiCoKiCmEiCkCiCoJ_xHqqkZx_ COleServerItem 
//	// _xZkqqHx_iCpAjDlOiCoJiClNiCnPiCmJiDhEiDiMiBfLiDiAiDiPiBfLiDeOiCkJiCoHjFeLjHhGiCmIiOjOiCmJiClOiCkPiMmEiCmOiCoKiCnMiClHiBeC_xHqqkZx_
//
//	CFCMolipDrawSrvrItem* pItem = new CFCMolipDrawSrvrItem(this);
//	ASSERT_VALID(pItem);
//	return pItem;
//} // CFCFoundDoc::OnGetEmbeddedItem.
//----- 03.08.31 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::SetModifiedFlag
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iPeDjAlDiDhEiDiJiDePiCmMjAnNjCoIiBeCiPeDjAlDiCkKjDpMiCmBiCmEiCkCiCoJiCkJiCmHiCkEiCkJiCmJiJjOiClGiCmEiBeB_xHqqkZx_
 *			_xZkqqHx_iDiMiDfHiDfIiDgHiDiKiCmMiPeDjFjMiLeMjIfOiCpAjAnNjCoIiClHiCoJiClNiCnPiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	bModified	:_xZkqqHx_iPeDjAlDiBeFjGkCiPeDjAlDiCmMjAnNjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.02.04 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::SetModifiedFlag (BOOL bModified)
{
//----- 03.08.01 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	// ReadOnly _xZkqqHx_iIlNiCkCiCmN_xHqqkZx_ _xZkqqHx_iPeDjFjMiDiCiBfLiDgIiCmIiCoHiCmOjFjMiLeBiBeC_xHqqkZx_
//	if (!FFCanEditDocument() || (g_->appMode & FD_RUNMODE_REPAIR_DOCUMENT)) return;
//	// Superclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
//	BASE_CLASS::SetModifiedFlag(bModified);
//----- 03.08.01 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	// ReadOnly _xZkqqHx_iIlNiCkCiCmN_xHqqkZx_ _xZkqqHx_iPeDjFjMiDiCiBfLiDgIiCmIiCoHiCmOjFjMiLeBiBeC_xHqqkZx_
	// FFCanEditDocument()_xZkqqHx_jDjJiBeB_xHqqkZx_g_pDoc_xZkqqHx_iCpAiOgHiCmBiClNiKnGjAjEiCpAiMmEiCpBiCmFiCmNiCmIiCoHiCmIiCkCiBeC_xHqqkZx_
	// SetModifiedFlag_xZkqqHx_iCmNiBeB_xHqqkZx_DeleteContents_xZkqqHx_iCkJiCoHiCoAiOmAiNhDiClDiCoKiCoJiCkKiBeB_xHqqkZx_
	// Document_xZkqqHx_iCpAjFfHiPiAiCmGiCmNjFmKiCmJiNoMjAkMiClDiCoKiClNiPoKiNiHiBeB_xHqqkZx_g_pDoc==NULL_xZkqqHx_iCmFiCkAiCoJiClNiCnPiBeC_xHqqkZx_
	if (!GetIsDocumentOpened() || IsReadOnly() ||
		(g_->appMode & FD_RUNMODE_REPAIR_DOCUMENT)) return;
	// Superclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
	BASE_CLASS::SetModifiedFlag(bModified);
//----- 03.08.01 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
} // CFCFoundDoc::SetModifiedFlag.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::IsModified
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iPeDjAlDiDhEiDiJiDePiCkKjAnNjCoIiClDiCoKiCmEiCkCiCoJiCkJiCmHiCkEiCkJiCpAjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iPeDjAlDiClDiCoKiCmEiCkCiCoJiPoKiNiHiCmN_xHqqkZx_ TRUE_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	Undo/Redo_xZkqqHx_iOjOiCmJiBeBiNmFiMoDiCmJjFnLjBlGiClDiCoKiClNjHjKjHpAiImKjChFiCmGjEoEiKhCiClFiCmEiBeB_xHqqkZx_
 *			_xZkqqHx_iPeDjAlDiCkJiCmHiCkEiCkJiCpAjElLjCgGiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.03.17 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCFoundDoc::IsModified ()
{
//----- 06.10.18 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	// _xZkqqHx_iDhEiDeAiDeDiDiLiCkKjFmCiClGiCmEiCkCiCoJiPoKiNiHiBeB_xHqqkZx_ReadOnly_xZkqqHx_iCmMiPoKiNiHiCmN_xHqqkZx_ FALSE_xZkqqHx_iBeC_xHqqkZx_
//	if (!m_pGate->IsOpened() || IsReadOnly())
//		return FALSE;
//----- 06.10.18 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	// _xZkqqHx_iImIiJlKiCmNiPiHjEnEiCkKjBoFiOjGiBeC_xHqqkZx_
	// _xZkqqHx_iDfCiDhNiDjDiDgIiDhEiDeAiDeDiDiLiCkKiKeKiCkCiCmEiCkCiCoJiClBiCmGiCmN_xHqqkZx_ 4_xZkqqHx_iImIiNhOiCmMiPpAiMiPiMjPiNlIiCmFjFeLjHhGiCmGiCmIiCoJiBeC_xHqqkZx_
	// _xZkqqHx_iDfCiDhNiDjDiDgIiCmJiLeMjIfOiClFiCmIiCkCiCkK_xHqqkZx_SetModifiedFlag(TRUE)_xZkqqHx_iCmMiPoKiNiHiCoAiCkAiCoJiBeC_xHqqkZx_
	// 1. ReadOnly_xZkqqHx_iCmMiPoKiNiHiCmNjFeLiClI_xHqqkZx_FALSE_xZkqqHx_iBeC_xHqqkZx_
	// 2. SetModifiedFlag_xZkqqHx_iCmFiPeDjAlDiDhEiDiJiDePiCkKjAnNjCoIiClDiCoKiCmEiCkCiCoJiPoKiNiHiCmN_xHqqkZx_TRUE_xZkqqHx_iBeC_xHqqkZx_
	// 3. _xZkqqHx_iDfCiDhNiDjDiDgIiDhEiDeAiDeDiDiLiCkKjFmCiClGiCmEiCkCiCoJiPoKiNiHiCmN_xHqqkZx_FALSE_xZkqqHx_iBeC_xHqqkZx_
	// 4. _xZkqqHx_iPeDjAlDiCkKiCkAiCoJiPoKiNiHiCmN_xHqqkZx_TRUE_xZkqqHx_iBeC_xHqqkZx_

	// ReadOnly_xZkqqHx_iCmMiPoKiNiHiCmN_xHqqkZx_ FALSE_xZkqqHx_iBeC_xHqqkZx_
	if (IsReadOnly()) return FALSE;
	// _xZkqqHx_jFiBjCmKiCmJiPeDjAlDiDhEiDiJiDePiCkKjAnNjCoIiClDiCoKiCmEiCkCiCoJiPoKiNiHiCmN_xHqqkZx_ TRUE_xZkqqHx_iBeC_xHqqkZx_
	if (BASE_CLASS::IsModified()) return TRUE;
	// _xZkqqHx_iDhEiDeAiDeDiDiLiCkKjFmCiClGiCmEiCkCiCoJiPoKiNiHiCmN_xHqqkZx_ FALSE_xZkqqHx_iBeC_xHqqkZx_
	if (!m_pGate->IsOpened()) return FALSE;
//----- 06.10.18 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
	// _xZkqqHx_iDgFiDeMiDfIiDgHiDeHiDgGiDeCiDfOjFnCiPfHjCiG_xHqqkZx_ _xZkqqHx_iKiOiCmC_xHqqkZx_ _xZkqqHx_jFmPiNfIiCkKiCkAiCoJiPoKiNiHiCmN_xHqqkZx_ TRUE_xZkqqHx_iBeC_xHqqkZx_
	if (g_pView != NULL && g_pView->GetCurrentTool() != NULL &&
		g_pView->GetCurrentTool()->IsEditingText() &&
		(0 < g_pView->GetRTFEditor()->GetCmdQueueSize()))
			return TRUE;
	// OLE_xZkqqHx_jFlGiPjBiCpAiKeKiCkCiCmEiCkCiCoJiPoKiNiHiCmN_xHqqkZx_ TRUE_xZkqqHx_iBeC_xHqqkZx_
	if (IsOleDocumentsOpened()) return TRUE;

//----- 06.10.18 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	// _xZkqqHx_jFiBjCmKiCmJiPeDjAlDiDhEiDiJiDePiCkKjAnNjCoIiClDiCoKiCmEiCkCiCoJiPoKiNiHiCmN_xHqqkZx_ TRUE_xZkqqHx_iBeC_xHqqkZx_
//	if (BASE_CLASS::IsModified()) return TRUE;
//----- 06.10.18 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

	// _xZkqqHx_iPeDjAlDiDhEiDiJiDePiCkKjAnNjCoIiClDiCoKiCmEiCkCiCmIiCkCiPoKiNiHiCmNiBeBjHjKjHpAiImKjChFiCpAjClCiCnHiCoJiBeC_xHqqkZx_
	// _xZkqqHx_jFnLjBlGiMoDiCmJ_xHqqkZx_Undo_xZkqqHx_iClFiClNiPoKiNiHiCmNiBeBiPeDjAlDiDhEiDiJiDePiCkKjHkHiClPiBeB_xHqqkZx_Redo_xZkqqHx_iClFiClNiOjOiCmJ_xHqqkZx_
	// _xZkqqHx_iPeDjAlDiDhEiDiJiDePiCkKjHiOiClPiCoJiCoGiCkEiCmJiClHiCoJiClNiCnPiCmJiBeBiImIiJlKiCmMiPiIjHjNiCkKiCkAiCoJiBeC_xHqqkZx_
	return m_fliLastSavedSessionIdx != GetNextSessionIndexAbout();
} // CFCFoundDoc::IsModified.

//----- 02.06.27 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ (IfranView_xZkqqHx_iCmFjFmPiNfIiClFiCmEiCkCiCmIiCkCiCmMiCmJiBhFjFnLjBlGiClFiCnMiClHiCkJiBeIiBhGiCmGjFlHiCkJiCoKiCoJ_xHqqkZx_)-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::UpdateModifiedFlag
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFnLiOjNiClFiCmEiCkCiCoJ_xHqqkZx_ OLE _xZkqqHx_iDeBiDeDiDgFiDiAiCmMiCmHiCoKiCkJ_xHqqkZx_ 1 _xZkqqHx_iCmCiCmFiCoAjFmPiNfIiClDiCoKiCmEiCkCiCoKiCmOiBeB_xHqqkZx_
 *			_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiCkKjFmPiNfIiClDiCoKiCmEiCkCiCoJiCmGiClFiCmEiDhNiBfLiDeOiClFiCnMiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	02.06.27 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::UpdateModifiedFlag ()
{
	// _xZkqqHx_iClBiClBiCmFiCmNiJlNiCoAiClFiCmIiCkCiBeC_xHqqkZx_
	// Superclass_xZkqqHx_iCmM_xHqqkZx_UpdateModifiedFlag()_xZkqqHx_iCpAjGlDiMpIiCmJiClHiCoJiClBiCmGiCmJiCoGiCmBiCmEiBeBiBeC_xHqqkZx_
	// OLE_xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiPeDjAlDiCmJiCoGiCoJiPeDjAlDiDhEiDiJiDePjAnNjCoIiCpAiJpBjEpAiClHiCoJiBeC_xHqqkZx_
	// IfranView_xZkqqHx_iCmFjFmPiNfIiClFiCmEiCkCiCmIiCkCiCmMiCmJiBhFjFnLjBlGiClFiCnMiClHiCkJiBeIiBhGiCmGjFlHiCkJiCoKiCoJiPoKiNiHiCmJjBmOiJjOiBeC_xHqqkZx_
} // CFCFoundDoc::UpdateModifiedFlag.

//----- 02.06.27 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ (IfranView_xZkqqHx_iCmFjFmPiNfIiClFiCmEiCkCiCmIiCkCiCmMiCmJiBhFjFnLjBlGiClFiCnMiClHiCkJiBeIiBhGiCmGjFlHiCkJiCoKiCoJ_xHqqkZx_)-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::DoPromptFileName
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhEiDeAiDeDiDiLiDfPiDeDiDeBiDiNiDePiCpAjFfMiOkGiClFiCmEiBeBiDhEiDeAiDeDiDiLjGlMiCpAiOoGjDlOiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	wstrFileName	:_xZkqqHx_iDgGiDhEiDeIiDiLiDgHiCmMiDhEiDeAiDeDiDiLjGlMiCpAiOhHjCoIiBeCjAnNjCoIiClDiCoKiClN_xHqqkZx_
 *							 _xZkqqHx_iDhEiDeAiDeDiDiLjGlMiCpAjFnEiClHiBeC_xHqqkZx_
 *			nIDSTitle		:_xZkqqHx_iDhEiDeAiDeDiDiLiDfPiDeDiDeBiDiNiDePiCmMiDfOiDeDiDgHiDiLjFlGiOjKjHpBiCmM_xHqqkZx_
 *							 _xZkqqHx_iDiKiDfMiBfLiDfI_xHqqkZx_ID_xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *			lFlags			:_xZkqqHx_iDhEiDeAiDeDiDiLiDfPiDeDiDeBiDiNiDePiCmMiDhEiDiJiDePiCpAiOhHjCoIiBeC_xHqqkZx_
 *			bOpenFileDialog	:_xZkqqHx_iDhEiDeAiDeDiDiLiDfPiDeDiDeBiDiNiDePiCmMjDmHiCnNiNjOiCnN_xHqqkZx_/_xZkqqHx_iPjBiCkLiNjOiCnNiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDhEiDeAiDeDiDiLiDfPiDeDiDeBiDiNiDePiCmMiMiLiJmKiCkK_xHqqkZx_OK_xZkqqHx_iCmIiCoH_xHqqkZx_TRUE_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	DoSave _xZkqqHx_jCiGiCmFjHjIjHhAiBeCjGhLjHiIiCmN_xHqqkZx_ CDocManager _xZkqqHx_iCmMiDiBiDjDiDgPiKnGjAjEiClOiCkKiBeB_xHqqkZx_
 *			CWinApp::m_pDocManager _xZkqqHx_iCmNiDeJiBfLiDgPiBfLiDiJiDeDiDgIiCmFiCkLiCmIiCkCiClNiCnPiBeBiClBiClBiCmJjFkBiOmKiBeC_xHqqkZx_
			DOCMGR.CPP_xZkqqHx_iCmM_xHqqkZx_CDocManager::DoPromptFileName _xZkqqHx_iCpAiOfBiPmGiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.04.18 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCFoundDoc::DoPromptFileName (WString& wstrFileName,
									UINT nIDSTitle,
									DWORD lFlags,
									BOOL bOpenFileDialog)
{
	// _xZkqqHx_iDhEiDeAiDeDiDiLiDfPiDeDiDeBiDiNiDePiCpAiNoMjAkMiBeC_xHqqkZx_
	FCFileDialogBase dlgFile(bOpenFileDialog);

	CString title;
	VERIFY(title.LoadString(nIDSTitle));

	dlgFile.m_ofn.Flags |= lFlags;

	CString strFilter;
	FFGetFileDialogFilterString(strFilter, TRUE);

	CString strFileName = WStrToTStr(wstrFileName);
	dlgFile.m_ofn.lpstrFilter = strFilter;
	dlgFile.m_ofn.lpstrTitle = title;
	dlgFile.m_ofn.lpstrFile = strFileName.GetBuffer(_MAX_PATH);
	int nResult = dlgFile.DoModal();
	strFileName.ReleaseBuffer();
	wstrFileName = TStrToWStr(strFileName);
	return nResult == IDOK;
} // CFCFoundDoc::DoPromptFileName.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::DoSave
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFlGiPjBiDgGiBfLiDfOiCpAjFnLjBlGiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	lpszPathName:_xZkqqHx_jFnLjBlGiClHiCoJiDhEiDeAiDeDiDiLjGlMiCpAiOhHjCoIiBeC_xHqqkZx_NULL_xZkqqHx_iCkKiOhHjCoIiClDiCoKiClN_xHqqkZx_
 *						 _xZkqqHx_iPoKiNiHiBeBiDhEiDeAiDeDiDiLjFnLjBlGiCmMiDfPiDeDiDeBiDiNiDePiCkKjFfMiOkGiClDiCoKiCoJiBeC_xHqqkZx_
 *			bReplace	:_xZkqqHx_iMlLiNnNiCmMjFlGiPjBiCmMiDhEiDeAiDeDiDiLjGlMiCpAjFmPiNfIiClHiCoJiCkJiCmHiCkEiCkJiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_jFnLjBlGiCmJjAkMiMpHiClFiClNiPoKiNiHiCmN_xHqqkZx_ TRUE_xZkqqHx_iBeC_xHqqkZx_
 *
 * <_xZkqqHx_jCiNiInD_xHqqkZx_>	_xZkqqHx_jGkCiMpGiKeKiCmM_xHqqkZx_MFC_xZkqqHx_iKnGjAjEiBeCjFnLjBlGiOjOiCmMiDhEiDeAiDeDiDiLiDfPiDeDiDeBiDiNiDePiCpAjBiAiCoJiCmJiCmNiClBiCoKiCpA_xHqqkZx_
 *			_xZkqqHx_iDeJiBfLiDgPiBfLiDiJiDeDiDgIiClHiCoJiClFiCkJiBeBjFpLjGeAiCkKjGlDiCkCiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	Save the document data to a file
 *			lpszPathName = path name where to save document file
 *			if lpszPathName is NULL then the user will be prompted (SaveAs)
 *			note: lpszPathName can be different than 'm_strPathName'
 *			if 'bReplace' is TRUE will change file name if successful (SaveAs)
 *			if 'bReplace' is FALSE will not change path name (SaveCopyAs)
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.04.18 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
BOOL CFCFoundDoc::DoSave (LPCTSTR lpszPathName, BOOL bReplace)
{
	CString newName = lpszPathName;
	if (newName.IsEmpty())
	{
		CDocTemplate* pTemplate = GetDocTemplate();
		ASSERT(pTemplate != NULL);

		newName = m_strPathName;
		if (bReplace && newName.IsEmpty())
		{
			newName = m_strTitle;
			// check for dubious filename
			int iBad = newName.FindOneOf(_T(" #%;/\\"));
			if (iBad != -1)
				newName.ReleaseBuffer(iBad);

			// append the default suffix if there is one
//----- 05.08.01 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//			CString strExt;
//			if (pTemplate->GetDocString(strExt, CDocTemplate::filterExt) &&
//				!strExt.IsEmpty())
//			{
//				ASSERT(strExt[0] == '.');
//				newName += strExt;
//			}
//----- 05.08.01 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
			// _xZkqqHx_iDgGiDhEiDeIiDiLiDgHiCmMiDhEiDeAiDeDiDiLiKgHjCkDiOhBiCmNiBeB_xHqqkZx_".mdpf"_xZkqqHx_iCmJiClHiCoJiBeC_xHqqkZx_
			newName += WStrToTStr(FD_FILE_EXT_PORTABLE_FORMAT);
//----- 05.08.01 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
		}

		WString wstrNewName = TStrToWStr(newName);
		if (!DoPromptFileName(wstrNewName,
					  bReplace ? AFX_IDS_SAVEFILE : AFX_IDS_SAVEFILECOPY,
					  OFN_HIDEREADONLY | OFN_PATHMUSTEXIST, FALSE))
			return FALSE;	// don't even attempt to save
		newName = WStrToTStr(wstrNewName);
	}

	// Superclass_xZkqqHx_iKnGjAjEiCpAiOhHjCoIiBeCiDhEiDeAiDeDiDiLjGlMiCpAiOhHjCoIiClFiCmEiCkCiCoJiCmMiCmFiBeB_xHqqkZx_
	// _xZkqqHx_iDhEiDeAiDeDiDiLiDfPiDeDiDeBiDiNiDePiCkKjFfMiOkGiClDiCoKiCoJiClBiCmGiCmNjGlDiCkCiBeCiCmCiCnMiCoIiBeB_xHqqkZx_
	// CDocument::DoSave_xZkqqHx_iKnGjAjEiCmMiBeBiDhEiDeAiDeDiDiLiDfPiDeDiDeBiDiNiDePiCmMjFfMiOkGiPiIjHjNiCmMiCnNiBeB_xHqqkZx_
	// CFCFoundDoc::DoSave_xZkqqHx_iKnGjAjEiCmFiNhDiCmBiClNiClBiCmGiCmJiCmIiCoJiBeC_xHqqkZx_
	return BASE_CLASS::DoSave(newName, bReplace);
} // CFCFoundDoc::DoSave.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnSaveEmbedding
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	OLE_xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiCkJiCoHiLeOjDkOiClFiCmEiBeB_xHqqkZx_OLE_xZkqqHx_iDfIiDgHiDiMiBfLiDfHiCpAjFnLjBlGiClHiCoJiPoKiNiHiCmJiBeB_xHqqkZx_
 *			_xZkqqHx_iOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	lpStorage	:OLE_xZkqqHx_iDfIiDgHiDiMiBfLiDfHiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	BASE_CLASS::OnSaveEmbedding _xZkqqHx_iCpAjCmKiCmBiCmEiBeB_xHqqkZx_OnSaveDocument_xZkqqHx_iCkK_xHqqkZx_
 *			_xZkqqHx_iOmAiNhDiClDiCoKiCoJiCmMiClOiCkKiBeB_xHqqkZx_BASE_CLASS::OnSaveEmbedding _xZkqqHx_iCmJiCkIiCkCiCmE_xHqqkZx_
 *			m_lpRootStg _xZkqqHx_iCkK_xHqqkZx_ lpStorage _xZkqqHx_iCmJjChFiKlHiClDiCoKiCoJiBgJiPoKiNiHiCkKiCkAiCoJiBgKiBeC_xHqqkZx_
 *			OnSaveDocument _xZkqqHx_iCmJiCkIiCkCiCmEiCmNiBeB_xHqqkZx_m_lpRootStg _xZkqqHx_iCpAjBoDjHjNiDfIiDgHiDiMiBfLiDfHiCmJ_xHqqkZx_
 *			_xZkqqHx_jChFiCkLiKlHiCkGiCmEiCkCiCoJiCmMiCmFiBeB_xHqqkZx_BASE_CLASS::OnSaveEmbedding _xZkqqHx_iCmFiPjPiOoIiCmJ_xHqqkZx_
 *			_xZkqqHx_jChFiKlHiClDiCoKiCmEiCmNiNkCiCoJiBeC_xHqqkZx_
 *			_xZkqqHx_iClBiCmMiClNiCnPiBeB_xHqqkZx_CFCFoundDoc::OnSaveEmbedding _xZkqqHx_iCmFjFmPjAjEiCpAjClCjAkOiClFiCmE_xHqqkZx_
 *			OnSaveDocument _xZkqqHx_iCmFjBoDjHjNiCmMiDfIiDgHiDiMiBfLiDfHiCkKjAnNjCoIiClDiCoKiCoJiCoGiCkEiCmJiClHiCoJiBeC_xHqqkZx_
 *			FoundDoc_xZkqqHx_iCmM_xHqqkZx_OLE_xZkqqHx_iOmAiNhD_xHqqkZx_.mdrw _xZkqqHx_iCpAiOfBiPmGiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.03.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OnSaveEmbedding (LPSTORAGE lpStorage)
{
	if (!m_bSameAsLoad)
	//----- _xZkqqHx_iIoBiCkEiDfIiDgHiDiMiBfLiDfHiCmJjFnLjBlGiClHiCoJiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iClBiCmMiPoKiNiHiCmNiBeB_xHqqkZx_BASE_CLASS::OnSaveEmbedding _xZkqqHx_iCmJiCkIiCkCiCmE_xHqqkZx_
		// m_lpRootStg _xZkqqHx_iCkK_xHqqkZx_ lpStorage _xZkqqHx_iCmJjChFiKlHiClDiCoKiCoJiBeC_xHqqkZx_

		if (m_lpSubstStorage != NULL)
		//----- _xZkqqHx_iKpJiCmJjBoDjHjNiDfIiDgHiDiMiBfLiDfHiCkKiNoMjAkMiClDiCoKiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
		{
			// OnSaveDocument _xZkqqHx_iCmF_xHqqkZx_m_lpRootStg _xZkqqHx_iCmJjBoDjHjNiDfIiDgHiDiMiBfLiDfHiCkK_xHqqkZx_
			// _xZkqqHx_jAnNjCoIiClDiCoKiCoJiCoGiCkEiCmJjClCjAkOiClFiCmEiCkIiCkNiBeC_xHqqkZx_
			m_lpRootStg = m_lpOriginalStorage;
			m_lpOriginalStorage = lpStorage;
			lpStorage = m_lpSubstStorage;
		}
		// Baseclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
		BASE_CLASS::OnSaveEmbedding(lpStorage);

		if (m_lpSubstStorage != NULL)
		//----- _xZkqqHx_iIoKiOjOiDfIiDgHiDiMiBfLiDfHiCkKiNoMjAkMiClDiCoKiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
		{
			// m_lpRootStg _xZkqqHx_iCmJjBoDjHjNiDfIiDgHiDiMiBfLiDfHiCkKjAnNjCoIiClDiCoKiCoJiCoGiCkE_xHqqkZx_
			// _xZkqqHx_jCgMiCpAjFmPiNfIiBeC_xHqqkZx_
			m_lpOriginalStorage = m_lpRootStg;
			m_lpRootStg = m_lpSubstStorage;
		}
	} else
	//----- _xZkqqHx_jDkPiClGiDfIiDgHiDiMiBfLiDfHiCmJjFnLjBlGiClHiCoJiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iClBiCmMiPoKiNiHiCmNiBeB_xHqqkZx_BASE_CLASS::OnSaveEmbedding _xZkqqHx_iCmJiCkIiCkCiCmE_xHqqkZx_
		// m_lpRootStg _xZkqqHx_iCmNjFmPiNfIiClDiCoKiCmIiCkCiCkKiBeB_xHqqkZx_OnSaveDocument _xZkqqHx_iCpA_xHqqkZx_
		// _xZkqqHx_iOmAiNhDiClHiCoJjBePiCmJ_xHqqkZx_ m_lpRootStg _xZkqqHx_iCpAiDgPiDgCiDeOiDeBiDgCiDhGiClFiCmE_xHqqkZx_
		// _xZkqqHx_iOmAiNhDiMoDiCmJjCgMiCpAjGnPiClHiPiIjHjNiCpAiNhDiCmBiCmEiCkCiCoJiBeC_xHqqkZx_
		// OnSaveDocument _xZkqqHx_iCmFiCmN_xHqqkZx_ m_lpRootStg _xZkqqHx_iCpAjFmPiNfIiClHiCoJiCmMiCmFiBeB_xHqqkZx_
		// _xZkqqHx_jCgMiCpAiMlDiCmJjGnPiClDiCoKiCmEiCmNiNkCiCoJiBeC_xHqqkZx_
		// _xZkqqHx_iClLiCmMiClNiCnPiBeBiClBiClBiCmFiNmEiCnBjCgMiCpAjFmPiNfIiClHiCoJiBeC_xHqqkZx_
		// Baseclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeC_xHqqkZx_
		BASE_CLASS::OnSaveEmbedding(lpStorage);
		if (m_lpSubstStorage != NULL)
		//----- _xZkqqHx_iIoKiOjOiDfIiDgHiDiMiBfLiDfHiCkKiNoMjAkMiClDiCoKiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
		{
			// _xZkqqHx_jCgMiCpAiNmEiCnBjFmPiNfIiClHiCoJiBeC_xHqqkZx_
			m_lpRootStg = m_lpSubstStorage;
		}
	}
} // CFCFoundDoc::OnSaveEmbedding.

/////////////////////////////////////////////////////////////////////////////
// CFCFoundDoc _xZkqqHx_iDfGiDiKiDeBiDiJiDeDiDfLiBfLiDfGiDiHiDjD_xHqqkZx_

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::Serialize
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfGiDiKiDeBiDiJiDeDiDfJiBgJiDgGiBfLiDfOiCmMjDpMiPgPjHmNiBgKiCpAiNhDiCkEiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ar	:_xZkqqHx_iDfGiDiKiDeBiDiJiDeDiDfJjHhAiDeBiBfLiDeKiDeDiDhFiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.04.28 Fukushiro M. _xZkqqHx_iDfCiDiBiDjDiDgHiNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::Serialize (CArchive& ar)
{
//----------<NOT EXPORT TO VIEWER>-----------
	if (ar.IsStoring())
	//----- _xZkqqHx_iDgGiBfLiDfOiPjBiCkLiNjOiCnNiCmMiPoKiNiH_xHqqkZx_ -----
	{
		if (wcscmp(FCHeaderInf::GetStcFileVersionString(), m_wstrSaveVersion) == 0)
		//----- _xZkqqHx_iDeBiDhGiDiKiCmGjDkPiClGiDhEiDeAiDeDiDiLiDgPiBfLiDfHiDiHiDjDiCmMiPoKiNiH_xHqqkZx_ -----
		{
			// _xZkqqHx_iMlLiNnNiCmMiDgPiBfLiDfHiDiHiDjDiCmMjFkBiNiHiDfCiDeBiCpAiPjBiCkLiNjOiCnOiBeC_xHqqkZx_
			OutCurrentCcoreFormat(FCUndoArchive(ar));
		}
		// _xZkqqHx_iDeBiDhGiDiKiCmGiIoBiCkEiDhEiDeAiDeDiDiLiDgPiBfLiDfHiDiHiDjDiCmMiPoKiNiHiBeBiMmEiCnBiPgPiClFiMlDiCmM_xHqqkZx_OnSaveDocument_xZkqqHx_iKnGjAjEiCmF_xHqqkZx_
		// _xZkqqHx_iIpIiCkLjBlBiCkLiPjBiCkLiNjOiCnNiPiIjHjNiCpAiOmAiOhLiClHiCoJiBeC_xHqqkZx_

//----- 02.05.29 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ (WORD2000_xZkqqHx_iCmJ_xHqqkZx_DD3_xZkqqHx_jFlGiPjBiCpA_xHqqkZx_OLE_xZkqqHx_jDfMiCoIjFhEiCkPiBeC_xHqqkZx_DClick_xZkqqHx_iCmFjFnCiPfHiPpDjBnEiCmJiClFiCmEiBeBjFjEjFgJiCpAiCfAiMmCiDfCiDhDiBfLiClFiCmEiClHiCkOiPeJjHlJiBeCiDfCiDhDiBfLiClFiClNjFjEjFgJiClOiCkPiCmJiCmIiCoJiBeC_xHqqkZx_)-----
		// _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiCmJjAnKjBlBiClDiCoKiCmEiCkCiCoJjBfDiCmEiCmM_xHqqkZx_OLE_xZkqqHx_iDiKiDjDiDeOiDeBiDeDiDgFiDiAiCmJjCmKjCgNiBeC_xHqqkZx_
		// OLE _xZkqqHx_iDeBiDeDiDgFiDiAiCkKiOkJjDkOiDiKiDjDiDeOiCmGiClFiCmEiDgIiDeMiDiFiDiBiDjDiDgHiCmGiDiKiDjDiDeOiClDiCoKiCmEiCkCiCoKiCmOiBeB_xHqqkZx_
		// _xZkqqHx_iDeBiDeDiDgFiDiAiCmNjFmPiNfIiCpAjElNiJgGiClFiCmEiNfIjAfGiClDiCoKiCnMiClHiBeC_xHqqkZx_
		// _xZkqqHx_iClBiCmMiKnGjAjEjCiGiCmF_xHqqkZx_ CFCMolipDrawSrvrItem::OnDraw _xZkqqHx_iCkKiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
		UpdateAllItems(NULL);

		// WORD_xZkqqHx_iCmJ_xHqqkZx_MolipDraw_xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiCpAjFkBjAjEiMmCiBhFiMgAiOkOiCpAiOhHjCoIiClFiCmEjDfMiCoIiCmCiCkPiBhG_xHqqkZx_
		// _xZkqqHx_iBhFiDiKiDjDiDeOjDfMiCoIiCmCiCkPiBhGiCpAiOhHjCoIiClFiClNiPoKiNiHiBeB_xHqqkZx_UpdateAllViews _xZkqqHx_iCpAiOmAiNhDiClFiCmIiCkCiCmGiBeB_xHqqkZx_
		// _xZkqqHx_iDhGiDiKiDjDiDfOiIpDiNpMiCmMiDeDiDiBiBfLiDfHiCmMiBeBjFkBjAjEiMmCiCmM_xHqqkZx_OLE_xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiCmMiKnEiCmF_xHqqkZx_
		// _xZkqqHx_jDpMjBnGiCkGiCkKjAlGiClGiCmEiClFiCnMiCkEiBeCiJoGjGmKiCmN_xHqqkZx_OK_xZkqqHx_iCmIiCmMiCmFiMkJiCmCiCkPiCmJiCkNiCkCiDgPiDePiBeC_xHqqkZx_
		// _xZkqqHx_iLeDiCpAiCmCiCkPiCoJiClBiCmGiBeC_xHqqkZx_
//		UpdateAllViews(NULL);
		UpdateAllViews(g_pView);
//----- 02.05.29 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ (WORD2000_xZkqqHx_iCmJ_xHqqkZx_DD3_xZkqqHx_jFlGiPjBiCpA_xHqqkZx_OLE_xZkqqHx_jDfMiCoIjFhEiCkPiBeC_xHqqkZx_DClick_xZkqqHx_iCmFjFnCiPfHiPpDjBnEiCmJiClFiCmEiBeBjFjEjFgJiCpAiCfAiMmCiDfCiDhDiBfLiClFiCmEiClHiCkOiPeJjHlJiBeCiDfCiDhDiBfLiClFiClNjFjEjFgJiClOiCkPiCmJiCmIiCoJiBeC_xHqqkZx_)-----
	}
	else
	//----- _xZkqqHx_iDgGiBfLiDfOjDmHiCnNiPgPiClFiCmMiPoKiNiH_xHqqkZx_ -----
	{
//----- 06.03.29 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//		// _xZkqqHx_iDfCiDeBiDhEiDeIiBfLiDhNiDgCiDgHjDmHiCnNiNjOiCnNiCnGiBeC_xHqqkZx_
//		InCcoreFormat(FCUndoArchive(ar));
//----- 06.03.29 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
		FCUndoArchive unar(ar);
		// unar _xZkqqHx_iCmFiDhHiDgCiDfPiCpAjDmHiCnNiNjOiCpBiCmFiCkJiCoHiMlDiCmJjGnPiClHiClNiCnPiCmJiDgPiDgCiDhEiDeAiDfEiDeDiDfJiCpAjAnNjCoIiBeC_xHqqkZx_
		unar.ResetUndoBuffer(100, 200);
		// FCHeaderInf::RegalCheck_xZkqqHx_iKnGjAjEiCkKiBeBiMmDiCkCiDgPiBfLiDfHiDiHiDjDiCmM_xHqqkZx_
		// _xZkqqHx_iDhEiDeAiDeDiDiLiCmMiPoKiNiHiCmJjHoBiKePiCpAjEkNjAlGiClHiCoJiBeC_xHqqkZx_
		try
		{
			// _xZkqqHx_iDhHiDgCiDfPiPoOjFpBiCmMjDmHiCnNiNjOiCnNiBeC_xHqqkZx_
			m_headerInf.InStream(unar);
			// _xZkqqHx_iDhHiDgCiDfPiDgAiDeGiDgCiDeOiBeCiDeHiDiJiBfLiBeBiMmDiCkCiPoKiNiHiCmNiDfIiDiNiBfLiPiIjHjNiCnGiBeC_xHqqkZx_
			m_headerInf.RegalCheck(FD_DTP_STANDARD_FORMAT);
			// unar_xZkqqHx_iCpAiNmFiPiJiCnMiCmFjGnPiClHiBeC_xHqqkZx_
			unar.Undo(-1);
			// unar _xZkqqHx_iCmMiDgPiDgCiDhEiDeAiDfEiDeDiDfJiCpAiCePiCmJjAnNjCoIiBeC_xHqqkZx_
			unar.ResetUndoBuffer(0, 0);
			// _xZkqqHx_iMlLiDgPiBfLiDfHiDiHiDjDjFkBiNiHiDfCiDeBiCmMjDmHiCnNiNjOiCnNiPiIjHjNiBeC_xHqqkZx_
			InCurrentCcoreFormat(unar);
		} catch (CFCDDFileException* e)
		//----- _xZkqqHx_iDeHiDiJiBfLiPiIjHjN_xHqqkZx_ -----
		{
			// _xZkqqHx_iDeHiDiJiBfL_xHqqkZx_ _xZkqqHx_iCkK_xHqqkZx_ _xZkqqHx_iDhEiDeAiDeDiDiLiDgPiBfLiDfHiDiHiDjDiIoBiCkCiCmFiCmNiCmIiCkCiPoKiNiHiCmNiDeHiDiJiBfLiCpAiDfIiDiNiBfLiBeC_xHqqkZx_
			if (e->m_dwErrCode != IDS_ERR_FILE_WRONG_VERSION)
				throw e;
			e->Delete();
		}
//----- 06.03.29 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
	}
//----------</NOT EXPORT TO VIEWER>-----------
	// BASE_CLASS::Serialize(ar)_xZkqqHx_iCpAiMmEiCnBiPgPiClFiCmEiCmNiCkCiCkPiCmIiCkCiBeC_xHqqkZx_
	// COleDocument::Serialize _xZkqqHx_iCmJiCkIiCkCiCmE_xHqqkZx_OLE_xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiCmMjDpMiPgPjHmNiCkK_xHqqkZx_
	// _xZkqqHx_iOmAiNhDiClDiCoKiCmEiClFiCnMiCkEiBeC_xHqqkZx_OLE_xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiCmMjDpMiPgPjHmNiCmN_xHqqkZx_ FCObjOle::OutStream _xZkqqHx_iCmF_xHqqkZx_
	// _xZkqqHx_iKpJiCmJiOmAiNhDiNmPiCnNiBeC_xHqqkZx_
} // CFCFoundDoc::Serialize.

/////////////////////////////////////////////////////////////////////////////
// CFCFoundDoc _xZkqqHx_iDeOiDiJiDfIiCmMjAgGjCgG_xHqqkZx_

#ifdef _DEBUG
void CFCFoundDoc::AssertValid() const
{
	BASE_CLASS::AssertValid();
} // CFCFoundDoc::AssertValid.

void CFCFoundDoc::Dump(CDumpContext& dc) const
{
	BASE_CLASS::Dump(dc);
} // CFCFoundDoc::Dump.
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CFCFoundDoc _xZkqqHx_iDfCiDhNiDjDiDgI_xHqqkZx_

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnFilePrintSetup
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhGiDiKiDjDiDfOjAnNjCoIiDfCiDhNiDjDiDgIiCmJiCoGiCmBiCmEiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	98.10.15 Fukushiro M. _xZkqqHx_iDfCiDiBiDjDiDgHiNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OnFilePrintSetup ()
{
//----- 05.06.19 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	CFCPrnPrintSetup dlg;
//	dlg.DoModal();
//----- 05.06.19 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	// ID_FILE_PRINT_SETUP = "_xZkqqHx_iDhGiDiKiDjDiDfOiCmGjHfNjEjCiCmMjAnNjCoI_xHqqkZx_"
	CFCPropertySheet sheet(ID_FILE_PRINT_SETUP);
	CFCPrnPrintSetup prnPrintSetup;
	CFCPrnPageSetup prnPageSetup;
	//----- _xZkqqHx_iDfPiDeDiDeBiDiNiDePiCpAjAnNjCoIiBjFjFfMiOkG_xHqqkZx_ -----
	sheet.AddPage(&prnPrintSetup);
	sheet.AddPage(&prnPageSetup);
	(void)sheet.DoModal();
//----- 05.06.19 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
} // CFCFoundDoc::OnFilePrintSetup.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnFilePageSetup
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDhJiBfLiDfHiDfEiDeDiDfJjAnNjCoIiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.02.03 Fukushiro M. _xZkqqHx_iDfCiDiBiDjDiDgHiNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OnFilePageSetup ()
{
//----- 05.05.09 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	// IDS_MSG_SET_PAGE = "_xZkqqHx_iDhJiBfLiDfHjAnNjCoI_xHqqkZx_"
//	CFCPropertySheet sheet(IDS_MSG_SET_PAGE);
//----- 05.05.09 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	// ID_FILE_PAGE_SETUP = "_xZkqqHx_iDhJiBfLiDfHjAnNjCoI_xHqqkZx_"
	CFCPropertySheet sheet(ID_FILE_PAGE_SETUP);
//----- 05.05.09 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
	CFCPrpPaperSize  paperSize;
	CFCPrpPageSize  pageSize;
// 05.05.16 Fukushiro M. 1_xZkqqHx_iNhDiNoNiPjM_xHqqkZx_ ()
//	CFCPrpPagePlace pagePlace;
	//----- _xZkqqHx_iDfPiDeDiDeBiDiNiDePiCpAjAnNjCoIiBjFjFfMiOkG_xHqqkZx_ -----
	sheet.AddPage(&paperSize);
	sheet.AddPage(&pageSize);
// 05.05.16 Fukushiro M. 1_xZkqqHx_iNhDiNoNiPjM_xHqqkZx_ ()
//	sheet.AddPage(&pagePlace);
	(void)sheet.DoModal();
} // CFCFoundDoc::OnFilePageSetup.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnUpdateFilePageSetup
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDhJiBfLiDfHiCmMjAnNjCoIiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCpAjDmBjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.02.03 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OnUpdateFilePageSetup (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(FFCanBasicOperate() && FFCanEditDocumentEnv());
} // CFCFoundDoc::OnUpdateFilePageSetup.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnFileSheetSetup
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDfGiBfLiDgHiCmMjAnNjCoIiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.02.10 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OnFileSheetSetup ()
{
	CFCDlgSheetSize dlg;
	(void)dlg.DoModal();
} // CFCFoundDoc::OnFileSheetSetup.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnUpdateFileSheetSetup
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDfGiBfLiDgHiCmMjAnNjCoIiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjClCiCnHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCpAjDmBjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.02.10 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OnUpdateFileSheetSetup (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(FFCanBasicOperate() && FFCanEditDocumentEnv());
} // CFCFoundDoc::OnUpdateFileSheetSetup.

//----- 03.06.29 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnFileTmplSave
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iKmCiLkLiBeFiDgAiDgCiDhGiCmMiDfKiBfLiDhFiPiIjHjNiBeCiDhEiDeAiDeDiDiLiDiBiDgKiDiFiBfLiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *			_xZkqqHx_iDhEiDeAiDeDiDiLiDfPiDeDiDeBiDiNiDePiCpAiKeKiCkLiBeBiOhHjCoIiClDiCoKiClNiDhEiDeAiDeDiDiLiCmJiDfKiBfLiDhFiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	98.11.12 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCFoundDoc::OnFileTmplSave ()
//{
//	CFCFldgTemplateSave dlgFile;
//	if (dlgFile.DoModal() == IDOK)
//	{
//// 03.06.26 Fukushiro M. 1_xZkqqHx_iNhDiNoNiPjM_xHqqkZx_ ()
////		CFile file;
//		// Win95_xZkqqHx_iCmM_xHqqkZx_FileDialog_xZkqqHx_iCmNiBeBiKgHjCkDiOhBjGkCiLeMjDpMiClOiCmG_xHqqkZx_3_xZkqqHx_jFlGiOjKiCmMiKgHjCkDiOhB_xHqqkZx_(.mdw)_xZkqqHx_iCpAjCmHiJmBiClHiCoJiBeC_xHqqkZx_
//		// _xZkqqHx_iClBiClBiCmFiCmNiBeBiKgHjCkDiOhBiCpAiIoKjHkFiCmJiNoNiPjMiClFiBeBjGlDiPpAiMiPiCmJ_xHqqkZx_ .mdwt _xZkqqHx_iCpAjFhEiJmBiClHiCoJiBeC_xHqqkZx_
//		WString strTmplPath;
//		::FFSplitFileName(&strTmplPath, NULL, TStrToWStr(dlgFile.GetPathName()));
//		strTmplPath += L".mdwt";
////----- 03.05.24 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ( )-----
////		if (file.Open(WStrToTStr(strTmplPath), CFile::modeCreate | CFile::modeWrite))
////		{
////			FCUndoArchive ar(&file, FD_ARCHIVE_STORE, this);
//////			ar.SetDocument(this);	// for COleClientItem serialize.
////			FCHeaderInf().OutStreamCurrent(ar, FD_DTP_TEMPLATE_FORMAT);
////			// _xZkqqHx_iKmCiLkLiPoOjFpBiCpAiPjBiCkLiPgPiClHiBeC_xHqqkZx_
////			g_pEnv->OutStream(ar, dlgFile.IsSaveChip(), dlgFile.IsSaveChip());
////			// _xZkqqHx_iDgDiBfLiDiLjAnNjCoIiPoOjFpBiCpAiPjBiCkLiPgPiClHiBeC_xHqqkZx_
////			g_pToolManager->OutStream(ar);
////			// _xZkqqHx_iDfGiBfLiDgHiPoOjFpBiCpAiPgPjHmNiBeC_xHqqkZx_
////			SheetManager()->OutStreamTemplate(ar);
////			// _xZkqqHx_iDiMiDfHiDfIiDgHiDiKiPoOjFpBiCpAiPgPjHmNiClHiCoJiBeC_xHqqkZx_
////			g_pReg->OutStreamTemplate(ar);
////			ar.Close();
////			file.Close();
////		}
////----- 03.05.24 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ( )-----
//		ExportFile(strTmplPath, FCHeaderInf::GetStcFileVersionString(), FALSE, dlgFile.GetIsSaveChip());
////----- 03.05.24 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ( )-----
//	}
//} // CFCFoundDoc::OnFileTmplSave.
//----- 03.06.29 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

//////////////////////////////////////////////////////////////////////////
// OLE_xZkqqHx_iDeJiBfLiDgHiDiBiBfLiDfGiDiHiDjDiDfCiDhNiDjDiDgIiPiIjHjNiKnGjAjE_xHqqkZx_
//////////////////////////////////////////////////////////////////////////

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::Open
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	OLE_xZkqqHx_iDeJiBfLiDgHiDiBiBfLiDfGiDiHiDjDiDfCiDhNiDjDiDgIiBeCiDhEiDeAiDeDiDiLiCpAiDeJiBfLiDhGiDjDiClHiCoJjGlNjHnPiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pFileName	:_xZkqqHx_iDeJiBfLiDhGiDjDiClHiCoJiDhEiDeAiDeDiDiLjGlM_xHqqkZx_.
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	98.10.15 Fukushiro M. _xZkqqHx_iDfCiDiBiDjDiDgHiNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::Open (LPCTSTR pFileName)
{
	OnOpenDocument(pFileName);
} // CFCFoundDoc::Open.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::Close
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	OLE_xZkqqHx_iDeJiBfLiDgHiDiBiBfLiDfGiDiHiDjDiDfCiDhNiDjDiDgIiBeCiDhEiDeAiDeDiDiLiCpAiDeOiDiNiBfLiDfJiClHiCoJjGlNjHnPiBeC_xHqqkZx_
 *			_xZkqqHx_jDkPiOjOiCmJiDeBiDhGiDiKiCpAiPeJjHlJiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	98.10.15 Fukushiro M. _xZkqqHx_iDfCiDiBiDjDiDgHiNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::Close ()
{
	SetModifiedFlag(FALSE);
//	AfxOleUnlockApp();
	::PostQuitMessage(0);
} // CFCFoundDoc::Close.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnSaveDocument
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	[_xZkqqHx_iDhEiDeAiDeDiDiL_xHqqkZx_] _xZkqqHx_iDiBiDgKiDiFiBfLiCmM_xHqqkZx_ [_xZkqqHx_iPoDiPjBiCkLjFnLjBlG_xHqqkZx_] _xZkqqHx_iCnMiClNiCmN_xHqqkZx_ [_xZkqqHx_jGlMjBePiCpAjFhEiCkPiCmEjFnLjBlG_xHqqkZx_] 
 *			_xZkqqHx_iDfCiDhNiDjDiDgIiCmMiIoKjFjEiCmGiClFiCmEiDhEiDiMiBfLiDiAiDiPiBfLiDeOiCkKiMmEiCnBiPgPiClFiCnMiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	lpszPathName	:_xZkqqHx_jFnLjBlGjAoGiCmMiDhEiDeAiDeDiDiLiCmMiDhEiDiLiDhAiDfIjGlMiCpAiOhHjCoIiBeC_xHqqkZx_
 *							 OLE_xZkqqHx_iCkJiCoHiLeOjDkOiCmMiPoKiNiHiCmN_xHqqkZx_ NULL_xZkqqHx_iCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiCmMjFnLjBlGiCmJjAkMiMpHiClFiClNiPoKiNiHiCmN_xHqqkZx_ 0 _xZkqqHx_iImIiKePjCgMiCpAjFnEiClFiCnMiClHiBeC_xHqqkZx_
 *			_xZkqqHx_iClLiCoKiImIiKePiCmMiPoKiNiHiCmN_xHqqkZx_ 0 _xZkqqHx_iCpAjFnEiClFiCnMiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.03.10 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *			00.09.17 Fukushiro M. _xZkqqHx_iDgFiDeMiDfIiDgHjFnCiPfHjCiGiCmMiPiIjHjNiCpAjCmHiJmBiBeC_xHqqkZx_
 *************************************************************************/
BOOL CFCFoundDoc::OnSaveDocument (LPCTSTR lpszPathName)
{
	// _xZkqqHx_iDgFiDeMiDfIiDgHjFnCiPfHjCiGiCmNiBeBiDeHiDgGiDeCiDfOiCpAiPeJjHlJiBeC_xHqqkZx_
	if (g_pView != NULL && g_pView->GetCurrentTool()->IsEditingText())
		g_pView->GetCurrentTool()->OnStopToEditText();
	// _xZkqqHx_jFnCiPfHjCiGiCmM_xHqqkZx_OLE_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiCpAjFmCiClGiCoJiBeC_xHqqkZx_
	CloseOleDocuments();

	// _xZkqqHx_iDhEiDeAiDeDiDiLiDhEiDeIiBfLiDhNiDgCiDgHiBeC_xHqqkZx_
	FTDocumentFormat ftdf = FD_DTP_NONE;
	if (lpszPathName != NULL)
	//----- _xZkqqHx_iDhEiDeAiDeDiDiLiCkJiCoHiKeKiCkCiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iDhEiDeAiDeDiDiLiKgHjCkDiOhBiCkJiCoHiDhEiDeIiBfLiDhNiDgCiDgHiCpAiOoGjDlOiBeC_xHqqkZx_
		ftdf = FFFileNameToFormat(TStrToWStr(lpszPathName));
		if (ftdf == FD_DTP_NONE)
		//----- _xZkqqHx_jBmOiJjOiClFiCmEiCkCiCmIiCkCiKgHjCkDiOhBiCmMiPoKiNiH_xHqqkZx_ -----
		{
			// "_xZkqqHx_iDhEiDeAiDeDiDiLiBhF_xHqqkZx_%s_xZkqqHx_iBhGiCmMiKgHjCkDiOhBiCkKiIoBiCkCiCnMiClH_xHqqkZx_"
			::FFErrorBox(IDS_ERR_MSG_WRONG_FILE_EXT,
										(const wchar_t*)TStrToWStr(lpszPathName));
			 return FALSE;
		}
	} else
	//----- OLE_xZkqqHx_jGiEiCnPiNjOiCnNiDeJiDhFiDfHiDeGiDeOiDgHiCkJiCoHiKeKiCkCiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
	{
		ftdf = FD_DTP_STANDARD_FORMAT;	// _xZkqqHx_jCmKiPoNiDhEiDeIiBfLiDhNiDgCiDgHiCmMjFlGiPjBiBeC_xHqqkZx_
	}

//----- 06.03.31 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_jFnLjBlGiClHiCoJiDgPiBfLiDfHiDiHiDjDiCpAjGoCiCkCiNiHiCoNiClJiCoJiPoKiNiHiCmNiBeBjFmPiKlHiOjOiCmMiMhIiNjAiDiBiDgCiDfKiBfLiDfHiCoAjFfMiOkGiBeC_xHqqkZx_
	// _xZkqqHx_iNmFiPiJiCmMiIoKiJpBiCmNjFeLiClIjFfMiOkGiClDiCoKiCoJiCoGiCkEiBeB_xHqqkZx_m_bAskSaveVersion_xZkqqHx_iCmMjFmPiNfIjBePiCmJjAnNjCoIiClHiCoJiBeC_xHqqkZx_
	const BOOL bShowConvWarnning = m_bAskSaveVersion;
//----- 06.03.31 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
	if (m_bAskSaveVersion)
	//----- _xZkqqHx_jFnLjBlGiClHiCoJiDgPiBfLiDfHiDiHiDjDiCpAjGoCiCkCiNiHiCoNiClJiCoJiPoKiNiH_xHqqkZx_ -----
	{
		FCFileConvManager mgr;
		// _xZkqqHx_iDfCiDjDiDgPiBfLiDfOjCoIiLgAiDhEiDeAiDeDiDiLiCkJiCoHiBeBiMlLiNnNiCmMiDgPiBfLiDfHiDiHiDjD_xHqqkZx_"_xZkqqHx_iCkJiCoH_xHqqkZx_"_xZkqqHx_jFmPiKlHiJmCjEfMiCmIiMgAiOkOiCmMiIoKjHjHiCpAiOoGjDlOiBeC_xHqqkZx_
		longSet stNodeId;
		mgr.EnumConvertableFrom(stNodeId, L"*fcore", FCHeaderInf::GetStcFileVersionString());
		WStringSet stVersionString;
		if (ftdf == FD_DTP_STANDARD_FORMAT)
		//----- _xZkqqHx_jCmKiPoNiDhEiDeIiBfLiDhNiDgCiDgHiCmMjFlGiPjB_xHqqkZx_ _xZkqqHx_iCmMiPoKiNiH_xHqqkZx_ -----
		{
			longSet::const_iterator iSt;
			for (iSt = stNodeId.begin(); iSt != stNodeId.end(); iSt++)
			{
				FCConvNode* pNode = mgr.IdToNode(*iSt);
				// _xZkqqHx_jFmPiKlHiJmCjEfMiMgAiOkOiCmMiCkEiClP_xHqqkZx_ ccore_xZkqqHx_iCmMiCnNjBeJjFmKiBeC_xHqqkZx_
				if (pNode->m_wstrType == L"*ccore")
					stVersionString.insert(pNode->m_wstrVersion);
			}
		} else
		//----- _xZkqqHx_iDhMiBfLiDfOiDhFiDiLiDhEiDeIiBfLiDhNiDgCiDgHiCmMjFlGiPjB_xHqqkZx_ _xZkqqHx_iCmMiPoKiNiH_xHqqkZx_ -----
		{
			longSet::const_iterator iSt;
			for (iSt = stNodeId.begin(); iSt != stNodeId.end(); iSt++)
			{
				FCConvNode* pNode = mgr.IdToNode(*iSt);
				// _xZkqqHx_jFmPiKlHiJmCjEfMiMgAiOkOiCmMiCkEiClP_xHqqkZx_ fcore_xZkqqHx_iBgJ_xHqqkZx_Ver1.0, Ver2.0, Ver3.0_xZkqqHx_iImIiKePiBgKiCmMiCnNjBeJjFmKiBeC_xHqqkZx_
				if (pNode->m_wstrType == L"*fcore" &&
					pNode->m_wstrVersion != L"1.0" &&
					pNode->m_wstrVersion != L"2.0" &&
					pNode->m_wstrVersion != L"3.0")
					stVersionString.insert(pNode->m_wstrVersion);
			}
		}
		// _xZkqqHx_iMlLiNnNiCmMiDeBiDhGiDiKiCmMiDgPiBfLiDfHiDiHiDjDiCmNiPjMiCkNiBeC_xHqqkZx_
		stVersionString.erase(FCHeaderInf::GetStcFileVersionString());

		CFCDlgIsSaveAsVersion dlg;
		dlg.SetDocumentVersion(FCHeaderInf::FileVersionToString(m_headerInf.GetFileVersion()));
		dlg.SetConvertableVersions(stVersionString);
		dlg.SetSaveVersion(m_wstrSaveVersion);
		if (dlg.DoModal() != IDOK) return FALSE;
		m_wstrSaveVersion = dlg.GetSaveVersion();
		m_bAskSaveVersion = !dlg.GetIsNeverShowDialog();
	}

	switch (ftdf)
	{
	case FD_DTP_STANDARD_FORMAT:	// _xZkqqHx_jCmKiPoNiDhEiDeIiBfLiDhNiDgCiDgHiCmMjFlGiPjBiBeC_xHqqkZx_
//----- 06.03.29 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	  {
//		if (BASE_CLASS::OnSaveDocument(lpszPathName))
//		{
//			break;
//		} else
//		{
//			return FALSE;
//		}
//	  }
//----- 06.03.29 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
		if (!OnSaveMdrwDocument((lpszPathName != NULL) ? (const wchar_t*)TStrToWStr(lpszPathName) : NULL,
								bShowConvWarnning))
			return FALSE;
		break;
//----- 06.03.29 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
	case FD_DTP_PORTABLE_FORMAT:	// _xZkqqHx_iDhMiBfLiDfOiDhFiDiLiDhEiDeIiBfLiDhNiDgCiDgHiCmMjFlGiPjBiBeC_xHqqkZx_
//----- 06.03.30 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	  {
//		if (m_pFileOpen->m_hFile == CFile::hFileNull ||
//			m_pFileOpen->GetFilePath().CompareNoCase(lpszPathName) != 0)
//		//----- _xZkqqHx_iClBiCoKiCnMiCmFiKeKiCkCiCmEiCkCiClNiDhEiDeAiDeDiDiLiCmGiInJiCmIiCoJiPoKiNiH_xHqqkZx_ -----
//		{
//			CFile* pNewFile = new CFile();
//			if (!pNewFile->Open(lpszPathName,
//								CFile::modeCreate |
//								CFile::modeReadWrite |
//								CFile::shareDenyWrite,
//								NULL))
//			//----- _xZkqqHx_jAfGiClFiCkCiDhEiDeAiDeDiDiLiCmMiDeJiBfLiDhGiDjDiCmJiOlIjEhDiClFiClNiPoKiNiH_xHqqkZx_ -----
//			{
//				delete pNewFile;
//				// _xZkqqHx_iDhEiDeAiDeDiDiLiBhF_xHqqkZx_%s_xZkqqHx_iBhGiCmMjFnLjBlGiCmJiOlIjEhDiClFiCnMiClFiClNiBeC_xHqqkZx_
//				::FFErrorBox(	IDS_ERR_MSG_FAIL_SAVE_FILE,
//								(const wchar_t*)TStrToWStr(lpszPathName));
//				return FALSE;
//			}
//			// _xZkqqHx_iClBiCoKiCnMiCmFiKeKiCkCiCmEiCkCiClNiDhEiDeAiDeDiDiLiCpAjFmCiClGiCmEiBeBjAfGiClFiCkCiDhEiDeAiDeDiDiLiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
//			if (m_pFileOpen->m_hFile != CFile::hFileNull)
//				m_pFileOpen->Close();
//			delete m_pFileOpen;
//			m_pFileOpen = pNewFile;
//		}
//		// _xZkqqHx_iDhEiDeAiDeDiDiLiCpAiLpDiCmJiClHiCoJiBeCiClBiCkEiClFiCmIiCkCiCmGiBeBiDhEiDeAiDeDiDiLiCmM_xHqqkZx_
//		// _xZkqqHx_iMoDiCoLiCmJjHfNiMhGiCmIiDfDiDhOiCkKiOgDiCoJiJmCjEfMjAkLiCkKiCkAiCoJiBeC_xHqqkZx_
//		m_pFileOpen->SetLength(0);
//		OutPortableFormat(*m_pFileOpen, CSize(120, 120), m_wstrSaveVersion, TRUE, TRUE);
//		// _xZkqqHx_iDhEiDeAiDeDiDiLiCpAiDhEiDiJiDgCiDfGiDiFiBeC_xHqqkZx_
//		m_pFileOpen->Flush();
//		// Undo_xZkqqHx_iDfCiDhNiDjDiDgIiDhEiDeAiDeDiDiLiCoAiPjBiCkLiNjOiCnOiClNiCnPiCmJiBeBiDhEiDiJiDgCiDfGiDiFiClHiCoJiBeC_xHqqkZx_
//		// _xZkqqHx_iDgPiDgCiDeOiDeBiDgCiDhGiNlHjFkKiDhEiDeAiDeDiDiLiCpAiNoMjAkMiClFiCmIiCkCiBeC_xHqqkZx_
//		if (!g_pFileServer->FlushAll2())
//			FFThrowMiscException(FFGetDDErrorMessage());
//		// _xZkqqHx_iPeDjAlDiDhEiDiJiDePiCpAiJpAiPjMiBeC_xHqqkZx_
//		SetModifiedFlag(FALSE);
//		break;
//	  }
//----- 06.03.30 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
		if (!OnSaveMdpfDocument(TStrToWStr(lpszPathName), bShowConvWarnning))
			return FALSE;
		break;
//----- 06.03.30 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
	default:	// _xZkqqHx_iDgFiDjDiDhGiDiMiBfLiDgHiDhEiDeIiBfLiDhNiDgCiDgHiCmMjFlGiPjBiBeC_xHqqkZx_
		FFThrowDDFileException(IDS_ERR_FILE_WRONG_FORM, L"");
	}
	if (lpszPathName != NULL)
	//----- _xZkqqHx_iDhEiDeAiDeDiDiLiCkJiCoHiKeKiCkCiCmEiCkCiCoJiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iDiBiDgKiDiFiBfLiBhFiNmFiLnPiOgHiCmBiClNiDhEiDeAiDeDiDiLiBhGiCmJjAnNjCoIiBeC_xHqqkZx_
		WString wstrPathName = TStrToWStr(lpszPathName);
		FCRecentList::Add(FCRecentList::AbbreviatePath(wstrPathName), wstrPathName, wstrPathName);
	}

//----- 06.03.03 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_iPjBiCkLiNjOiCnNjFhDiJmCiCmMiDhEiDeAiDeDiDiLiCpAjFmKjGlMiCmFjFnLjBlGiClFiClNiPoKiNiHiBeBiPjBiCkLiNjOiCnNiJmCiCmJiCmIiCoJiCnHiCkLiBeC_xHqqkZx_
	if (m_bIsReadOnly)
	//----- _xZkqqHx_iPjBiCkLiNjOiCnNjFhDiJmCiCmMiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iPjBiCkLiNjOiCnNiJmCiBeC_xHqqkZx_
		m_bIsReadOnly = FALSE;
		// View _xZkqqHx_iCmJjFfHiPiAiDgDiBfLiDiLiCpAjAnNjCoIiBeC_xHqqkZx_ReadOnly_xZkqqHx_iCmMjAnNjCoIiMoDiCmJjCgMiCkKjFmPiCoNiCoJiClNiCnPiBeC_xHqqkZx_
// 06.12.26 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//		g_pView->PostMessage(WM_COMMAND, ID_TOOL_SELECT, (LPARAM)0);
		g_pView->SwitchCurrentTool(ID_TOOL_SELECT, FALSE);
	}
//----- 06.03.03 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----

//----- 06.05.24 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHjCfAjBmMiCmFjHjIjHhAiClHiCoJiPoKiNiHiCmIiCmHiBeBiDfCiDhNiDjDiDgIiDfBiBfLiDgHiCkKiKeKiCkCiCmEiCkCiCmIiCkCiPoKiNiHiCkKiCkAiCoJiBeC_xHqqkZx_
	// _xZkqqHx_iMlLiNnNiCmMjHjKjHpAiDhEiDeAiDeDiDiLiImKjChFiCpAiDiKiDfKiDgCiDgHiBeC_xHqqkZx_
	if (m_pGate->IsOpened())
		m_fliLastSavedSessionIdx = GetNextSessionIndexAbout();
//----- 06.05.24 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----

	return TRUE;
//----- 03.04.21 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
} // CFCFoundDoc::OnSaveDocument.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnFileExecMolipdraw
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhF_xHqqkZx_Molip Draw_xZkqqHx_iCpAiLeOjDkOiBhGiCkJiCoHiOmAiNhDiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.06.16 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OnFileExecMolipdraw ()
{
	(void)::ExecMolipDraw();
} // CFCFoundDoc::OnFileExecMolipdraw.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnFileExecHistdraw
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhF_xHqqkZx_Historic Draw_xZkqqHx_iCpAiLeOjDkOiBhGiCkJiCoHiOmAiNhDiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.06.16 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OnFileExecHistdraw ()
{
	(void)::ExecMolipDraw(L"-histdraw");
} // CFCFoundDoc::OnFileExecHistdraw.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnFileExecHistviewer
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhF_xHqqkZx_History Viewer_xZkqqHx_iCpAiLeOjDkOiBhGiCkJiCoHiOmAiNhDiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.06.16 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OnFileExecHistviewer ()
{
	(void)::ExecMolipDraw(L"-histview");
} // CFCFoundDoc::OnFileExecHistviewer.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::SetTitle
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiCmMiDfOiDeDiDgHiDiL_xHqqkZx_ (_xZkqqHx_iDhEiDiMiBfLiDiA_xHqqkZx_ _xZkqqHx_iDeFiDeCiDjDiDgIiDeFiCmMiDfOiDeDiDgHiDiL_xHqqkZx_ _xZkqqHx_iDgPiBfLiCmJ_xHqqkZx_
 *			_xZkqqHx_jFfMiOkGiClDiCoKiCoJjFlGiOjKjHpB_xHqqkZx_) _xZkqqHx_iCpAjAnNjCoIiClFiCnMiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	lpszTitle	:_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiCmMiDfOiDeDiDgHiDiLiCpAjAnNjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.06.22 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::SetTitle (LPCTSTR lpszTitle)
{
//----- 03.09.16 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	if (lpszTitle == NULL)
//	//----- _xZkqqHx_iDfOiDeDiDgHiDiLjGlMiCmJ_xHqqkZx_NULL_xZkqqHx_iCkKiOhHjCoIiClDiCoKiClNiPoKiNiH_xHqqkZx_ -----
//	{
//		// _xZkqqHx_iDgGiDhEiDeIiDiLiDgHjFlGiPjBjGlMiCpAiLiBiCnPiCoJiBeC_xHqqkZx_
//		BASE_CLASS::SetTitle(WStrToTStr(FFGetApp()->GetDocString(CDocTemplate::docName)));
//	} else
//	//----- _xZkqqHx_iDfOiDeDiDgHiDiLjGlMiCmJ_xHqqkZx_NULL_xZkqqHx_iImIiKePiCkKiOhHjCoIiClDiCoKiClNiPoKiNiH_xHqqkZx_ -----
//	{
//		BASE_CLASS::SetTitle(lpszTitle);
//	}
//----- 03.09.16 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	WString wstrWinTitle;
	if (lpszTitle == NULL)
	//----- _xZkqqHx_iDfOiDeDiDgHiDiLjGlMiCmJ_xHqqkZx_NULL_xZkqqHx_iCkKiOhHjCoIiClDiCoKiClNiPoKiNiH_xHqqkZx_ -----
	{
		wstrWinTitle = FFGetApp()->GetDocString(CDocTemplate::docName);
	} else
	//----- _xZkqqHx_iDfOiDeDiDgHiDiLjGlMiCmJ_xHqqkZx_NULL_xZkqqHx_iImIiKePiCkKiOhHjCoIiClDiCoKiClNiPoKiNiH_xHqqkZx_ -----
	{
		wstrWinTitle = TStrToWStr(lpszTitle);
	}
	// _xZkqqHx_iDgGiDhEiDeIiDiLiDgHjFlGiPjBjGlMiCpAiLiBiCnPiCoJiBeC_xHqqkZx_
	BASE_CLASS::SetTitle(WStrToTStr(wstrWinTitle));
	// _xZkqqHx_iLeOjDkOjCiGiCmMiDeFiDeCiDjDiDgIiDeFiCmGiDeFiDeCiDjDiDgIiDeFiDfOiDeDiDgHiDiLiCpAjAnNjCoIiBeC_xHqqkZx_
	g_pReg->SetActiveWinAndInfo(FFGetMainWnd()->GetSafeHwnd(), L"WinTitle", wstrWinTitle);
//----- 03.09.16 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
} // CFCFoundDoc::SetTitle.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnViewObjLabelShowMode
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDiJiDhIiDiLjFjEjFgJjFfMiOkGiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.04.22 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OnViewObjLabelShowMode ()
{
	// _xZkqqHx_iDiJiDhIiDiLjFjEjFgJjFfMiOkGiDiCiBfLiDgIiCpAjFmPiNfIiBeC_xHqqkZx_
	// SetIsShowObjLabel_xZkqqHx_iCmNiBeBiDfCiDhNiDjDiDgIiCmJiClFiCmEiCmNiCmIiCoHiCmIiCkCiBeC_xHqqkZx_Undo_xZkqqHx_iDgPiDgCiDhEiDeAiCkK_xHqqkZx_
	// _xZkqqHx_iInDjAhNiClFiCmIiCkCiPoKiPiKiCmFjAnIjCgGiClDiCoKiCmEiClFiCnMiCkEiClNiCnPiBeC_xHqqkZx_
	g_pReg->SetIsShowObjLabel(!g_pReg->GetIsShowObjLabel());
	// _xZkqqHx_iPeDjAlDiDhEiDiJiDePiCpAjAnNjCoIiBeC_xHqqkZx_
	SetModifiedFlag(TRUE);
	// _xZkqqHx_jFmPiNfIiCpAiDhCiDiFiBfLiCmJjElNiJgGiClHiCoJiBeC_xHqqkZx_
	g_pView->UpdateShowObjLabel();
} // CFCFoundDoc::OnViewObjLabelShowMode.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnUpdateViewObjLabelShowMode
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDiJiDhIiDiLjFjEjFgJjFfMiOkGiBhGiCmMiPpDjBnEiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.04.22 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OnUpdateViewObjLabelShowMode (CCmdUI* pCmdUI)
{
	pCmdUI->SetCheck(g_pReg->GetIsShowObjLabel());
	pCmdUI->Enable(GetIsDocumentOpened() && FFCanBasicOperate());
} // CFCFoundDoc::OnUpdateViewObjLabelShowMode.

//----- 05.08.19 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnEditCopyResolution1
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDfCiDhDiBfLiCmMjAlIjDhI_xHqqkZx_1_xZkqqHx_jEhLiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.05.16 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCFoundDoc::OnEditCopyResolution1 ()
//{
//	if (FFCanEditDocument()) SetModifiedFlag(TRUE);
////----- 01.08.02 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
////	g_pReg->SetCopyResolution(1);
////----- 01.08.02 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
//	// _xZkqqHx_iLeMjIfOiDfKiDgCiDfGiDiHiDjDiKeKiOgOiBeC_xHqqkZx_
//	SessionBegin();
//	// _xZkqqHx_iDfCiDhNiDjDiDgIiCmMiLeMjIfOiBeC_xHqqkZx_
//	CmdSetCopyResolution(1);
//	// _xZkqqHx_iLeMjIfOiDfKiDgCiDfGiDiHiDjDiCmMiPeJjHlJiBeC_xHqqkZx_
//	SessionEnd();
////----- 01.08.02 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
//} // CFCFoundDoc::OnEditCopyResolution1.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnUpdateEditCopyResolution1
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDfCiDhDiBfLiCmMjAlIjDhI_xHqqkZx_1_xZkqqHx_jEhLiBhGiCmMiPpDjBnEiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.05.16 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCFoundDoc::OnUpdateEditCopyResolution1 (CCmdUI* pCmdUI)
//{
//	pCmdUI->Enable(FFCanBasicOperate() && GetIsDocumentOpened() && !IsOleDocumentsOpened() &&
//					!g_pView->GetCurrentTool()->IsEditingText());
//	pCmdUI->SetCheck(g_pReg->GetCopyResolution() == 1);
//} // CFCFoundDoc::OnUpdateEditCopyResolution1.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnEditCopyResolution2
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDfCiDhDiBfLiCmMjAlIjDhI_xHqqkZx_2_xZkqqHx_jEhLiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.05.16 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCFoundDoc::OnEditCopyResolution2 ()
//{
//	if (FFCanEditDocument()) SetModifiedFlag(TRUE);
////----- 01.08.02 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
////	g_pReg->SetCopyResolution(2);
////----- 01.08.02 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
//	// _xZkqqHx_iLeMjIfOiDfKiDgCiDfGiDiHiDjDiKeKiOgOiBeC_xHqqkZx_
//	SessionBegin();
//	// _xZkqqHx_iDfCiDhNiDjDiDgIiCmMiLeMjIfOiBeC_xHqqkZx_
//	CmdSetCopyResolution(2);
//	// _xZkqqHx_iLeMjIfOiDfKiDgCiDfGiDiHiDjDiCmMiPeJjHlJiBeC_xHqqkZx_
//	SessionEnd();
////----- 01.08.02 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
//} // CFCFoundDoc::OnEditCopyResolution2.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnUpdateEditCopyResolution2
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDfCiDhDiBfLiCmMjAlIjDhI_xHqqkZx_2_xZkqqHx_jEhLiBhGiCmMiPpDjBnEiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.05.16 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCFoundDoc::OnUpdateEditCopyResolution2 (CCmdUI* pCmdUI)
//{
//	pCmdUI->Enable(FFCanBasicOperate() && GetIsDocumentOpened() && !IsOleDocumentsOpened() &&
//					!g_pView->GetCurrentTool()->IsEditingText());
//	pCmdUI->SetCheck(g_pReg->GetCopyResolution() == 2);
//} // CFCFoundDoc::OnUpdateEditCopyResolution2.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnEditCopyResolution4
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDfCiDhDiBfLiCmMjAlIjDhI_xHqqkZx_4_xZkqqHx_jEhLiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.05.16 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCFoundDoc::OnEditCopyResolution4 ()
//{
//	if (FFCanEditDocument()) SetModifiedFlag(TRUE);
////----- 01.08.02 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
////	g_pReg->SetCopyResolution(4);
////----- 01.08.02 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
//	// _xZkqqHx_iLeMjIfOiDfKiDgCiDfGiDiHiDjDiKeKiOgOiBeC_xHqqkZx_
//	SessionBegin();
//	// _xZkqqHx_iDfCiDhNiDjDiDgIiCmMiLeMjIfOiBeC_xHqqkZx_
//	CmdSetCopyResolution(4);
//	// _xZkqqHx_iLeMjIfOiDfKiDgCiDfGiDiHiDjDiCmMiPeJjHlJiBeC_xHqqkZx_
//	SessionEnd();
////----- 01.08.02 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
//} // CFCFoundDoc::OnEditCopyResolution4.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnUpdateEditCopyResolution4
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDfCiDhDiBfLiCmMjAlIjDhI_xHqqkZx_4_xZkqqHx_jEhLiBhGiCmMiPpDjBnEiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.05.16 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCFoundDoc::OnUpdateEditCopyResolution4 (CCmdUI* pCmdUI)
//{
//	pCmdUI->Enable(FFCanBasicOperate() && GetIsDocumentOpened() && !IsOleDocumentsOpened() &&
//					!g_pView->GetCurrentTool()->IsEditingText());
//	pCmdUI->SetCheck(g_pReg->GetCopyResolution() == 4);
//} // CFCFoundDoc::OnUpdateEditCopyResolution4.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnEditCopyResolution6
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDfCiDhDiBfLiCmMjAlIjDhI_xHqqkZx_6_xZkqqHx_jEhLiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.05.16 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCFoundDoc::OnEditCopyResolution6 ()
//{
//	if (FFCanEditDocument()) SetModifiedFlag(TRUE);
////----- 01.08.02 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
////	g_pReg->SetCopyResolution(6);
////----- 01.08.02 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
//	// _xZkqqHx_iLeMjIfOiDfKiDgCiDfGiDiHiDjDiKeKiOgOiBeC_xHqqkZx_
//	SessionBegin();
//	// _xZkqqHx_iDfCiDhNiDjDiDgIiCmMiLeMjIfOiBeC_xHqqkZx_
//	CmdSetCopyResolution(6);
//	// _xZkqqHx_iLeMjIfOiDfKiDgCiDfGiDiHiDjDiCmMiPeJjHlJiBeC_xHqqkZx_
//	SessionEnd();
////----- 01.08.02 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
//} // CFCFoundDoc::OnEditCopyResolution6.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnUpdateEditCopyResolution6
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDfCiDhDiBfLiCmMjAlIjDhI_xHqqkZx_6_xZkqqHx_jEhLiBhGiCmMiPpDjBnEiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.05.16 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCFoundDoc::OnUpdateEditCopyResolution6 (CCmdUI* pCmdUI)
//{
//	pCmdUI->Enable(FFCanBasicOperate() && GetIsDocumentOpened() && !IsOleDocumentsOpened() &&
//					!g_pView->GetCurrentTool()->IsEditingText());
//	pCmdUI->SetCheck(g_pReg->GetCopyResolution() == 6);
//} // CFCFoundDoc::OnUpdateEditCopyResolution6.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnEditCopyResolution8
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDfCiDhDiBfLiCmMjAlIjDhI_xHqqkZx_8_xZkqqHx_jEhLiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.05.16 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCFoundDoc::OnEditCopyResolution8 ()
//{
//	if (FFCanEditDocument()) SetModifiedFlag(TRUE);
////----- 01.08.02 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
////	g_pReg->SetCopyResolution(8);
////----- 01.08.02 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
//	// _xZkqqHx_iLeMjIfOiDfKiDgCiDfGiDiHiDjDiKeKiOgOiBeC_xHqqkZx_
//	SessionBegin();
//	// _xZkqqHx_iDfCiDhNiDjDiDgIiCmMiLeMjIfOiBeC_xHqqkZx_
//	CmdSetCopyResolution(8);
//	// _xZkqqHx_iLeMjIfOiDfKiDgCiDfGiDiHiDjDiCmMiPeJjHlJiBeC_xHqqkZx_
//	SessionEnd();
////----- 01.08.02 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
//} // CFCFoundDoc::OnEditCopyResolution8.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnUpdateEditCopyResolution8
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDfCiDhDiBfLiCmMjAlIjDhI_xHqqkZx_8_xZkqqHx_jEhLiBhGiCmMiPpDjBnEiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.05.16 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCFoundDoc::OnUpdateEditCopyResolution8 (CCmdUI* pCmdUI)
//{
//	pCmdUI->Enable(FFCanBasicOperate() && GetIsDocumentOpened() && !IsOleDocumentsOpened() &&
//					!g_pView->GetCurrentTool()->IsEditingText());
//	pCmdUI->SetCheck(g_pReg->GetCopyResolution() == 8);
//} // CFCFoundDoc::OnUpdateEditCopyResolution8.
//----- 05.08.19 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnFileSaveSelectAs
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjBeJjBpAjFjEjFgJiCmMiJoGjBjMiCpAiDeHiDeOiDfIiDhMiBfLiDgHiBhGiCkJiCoHiOmAiNhDiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.05.18 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OnFileSaveSelectAs ()
{
//----- 06.03.17 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_jBePiJpBiDeHiDeOiDfIiDhMiBfLiDgHiClDiCoKiClNiDeDiDiBiBfLiDfHjFnLjBlGiDhEiDeAiDeDiDiLiCmMiKgHjCkDiOhBiBeC_xHqqkZx_
	// _xZkqqHx_iDgGiDhEiDeIiDiLiDgHiCmN_xHqqkZx_ .wmf_xZkqqHx_iBeC_xHqqkZx_
	if (m_wstrImageFormatExt.IsEmpty())
		m_wstrImageFormatExt = L".wmf";
	WString wstrInitFileName = FFGetApp()->GetDocString(CDocTemplate::docName) + m_wstrImageFormatExt;
//----- 06.03.17 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----

	WString strFormat;
	for (DWORD dwId = 0; dwId != GetImageExportFormatCount(); dwId++)
	{
		const FCExportFormatRec& rec = GetImageExportFormat(dwId);
		strFormat += rec.strName.c_str();
		strFormat += L"|";
		strFormat += L"*";
		strFormat += rec.strExt.c_str();
		strFormat += L"|";
	}
	strFormat += L"|";
//----- 05.10.12 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	CFCFldgSaveSelectAs dlgFile(FALSE, NULL, _T("Untitled.wmf"),
//								OFN_HIDEREADONLY|OFN_NOCHANGEDIR, WStrToTStr(strFormat));
//----- 05.10.12 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	FCFdbSaveImageAs dlgFile(	FALSE,
								NULL,
// 06.03.17 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//								L"Untitled.wmf",
								wstrInitFileName,
								OFN_HIDEREADONLY|OFN_NOCHANGEDIR,
								strFormat);
//----- 05.10.12 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
	// _xZkqqHx_iDhEiDeAiDeDiDiLiDfPiDeDiDeBiDiNiDePiCpAjFfMiOkGiBeC_xHqqkZx_
	if (dlgFile.DoModal() == IDCANCEL) return;

	//----- _xZkqqHx_iDhNiBfLiDfHiDjDiCpAiOoGjDlO_xHqqkZx_ -----
	mmetol mmMarginLeft;
	mmetol mmMarginTop;
	mmetol mmMarginRight;
	mmetol mmMarginBottom;
	dlgFile.GetSaveMargin(mmMarginLeft, mmMarginTop, mmMarginRight, mmMarginBottom);

	//----- _xZkqqHx_iDhEiDeAiDeDiDiLiKgHjCkDiOhBiCpAiDgAiDeGiDgCiDeO_xHqqkZx_ -----
	WString strPathName = dlgFile.GetPathName();
	const wchar_t* wcpPathName = strPathName;
// 06.03.20 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//	int iFormatId = dlgFile.m_ofn.nFilterIndex - 1;
	DWORD dwFormatId = dlgFile.m_ofn.nFilterIndex - 1;
	int iNameLen = strPathName.length() - GetImageExportFormat(dwFormatId).strExt.length();
	if (iNameLen <= 0 ||
		GetImageExportFormat(dwFormatId).strExt != wcpPathName + iNameLen)
	//----- _xZkqqHx_iDhEiDeAiDeDiDiLiKgHjCkDiOhBiCkKjBeJjBpAjCiGiDhEiDeIiBfLiDhNiDgCiDgHiCmMiKgHjCkDiOhBiCmGiInJiCmIiCoJiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_jBeJjBpAiClDiCoKiClNiDhEiDeIiBfLiDhNiDgCiDgHiCmMiKgHjCkDiOhBiCpAiMoDiCoLiCmJjCmHiJmBiClHiCoJiBeC_xHqqkZx_
		strPathName += GetImageExportFormat(dwFormatId).strExt.c_str();
	}
//----- 03.11.24 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	// _xZkqqHx_iKpJjBlGiDhEiDeAiDeDiDiLiCkKjBlGiNnNiClHiCoJiPoKiNiHiCmNjGoCiCkCiNiHiCoNiClJiBeC_xHqqkZx_
//	if (FFIsFileExist(strPathName))
//	{
//		// IDS_MSG_FILE_EXIST_IS_OVERWRITE = _xZkqqHx_iOhHjCoIiCmMiDhEiDeAiDeDiDiLiCmNiKpJiCmJjBlGiNnNiClFiCmEiCkCiCnMiClHiBeCiPoDiPjBiCkLiClFiCnMiClHiCkJiBeI_xHqqkZx_
//		if (FFMessageBox(IDS_MSG_FILE_EXIST_IS_OVERWRITE, 0, MB_YESNOCANCEL) != IDYES)
//			return;
//	}
//----- 03.11.24 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	// _xZkqqHx_iKpJjBlGiDhEiDeAiDeDiDiLiCpAiDgAiDeGiDgCiDeOiBeC_xHqqkZx_
	switch (FFIsThereFile(strPathName))
	{
	case FD_FILE_NOT_EXIST:			// _xZkqqHx_iDhEiDeAiDeDiDiLiCkKjBlGiNnNiClFiCmIiCkCiBeC_xHqqkZx_
		break;
	case FD_FILE_32:		// 32_xZkqqHx_iDhCiDgCiDgHiDhEiDeAiDeDiDiLiBgJjCmKiPoNiDhEiDeAiDeDiDiLiBgKiCkKjBlGiNnNiClHiCoJiBeC_xHqqkZx_
		// IDS_MSG_FILE_EXIST_IS_OVERWRITE = _xZkqqHx_iOhHjCoIiCmMiDhEiDeAiDeDiDiLiCmNiKpJiCmJjBlGiNnNiClFiCmEiCkCiCnMiClHiBeCiPoDiPjBiCkLiClFiCnMiClHiCkJiBeI_xHqqkZx_
		if (FFMessageBox(IDS_MSG_FILE_EXIST_IS_OVERWRITE, 0, MB_YESNOCANCEL) != IDYES)
			return;
		break;
	default:
		// case FD_FILE_DIRECTORY:	// _xZkqqHx_iDgGiDeCiDiMiDeOiDgHiDiKiCkKjBlGiNnNiClHiCoJiBeC_xHqqkZx_
		// _xZkqqHx_iDhEiDeAiDeDiDiLiMgAiOkOiCkKiIoBiCkCiCnMiClHiBeC_xHqqkZx_
		FFThrowDDFileException(IDS_ERR_FILE_WRONG_FORM, strPathName);
		break;
	}
//----- 03.11.24 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
	SaveSelectedObjectImage(dwFormatId,
							strPathName,
							mmMarginLeft, mmMarginTop,
							mmMarginRight, mmMarginBottom);
//----- 06.03.17 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_jBePiJpBiDeHiDeOiDfIiDhMiBfLiDgHiClDiCoKiClNiDeDiDiBiBfLiDfHjFnLjBlGiDhEiDeAiDeDiDiLiCmMiKgHjCkDiOhBiBeC_xHqqkZx_
	m_wstrImageFormatExt = GetImageExportFormat(dwFormatId).strExt;
//----- 06.03.17 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
} // CFCFoundDoc::OnFileSaveSelectAs.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnUpdateFileSaveSelectAs
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjBeJjBpAjFjEjFgJiCmMiJoGjBjMiCpAiDeHiDeOiDfIiDhMiBfLiDgHiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.05.18 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OnUpdateFileSaveSelectAs (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(FFCanBasicOperate() && !g_pView->SelectObjVector().empty());
} // CFCFoundDoc::OnUpdateFileSaveSelectAs.

//----- 05.07.29 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnFileLoadInsert
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjBlMiMgAiOkOiCmMiDhEiDeAiDeDiDiLiCpAjDmHiNjOiCnNiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_jBlMiMgAiOkOiCmMiDhEiDeAiDeDiDiLjDmHiNjOiCnNiPiIjHjNiCmNiBeBiOjPiCmMiDfIiDgFiDgCiDhGiCmFiNhDiCkEiBeC_xHqqkZx_
// *			1.	_xZkqqHx_iDhEiDeIiBfLiDhNiDgCiDgHjBeJjBpAiBeC_xHqqkZx_
// *				_xZkqqHx_iCnMiClIiBeBiDhEiDeIiBfLiDhNiDgCiDgHiCpAjBeJjBpAiClHiCoJiClNiCnPiCmMiDfPiDeDiDeBiDiNiDePiCpAjFfMiOkGiBeBiDiGiBfLiDfFiCmJ_xHqqkZx_
// *				_xZkqqHx_iDhEiDeIiBfLiDhNiDgCiDgHiCpAjBeJiCmOiClJiCoJiBeCiDhEiDeIiBfLiDhNiDgCiDgHiClCiCmGiCmJiBeBjFkBjAjEiDhEiDeAiDeDiDiL_xHqqkZx_OK/NG
// *				_xZkqqHx_iCkKiCkAiCoJiClNiCnPiBeBiClBiCmMiPiIjHjNiCkKjFeLjHhGiBeC_xHqqkZx_
// *			2.	_xZkqqHx_iDhEiDeAiDeDiDiLjBeJjBpAiBeC_xHqqkZx_
// *				_xZkqqHx_iDhEiDeAiDeDiDiLiDfPiDeDiDeBiDiNiDePiCpAjFfMiOkGiBeBiDiGiBfLiDfFiCmJiDhEiDeAiDeDiDiLiCpAjBeJiCmOiClJiCoJiBeC_xHqqkZx_
// *				_xZkqqHx_iDhEiDeAiDeDiDiLiDfPiDeDiDeBiDiNiDePiCmJiCmNiBeBiDhEiDeIiBfLiDhNiDgCiDgHiCmMjFkBjAjEiDhEiDeAiDeDiDiL_xHqqkZx_OK/NG_xZkqqHx_iCmJiPfNiCmBiCmEiBeB_xHqqkZx_
// *				_xZkqqHx_jFkBjAjEiDhEiDeAiDeDiDiLiCmMjAnNjCoIiCpAiNhDiCkEiBeC_xHqqkZx_
// *			3.	_xZkqqHx_iDhGiDiJiDePiDeDiDjDiMmEiCnBiPgPiClFiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.09.16 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCFoundDoc::OnFileLoadInsert ()
//{
//	//----- _xZkqqHx_iDhEiDeIiBfLiDhNiDgCiDgHjBeJjBpAiDfPiDeDiDeBiDiNiDePiCmJiBeBiDhEiDeIiBfLiDhNiDgCiDgHiIoKjHjHiCpAjAnNjCoI_xHqqkZx_ -----
//	CFCDlgPreFileImport dlg;
//	vector<FCImportFormatRec>::const_iterator iRec;
//	for (iRec = m_vStrImportFormat.begin(); iRec != m_vStrImportFormat.end(); iRec++)
//		dlg.AppendFormat((*iRec).strName.c_str());
//	// _xZkqqHx_iDfPiDeDiDeBiDiNiDePjFfMiOkGiBeC_xHqqkZx_
//	if (dlg.DoModal() != IDOK) return;
//
//	int iFormatId = dlg.GetCurrentFormat();
//
//	//----- _xZkqqHx_iDhEiDeAiDeDiDiLiDfPiDeDiDeBiDiNiDePiNoMjAkM_xHqqkZx_ -----
//	// _xZkqqHx_iDhEiDeAiDeDiDiLiCmMiDfGiDjDiDePiDiLiBeFiDhNiDiLiDgAjBeJjBpAiCmJiCoGiCoJiBeBiDhEiDiJiDePiCmMiNoMiCoIjFkKiCkPiBeC_xHqqkZx_
//	DWORD dwFlags = 0;
//	if (m_vStrImportFormat[iFormatId].lIsSingleFile)
//		dwFlags = OFN_HIDEREADONLY|OFN_FILEMUSTEXIST|OFN_NOCHANGEDIR;
//	else
//		dwFlags = OFN_HIDEREADONLY|OFN_FILEMUSTEXIST|OFN_NOCHANGEDIR|OFN_ALLOWMULTISELECT;
//	WString strFormat;
//	strFormat += m_vStrImportFormat[iFormatId].strName.c_str();
//	strFormat += L"|*";
//	strFormat += m_vStrImportFormat[iFormatId].strExt.c_str();
//	strFormat += L"||";
////----- 03.04.19 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
////	CFileDialog dlgFile(TRUE, WStrToTStr(m_vStrImportFormat[iFormatId].strExt.c_str()), NULL,
////						dwFlags, WStrToTStr(strFormat));
////----- 03.04.19 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
//	CFCFldgBase dlgFile(TRUE, NULL, NULL,
//						dwFlags, WStrToTStr(strFormat));
////----- 03.04.19 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
////----- 03.06.08 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ( )-----
////	// _xZkqqHx_iDfOiDeDiDgHiDiLjGlMiCmMjAnNjCoIiBeC_xHqqkZx_
////	dlgFile.m_ofn.lpstrTitle = FFLoadString(IDD_DLG_FILE_IMPORT);
////----- 03.06.08 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ( )-----
//	// _xZkqqHx_iDfOiDeDiDgHiDiLjGlMiCmMjAnNjCoIiBeC_xHqqkZx_
//	// IDD_DLG_FILE_IMPORT = "_xZkqqHx_jBlMiMgAiOkOiCmMiDhEiDeAiDeDiDiLiCpAjDmHiNjOiCnN_xHqqkZx_"
//	CString strDlgTitle = FFLoadString(IDD_DLG_FILE_IMPORT);
//	dlgFile.m_ofn.lpstrTitle = strDlgTitle;
////----- 03.06.08 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ( )-----
//	// _xZkqqHx_iDhHiDiLiDhGiDhLiDfOiDjDiCpAjFfMiOkGiBeC_xHqqkZx_
//	dlgFile.m_ofn.Flags |= OFN_SHOWHELP;
//	// _xZkqqHx_iPpDiLlFiImLjBlGiDhHiDiLiDhGiCmM_xHqqkZx_ID_xZkqqHx_iCpAjAnNjCoIiBeC_xHqqkZx_
//	dlgFile.SetHelpID(IDD_DLG_FILE_IMPORT);
//
//	// _xZkqqHx_iDhEiDeAiDeDiDiLiDfPiDeDiDeBiDiNiDePiCpAjFfMiOkGiBeC_xHqqkZx_
//	if (dlgFile.DoModal() != IDOK) return;
//
//	// _xZkqqHx_iDhEiDeAiDeDiDiLiIoKjHjHiCpAiNoMjAkMiBeC_xHqqkZx_
//	WStringVector vPathList;
//	POSITION posPathName = dlgFile.GetStartPosition();
//	while (posPathName != NULL)
//		vPathList.push_back((const wchar_t*)TStrToWStr(dlgFile.GetNextPathName(posPathName)));
//	switch (iFormatId)
//	{
//	case 0:	// wmf.
//	case 1:	// emf.
//		OnFileImportMetafile(vPathList);
//		break;
//		default:
//			FCExport::OnFileImport(iFormatId, vPathList);
//	}
//} // CFCFoundDoc::OnFileLoadInsert.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnUpdateFileLoadInsert
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjBlMiMgAiOkOiCmMiDhEiDeAiDeDiDiLiCpAjDmHiNjOiCnNiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.09.16 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCFoundDoc::OnUpdateFileLoadInsert (CCmdUI* pCmdUI)
//{
//	pCmdUI->Enable(FFCanBasicOperate() && FFCanCreateObject());
//} // CFCFoundDoc::OnUpdateFileLoadInsert.
//----- 05.07.29 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnOptionIsGridVisible
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iBhFiDePiDiKiDgCiDgIiCmMjFfMiOkGiBhGiDiBiDgKiDiFiBfLiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.11.12 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OnOptionIsGridVisible ()
{
	//----- _xZkqqHx_iKgFiOoNjBkOjAkLiCmMjAnNjCoI_xHqqkZx_ -----
	if (IsReadOnly())
	//----- _xZkqqHx_iPjBiCkLiNjOiCnNjFhDiJmCiCmMiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iPoOjFpBiCmMjAnNjCoIiBeC_xHqqkZx_
		g_pReg->SetIsGridVisible(!g_pReg->GetIsGridVisible());
	} else
	//----- _xZkqqHx_iPjBiCkLiNjOiCnNiJmCiCmMiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iLeMjIfOiDfKiDgCiDfGiDiHiDjDiKeKiOgOiBeC_xHqqkZx_
		SessionBegin();
		// _xZkqqHx_iDfCiDhNiDjDiDgIiCmMiLeMjIfOiBeC_xHqqkZx_
		CmdSetIsGridVisible(!g_pReg->GetIsGridVisible());
		// _xZkqqHx_iLeMjIfOiDfKiDgCiDfGiDiHiDjDiCmMiPeJjHlJiBeC_xHqqkZx_
		SessionEnd();
	}
	// _xZkqqHx_jBfDiJoGjGmKiCpAiNfIjAfGjHmMiIoGiCmJjCmHiJmBiClFiBeBiNmEjFgAiJoGiBeC_xHqqkZx_
	g_pView->SetClientToRgn();
	g_pView->SendRgnRedraw();
} // CFCFoundDoc::OnOptionIsGridVisible.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnUpdateOptionIsGridVisible
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iBhFiDePiDiKiDgCiDgIiCmMjFfMiOkGiBhGiDiBiDgKiDiFiBfLiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCpAjDmBjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.11.12 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OnUpdateOptionIsGridVisible (CCmdUI* pCmdUI)
{
// 05.10.22 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//	pCmdUI->Enable(FFCanBasicOperate() && GetIsDocumentOpened());
	pCmdUI->Enable(FFCanEditReadOnlyDocumentEnv());
	pCmdUI->SetCheck(g_pReg->GetIsGridVisible());
} // CFCFoundDoc::OnUpdateOptionIsGridVisible.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnOptionIsPageVisible
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iBhFiDhJiBfLiDfHiLkLiKeFjApMiCmMjFfMiOkGiBhGiDiBiDgKiDiFiBfLiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.11.12 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OnOptionIsPageVisible ()
{
	if (IsReadOnly())
	//----- _xZkqqHx_iPjBiCkLiNjOiCnNjFhDiJmCiCmMiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iPoOjFpBiCmMjAnNjCoIiBeC_xHqqkZx_
		g_pReg->SetIsPageVisible(!g_pReg->GetIsPageVisible());
	} else
	//----- _xZkqqHx_iPjBiCkLiNjOiCnNiJmCiCmMiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iLeMjIfOiDfKiDgCiDfGiDiHiDjDiKeKiOgOiBeC_xHqqkZx_
		SessionBegin();
		// _xZkqqHx_iDfCiDhNiDjDiDgIiCmMiLeMjIfOiBeC_xHqqkZx_
		CmdSetIsPageVisible(!g_pReg->GetIsPageVisible());
		// _xZkqqHx_iLeMjIfOiDfKiDgCiDfGiDiHiDjDiCmMiPeJjHlJiBeC_xHqqkZx_
		SessionEnd();
	}
	// _xZkqqHx_jBfDiJoGjGmKiCpAiNfIjAfGjHmMiIoGiCmJjCmHiJmBiClFiBeBiNmEjFgAiJoGiBeC_xHqqkZx_
//----- 05.08.24 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	g_pView->SetClientToRgn();
//	g_pView->SendRgnRedraw();
//----- 05.08.24 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	g_pView->SendRgnRedraw(TRUE);
//----- 05.08.24 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
} // CFCFoundDoc::OnOptionIsPageVisible.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnUpdateOptionIsPageVisible
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iBhFiDhJiBfLiDfHiLkLiKeFjApMiCmMjFfMiOkGiBhGiDiBiDgKiDiFiBfLiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCpAjDmBjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.11.12 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OnUpdateOptionIsPageVisible (CCmdUI* pCmdUI)
{
// 05.10.22 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//	pCmdUI->Enable(FFCanBasicOperate() && GetIsDocumentOpened());
	pCmdUI->Enable(FFCanEditReadOnlyDocumentEnv());
	pCmdUI->SetCheck(g_pReg->GetIsPageVisible());
} // CFCFoundDoc::OnUpdateOptionIsPageVisible.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnOptionIsSnapEffective
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfIiDgJiDgCiDhGjHeMiMpIiBeFjGlDiMpIiDiBiDgKiDiFiBfLiCkJiCoHiOmAiNhDiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.11.12 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OnOptionIsSnapEffective ()
{
//----- 05.10.22 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	// _xZkqqHx_iLeMjIfOiDfKiDgCiDfGiDiHiDjDiKeKiOgOiBeC_xHqqkZx_
//	SessionBegin();
//	// _xZkqqHx_iDfCiDhNiDjDiDgIiCmMiLeMjIfOiBeC_xHqqkZx_
//	CmdSetIsSnap(!g_pReg->GetIsSnap());
//	// _xZkqqHx_iLeMjIfOiDfKiDgCiDfGiDiHiDjDiCmMiPeJjHlJiBeC_xHqqkZx_
//	SessionEnd();
//----- 05.10.22 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	if (IsReadOnly())
	//----- _xZkqqHx_iPjBiCkLiNjOiCnNjFhDiJmCiCmMiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iPoOjFpBiCmMjAnNjCoIiBeC_xHqqkZx_
		g_pReg->SetIsSnap(!g_pReg->GetIsSnap());
	} else
	//----- _xZkqqHx_iPjBiCkLiNjOiCnNiJmCiCmMiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iLeMjIfOiDfKiDgCiDfGiDiHiDjDiKeKiOgOiBeC_xHqqkZx_
		SessionBegin();
		// _xZkqqHx_iDfCiDhNiDjDiDgIiCmMiLeMjIfOiBeC_xHqqkZx_
		CmdSetIsSnap(!g_pReg->GetIsSnap());
		// _xZkqqHx_iLeMjIfOiDfKiDgCiDfGiDiHiDjDiCmMiPeJjHlJiBeC_xHqqkZx_
		SessionEnd();
	}
//----- 05.10.22 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
} // CFCFoundDoc::OnOptionIsSnapEffective.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnUpdateOptionIsSnapEffective
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfIiDgJiDgCiDhGjHeMiMpIiBeFjGlDiMpIiDiBiDgKiDiFiBfLiCmMjFfMiOkGiPpDjBnEiCpAjFmPiNfIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCmMjFfMiOkGiPpDjBnEiCpAjAnNjCoIiClHiCoJiClNiCnPiCmMiDeJiDhFiDfHiDeGiDeOiDgHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.11.12 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OnUpdateOptionIsSnapEffective (CCmdUI* pCmdUI)
{
	// HistView_xZkqqHx_iCmNiPoNiCmJ_xHqqkZx_ReadOnly_xZkqqHx_iClOiCkKiBeBiOjOiKnEiDiJiDhIiDiLiCpAjAnNjChFiClHiCoJiPoKiNiHiCmN_xHqqkZx_
	// _xZkqqHx_iDfIiDgJiDgCiDhGiCkKjFmPiNfIiCmFiCkLiCmIiCkCiCmGjDhDiNiHiIkLiCkCiBeC_xHqqkZx_
	pCmdUI->Enable(FFCanEditReadOnlyDocumentEnv());
//----- 05.11.23 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_iDgFiDeMiDfIiDgHjFnCiPfHjCiGiCmNiBeBiDhNiBfLiDeKiBfLiInKjDkOiCkKiCkAiCoJiCmMiCmF_xHqqkZx_
	// _xZkqqHx_iDfIiDgJiDgCiDhGiCkKjFmPiNfIiCmFiCkLiCmIiCkCiCmGjDhDiNiHiIkLiCkCiBeC_xHqqkZx_
	if (g_pView->GetCurrentTool()->IsEditingText())
		pCmdUI->Enable(TRUE);
//----- 05.11.23 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
	pCmdUI->SetCheck(g_pReg->GetIsSnap());
} // CFCFoundDoc::OnUpdateOptionIsSnapEffective.

//----- 02.09.06 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ (Admin_xZkqqHx_iImIiKePiCmF_xHqqkZx_Example1(_xZkqqHx_iPjBiCkLiNjOiCnNjFhDiJmC_xHqqkZx_)_xZkqqHx_iCpAjDmHiCnNiNjOiCnNiBeBjBlMjGlMiCmFjFnLjBlGiClFiCoGiCkEiCmGiClHiCoJiCmGiBeBiBhFjGlDjBoIiCkKiMkJiCmCiCkJiCoIiCnMiClJiCpBiCmFiClFiClNiBhGiCmGiMhIiNjAiCkKiPgPiCoJ_xHqqkZx_)-----
/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnUpdateFileSaveAs
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfL_xHqqkZx_[_xZkqqHx_jGlMjBePiCpAjFhEiCkPiCmEjFnLjBlG_xHqqkZx_]_xZkqqHx_iCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCmMjFfMiOkGiPpDjBnEiCpAjAnNjCoIiClHiCoJiClNiCnPiCmMiDeJiDhFiDfHiDeGiDeOiDgHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iPnKiNnH_xHqqkZx_>	DOCCORE.CPP_xZkqqHx_iCmM_xHqqkZx_CDocument::OnFileSaveAs()_xZkqqHx_iCmJiPiIjHjNiKnGjAjEiCkKiCkAiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	02.08.26 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OnUpdateFileSaveAs (CCmdUI* pCmdUI)
{
//----- 06.03.03 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	// ReadOnly_xZkqqHx_iCmIiCoHiCmOjGlDiMpIiCmJiBeCjGhLjHiIjHeMiMpIiCmFiCkAiCmBiCmEiCoAiCkCiCkCiCmMiClOiCkKiBeB_xHqqkZx_ReadOnly_xZkqqHx_iCmF_xHqqkZx_
//	// _xZkqqHx_iKeKiCkCiClNiPoKiNiHiBeB_xHqqkZx_Undo_xZkqqHx_iDhEiDeAiDeDiDiLiCkKiNoMjAkMiClDiCoKiCmIiCkCiClNiCnPiBeBjFmKjGlMjFnLjBlGiCmFiCkLiCoJiCmGiDhNiDfJiDeDiBeC_xHqqkZx_
//	pCmdUI->Enable(FFCanBasicOperate() && FFCanEditDocument());
//----- 06.03.03 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	// _xZkqqHx_iPjBiCkLiNjOiCnNjFhDiJmCiCmMiPoKiNiHiCmNiBeBjFlGiPjBiCkKiKeKiCkCiCmEiCkCiCoKiCmOiJmCiBeC_xHqqkZx_
	if (IsReadOnly())
		pCmdUI->Enable(FFCanBasicOperate() && GetIsDocumentOpened());
	else
		pCmdUI->Enable(FFCanBasicOperate() && FFCanEditDocument());
//----- 06.03.03 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
} // CFCFoundDoc::OnUpdateFileSaveAs.
//----- 02.09.06 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ (Admin_xZkqqHx_iImIiKePiCmF_xHqqkZx_Example1(_xZkqqHx_iPjBiCkLiNjOiCnNjFhDiJmC_xHqqkZx_)_xZkqqHx_iCpAjDmHiCnNiNjOiCnNiBeBjBlMjGlMiCmFjFnLjBlGiClFiCoGiCkEiCmGiClHiCoJiCmGiBeBiBhFjGlDjBoIiCkKiMkJiCmCiCkJiCoIiCnMiClJiCpBiCmFiClFiClNiBhGiCmGiMhIiNjAiCkKiPgPiCoJ_xHqqkZx_)-----

//----- 02.10.08 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ (Word_xZkqqHx_iPoDiCmJ_xHqqkZx_DD3_xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiCpAjDfMiCoIjFhEiCkPiCmEiBeBiClDiCoHiCmJ_xHqqkZx_DD3_xZkqqHx_iPoDiCmJ_xHqqkZx_OLE_xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiCpAiDhJiBfLiDfIiDgHiClFiBeB_xHqqkZx_Word_xZkqqHx_iPoDiCmM_xHqqkZx_DD3_xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiCmMiPjBiOkOjAnNjCoI_xHqqkZx_-_xZkqqHx_iDiMiDeDiDeBiDeFiDgHiDfOiDePiBhMjAnMiCoIjFnEiClFiCmMiOoNjHnOiCmGjEhKjChFiCpAjFmPiNfIiCmGiClHiCoJiCmGiBeB_xHqqkZx_Word_xZkqqHx_iPoDiCmMjFfMiOkGiCkKiCkIiCkJiClFiCkNiCmIiCoIiBeBiNmEjFnCiPfHiCmFiCkLiCmIiCkNiCmIiCoIiCnMiClH_xHqqkZx_)-----
/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnCloseDocument
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jCmKiPoNiBeB_xHqqkZx_[_xZkqqHx_iDhEiDeAiDeDiDiL_xHqqkZx_] _xZkqqHx_iDiBiDgKiDiFiBfLiCmM_xHqqkZx_ [_xZkqqHx_jFmCiClGiCoJ_xHqqkZx_] _xZkqqHx_iDfCiDhNiDjDiDgIiCmMiIoKiKmCiCmGiClFiCmEiBeB_xHqqkZx_
 *			_xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiCkKjFmCiClGiCoHiCoKiCoJiCmGiCkLiCmJiBeBiDhEiDiMiBfLiDiAiDiPiBfLiDeOiCkKiMmEiCnBiPgPiClFiCnMiClHiBeC_xHqqkZx_
 *			_xZkqqHx_iIlNiCkCiCmNiBeB_xHqqkZx_WORD_xZkqqHx_iCmM_xHqqkZx_OLE_xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiCmMiBhFiDeJiDhFiDfHiDeGiDeOiDgHiCmMiPjBiOkOjAnNjCoIiBhGiCmM_xHqqkZx_
 *			_xZkqqHx_iBhFiDiMiDeDiDeBiDeFiDgHiBhGiCpAjFmPiNfIiClFiClNiPoKiNiHiCmJiCmNiBeB_xHqqkZx_Frame_xZkqqHx_iCpAjCmKiClDiClIiCmJiMmEiCnBiPgPiClDiCoKiCnMiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	02.10.08 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OnCloseDocument ()
{
	// Frame::OnClose _xZkqqHx_iCkJiCoHiOmAiNhDiClFiCmEiCkCiClNiCkKiBeB_xHqqkZx_WORD_xZkqqHx_iCmM_xHqqkZx_OLE_xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiCmM_xHqqkZx_
	// _xZkqqHx_iBhFiDeJiDhFiDfHiDeGiDeOiDgHiCmMiPjBiOkOjAnNjCoIiBhGiCmMiBhFiDiMiDeDiDeBiDeFiDgHiBhGiCpAjFmPiNfIiClFiClNiPoKiNiHiCmJiCmNiBeB_xHqqkZx_
	// Frame::OnClose _xZkqqHx_iCpAjCmKiClDiClIiCmJ_xHqqkZx_Document::OnCloseDocument _xZkqqHx_iCkK_xHqqkZx_
	// _xZkqqHx_iOmAiNhDiClDiCoKiCoJiClNiCnPiBeBjBfDiCmEiCmMiPeJjHlJiPiIjHjNiCmNiBeB_xHqqkZx_Document::OnCloseDocument
	// _xZkqqHx_iCkJiCoHjEkNiNhDiClHiCoJiClBiCmGiCmJjFmPiNfIiClFiClNiBeC_xHqqkZx_

//----- 03.09.14 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_iLeOjDkOjCiGiCmMiDeFiDeCiDjDiDgIiDeFiCmGjFlGiPjBiCpAjAnNjCoIiBeC_xHqqkZx_
	g_pReg->DeleteActiveWinAndInfo(FFGetMainWnd()->GetSafeHwnd());
//----- 03.09.14 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----

	// _xZkqqHx_iDeBiDhGiDiKiCmMiPeJjHlJiPiIjHjNjCiGiCmFiCkAiCoJiDhEiDiJiDePiCpAjAnNjCoIiBeC_xHqqkZx_
	g_->appMode |= FD_RUNMODE_ON_EXIT;

//----- 02.11.13 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_iDhCiDiFiBfLiCmM_xHqqkZx_OnCloseDocument_xZkqqHx_iCpAiOmAiNhDiBeCiDgFiDeMiDfIiDgHjFnCiPfHiCoC_xHqqkZx_OLE_xZkqqHx_jFnCiPfHiCpAiPeJjHlJiClDiClJiCoJiBeC_xHqqkZx_
	if (g_pView != NULL) g_pView->OnCloseDocument();
	// _xZkqqHx_iDiMiDfHiDfIiDgHiDiKiCmJiDgDiBfLiDiLiDgPiBfLiPoOjFpBiCpAjFnLjBlGiBeC_xHqqkZx_
	if (FFGetMainWnd()->IsAvailable())
	{
		// _xZkqqHx_iDiBiDeDiDjDiDhEiDiMiBfLiDiAiCmJ_xHqqkZx_OnCloseDocument_xZkqqHx_iCpAjCmKjCgNiBeC_xHqqkZx_
		FFGetMainWnd()->OnCloseDocument();
//----- 05.11.13 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//		WString strRegName;
//		strRegName.Format(L"%s\\FrameBarState", ::GetLocalAppName());
////----- 05.11.13 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
////		FFGetMainWnd()->GetWnd()->SaveBarState(WStrToTStr(strRegName));
////----- 05.11.13 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
//		FFGetMainWnd()->MySaveBarState(strRegName);
////----- 05.11.13 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
//----- 05.11.13 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
	}
//----- 02.11.13 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----

	// Superclass_xZkqqHx_iKnGjAjEiOmAiNhDiBeCiImIiJlKiCmF_xHqqkZx_ DeleteContents _xZkqqHx_iCkKiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
	BASE_CLASS::OnCloseDocument();
} // CFCFoundDoc::OnCloseDocument.
//----- 02.10.08 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ (Word_xZkqqHx_iPoDiCmJ_xHqqkZx_DD3_xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiCpAjDfMiCoIjFhEiCkPiCmEiBeBiClDiCoHiCmJ_xHqqkZx_DD3_xZkqqHx_iPoDiCmJ_xHqqkZx_OLE_xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiCpAiDhJiBfLiDfIiDgHiClFiBeB_xHqqkZx_Word_xZkqqHx_iPoDiCmM_xHqqkZx_DD3_xZkqqHx_iDeJiDhFiDfHiDeGiDeOiDgHiCmMiPjBiOkOjAnNjCoI_xHqqkZx_-_xZkqqHx_iDiMiDeDiDeBiDeFiDgHiDfOiDePiBhMjAnMiCoIjFnEiClFiCmMiOoNjHnOiCmGjEhKjChFiCpAjFmPiNfIiCmGiClHiCoJiCmGiBeB_xHqqkZx_Word_xZkqqHx_iPoDiCmMjFfMiOkGiCkKiCkIiCkJiClFiCkNiCmIiCoIiBeBiNmEjFnCiPfHiCmFiCkLiCmIiCkNiCmIiCoIiCnMiClH_xHqqkZx_)-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnHelpDebugBreak
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgGiDgPiDgCiDePjHhAiBeCiDgGiDgPiDgCiDePiDhFiDiMiDeDiDeOiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.03.19 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OnHelpDebugBreak ()
{
	AfxDebugBreak();
} // CFCFoundDoc::OnHelpDebugBreak.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnFileImport
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDeDiDjDiDhMiBfLiDgHiBhGiCkJiCoHiOmAiNhDiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.06.10 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OnFileImport ()
{
	if (!IsClosableTemporaryDocument())
	//----- _xZkqqHx_iIoKiOjOjDeJiCmIjFlGiPjBiCmFiCmNiCmIiCkCiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iDeDiDjDiDhMiBfLiDgHiCmJiCoGiCmBiCmEiBeBiMlLiNnNiCmMiDfGiBfLiDgHiPoDiCmMiPoOjFpBiCmNiOlIiCoNiCoKiCnMiClHiBeC_xHqqkZx_\r\nUndo_xZkqqHx_iCoAiCmFiCkLiCnMiClJiCpBiBeCiMhAjBlBiClFiCnMiClHiCkJiBeI_xHqqkZx_
		if (FFMessageBox(IDS_MSG_IS_CONTINUE_OVERWRITE_IMPORT, 0, MB_YESNO) != IDYES)
			return;
	}
	// _xZkqqHx_iDgFiDjDiDhGiDiMiBfLiDgHiDfPiDeDiDeBiDiNiDePiCpAjFfMiOkGiClHiCoJiBeBiCpAjAnNjCoIiBeC_xHqqkZx_
	PushBackDocRequest(ID_DREQ_DLG_IMPORT_FILE);
	// _xZkqqHx_iPpAiMiPiOmAiNhDiBeC_xHqqkZx_
	PushBackDocRequest(	ID_DREQ_IF,
						FCReqBase::RETURN, IDOK,
						FCReqBase::NONE);
		// _xZkqqHx_iDhEiDeAiDeDiDiLiCpAiDeDiDjDiDhMiBfLiDgHiClHiCoJiBeBiCmMiDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiBeC_xHqqkZx_
		PushBackDocRequest(ID_DREQ_IMPORT_FILE);
	// _xZkqqHx_iPpAiMiPiOmAiNhDiPeJjCfLiBeC_xHqqkZx_
	PushBackDocRequest(ID_DREQ_END_IF);
	// _xZkqqHx_iPeJjCfLiCpAjBhNjDpMiBeC_xHqqkZx_
	PushBackDocRequest(ID_DREQ_END);
	// Document_xZkqqHx_jHhGiLiBiCpAiPiIjHjNiBeC_xHqqkZx_
	ProceedDocRequest();
} // CFCFoundDoc::OnFileImport.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnUpdateFileImport
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDeDiDjDiDhMiBfLiDgHiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCmMjFfMiOkGiPpDjBnEiCpAjAnNjCoIiClHiCoJiClNiCnPiCmMiDeJiDhFiDfHiDeGiDeOiDgHiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.06.10 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OnUpdateFileImport (CCmdUI* pCmdUI)
{
// 05.11.25 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//	pCmdUI->Enable(GetIsDocumentOpened() && FFCanBasicOperate());
	pCmdUI->Enable(GetIsDocumentOpened() && FFCanEditDocument());
} // CFCFoundDoc::OnUpdateFileImport.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnFileExport
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDeHiDeOiDfIiDhMiBfLiDgHiBhGiCkJiCoHiOmAiNhDiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.06.10 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OnFileExport ()
{
	WString wstrFilePath;
	WString wstrFileVersion;
	BOOL bIsSaveObject;
	BOOL bIsSaveChip;
	if (DoModalExportDialog(wstrFilePath, wstrFileVersion,
							bIsSaveObject, bIsSaveChip) == IDOK)
	{
		ExportFile(wstrFilePath, wstrFileVersion, bIsSaveObject, bIsSaveChip);
	}
} // CFCFoundDoc::OnFileExport.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnUpdateFileExport
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDeHiDeOiDfIiDhMiBfLiDgHiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCmMjFfMiOkGiPpDjBnEiCpAjAnNjCoIiClHiCoJiClNiCnPiCmMiDeJiDhFiDfHiDeGiDeOiDgHiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.06.10 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OnUpdateFileExport (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(GetIsDocumentOpened() && FFCanBasicOperate());
} // CFCFoundDoc::OnUpdateFileExport.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnFileDocumentProperty
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjFlGiPjBiCmMiDhGiDiNiDhAiDgFiDeCiBhGiCkJiCoHiOmAiNhDiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.06.17 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OnFileDocumentProperty ()
{
	if (FFVersionInfo().dwPlatformId == VER_PLATFORM_WIN32_WINDOWS &&
		FFVersionInfo().dwMajorVersion == 4 &&
		FFVersionInfo().dwMinorVersion == 0)
	//----- Windows95_xZkqqHx_iCmMiPoKiNiH_xHqqkZx_ ------
	{
		// IDS_MSG_NOT_SUPPORTED_BY_95_xZkqqHx_iBeC_xHqqkZx_
		// _xZkqqHx_iClBiCmMiLeAjEfMiCmN_xHqqkZx_Windows95_xZkqqHx_iCmFiCmNiDfEiDhMiBfLiDgHiClDiCoKiCmEiCkCiCnMiClJiCpBiBeC_xHqqkZx_
		FFErrorBox(IDS_MSG_NOT_SUPPORTED_BY_95);
		return;
	}
	WString wstrValue;
	CFCDlgDocumentProperty dlg;
	// _xZkqqHx_jFlGiPjBiDfOiDeDiDgHiDiLiBeC_xHqqkZx_
	wstrValue = GetDocumentProperty(FD_DPID_DOCUMENT_TITLE);
	wstrValue.Replace(L"\n", L"\r\n");
	dlg.m_strTitle = WStrToTStr(wstrValue);
	// _xZkqqHx_jFlGiPjBiNoMiOnCiBeC_xHqqkZx_
	wstrValue = GetDocumentProperty(FD_DPID_DOCUMENT_AUTHOR);
	wstrValue.Replace(L"\n", L"\r\n");
	dlg.m_strAuthor = WStrToTStr(wstrValue);
	// _xZkqqHx_jFlGiPjBjAoAjGlOiBeC_xHqqkZx_
	wstrValue = GetDocumentProperty(FD_DPID_DOCUMENT_DESCRIPTION);
	wstrValue.Replace(L"\n", L"\r\n");
	dlg.m_strDescription = WStrToTStr(wstrValue);
	// _xZkqqHx_jFlGiPjBiDfCiDiBiDjDiDgHiBeC_xHqqkZx_
	wstrValue = GetDocumentProperty(FD_DPID_DOCUMENT_COMMENT);
	wstrValue.Replace(L"\n", L"\r\n");
	dlg.m_strComment = WStrToTStr(wstrValue);
	if (dlg.DoModal() == IDOK)
	{
		// _xZkqqHx_iLeMjIfOiDfKiDgCiDfGiDiHiDjDiKeKiOgOiBeC_xHqqkZx_
		SessionBegin();
		//----- _xZkqqHx_iDfCiDhNiDjDiDgIiCmMiLeMjIfO_xHqqkZx_ -----
		// _xZkqqHx_jFlGiPjBiDfOiDeDiDgHiDiLiBeC_xHqqkZx_
		wstrValue = TStrToWStr(dlg.m_strTitle);
		wstrValue.Replace(L"\r\n", L"\n");
		CmdModifyDocProperty(FD_DPID_DOCUMENT_TITLE, wstrValue);
		// _xZkqqHx_jFlGiPjBiNoMiOnCiBeC_xHqqkZx_
		wstrValue = TStrToWStr(dlg.m_strAuthor);
		wstrValue.Replace(L"\r\n", L"\n");
		CmdModifyDocProperty(FD_DPID_DOCUMENT_AUTHOR, wstrValue);
		// _xZkqqHx_jFlGiPjBjAoAjGlOiBeC_xHqqkZx_
		wstrValue = TStrToWStr(dlg.m_strDescription);
		wstrValue.Replace(L"\r\n", L"\n");
		CmdModifyDocProperty(FD_DPID_DOCUMENT_DESCRIPTION, wstrValue);
		// _xZkqqHx_jFlGiPjBiDfCiDiBiDjDiDgHiBeC_xHqqkZx_
		wstrValue = TStrToWStr(dlg.m_strComment);
		wstrValue.Replace(L"\r\n", L"\n");
		CmdModifyDocProperty(FD_DPID_DOCUMENT_COMMENT, wstrValue);
		// _xZkqqHx_iLeMjIfOiDfKiDgCiDfGiDiHiDjDiCmMiPeJjHlJiBeC_xHqqkZx_
		SessionEnd();
	}
} // CFCFoundDoc::OnFileDocumentProperty.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnUpdateFileDocumentProperty
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFjFlGiPjBiCmMiDhGiDiNiDhAiDgFiDeCiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCmMjFfMiOkGiPpDjBnEiCpAjAnNjCoIiClHiCoJiClNiCnPiCmMiDeJiDhFiDfHiDeGiDeOiDgHiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.06.17 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OnUpdateFileDocumentProperty (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(FFCanEditDocument() && FFCanBasicOperate());
} // CFCFoundDoc::OnUpdateFileDocumentProperty.

//----- 05.10.24 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnUpdateViewStatusBar
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDfIiDgFiBfLiDfOiDfIiDgPiBfLiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCmMjFfMiOkGiPpDjBnEiCpAjAnNjCoIiClHiCoJiClNiCnPiCmMiDeJiDhFiDfHiDeGiDeOiDgHiCpAiOhHjCoIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.07.24 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCFoundDoc::OnUpdateViewStatusBar (CCmdUI* pCmdUI)
//{
//	pCmdUI->Enable(FFCanBasicOperate());
//} // CFCFoundDoc::OnUpdateViewStatusBar.
//----- 05.10.24 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

//----- 05.05.13 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnFileImportUrl
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDeDiDjDiDfOiBfLiDgMiDgCiDgHiDhEiDeAiDeDiDiLiCpAiDeDiDjDiDhMiBfLiDgHiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.07.25 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCFoundDoc::OnFileImportUrl ()
//{
//	CFCDlgInputStr dlg;
//	dlg.m_strTitle = "URL_xZkqqHx_iCpAjDpMjHmN_xHqqkZx_";
//	if (dlg.DoModal() == IDOK)
//	{
//		WString wstrUrl = TStrToWStr(dlg.m_strInput);
//		if (wcsncmp(wstrUrl, L"http://", sizeof(L"http://") - 1) != 0)
//		{
//			while (wstrUrl.at(0) == L':' || wstrUrl.at(0) == L'/')
//				wstrUrl.erase(0, 1);
//			wstrUrl.insert(0, L"http://");
//		}
//		// _xZkqqHx_iDhEiDeAiDeDiDiLiCpAiKeKiCkNiBeC_xHqqkZx_
//		BOOL bOpen = m_asyncNetFile.Open(WStrToTStr(wstrUrl));
//		TRACE("OpenURL %d\n", bOpen);
//		if (bOpen)
//		{
////----- 03.07.30 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
////			// _xZkqqHx_iDeDiDjDiDfOiBfLiDgMiDgCiDgHiDhEiDeAiDeDiDiLiCmMiDhEiDeAiDeDiDiLjGlMiBeC_xHqqkZx_
////			m_wstrUrl = wstrUrl;
////----- 03.07.30 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
//			// _xZkqqHx_iDeDiDjDiDfOiBfLiDgMiDgCiDgHiDhEiDeAiDeDiDiLjDmHiCnNiNjOiCnNiCmMjAgJjClLiBeC_xHqqkZx_
//			m_NetFileProgress = NET_IMPORT_WAIT_TOP_DATA;
//			// _xZkqqHx_iDgGiDhEiDeIiDiLiDgHiCmMiDgGiBfLiDfOiCpAiNoNiPjMiBeC_xHqqkZx_
//			DeleteContents();
//			// _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiCpAiKeKiCkCiClNiPpDjBnEiCmJiBeC_xHqqkZx_
//			m_bIsDocumentOpened = TRUE;
//			// _xZkqqHx_iPjBiCkLiNjOiCnNiCmNiDgGiBfLiDfOiDfPiDeFiDjDiDiNiBfLiDgIiPeJjHlJiCnMiCmFiLnGiOhOiBeC_xHqqkZx_
//			m_bIsReadOnly = TRUE;
//			// _xZkqqHx_jBfDiJoGjGmKiCpAiMmFjHeMiDiKiBfLiDfHiDiHiDjDiCmJjAnNjCoIiClFiCmEiNmEjFgAiJoGiBeC_xHqqkZx_
//			g_pView->SetClientToRgn();
//			g_pView->SendRgnRedraw();
//		}
//	}
//} // CFCFoundDoc::OnFileImportUrl.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnUpdateFileImportUrl
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDeDiDjDiDfOiBfLiDgMiDgCiDgHiDhEiDeAiDeDiDiLiCpAiDeDiDjDiDhMiBfLiDgHiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpA_xHqqkZx_
// *			_xZkqqHx_jAnNjCoIiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCmMjFfMiOkGiPpDjBnEiCpAjAnNjCoIiClHiCoJiClNiCnPiCmMiDeJiDhFiDfHiDeGiDeOiDgHiCpAiOhHjCoIiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.07.25 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCFoundDoc::OnUpdateFileImportUrl (CCmdUI* pCmdUI)
//{
//	pCmdUI->Enable(GetIsDocumentOpened() && FFCanBasicOperate());
//} // CFCFoundDoc::OnUpdateFileImportUrl.
//----- 05.05.13 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnUpdateFileRecent1
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiCmMiBhFiNmFiLnPiOmAiNhDiClFiClNjHjKjHpAjFlGiPjBiBhGiCmMjFfMiOkGiOjOiCmJiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCmMiDeJiDhFiDfHiDeGiDeOiDgHiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.09.19 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OnUpdateFileRecent1 (CCmdUI* pCmdUI)
{
	FCRecentList::UpdateMenu(pCmdUI, g_pReg->GetIsLeftHand());
} // CFCFoundDoc::OnUpdateFileRecent1.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnFileRecent
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiCmMiNmFiLnPiOmAiNhDiClFiClNjHjKjHpAjFlGiPjB_xHqqkZx_(_xZkqqHx_iCfAiBgAiCfI_xHqqkZx_)_xZkqqHx_iCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	nCmdID	:_xZkqqHx_iDeOiDiKiDgCiDeOiClDiCoKiClNiDfCiDhNiDjDiDgIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.09.19 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OnFileRecent (UINT nCmdID)
{
	WString wstrPath;	// _xZkqqHx_iDhEiDeAiDeDiDiLjGlMiBeC_xHqqkZx_
	// _xZkqqHx_jBeJjBpAiClDiCoKiClNjHjKjHpAjFlGiPjBiPoOjFpBiCpAiOoGjDlOiBeC_xHqqkZx_
	FCRecentList::Get(short(nCmdID - ID_FILE_RECENT1),
					NULL,
					NULL,
					&wstrPath);
	FFGetApp()->OpenDocumentFile(WStrToTStr(wstrPath));
} // CFCFoundDoc::OnFileRecent.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnOptionPageMarginVisible
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDhNiDjDiDgIiBhFjFlGiPjBjHhAiOiGjHfNjEjCiCpAjFfMiOkGiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.06.14 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OnOptionPageMarginVisible ()
{
	if (IsReadOnly())
	//----- _xZkqqHx_iPjBiCkLiNjOiCnNjFhDiJmCiCmMiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iPoOjFpBiCmMjAnNjCoIiBeC_xHqqkZx_
		g_pReg->SetIsPageMarginVisible(!g_pReg->GetIsPageMarginVisible());
	} else
	//----- _xZkqqHx_iPjBiCkLiNjOiCnNiJmCiCmMiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iDfKiDgCiDfGiDiHiDjDiCpAiKeKiOgOiClHiCoJiBeC_xHqqkZx_
		SessionBegin();
		// _xZkqqHx_iDfCiDhNiDjDiDgIiCpAiOmAiNhDiBeC_xHqqkZx_
		CmdSetIsPageMarginVisible(!g_pReg->GetIsPageMarginVisible());
		// _xZkqqHx_iLeMjIfOiDfKiDgCiDfGiDiHiDjDiCmMiPeJjHlJiBeC_xHqqkZx_
		SessionEnd();
	}
	// _xZkqqHx_jBfDiJoGjGmKiNmEjFgAiJoGiBeC_xHqqkZx_
	g_pView->PostRgnRedraw(TRUE);
} // CFCFoundDoc::OnOptionPageMarginVisible.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnUpdateOptionPageMarginVisible
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDhNiDjDiDgIiBhFjFlGiPjBjHhAiOiGjHfNjEjCiCpAjFfMiOkGiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_jHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClFiCmEjFnEiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.06.14 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OnUpdateOptionPageMarginVisible (CCmdUI* pCmdUI)
{
//----- 05.08.24 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	pCmdUI->Enable(FFCanBasicOperate() && FFCanEditDocumentEnv());
//	pCmdUI->SetCheck(g_pReg->GetIsPageMarginVisible());
//----- 05.08.24 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
// 05.10.22 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//	pCmdUI->Enable(FFCanBasicOperate() && GetIsDocumentOpened());
	pCmdUI->Enable(FFCanEditReadOnlyDocumentEnv());
	pCmdUI->SetCheck(g_pReg->GetIsPageMarginVisible());
//----- 05.08.24 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
} // CFCFoundDoc::OnUpdateOptionPageMarginVisible.

//----- 05.08.24 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnViewPageBorderVisible
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDhNiDjDiDgIiBhFjFlGiPjBiIpDiNpMiDhJiBfLiDfHiLkLiKeFjApMiCpAjFfMiOkGiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.06.14 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCFoundDoc::OnViewPageBorderVisible ()
//{
//	// _xZkqqHx_iDfKiDgCiDfGiDiHiDjDiCpAiKeKiOgOiClHiCoJiBeC_xHqqkZx_
//	SessionBegin();
//	// _xZkqqHx_iDfCiDhNiDjDiDgIiCpAiOmAiNhDiBeC_xHqqkZx_
//	CmdSetIsPageVisible(!g_pReg->GetIsPageVisible());
//	// _xZkqqHx_iLeMjIfOiDfKiDgCiDfGiDiHiDjDiCmMiPeJjHlJiBeC_xHqqkZx_
//	SessionEnd();
//	// _xZkqqHx_jBfDiJoGjGmKiNmEjFgAiJoGiBeC_xHqqkZx_
//	g_pView->PostRgnRedraw(TRUE);
//} // CFCFoundDoc::OnViewPageBorderVisible.
//
///*************************************************************************
// * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnUpdateViewPageBorderVisible
// *
// * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDhNiDjDiDgIiBhFjFlGiPjBiIpDiNpMiDhJiBfLiDfHiLkLiKeFjApMiCpAjFfMiOkGiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
// *
// * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_jHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClFiCmEjFnEiClHiBeC_xHqqkZx_
// *
// * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	05.06.14 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
// *************************************************************************/
//void CFCFoundDoc::OnUpdateViewPageBorderVisible (CCmdUI* pCmdUI)
//{
//	pCmdUI->Enable(FFCanBasicOperate() && FFCanEditDocumentEnv());
//	pCmdUI->SetCheck(g_pReg->GetIsPageVisible());
//} // CFCFoundDoc::OnUpdateViewPageBorderVisible.
//----- 05.08.24 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnViewPastePosition
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDfCiDhDiBfLiClDiCoKiClNjFlGiPjBiImKjChFiCmJiInKjDkOiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iDhJiBfLiDfIiDgHiClDiCoKiCoJjFlGiPjBiImKjChFiPoOjFpBiCmNiImIiJlKiCmMiMgAiOkOiBeC_xHqqkZx_
 *		<mdrwpos file="C:\foo\bar\file.mdrw" sheet="0" cpos="78,114"/>
 *			                  _xZkqqHx_iBkK_xHqqkZx_                   _xZkqqHx_iBkK_xHqqkZx_        _xZkqqHx_iBkK_xHqqkZx_  _xZkqqHx_iBkK_xHqqkZx_
 *			            _xZkqqHx_jFlGiPjBiDhEiDeAiDeDiDiLjGlM_xHqqkZx_           SheetID     mmX mmY
 *
 *		<mdrwpos file="C:\foo\bar\file.mdrw" sheet="0" cposx="78" cposy="114"/>
 *			                  _xZkqqHx_iBkK_xHqqkZx_                   _xZkqqHx_iBkK_xHqqkZx_         _xZkqqHx_iBkK_xHqqkZx_          _xZkqqHx_iBkK_xHqqkZx_
 *			            _xZkqqHx_jFlGiPjBiDhEiDeAiDeDiDiLjGlM_xHqqkZx_           SheetID      mmX        mmY
 *
 *		<mdrwpos file="C:\foo\bar\file.mdpj" docid="1" session="1431" sheet="0" cposx="78" cposy="114"/>
 *			                  _xZkqqHx_iBkK_xHqqkZx_               _xZkqqHx_iBkK_xHqqkZx_             _xZkqqHx_iBkK_xHqqkZx_            _xZkqqHx_iBkK_xHqqkZx_         _xZkqqHx_iBkK_xHqqkZx_          _xZkqqHx_iBkK_xHqqkZx_
 *			            _xZkqqHx_jFlGiPjBiDhEiDeAiDeDiDiLjGlM_xHqqkZx_        _xZkqqHx_jFlGiPjB_xHqqkZx_ID      _xZkqqHx_iDfKiDgCiDfGiDiHiDjD_xHqqkZx_      SheetID      mmX        mmY
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.02.26 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OnViewPastePosition ()
{
	//----- _xZkqqHx_iDeOiDiKiDgCiDhGiDhLiBfLiDgIiCkJiCoHjHjKjHpAjFlGiPjBiImKjChFiPoOjFpBiCpAiOoGiCoIiPgPiClH_xHqqkZx_ -----
	WString wstrPos;
	CEdit edit;
	edit.Create(WS_CHILD|ES_MULTILINE|ES_AUTOHSCROLL|ES_AUTOVSCROLL, CRect(0,0,10,10), AfxGetMainWnd(), 100);
	edit.SetSel(0, 0);
	edit.Paste();
	FFGetWindowText(&edit, wstrPos);

	//---- _xZkqqHx_iCnMiClIiBeB_xHqqkZx_"<mdrwpos "_xZkqqHx_iImIjBePiCpAiPjMiLiOiClHiCoJ_xHqqkZx_ -----
	int iPos = wstrPos.Find(L"<mdrwpos");
	if (iPos == -1) return;
	wstrPos.Delete(0, iPos + wcslen(L"<mdrwpos"));
	wstrPos.TrimLeft();

	//---- ">"_xZkqqHx_iImIiNhOiCpAiPjMiLiOiClHiCoJ_xHqqkZx_ -----
	iPos = wstrPos.Find(L'>');
	if (iPos == -1) return;
	wstrPos.Delete(iPos, wstrPos.GetLength() - iPos);
	wstrPos.TrimRight();

	//----- _xZkqqHx_iOoGjDlOiClHiCoJiCnHiCkLjCgMiCmMjFmPjAjE_xHqqkZx_ -----
	WString wstrDocFile;				// _xZkqqHx_jFlGiPjBiDhEiDeAiDeDiDiLjGlMiBeC_xHqqkZx_
	SheetID stid = FD_SHEET_UNSPECIFY;	// _xZkqqHx_iDfGiBfLiDgH_xHqqkZx_ID_xZkqqHx_iBeC_xHqqkZx_
	mmetol mmX = 0;						// _xZkqqHx_jCiGjAfDiNmAjFfHiBeC_xHqqkZx_
	mmetol mmY = 0;						// _xZkqqHx_jCiGjAfDiNmAjFfHiBeC_xHqqkZx_
	long lDocumentId = -1;				// _xZkqqHx_jFlGiPjB_xHqqkZx_ID_xZkqqHx_iBeC_xHqqkZx_
	flint fliSessionIndex = -1;			// _xZkqqHx_iDfKiDgCiDfGiDiHiDjDiBeC_xHqqkZx_

	for (;;)
	{
		//----- "="_xZkqqHx_iCmMiNlGjBkEiCpAiOoGjDlO_xHqqkZx_ -----
		iPos = wstrPos.Find(L'=');
		if (iPos == -1) break;
		WString wstrName = wstrPos.Left(iPos);
		wstrName.TrimLeft();
		wstrName.TrimRight();
		wstrPos.Delete(0, iPos + 1);

		//----- "="_xZkqqHx_iCmMiJeFjBkEiCpAiOoGjDlO_xHqqkZx_ -----
		iPos = wstrPos.Find(L'"');
		wstrPos.Delete(0, iPos + 1);
		iPos = wstrPos.Find(L'"');
		WString wstrValue = wstrPos.Left(iPos);
		wstrValue.TrimLeft();
		wstrValue.TrimRight();
		wstrPos.Delete(0, iPos + 1);

		if (wstrName.CompareNoCase(L"file") == 0)
		{
			wstrDocFile = wstrValue;
		} else
		if (wstrName.CompareNoCase(L"sheet") == 0)
		{
			stid = wcstoul(wstrValue, NULL, 10);
		} else
		if (wstrName.CompareNoCase(L"cposx") == 0)
		{
			mmX = wcstod(wstrValue, NULL);
		} else
		if (wstrName.CompareNoCase(L"cposy") == 0)
		{
			mmY = wcstod(wstrValue, NULL);
		} else
		if (wstrName.CompareNoCase(L"cpos") == 0)
		{
			WString wstrX = ::FFExtractUntil(wstrValue, L",");
			WString wstrY = ::FFExtractUntil(wstrValue, L",");
			mmX = wcstod(wstrX, NULL);
			mmY = wcstod(wstrY, NULL);
		} else
		if (wstrName.CompareNoCase(L"docid") == 0)
		//----- _xZkqqHx_jFlGiPjB_xHqqkZx_ID_xZkqqHx_iCmMiPoKiNiH_xHqqkZx_ -----
		{
			lDocumentId = wcstol(wstrValue, NULL, 10);
		} else
		if (wstrName.CompareNoCase(L"session") == 0)
		//----- _xZkqqHx_iDfKiDgCiDfGiDiHiDjDiCmMiPoKiNiH_xHqqkZx_ -----
		{
			fliSessionIndex = _wcstoi64(wstrValue, NULL, 10);
		}
	}

do {
	// _xZkqqHx_jFlGiPjBiDhEiDeAiDeDiDiLjGlMiCpAiDgAiDeGiDgCiDeOiBeC_xHqqkZx_
	if (wstrDocFile.IsEmpty()) break;
	// _xZkqqHx_iDfGiBfLiDgH_xHqqkZx_ID_xZkqqHx_iCpAiDgAiDeGiDgCiDeOiBeCiDfGiBfLiDgH_xHqqkZx_ID_xZkqqHx_iCmNiBeBjFeLiClIjBlGiNnNiClHiCoJ_xHqqkZx_ID_xZkqqHx_iCkKiMiIiCnMiCmBiCmE_xHqqkZx_
	// _xZkqqHx_iCkCiCmIiCkCiBgJiDfGiBfLiDgH_xHqqkZx_ID=0_xZkqqHx_iCkKjBlGiNnNiClHiCoJiCmGiCmNiMmAiCoHiCmIiCkCiBgKiClNiCnPiBeB_xHqqkZx_
	// ID_xZkqqHx_iCkKjFeLiClIiOhHjCoIiClDiCoKiCmEiCkCiCmIiCkPiCoKiCmOiCmIiCoHiCmIiCkCiBeC_xHqqkZx_
	if (stid == FD_SHEET_UNSPECIFY) break;

	// _xZkqqHx_iClBiCmM_xHqqkZx_EXE_xZkqqHx_iCmFiOhHjCoIiCmMjFlGiPjBiCpAiKeKiCkPiCoJiCkJiBeI_xHqqkZx_
	BOOL bCanOpenThis = FALSE;
	// _xZkqqHx_iDhEiDeAiDeDiDiLiDfOiDeDiDhGiCpAiDhEiDeAiDeDiDiLiKgHjCkDiOhBiCkJiCoHiOoGjDlOiBeC_xHqqkZx_
	FTDocumentFormat df = FFFileNameToFormat(wstrDocFile);
	switch (g_->appMode & FD_APPMODE_MASK)
	{
	case FD_APPMODE_DYNAMICDRAW:	// DynamicDraw_xZkqqHx_iDiCiBfLiDgIiBeC_xHqqkZx_
		switch (df)
		{
		case FD_DTP_STANDARD_FORMAT:	// _xZkqqHx_jCmKiPoNiDhEiDeIiBfLiDhNiDgCiDgHiCmMjFlGiPjBiBeC_xHqqkZx_(.mdrw)
		case FD_DTP_PORTABLE_FORMAT:	// _xZkqqHx_iDhMiBfLiDfOiDhFiDiLiDhEiDeIiBfLiDhNiDgCiDgHiCmMjFlGiPjBiBeC_xHqqkZx_(.mdpf)
			if (IsClosableTemporaryDocument())
			//----- _xZkqqHx_jFmCiClGiCmEiCoAjHmHiCkCjFlGiPjBiCkJiBeI_xHqqkZx_ -----
			{
				// _xZkqqHx_iClBiCmM_xHqqkZx_EXE_xZkqqHx_iCmFiOhHjCoIiCmMjFlGiPjBiCpAiKeKiCkPiCoJiCkJiBeI_xHqqkZx_
				bCanOpenThis = TRUE;
				// _xZkqqHx_iDhEiDeAiDeDiDiLiCpAiKeKiCkNiBeC_xHqqkZx_
				PushBackDocRequest(	ID_DREQ_OPEN_DOCUMENT,
									FCReqBase::DOCUMENT_PATH, wstrDocFile.c_str(),
									FCReqBase::NONE);
				// _xZkqqHx_iOoGjDlOiClFiClNiNmAjFfHiCkKjCiGjAfDiCmJiCkNiCoJiCoGiCkEiCmJiDfIiDeOiDiNiBfLiDiLiBeC_xHqqkZx_
				PushBackDocRequest(	ID_DREQ_CHANGE_SHEET_ZOOM_CENTER,
									FCReqBase::MM_X, mmX,
									FCReqBase::MM_Y, mmY,
									FCReqBase::SHEET_ID, stid,
									FCReqBase::NONE);
			} else
			//----- _xZkqqHx_jFmCiClGiCmEiCmNiCkCiCkPiCmIiCkCjFlGiPjBiCkJiBeI_xHqqkZx_ -----
			{
				if (wstrDocFile.CompareNoCase(TStrToWStr(GetPathName())) == 0)
				//----- _xZkqqHx_iMlLiNnNiCmMiDhEiDeAiDeDiDiLiCmGiKeKiCkNiCnHiCkLiDhEiDeAiDeDiDiLiCkKiIoKjChGiClHiCoJiPoKiNiH_xHqqkZx_ -----
				{
					// _xZkqqHx_iClBiCmM_xHqqkZx_EXE_xZkqqHx_iCmFiOhHjCoIiCmMjFlGiPjBiCpAiKeKiCkPiCoJiCkJiBeI_xHqqkZx_
					bCanOpenThis = TRUE;
					// _xZkqqHx_iOoGjDlOiClFiClNiNmAjFfHiCkKjCiGjAfDiCmJiCkNiCoJiCoGiCkEiCmJiDfIiDeOiDiNiBfLiDiLiBeC_xHqqkZx_
					PushBackDocRequest(	ID_DREQ_CHANGE_SHEET_ZOOM_CENTER,
										FCReqBase::MM_X, mmX,
										FCReqBase::MM_Y, mmY,
										FCReqBase::SHEET_ID, stid,
										FCReqBase::NONE);
				}
			}
			break;
		}
		break;

	case FD_APPMODE_HISTORYVIEWER:	// _xZkqqHx_jHjKjHpAiDhCiDiFiBfLiDeBiDiCiBfLiDgIiBeC_xHqqkZx_
		switch (df)
		{
		case FD_DTP_PROJECT_FORMAT:		// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCmMiDgHiDgCiDhGiDgGiDeCiDiMiDeOiDgHiDiK_xHqqkZx_ (.mdpj)
			// _xZkqqHx_iClBiCmM_xHqqkZx_EXE_xZkqqHx_iCmFiOhHjCoIiCmMjFlGiPjBiCpAiKeKiCkPiCoJiCkJiBeI_xHqqkZx_
			bCanOpenThis = TRUE;
			// _xZkqqHx_iOhHjCoIiCmMiDhGiDiNiDfHiDeGiDeOiDgHiBeFjHjKjHpAjFlGiPjBiBeFiImKjChFiCnGiInKjDkOiClHiCoJiBeC_xHqqkZx_
			PushBackDocRequest(	ID_DREQ_MOVE_HISTORY_UNTIL_PJ_HIDOC_SESSION,
								FCReqBase::PROJECT_PATH, wstrDocFile.c_str(),
								FCReqBase::HIDOCUMENT_ID, lDocumentId,
								FCReqBase::SESSION_INDEX, fliSessionIndex,
								FCReqBase::IS_SELECT_OBJECT, FALSE,
								FCReqBase::SCROLL_TO_FRAME, SCROLL_TO_FRAME::NONE,
								FCReqBase::NONE);
			// _xZkqqHx_iOoGjDlOiClFiClNiNmAjFfHiCkKjCiGjAfDiCmJiCkNiCoJiCoGiCkEiCmJiDfIiDeOiDiNiBfLiDiLiBeC_xHqqkZx_
			PushBackDocRequest(	ID_DREQ_CHANGE_SHEET_ZOOM_CENTER,
								FCReqBase::MM_X, mmX,
								FCReqBase::MM_Y, mmY,
								FCReqBase::SHEET_ID, stid,
								FCReqBase::NONE);
			// _xZkqqHx_jHjKjHpAiNfMjBkCiDhCiDiFiBfLiCpAjDkPiKpKiClDiClJiCoJiBeC_xHqqkZx_
			PushBackDocRequest(ID_DREQ_SYNC_HIVIEW_TO_DOCUMENT);
			break;
		}
		break;
	}

	if (bCanOpenThis)
	//----- _xZkqqHx_iClBiCmM_xHqqkZx_EXE_xZkqqHx_iCmFiOhHjCoIiCmMjFlGiPjBiCpAiKeKiCkPiCoJiPoKiNiH_xHqqkZx_ -----
	{
		// _xZkqqHx_iPeJjCfLiCpAjBhNjDpMiBeC_xHqqkZx_
		PushBackDocRequest(ID_DREQ_END);
		// Document_xZkqqHx_jHhGiLiBiCpAiPiIjHjNiBeC_xHqqkZx_
		ProceedDocRequest();
	} else
	//----- _xZkqqHx_iClBiCmM_xHqqkZx_EXE_xZkqqHx_iCmFiOhHjCoIiCmMjFlGiPjBiCpAiKeKiCkPiCmIiCkCiPoKiNiH_xHqqkZx_ -----
	{
		switch (df)
		{
		case FD_DTP_STANDARD_FORMAT:	// _xZkqqHx_jCmKiPoNiDhEiDeIiBfLiDhNiDgCiDgHiCmMjFlGiPjBiBeC_xHqqkZx_(.mdrw)
		case FD_DTP_PORTABLE_FORMAT:	// _xZkqqHx_iDhMiBfLiDfOiDhFiDiLiDhEiDeIiBfLiDhNiDgCiDgHiCmMjFlGiPjBiBeC_xHqqkZx_(.mdpf)
		  {
			// _xZkqqHx_jDkPiClGjFlGiPjBiDhEiDeAiDeDiDiLjGlMiCmM_xHqqkZx_DynamicDraw_xZkqqHx_iDeFiDeCiDjDiDgIiDeFiCpAjCfEiClHiBeC_xHqqkZx_
			HWND hwnd = ::FFFindDdDocumentWindow(wstrDocFile);
			if (hwnd != NULL)
			//----- _xZkqqHx_iOhHiOkGiClDiCoKiClNiDhEiDeAiDeDiDiLiCpAiKeKiCkCiCmEiCkCiCoJ_xHqqkZx_Dynamic Draw_xZkqqHx_iCkKiMkJiCmCiCkJiCmBiClNiPoKiNiH_xHqqkZx_ -----
			{
				// _xZkqqHx_iDfOiBfLiDfBiDgCiDgHiCmMiDeBiDhGiDiKiCpAiDhEiDeIiDeBiDePiDiJiDjDiDgIiCmJiBeC_xHqqkZx_
				::SetForegroundWindow(hwnd);
				//----- _xZkqqHx_iDfGiBfLiDgHiBeBiDeMiDiDiDjDiDgPiDfIiImKjChFiCpAjFmPiNfIiCmMiDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBjFlGiOjKjHpBiCpAiNoMjAkM_xHqqkZx_ -----
				FCReqBaseAutoVector vDocRequest;
				FFInsertDocRequest(	vDocRequest, -1,
									ID_DREQ_CHANGE_SHEET_ZOOM_CENTER,
									FCReqBase::MM_X, mmX,
									FCReqBase::MM_Y, mmY,
									FCReqBase::SHEET_ID, stid,
									FCReqBase::VIEW_ZOOM_256, 256,
									FCReqBase::NONE);
				// _xZkqqHx_jBiKiOoIjAoGiDeBiDhGiDiKiCmJiDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBiCpAjBjHjFhEiBeC_xHqqkZx_
				FFSendDocRequest(hwnd, NULL, vDocRequest);
			} else
			//----- _xZkqqHx_iOhHiOkGiClDiCoKiClNiDhEiDeAiDeDiDiLiCpAiKeKiCkCiCmEiCkCiCoJ_xHqqkZx_Dynamic Draw_xZkqqHx_iCkKiMkJiCmCiCkJiCoHiCmIiCkCiPoKiNiH_xHqqkZx_ -----
			{
				//----- _xZkqqHx_iDfGiBfLiDgHiBeBiDeMiDiDiDjDiDgPiDfIiImKjChFiCpAjFmPiNfIiCmMiDgIiDeMiDiFiDiBiDjDiDgHjHhGiLiBjFlGiOjKjHpBiCpAiNoMjAkM_xHqqkZx_ -----
				FCReqBaseAutoVector vDocRequest;
				// _xZkqqHx_iDhEiDeAiDeDiDiLiCpAiKeKiCkNiBeC_xHqqkZx_
				FFInsertDocRequest(	vDocRequest, -1,
									ID_DREQ_OPEN_DOCUMENT,
									FCReqBase::DOCUMENT_PATH, wstrDocFile.c_str(),
									FCReqBase::NONE);
				FFInsertDocRequest(	vDocRequest, -1,
									ID_DREQ_CHANGE_SHEET_ZOOM_CENTER,
									FCReqBase::MM_X, mmX,
									FCReqBase::MM_Y, mmY,
									FCReqBase::SHEET_ID, stid,
									FCReqBase::VIEW_ZOOM_256, 256,
									FCReqBase::NONE);
				// DynamicDraw _xZkqqHx_iCpAiLeOjDkOiBeC_xHqqkZx_
				FFExecSpecDocRequest(NULL, vDocRequest, NULL);
			}
			break;
		  }
		case FD_DTP_PROJECT_FORMAT:		// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCmMiDgHiDgCiDhGiDgGiDeCiDiMiDeOiDgHiDiK_xHqqkZx_ (.mdpj)
		  {
			FCReqBaseAutoVector vDocRequest;
			// _xZkqqHx_iOhHjCoIiCmMiDhGiDiNiDfHiDeGiDeOiDgHiBeFjHjKjHpAjFlGiPjBiBeFiImKjChFiCnGiInKjDkOiClHiCoJiBeC_xHqqkZx_
			FFInsertDocRequest(	vDocRequest, -1,
								ID_DREQ_MOVE_HISTORY_UNTIL_PJ_HIDOC_SESSION,
								FCReqBase::PROJECT_PATH, wstrDocFile.c_str(),
								FCReqBase::HIDOCUMENT_ID, lDocumentId,
								FCReqBase::SESSION_INDEX, fliSessionIndex,
								FCReqBase::IS_SELECT_OBJECT, FALSE,
								FCReqBase::SCROLL_TO_FRAME, SCROLL_TO_FRAME::NONE,
								FCReqBase::NONE);
			// _xZkqqHx_iOoGjDlOiClFiClNiNmAjFfHiCkKjCiGjAfDiCmJiCkNiCoJiCoGiCkEiCmJiDfIiDeOiDiNiBfLiDiLiBeC_xHqqkZx_
			FFInsertDocRequest(	vDocRequest, -1,
								ID_DREQ_CHANGE_SHEET_ZOOM_CENTER,
								FCReqBase::MM_X, mmX,
								FCReqBase::MM_Y, mmY,
								FCReqBase::SHEET_ID, stid,
								FCReqBase::VIEW_ZOOM_256, 256,
								FCReqBase::NONE);
			// _xZkqqHx_jHjKjHpAiNfMjBkCiDhCiDiFiBfLiCpAjDkPiKpKiClDiClJiCoJiBeC_xHqqkZx_
			FFInsertDocRequest(	vDocRequest, -1,
								ID_DREQ_SYNC_HIVIEW_TO_DOCUMENT);
			// HistoryViewer _xZkqqHx_iCpAiLeOjDkOiBeC_xHqqkZx_
			FFExecSpecDocRequest(NULL, vDocRequest, L"-histview");
			break;
		  }
		}
	}
} while (FALSE);
} // CFCFoundDoc::OnViewPastePosition.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnUpdateViewPastePosition
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiBhFiDfCiDhDiBfLiClDiCoKiClNjFlGiPjBiImKjChFiCmJiInKjDkOiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.02.26 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OnUpdateViewPastePosition (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(FFCanBasicOperate() && IsClipboardFormatAvailable(CF_TEXT));
} // CFCFoundDoc::OnUpdateViewPastePosition.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnFileSaveCopyAs
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDhNiDjDiDgIiBhFiDfCiDhDiBfLiCmJjGlMjBePiCpAjFhEiCkPiCmEjFnLjBlGiBhGiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iCgOiCgLiCgEiCmMiPoKiNiHiCmJiDiBiDgKiDiFiBfLiCmJjFfMiOkGiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.03.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OnFileSaveCopyAs ()
{
	OnSaveDocumentCopyAs(NULL);
} // CFCFoundDoc::OnFileSaveCopyAs.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnUpdateFileSaveCopyAs
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDhNiDjDiDgIiBhFiDfCiDhDiBfLiCmJjGlMjBePiCpAjFhEiCkPiCmEjFnLjBlGiBhGiCmMjHeMiMpIiBeFjGlDiMpIiCkKjAnNjCoIiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iCgOiCgLiCgEiCmMiPoKiNiHiCmJiDiBiDgKiDiFiBfLiCmJjFfMiOkGiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.03.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OnUpdateFileSaveCopyAs (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(GetIsDocumentOpened() && FFCanBasicOperate());
} // CFCFoundDoc::OnUpdateFileSaveCopyAs.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnUpdateFileUpdate
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iCgOiCgLiCgEiCmMiBhFiNfIjAfGiBhGiDfCiDhNiDjDiDgIiCmMjHeMiMpIiBeFjGlDiMpIiCkKjAnNjCoIiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iDiBiDgKiDiFiBfLiCmMjFfMiOkGjFlGiOjKjHpBiCmN_xHqqkZx_ COleServerDoc::OnUpdateFileUpdate _xZkqqHx_iCmF_xHqqkZx_
 *			_xZkqqHx_jAnNjCoIiClDiCoKiCoJiCmMiCmFiBeBiClBiClBiCmFiPiIjHjNiClHiCoJiCoGiCkEiCmJiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.03.30 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OnUpdateFileUpdate (CCmdUI* pCmdUI)
{
	// m_strHostObj : OLE_xZkqqHx_jFlGiPjBjGlMiBeC_xHqqkZx_
	WString wstrMessage;
	wstrMessage.Format(ID_FILE_UPDATE, (const wchar_t*)TStrToWStr(m_strHostObj));
	// _xZkqqHx_iNlGjHjIiCkLiCmJjAnNjCoIiCmIiCoHiCmOiBeBiDiBiDgKiDiFiBfLiCpAjFmPiNfIiBeC_xHqqkZx_
	if (g_pReg->GetIsLeftHand())
		::RightByLeftHand(wstrMessage);
	// _xZkqqHx_iDiBiDgKiDiFiBfLiCmJiDiBiDgCiDfKiBfLiDfHiCpAjAnNjCoIiBeC_xHqqkZx_
	pCmdUI->SetText(WStrToTStr(wstrMessage));
} // CFCFoundDoc::OnUpdateFileUpdate.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OutCurrentXcoreFormat
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iMlLiNnNiCmMiDgPiBfLiDfHiDiHiDjDiCmMiDhEiDiJiDgCiDgHiDfCiDeBiBgJ_xHqqkZx_fcore_xZkqqHx_iBgKiDhEiDeAiDeDiDiLiCmMiDeBiBfLiDeKiDeDiDhFiCpA_xHqqkZx_
 *			_xZkqqHx_iPgPjHmNiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	file		:_xZkqqHx_iPgPjHmNjAoGiDeBiBfLiDeKiDeDiDhFiCpAiOhHjCoIiBeC_xHqqkZx_
 *			wFileType	:_xZkqqHx_iPgPjHmNiClHiCoJiDhEiDeAiDeDiDiLiCmMiDfOiDeDiDhGiCpAiOhHjCoIiBeC_xHqqkZx_
 *				FD_DTP_STANDARD_FORMAT	_xZkqqHx_jCmKiPoNiDhEiDeIiBfLiDhNiDgCiDgHiCmMjFlGiPjBiBeC_xHqqkZx_(.mdrw)
 *				FD_DTP_PORTABLE_FORMAT	_xZkqqHx_iDhMiBfLiDfOiDhFiDiLiDhEiDeIiBfLiDhNiDgCiDgHiCmMjFlGiPjBiBeC_xHqqkZx_(.mdpf)
 *				FD_DTP_TEMPLATE_FORMAT	_xZkqqHx_iDgFiDjDiDhGiDiMiBfLiDgHiDhEiDeIiBfLiDhNiDgCiDgHiCmMjFlGiPjBiBeC_xHqqkZx_(.mdwt)
 *				FD_DTP_WORK_FORMAT		_xZkqqHx_iDiPiBfLiDeOiDhEiDeIiBfLiDhNiDgCiDgHiCmMjFlGiPjBiBeC_xHqqkZx_(.mdwk)
 *				FD_DTP_VIEWER_FORMAT	_xZkqqHx_iDhCiDiFiBfLiDeBiDhEiDeIiBfLiDhNiDgCiDgHiCmMjFlGiPjBiBeC_xHqqkZx_(.mdvf)
 *			bIsOutObject:_xZkqqHx_jFjEjFgJiPoOjFpBiCpAiPgPjHmNiClHiCoJiCkJiCmHiCkEiCkJiCpAiOhHjCoIiBeC_xHqqkZx_
 *			bIsOutChip	:_xZkqqHx_iDgAiDgCiDhGiPoOjFpBiCpAiPgPjHmNiClHiCoJiCkJiCmHiCkEiCkJiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	_xZkqqHx_iDhEiDeIiBfLiDhNiDgCiDgHiMgAiOkOiCmNiBeB_xHqqkZx_InPortableFormat_xZkqqHx_iCmMiJpAjAoAiCpAiOfBiPmGiBeC_xHqqkZx_
 *			FD_DTP_STANDARD_FORMAT _xZkqqHx_iCmN_xHqqkZx_ _xZkqqHx_jFkBiNiHiDfCiDeB_xHqqkZx_ _xZkqqHx_iClFiCkJiCkAiCoIjDlOiCmIiCkCiCkKiBeB_xHqqkZx_
 *			OutVersionCcoreFormat_xZkqqHx_iKnGjAjEjCiGiCmFiBeBiDfCiDjDiDgPiBfLiDfOiCmJjDgOiClHiDgGiBfLiDfOiCpAjDlOiCoJiClNiCnP_xHqqkZx_
 *			_xZkqqHx_iClBiCmMiKnGjAjEiCpA_xHqqkZx_FD_DTP_STANDARD_FORMAT_xZkqqHx_iDfOiDeDiDhGiCmFiMmEiCnBiPgPiClHiPoKiNiHiCkKiCkAiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.06.23 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OutCurrentXcoreFormat (	CFile& file,
											WORD wFileType,
											BOOL bIsOutObject,
											BOOL bIsOutChip)
{
	// FD_DTP_STANDARD_FORMAT _xZkqqHx_iCmN_xHqqkZx_ _xZkqqHx_jFkBiNiHiDfCiDeB_xHqqkZx_ _xZkqqHx_iClFiCkJiCkAiCoIjDlOiCmIiCkCiCkKiBeB_xHqqkZx_
	// OutVersionCcoreFormat_xZkqqHx_iKnGjAjEjCiGiCmFiBeBiDfCiDjDiDgPiBfLiDfOiCmJjDgOiClHiDgGiBfLiDfOiCpAjDlOiCoJiClNiCnP_xHqqkZx_
	// _xZkqqHx_iClBiCmMiKnGjAjEiCpA_xHqqkZx_FD_DTP_STANDARD_FORMAT_xZkqqHx_iDfOiDeDiDhGiCmFiMmEiCnBiPgPiClHiPoKiNiHiCkKiCkAiCoJiBeC_xHqqkZx_

	ASSERT(	(wFileType == FD_DTP_STANDARD_FORMAT) ||
			(wFileType == FD_DTP_PORTABLE_FORMAT) ||
			(wFileType == FD_DTP_WORK_FORMAT) ||
			(wFileType == FD_DTP_TEMPLATE_FORMAT));
	// UndoArchive_xZkqqHx_iCpAiNoMjAkMiBeC_xHqqkZx_
	FCUndoArchive ar(&file, FD_ARCHIVE_STORE, this);
	// _xZkqqHx_iDeKiDiMiDjDiDgHiDgPiBfLiDfHiDiHiDjDiCmMiDhHiDgCiDfPiPoOjFpBiCpAiPjBiCkLiPgPiClHiBeC_xHqqkZx_
	m_headerInf.OutStreamCurrent(ar, wFileType);

	// DD_xZkqqHx_jFlGiPjBiDhGiDiNiDhAiDgFiDeCiDfIiDgHiDiKiBfLiDiAiCmMiPjBiCkLiNjOiCnNiBeC_xHqqkZx_
	BYTEVector vStream;
	DocumentPropertyToStream(vStream, m_wstrDocumentProperty, FD_DPID_END);
	ar << long(vStream.size());
	ar.Write(&vStream.front(), vStream.size());

	// _xZkqqHx_iDfEiDhFiDfCiDeBiCpAiPgPjHmNiBeC_xHqqkZx_
	OutCurrentSubCoreFormat(ar, wFileType, bIsOutObject, bIsOutChip, TRUE);
} // CFCFoundDoc::OutCurrentXcoreFormat.

//----- 06.10.11 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnOptionIsArrowGapEffective
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iBhFjGoOiIpDjHlMjCfLiCmMiDeNiDiDiDgCiDhGiCpAjHeMiMpIiBhGiDiBiDgKiDiFiBfLiCkJiCoHiOmAiNhDiClDiCoKiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.10.11 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OnOptionIsArrowGapEffective ()
{
	//----- _xZkqqHx_iKgFiOoNjBkOjAkLiCmMjAnNjCoI_xHqqkZx_ -----
	// _xZkqqHx_iPoOjFpBiCmMjAnNjCoIiBeC_xHqqkZx_
	g_pReg->SetIsArrowAutoGap(!g_pReg->GetIsArrowAutoGap());
} // CFCFoundDoc::OnOptionIsArrowGapEffective.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	CFCFoundDoc::OnUpdateOptionIsArrowGapEffective
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iBhFjGoOiIpDjHlMjCfLiCmMiDeNiDiDiDgCiDhGiCpAjHeMiMpIiBhGiDiBiDgKiDiFiBfLiCmMjHeMiMpIiBeFjGlDiMpIiCpAjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	pCmdUI	:_xZkqqHx_iDiBiDgKiDiFiBfLiCpAjDmBjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	06.10.11 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void CFCFoundDoc::OnUpdateOptionIsArrowGapEffective (CCmdUI* pCmdUI)
{
	pCmdUI->Enable(FFCanEditReadOnlyDocumentEnv());
	pCmdUI->SetCheck(g_pReg->GetIsArrowAutoGap());
} // CFCFoundDoc::OnUpdateOptionIsArrowGapEffective.
//----- 06.10.11 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
