#if !defined(AFX_34DOCUMENT_H__DDAAE3BB_905B_4719_833B_795986D8FD32__INCLUDED_)
#define AFX_34DOCUMENT_H__DDAAE3BB_905B_4719_833B_795986D8FD32__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// 34Document.h : _xZkqqHx_iDhHiDgCiDfPiBfL_xHqqkZx_ _xZkqqHx_iDhEiDeAiDeDiDiL_xHqqkZx_
//

class MC4ObjBase;
// _xZkqqHx_iDhHiDgCiDfPiPoOjFpBiBeC_xHqqkZx_
class MC4HeaderInf;
// _xZkqqHx_iDhGiDiKiDjDiDfOiPoOjFpBjDjJiBeC_xHqqkZx_
class MC4App;
// _xZkqqHx_iKmCiLkLiPoOjFpBiBeC_xHqqkZx_
class MC4Env;
// _xZkqqHx_iDgDiBfLiDiLjAnNjCoIiPoOjFpBiBeC_xHqqkZx_
class MC4ToolManager;
// _xZkqqHx_iDfGiBfLiDgHiBeBjFjEjFgJiPoOjFpBiBeC_xHqqkZx_
class MC4SheetManager;
// _xZkqqHx_iDiKiDjDiDeOiPoOjFpBiBeC_xHqqkZx_
class MC4LinkManager;
// _xZkqqHx_iDiMiDfHiDfIiDgHiDiKiPoOjFpBiBeC_xHqqkZx_
class MC4Reg;
// _xZkqqHx_iDeMiDiDiDjDiDgPiDfIiPoOjFpBiBeC_xHqqkZx_
class MC4CanvasStat;


/////////////////////////////////////////////////////////////////////////////
// MC4Document _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgH_xHqqkZx_

class MC4Document : public COleServerDoc
{
// _xZkqqHx_iDiGiBfLiDfFiKnGjAjEiBeC_xHqqkZx_
public:
	virtual LPSTORAGE	SetRootStorage (LPSTORAGE pStorage);
	virtual void		SetFileType (FTDocumentFormat df);
	virtual void		SetImage (	const BYTE* pImageData,
									long lImageSize,
									const CSize& szImage);
	virtual void		InStreamCore (CArchive& ar, BOOL bIsFcore);
	virtual void		OutStreamCore (CArchive& ar, BOOL bIsFcore);
//----- 06.04.04 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	virtual BOOL		LoadTemplate (const wchar_t* wcpFilePath);
//	virtual BOOL		SaveTemplate (const wchar_t* wcpFilePath);
//----- 06.04.04 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

	virtual void		SetHeaderLoadOnly (BOOL bHeaderLoadOnly);
	virtual const MC4HeaderInf*	GetHeaderInfo () const;

