Mercurial > kinput2.yaz
comparison include/AtokP.h @ 0:92745d501b9a
initial import from kinput2-v3.1
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Mon, 08 Mar 2010 04:44:30 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:92745d501b9a |
---|---|
1 /* $Id: AtokP.h,v 1.1 1999/08/13 06:26:59 ishisone Exp $ */ | |
2 /* | |
3 * Copyright 1999 Justsystem Corporation, Japan. | |
4 * | |
5 * Permission to use, copy, modify, and distribute this software and its | |
6 * documentation for any purpose and without fee is hereby granted, | |
7 * provided that the above copyright notice appear in all copies and that | |
8 * both that copyright notice and this permission notice appear in | |
9 * supporting documentation, and that the name of Justsystem Corporation | |
10 * not be used in advertising or publicity pertaining to distribution | |
11 * of the software without specific, written prior permission. Justsystem | |
12 * Corporation makes no representations about the suitability of this | |
13 * software for any purpose. It is provided "as is" without express | |
14 * or implied warranty. | |
15 * | |
16 * Author: Atsushi Irisawa | |
17 */ | |
18 | |
19 #ifndef _AtokP_h | |
20 #define _AtokP_h | |
21 | |
22 #include "InputConvP.h" | |
23 | |
24 #include "WStr.h" | |
25 #include "Atok.h" | |
26 #include "Xatoklib.h" | |
27 | |
28 typedef struct { | |
29 int foo; | |
30 } AtokClassPart; | |
31 | |
32 typedef struct _AtokClassRec { | |
33 ObjectClassPart object_class; | |
34 InputConvClassPart inputConv_class; | |
35 AtokClassPart atok_class; | |
36 } AtokClassRec; | |
37 | |
38 #define ATOK_NSEGMENTS 20 /* $BJ8@a$N:GBg?t(B ???? */ | |
39 | |
40 #define NBR_OF_PART 3 | |
41 #if 0 | |
42 typedef struct { | |
43 /* $BI=<($O(B $BA4It(B($B:GBg(B)$B$G#3$D$N%Q!<%H$K$J$k!#(B */ | |
44 ICString ics[NBR_OF_PART]; | |
45 wchar *gline[NBR_OF_PART]; | |
46 int glsize[NBR_OF_PART]; | |
47 int gllen[NBR_OF_PART]; | |
48 /* $B%-!<F~NO$5$l$?%G!<%?$NJ]B8%P%C%U%!(B */ | |
49 wchar echoStr[1024]; | |
50 int echoLen; | |
51 int revPos; | |
52 int revLen; | |
53 } InputBuf; | |
54 #endif | |
55 | |
56 typedef struct { | |
57 wchar name[64]; | |
58 int length; | |
59 int size; | |
60 } AtokMode; | |
61 | |
62 typedef struct { | |
63 /* RESOURCES */ | |
64 String atokserver; | |
65 String port; | |
66 String conffile; | |
67 String stylefile; | |
68 | |
69 /* private data */ | |
70 long context; /* ATOK Communication $B$N(BContext */ | |
71 /*AtokMode mode;*/ | |
72 Boolean textchanged; /* $BJQ49%F%-%9%H$,JQ$o$C$?$+(B */ | |
73 /*int convStatus; /* 0 : $BL5JQ49(B | |
74 /* 1 : $BJQ49Cf(B | |
75 * 2 : $B8uJdI=<(Cf(B | |
76 * 3 : $B%3!<%IF~NOCf(B | |
77 * 4 : $B%f!<%F%#%j%F%#!<(B | |
78 */ | |
79 /* $BL$3NDjJ8;zNsI=<(MQ$NNN0h(B(for ki2) */ | |
80 ICString ics[NBR_OF_PART];/* $BL$3NDjJ8;zNsI=<((B */ | |
81 | |
82 /* $B%;%0%a%s%H$N4IM}(B */ | |
83 _XatokRecPtr comm; /* ATOKCE $B$H$N%3%_%e%K%1!<%7%g%s(B */ | |
84 | |
85 /* $B8uJd%G!<%?4X78$NDj5A(B */ | |
86 int nbr_of_cand; /* $B8uJdA*Br;~$N8uJd?t(B */ | |
87 ICString *cand_lists_ics;/* $B8uJd(B */ | |
88 int cur_cand; /* $BA*Br$5$l$F$$$k9-Js(B */ | |
89 int selected_cand; | |
90 int cand_list_size; /* $B%"%m%1!<%7%g%s$5$l$F$$$k%5%$%:(B */ | |
91 | |
92 /* AUX $B%&%#%s%I%&$N$?$a$N(BICS $B4IM}NN0h(B */ | |
93 /*wchar aux_echoStr[BUFSIZ*2]; */ | |
94 /*int aux_echoLen;*/ | |
95 /*int aux_revLen;*/ | |
96 /*int aux_revPos;*/ | |
97 ICString aux_ics[NBR_OF_PART]; | |
98 wchar *aux_string[NBR_OF_PART]; | |
99 int aux_length[NBR_OF_PART]; | |
100 int aux_size[NBR_OF_PART]; | |
101 int aux_curseg; | |
102 int aux_nseg; | |
103 /*wchar **atok_cand;*/ | |
104 } AtokPart; | |
105 | |
106 typedef struct _AtokRec { | |
107 ObjectPart object; | |
108 InputConvPart inputConv; | |
109 AtokPart atok; | |
110 } AtokRec; | |
111 | |
112 #endif |