#ifndef __FdGlobal_h
#define __FdGlobal_h

class CFCDynamicDrawView;
class CFCFoundDoc;
class CFCMainFrame;
class CFCInPlaceFrame;
class FCEnv;
class FCRegData;
class FCToolManager;
class FCHiProject;

/**********************************************************************
 *                      _xZkqqHx_iDePiDiNiBfLiDgPiDiLjFmPjAjE_xHqqkZx_
 **********************************************************************/

struct FCGlobal
{
	void Initialize ();					// dDisplayPPM_xZkqqHx_jDjJiCmMiPiJiKpKiJlLiBeC_xHqqkZx_

	WORD		appMode;				// _xZkqqHx_iDeBiDhGiDiKiOmAiNhDiDiCiBfLiDgIiBeC_xHqqkZx_
										// FD_APPMODE_XXXXX | FD_RUNMODE_YYYYY _xZkqqHx_iCmMjBgHiCnNiNiHiCoNiClJiBeC_xHqqkZx_
	double		dDisplayPPM;			// Display_xZkqqHx_iCmMjIfPjHjN_xHqqkZx_pixel/mm_xZkqqHx_iCpA_xHqqkZx_LOGPIXELSX_xZkqqHx_iCmFiOoGjDlOiBeC_xHqqkZx_
	double		dRealDisplayPPMHorz;	// Display_xZkqqHx_iCmMjIfPjHjN_xHqqkZx_pixel/mm_xZkqqHx_iCpA_xHqqkZx_HORZRES/HORZSIZE_xZkqqHx_iCmFiOoGjDlOiBeC_xHqqkZx_
	double		dRealDisplayPPMVert;	// Display_xZkqqHx_iCmMjIfPjHjN_xHqqkZx_pixel/mm_xZkqqHx_iCpA_xHqqkZx_VERTRES/VERTSIZE_xZkqqHx_iCmFiOoGjDlOiBeC_xHqqkZx_
	long		lZoom256;				// _xZkqqHx_jEhLjHkGiBeCiPiJiKpKjCgMiCmN_xHqqkZx_256.CFCMainFrame_xZkqqHx_iCmFjAnNjCoIiBeC_xHqqkZx_
	double		dZoom;
	long		lZoom256Max;			// Zoom256_xZkqqHx_jCgMiCmMiNmFjBoFjCgMiBeCiClBiCmMjCgMiCpAiKnMiCnOiBeC_xHqqkZx_
	long		lgOffsetX;				// _xZkqqHx_iDfIiDeOiDiNiBfLiDiLiDeJiDhEiDfKiDgCiDgHjCgMiBeC_xHqqkZx_
	long		lgOffsetY;				// _xZkqqHx_iDfIiDeOiDiNiBfLiDiLiDeJiDhEiDfKiDgCiDgHjCgMiBeC_xHqqkZx_
	FTDrawWhich	eDrawWhich;				// _xZkqqHx_iMlLiNnNiCmMjFgAiJoGjAoGiDgGiDgPiDeDiDfIiCpAjAnNjCoIiBeC_xHqqkZx_
	double		lgdPrecision;			// _xZkqqHx_iLmIjApMiMhGiOfKiOjOiCmMjClIjDfPiKnEiCmMiLjHjHkDiBeCjIfPjHjNiNmAjFfHjCgMiBeC_xHqqkZx_
}; // struct FCGlobal.

extern FCGlobal*	g_;
extern CPalette*	g_pFDPalette;		// MolipDraw_xZkqqHx_jHhAiDhAiDiMiDgCiDgHiBeC_xHqqkZx_

