// SrvrItem.h : CFCMolipDrawSrvrItem _xZkqqHx_iDeOiDiJiDfIiCmMjAoJiMlOiCkIiCoGiCnBiDeDiDjDiDfOiBfLiDhEiDeGiDeDiDfIiCmMjCoIiLgAiCpAiClFiCnMiClHiBeC_xHqqkZx_
//

#if !defined(AFX_SRVRITEM_H__0F2570F1_A510_11D2_AC0E_00C0F6B0E2D0__INCLUDED_)
#define AFX_SRVRITEM_H__0F2570F1_A510_11D2_AC0E_00C0F6B0E2D0__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class FCZOrder;

class CFCMolipDrawSrvrItem : public COleServerItem
{
	DECLARE_DYNAMIC(CFCMolipDrawSrvrItem)

// _xZkqqHx_iDfCiDjDiDfIiDgHiDiJiDeOiDfO_xHqqkZx_
public:
// 03.08.31 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//	CFCMolipDrawSrvrItem(CFCFoundDoc* pContainerDoc);
	CFCMolipDrawSrvrItem(COleServerDoc* pContainerDoc);

//----- 02.12.13 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//// _xZkqqHx_iDeBiDgHiDiKiDhCiDiFiBfLiDgH_xHqqkZx_
//	CFCFoundDoc* GetDocument() const
//		{ return (CFCFoundDoc*)COleServerItem::GetDocument(); }
//----- 02.12.13 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

// _xZkqqHx_iDiGiBfLiDfFiDeJiBfLiDgPiBfLiDiJiDeDiDgIiBeC_xHqqkZx_
	public:
	virtual BOOL OnRenderData (LPFORMATETC lpFormatEtc, LPSTGMEDIUM lpStgMedium);

// _xZkqqHx_iDiGiBfLiDfFiKnGjAjEiBeC_xHqqkZx_
	static BOOL			SaveSelectedWMF (const wchar_t* tcpPath,
										mmetol mmMarginLeft, mmetol mmMarginTop,
										mmetol mmMarginRight, mmetol mmMarginBottom);
	static BOOL			SaveSelectedEMF (const wchar_t* tcpPath,
										mmetol mmMarginLeft, mmetol mmMarginTop,
										mmetol mmMarginRight, mmetol mmMarginBottom);
	static HENHMETAFILE	GetCurrentSheetEMF (const wchar_t* tcpPath,
										mmetol mmMarginLeft, mmetol mmMarginTop,
										mmetol mmMarginRight, mmetol mmMarginBottom);

protected:
	virtual BOOL	GetEnhancedMetafileData (LPFORMATETC lpFormatEtc, LPSTGMEDIUM pmedium);
// 02.10.21 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ (_xZkqqHx_iIpIjAjEjCpJjAlD_xHqqkZx_)
//	static BOOL		OnDrawEMF (CDC* pDC, const ObjDynabaseVector& vObj, DBLRect& mmrtFrame);
	static BOOL		OnDrawEMF (CDC* pDC, const ObjDynabaseVector& vObj, const DBLRect& mmrtFrame);
	static BOOL		OnDrawWMF (CDC* pDC, CSize& rSize);
	static BOOL		GetPasteObjFrame (ObjDynabaseVector& vObj, DBLRect& mmrtFrame,
										const FCZOrder* pZOrder,
										long lMaxCX, long lMaxCY);

// _xZkqqHx_iDiGiBfLiDfFiKnGjAjEiBeC_xHqqkZx_
protected:
// 00.08.28 Fukushiro M. 1_xZkqqHx_iNhDiNoNiPjM_xHqqkZx_ ()
//	short	m_nResolution;

// _xZkqqHx_iDeJiBfLiDgPiBfLiDiJiDeDiDgI_xHqqkZx_
	// ClassWizard _xZkqqHx_iCmNiJlMjBhKiKnGjAjEiCmMiDeJiBfLiDgPiBfLiDiJiDeDiDgIiCpAjAlGjAkMiClFiCnMiClHiBeC_xHqqkZx_
	//{{AFX_VIRTUAL(CFCMolipDrawSrvrItem)
	public:
	virtual BOOL OnDraw(CDC* pDC, CSize& rSize);
	virtual BOOL OnGetExtent(DVASPECT dwDrawAspect, CSize& rSize);
	//}}AFX_VIRTUAL

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

protected:
	virtual void Serialize(CArchive& ar);   // _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgH_xHqqkZx_ I/O _xZkqqHx_iCmJjBmOiClFiCmEiDeJiBfLiDgPiBfLiDiJiDeDiDgIiClDiCoKiCnMiClHiBeC_xHqqkZx_

	virtual COleDataSource* OnGetClipboardData(BOOL bIncludeLink,
		LPPOINT pptOffset, LPSIZE pSize);

protected:
	// GetNativeClipboardData called by overrided OnGetClipboardData
	void GetNativeClipboardData(COleDataSource *pDataSource);
//----- 00.08.28 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	// EMF_xZkqqHx_iCpAiLeMjIfOiClHiCoJiBeC_xHqqkZx_
//	BOOL GetEMFClipboardData (COleDataSource *pDataSource, short nResolution);
//----- 00.08.28 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----
};

/////////////////////////////////////////////////////////////////////////////

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

#endif // !defined(AFX_SRVRITEM_H__0F2570F1_A510_11D2_AC0E_00C0F6B0E2D0__INCLUDED_)
