Back to index

im-sdk  12.3.91
le_info.h
Go to the documentation of this file.
00001 #ifndef _LE_INFO_H_
00002 #define _LE_INFO_H_
00003 
00004 #include "SunIM.h"
00005 #include "m17n.h"
00006 #include "m17n-misc.h"
00007 
00008 #ifdef HAVE_CONFIG_H
00009 #include "config.h"
00010 #endif
00011 
00012 typedef enum {
00013     LE_FAIL = 0,
00014     LE_OK,
00015 } LeResult;
00016 
00017 typedef enum {
00018     LE_FALSE = 0,
00019     LE_TRUE,
00020 } LeBoolean;
00021 
00022 /* define the status for conversion/qjbj/punctuation */
00023 typedef enum {
00024     CONVERSION_OFF = 0,
00025     CONVERSION_ON,
00026 } ConversionStatus;
00027 
00028 #define MAX_SUPPORT_LOCALES    100
00029 
00030 typedef struct {
00031     int enabled;
00032 
00033     MSymbol language;
00034     MSymbol name;
00035     MInputMethod *im;
00036 } M17nImInfoRec;
00037 
00038 typedef struct {
00039     int num_input_methods;
00040     M17nImInfoRec **input_methods;
00041 
00042     MSymbol    Miiim_ic;
00043     MSymbol    Mkey_english_native;
00044     MSymbol    Mkey_switch_next_im;
00045 
00046     MConverter *converter;
00047 } LeInfoRec;
00048 
00049 #endif /* _LE_INFO_H_ */