/*------------------------------------------------------------------------------*
 * File Name: xfguixml.h														*
 * Creation: CPY 12/14/2007														*
 * Purpose: OriginC header for XF2GUI and GUI2XF								*
 * Copyright (c) OriginLab Corp.	2007										*
 * All Rights Reserved															*
 * 																				*
 * Modification Log:															*
 * Hong 08/28/07 QA80-10310 MORE_VARIABLE_INFO_FOR_XF2GUI original in common.h	*
 * CPY 12/16/2007 NEED_CUSTOM_BUTTONS_TEXT create this by taking from common.h	*
 *------------------------------------------------------------------------------*/
#ifndef _XFGUI_XML_H
#define _XFGUI_XML_H


/// Hong 08/28/07 QA80-10310 MORE_VARIABLE_INFO_FOR_XF2GUI
#define STR_ATTRIB_ENGLISH					"English"

#define STR_XF_GUI_JAPANESE_FILE			"JXFGUI.xml"
#define STR_XF_GUI_GERMAN_FILE				"GXFGUI.xml"
#define STR_XF_GUI_CHINESE_FILE				"CXFGUI.xml"
#define STR_XF_GUI_ENGLISH_FILE				"EXFGUI.xml"	/// Max 12/3/07 ADD_ENGLISH_GUI_FILE

#define STR_XF_GUI_DESCRIPTION				"Description"
#define STR_XF_GUI_HINT						"AutoCompleteHint"
#define STR_XF_GUI_VAR_DISPLAY_NAME			"DisplayName"
#define STR_XF_CUSTOM_BUTTON				STR_CUSTOM_BUTTONS_ATTRIB //----- CPY 12/16/2007 NEED_CUSTOM_BUTTONS_TEXT

#define STR_XF_GUI_VAR_DESCRIPTION			STR_XF_GUI_DESCRIPTION
#define STR_XF_GUI_VAR_HINT					STR_XF_GUI_HINT
/// end MORE_VARIABLE_INFO_FOR_XF2GUI
//---- CPY 12/19/07 J_XML_GIBBERISH_WHEN_PROCESSED_IN_E_OS
static int _cvt_lang_to_code_page(int nLang)
{
	switch(nLang)
	{
	case IDRS_HELP_J:
		return CP_Japanese;
	case IDRS_HELP_C:
		return CP_Simplified_Chinese;
	}
	return CP_US_ANSI;
}
//----
#endif //_XFGUI_XML_H