extern FCEnv*				g_pEnv;				// _xZkqqHx_iKmCiLkLiBeC_xHqqkZx_
extern FCRegData*			g_pReg;				// _xZkqqHx_iDiMiDfHiDfIiDgHiDiKiBeC_xHqqkZx_
extern CFCFoundDoc*			g_pDoc;				// _xZkqqHx_iDgIiDeMiDiFiDiBiDjDiDgHiBeC_xHqqkZx_
extern CFCMainFrame*		g_pFrame;			// _xZkqqHx_iDhEiDiMiBfLiDiAiBeC_xHqqkZx_
extern CFCInPlaceFrame*		g_pInPlace;			// _xZkqqHx_iDeDiDjDiDhGiDiMiBfLiDfIiDhEiDiMiBfLiDiAiBeC_xHqqkZx_
extern CFCDynamicDrawView*	g_pView;			// _xZkqqHx_iDhCiDiFiBfLiBeC_xHqqkZx_
extern FCToolManager*		g_pToolManager;		// _xZkqqHx_iDgDiBfLiDiLiDhNiDgMiBfLiDfHiDiDiBeC_xHqqkZx_
extern FCHiProject*			g_pProject;			// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiBeC_xHqqkZx_

extern const int	g_nBitsPixel;			// GetDeviceCaps(BITSPIXEL).
extern const DWORD	g_dwChipBits;			// ChipRec_xZkqqHx_iCmM_xHqqkZx_m_pBits_xZkqqHx_iCmMiDfEiDeDiDfJiBeC_xHqqkZx_
extern const DWORD	g_dwPictArrowBits;		// PictArrowRec_xZkqqHx_iCmM_xHqqkZx_m_pBits_xZkqqHx_iCmMiDfEiDeDiDfJiBeC_xHqqkZx_
extern const CLIPFORMAT	g_cfDDFile;			// Dynamic Draw_xZkqqHx_iCmMiDeOiDiKiDgCiDhGiDhLiBfLiDgIiDfCiDhDiBfLjHhA_xHqqkZx_ Native File Data _xZkqqHx_iCmMiMgAiOkOjGlMiBeC_xHqqkZx_
extern const CLIPFORMAT	g_cfObjFigure;		// g_cfDDFile_xZkqqHx_iCmFiBeB_xHqqkZx_ObjFigure_xZkqqHx_iCkKiCfAiCmCiCmMiCnNjDgPjIfOiCmMiPoKiNiHiCmJiBeBiLeMjIfOiClDiCoKiCoJiBeC_xHqqkZx_
extern const CLIPFORMAT	g_cfDDText;			// Dynamic Draw_xZkqqHx_iCmMiDgFiDeMiDfIiDgHiDeOiDiKiDgCiDhGiDhLiBfLiDgIiDfCiDhDiBfLjHhAiBeC_xHqqkZx_
extern const CLIPFORMAT	g_cfRTF;			// RTF_xZkqqHx_iDhEiDeIiBfLiDhNiDgCiDgHiBeC_xHqqkZx_
extern const CLIPFORMAT	g_cfEmbeddedObject;	// OLE_xZkqqHx_iDgGiBfLiDfOiBeC_xHqqkZx_
extern const CLIPFORMAT	g_cfEmbedSource;	// OLE_xZkqqHx_iDfMiBfLiDfIiBeC_xHqqkZx_
extern const CLIPFORMAT	g_cfCsvText;		// CSV_xZkqqHx_iDgFiDeMiDfIiDgHiBgJ_xHqqkZx_Paste_xZkqqHx_iOjOiCmMiOkPjFmKiCmJiCmMiCnNiOgHjHhAiBgK_xHqqkZx_
extern const CLIPFORMAT	g_cfCsvUnicodeText;	// CSV Unicode_xZkqqHx_iDgFiDeMiDfIiDgHiBgJ_xHqqkZx_Paste_xZkqqHx_iOjOiCmMiOkPjFmKiCmJiCmMiCnNiOgHjHhAiBgK_xHqqkZx_

// _xZkqqHx_iDePiDiNiBfLiDgPiDiLjFmPjAjEiCmMiDgPiDgCiDeOiDeBiDgCiDhGiBeC_xHqqkZx_
extern void FFGlobalBackup ();
// _xZkqqHx_iDePiDiNiBfLiDgPiDiLjFmPjAjEiCmMjFjMiLeBiBeC_xHqqkZx_
extern void FFGlobalRestore ();

#endif//__FdGlobal_h
