#ifndef __UtilPrint_h
#define __UtilPrint_h

extern int PaperTypeToIndex (short nPaperType);
// 03.07.22 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
//extern const wchar_t* GetPaperName (int index);
extern WString GetPaperName (int index);
extern double GetPaperWidth (int index, short nOrient);
extern double GetPaperHeight (int index, short nOrient);
extern short GetPaperType (int index);
extern int PaperIndexSize ();
extern void CalcHardMargin (double& mmMarginL, double& mmMarginT,
							double& mmMarginR, double& mmMarginB, CDC* pDC);
//----- 05.05.15 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//extern void CalcPaperSize (mmetol& mmWidth, mmetol& mmHeight, DEVMODE* pMode, CDC* pDC);
//----- 05.05.15 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
extern BOOL FFGetPaperSize (mmetol& mmWidth,
							mmetol& mmHeight,
							const wchar_t* wcpDevice,
							const wchar_t* wcpPort,
							DEVMODE* pMode);
extern BOOL FFGetPaperName (WString& wstrPaperName,
							const wchar_t* wcpDevice,
							const wchar_t* wcpPort,
							DEVMODE* pMode);

extern BOOL FFPaperSizeToId (WORD& wPaperId,
							const wchar_t* wcpDevice,
							const wchar_t* wcpPort,
							const CPoint& ptPaperSize,
							WORD wPaperIdReccomended = WORD(-1));
extern BOOL FFPaperIdToSize (CPoint& ptPaperSize,
							const wchar_t* wcpDevice,
							const wchar_t* wcpPort,
							WORD wPaperId);

//----- 05.05.15 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
extern void CalcAutoMargin (mmetol& mmMarginL, mmetol& mmMarginT,
							mmetol& mmMarginR, mmetol& mmMarginB, double& dRatio,
							mmetol mmDocPaperW, mmetol mmDocPaperH,
							mmetol mmDocPageW, mmetol mmDocPageH,
							mmetol mmDocMarginL, mmetol mmDocMarginT,
							mmetol mmDocMarginR, mmetol mmDocMarginB,
							mmetol mmHardPaperW, mmetol mmHardPaperH,
							mmetol mmHardMarginL, mmetol mmHardMarginT,
							mmetol mmHardMarginR, mmetol mmHardMarginB);

extern WString FFGetDeviceName (LPDEVNAMES lpDevNames);
extern WString FFGetPortName (LPDEVNAMES lpDevNames);

//----- 05.05.15 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//extern BOOL FFGetPaperSizeList (WORDVector& vPaperId,
//								CPointVector& vPaperSize,
//								LPDEVNAMES lpDevNames);
//extern BOOL FFGetPaperSizeList (WORDVector& vPaperId,
//								CPointVector& vPaperSize,
//								const wchar_t* wcpDevice,
//								const wchar_t* wcpPort);
//----- 05.05.15 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
extern BOOL FFGetPaperIdList (	WORDVector& vPaperId,
								const wchar_t* wcpDevice,
								const wchar_t* wcpPort);
extern BOOL FFGetPaperSizeList (CPointVector& vPaperSize,
								const wchar_t* wcpDevice,
								const wchar_t* wcpPort);
extern BOOL FFGetPaperNameList (WStringVector& vPaperName,
								const wchar_t* wcpDevice,
								const wchar_t* wcpPort);
//----- 05.05.15 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----

extern void FFEvalPageNumberText (	WString& wstrEvalText,
									const wchar_t* wcpText,
									long lPageNumberInOne,
									long lPageNumberInAll,
									long lTotalPageInOne,
									long lTotalPageInAll,
									long lSheetNumber,
									long lTotalSheet,
									const wchar_t* wcpSheetTitle);

#endif//__UtilPrint_h