	virtual void		RegisterObject (MC4ObjBase* pObj, DWORD dwID);
	virtual void		UnregisterObject (MC4ObjBase* pObj);

// _xZkqqHx_iDiGiBfLiDfFjFmPjAjEiBeC_xHqqkZx_
protected:
	// _xZkqqHx_iDhHiDgCiDfPjDmHiCnNiNjOiCnNiCmMiCnNiBeC_xHqqkZx_
	BOOL				m_bHeaderLoadOnly;
	// _xZkqqHx_jFfMiOkGjFjEjFgJ_xHqqkZx_ID_xZkqqHx_iCmMiKmHjHjNiDgFiBfLiDhFiDiL_xHqqkZx_.
	map<DWORD, MC4ObjBase*>	m_mpIdToObj;
	// _xZkqqHx_iDhHiDgCiDfPiPoOjFpBiBeC_xHqqkZx_
	MC4HeaderInf*		m_headerInf;
//----- 05.07.30 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_jFlGiPjBiDhGiDiNiDhAiDgFiDeCiBeC_xHqqkZx_
// 06.04.01 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//	BYTEVector			m_vDocProperty;
	WString				m_wstrDocumentProperty[FD_DPID_END];	// _xZkqqHx_jFlGiPjBiDhGiDiNiDhAiDgFiDeCiBeC_xHqqkZx_
//----- 05.07.30 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----
	// _xZkqqHx_iDhGiDiKiDjDiDfOiPoOjFpBjDjJiBeC_xHqqkZx_
	MC4App*				m_app;
	// _xZkqqHx_iKmCiLkLiPoOjFpBiBeC_xHqqkZx_
	MC4Env*				m_env;
	// _xZkqqHx_iDgDiBfLiDiLjAnNjCoIiPoOjFpBiBeC_xHqqkZx_
	MC4ToolManager*		m_toolManager;
	// _xZkqqHx_iDfGiBfLiDgHiBeBjFjEjFgJiPoOjFpBiBeC_xHqqkZx_
	MC4SheetManager*	m_sheetManager;
	// _xZkqqHx_iDiKiDjDiDeOiPoOjFpBiBeC_xHqqkZx_
	MC4LinkManager*		m_linkManager;
	// _xZkqqHx_iDiMiDfHiDfIiDgHiDiKiPoOjFpBiBeC_xHqqkZx_
	MC4Reg*				m_reg;
	// _xZkqqHx_iDeMiDiDiDjDiDgPiDfIiPoOjFpBiBeC_xHqqkZx_
	MC4CanvasStat*		m_canvasStat;

//----- 06.04.04 Fukushiro M. _xZkqqHx_jCmHiJmBiOgO_xHqqkZx_ ()-----
	// _xZkqqHx_iDeDiDiBiBfLiDfHiPoOjFpBiBeC_xHqqkZx_
	BYTEVector			m_vImageData;
	CSize				m_szImage;
//----- 06.04.04 Fukushiro M. _xZkqqHx_jCmHiJmBiPeJ_xHqqkZx_ ()-----

protected:
	MC4Document();           // _xZkqqHx_jDkOjDeJjAlGjAkMiCmJiOgHjHhAiClDiCoKiCoJiDhGiDiNiDgFiDeOiDgH_xHqqkZx_ _xZkqqHx_iDfCiDjDiDfIiDgHiDiJiDeOiDfOiBeC_xHqqkZx_
	DECLARE_DYNCREATE(MC4Document)

// _xZkqqHx_iDeBiDgHiDiKiDhCiDiFiBfLiDgH_xHqqkZx_
public:

// _xZkqqHx_iDeJiDhJiDiMiBfLiDfGiDiHiDjD_xHqqkZx_
public:

// _xZkqqHx_iDeJiBfLiDgPiBfLiDiJiDeDiDgI_xHqqkZx_
	// ClassWizard _xZkqqHx_iCmNiJlMjBhKiKnGjAjEiCmMiDeJiBfLiDgPiBfLiDiJiDeDiDgIiCpAjAlGjAkMiClFiCnMiClHiBeC_xHqqkZx_
	//{{AFX_VIRTUAL(MC4Document)
	public:
	virtual void Serialize(CArchive& ar);   // _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgH_xHqqkZx_ I/O _xZkqqHx_iCmJjBmOiClFiCmEiDeJiBfLiDgPiBfLiDiJiDeDiDgIiClDiCoKiCnMiClHiBeC_xHqqkZx_
	virtual BOOL OnNewDocument();
	protected:
	virtual COleServerItem* OnGetEmbeddedItem();
	//}}AFX_VIRTUAL

// _xZkqqHx_iDeDiDjDiDhGiDiKiDiBiDjDiDgFiBfLiDfGiDiHiDjD_xHqqkZx_
public:
	virtual ~MC4Document();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	// _xZkqqHx_iDiBiDgCiDfKiBfLiDfH_xHqqkZx_ _xZkqqHx_iDhNiDgCiDhGiKnGjAjEiCmMjAlGjAkM_xHqqkZx_
protected:
	//{{AFX_MSG(MC4Document)
		// _xZkqqHx_iDiBiDiC_xHqqkZx_ - ClassWizard _xZkqqHx_iCmNiClBiCmMiImKjChFiCmJiDiBiDjDiDgPiKnGjAjEiCpAjCmHiJmBiCnMiClNiCmNiNoNiPjMiClFiCnMiClHiBeC_xHqqkZx_
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ _xZkqqHx_iCmNjBePiNhDiCmMjClMjBePiCmJjCmHiJmBiCmMjAoJiMlOiCpAjBhNjDpMiClFiCnMiClHiBeC_xHqqkZx_

#endif // !defined(AFX_34DOCUMENT_H__DDAAE3BB_905B_4719_833B_795986D8FD32__INCLUDED_)
