Files correlati : Ricompilazione Demo : [ ] Commento : Riportata la versione 3.1 patch 766 git-svn-id: svn://10.65.10.50/trunk@14628 c028cbd2-c16b-5b4b-a496-9718f37d4682
		
			
				
	
	
		
			49 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			C
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			49 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			C
		
	
	
		
			Executable File
		
	
	
	
	
#ifndef __DICTION_H
 | 
						|
#define __DICTION_H
 | 
						|
 | 
						|
#ifdef WIN32
 | 
						|
#define TO_BE_TRANSLATED   "\03\02\01\00"
 | 
						|
#define ALREADY_TRANSLATED "\01\02\03\00"
 | 
						|
#endif
 | 
						|
 | 
						|
#ifndef XVT_INCL_XVT
 | 
						|
#include <xvt.h>
 | 
						|
#endif
 | 
						|
 | 
						|
#ifndef __STRINGS_H
 | 
						|
#include <strings.h>
 | 
						|
#endif
 | 
						|
 | 
						|
TString& txt2xml(const TString& str);
 | 
						|
TString& xml2txt(const TString& str);
 | 
						|
 | 
						|
const char* dictionary_translate(const char* sentence);
 | 
						|
const char* dictionary_translate_macro(const char* sentence);
 | 
						|
const char* dictionary_translate_prompt(const char* prompt, int maxlen = 0);
 | 
						|
const char* dictionary_translate_macro_prompt(const char* prompt, int maxlen = 0);
 | 
						|
const char* dictionary_translate_header(const char* head);
 | 
						|
const char* dictionary_translate_macro_header(const char* head);
 | 
						|
const char* dictionary_translate_menu_item(const char* menu);
 | 
						|
 | 
						|
void dictionary_translate_menu(WINDOW win);
 | 
						|
void dictionary_translate_menu(MENU_ITEM* menu);
 | 
						|
bool dictionary_active();
 | 
						|
void dictionary_close();
 | 
						|
 | 
						|
 | 
						|
#ifdef WIN32
 | 
						|
#define TR(str) dictionary_translate_macro(TO_BE_TRANSLATED##str)
 | 
						|
#define PR(str) dictionary_translate_macro_prompt(TO_BE_TRANSLATED##str)
 | 
						|
#define BR(str, len) dictionary_translate_macro_prompt(TO_BE_TRANSLATED##str, len)
 | 
						|
#define HR(str) dictionary_translate_macro_header(TO_BE_TRANSLATED##str)
 | 
						|
#define FR(str) dictionary_translate_macro(TO_BE_TRANSLATED##str)
 | 
						|
#else
 | 
						|
#define TR(str) dictionary_translate_macro(str)
 | 
						|
#define PR(str) dictionary_translate_macro_prompt(str)
 | 
						|
#define BR(str, len) dictionary_translate_macro_prompt(str, len)
 | 
						|
#define HR(str) dictionary_translate_macro_header(str)
 | 
						|
#define FR(str) dictionary_translate_macro(str)
 | 
						|
#endif
 | 
						|
 | 
						|
#endif
 |