1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
|
/* $Id: CcWnnP.h,v 1.16 1999/04/12 08:53:38 ishisone Exp $ */
/*
* Copyright (c) 1990 Software Research Associates, Inc.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose and without fee is hereby granted, provided
* that the above copyright notice appear in all copies and that both that
* copyright notice and this permission notice appear in supporting
* documentation, and that the name of Software Research Associates not be
* used in advertising or publicity pertaining to distribution of the
* software without specific, written prior permission. Software Research
* Associates makes no representations about the suitability of this software
* for any purpose. It is provided "as is" without express or implied
* warranty.
*
* Author: Makoto Ishisone, Software Research Associates, Inc., Japan
*/
#ifndef _CcWnnP_h
#define _CcWnnP_h
#include "InputConvP.h"
#undef wchar
#include "WStr.h"
#include "CcWnn.h"
#include "wnnlib.h"
#include "cconv.h"
typedef struct {
int foo;
} CcWnnClassPart;
typedef struct _CcWnnClassRec {
ObjectClassPart object_class;
InputConvClassPart inputConv_class;
CcWnnClassPart ccWnn_class;
} CcWnnClassRec;
typedef enum {
normal_state,
selection_s_state, /* $B>.J8@a8uJdA*Br%b!<%I(B */
selection_l_state, /* $BBgJ8@a8uJdA*Br%b!<%I(B */
symbol_state /* $B5-9fF~NO%b!<%I(B */
} CcWnnState;
typedef struct {
/* resources */
int (*confirmfunc)();
XtPointer confirmdata;
String jservername;
String jservername2; /* secondary jserver */
String wnnenvname;
String wnnenvrcfile;
String wnnenvrcfile4; /* rcfile for Wnn4 */
String wnnenvrcfile6; /* rcfile for Wnn6 */
Boolean wnnoverrideenv;
String ccdeffile;
struct wnn_buf *wnnbuf;
ccRule ccrule;
int saveinterval;
/* private data */
ccBuf ccbuf;
jcConvBuf *jcbuf;
Boolean createrule; /* ccrule $B$r<+J,$G:n$C$?$+30$+$iM?$($i$l$?$+(B */
Boolean createenv; /* wnnenv $B$r<+J,$G:n$C$?$+30$+$iM?$($i$l$?$+(B */
CcWnnState state; /* $BJQ49$NFbIt>uBV(B */
Boolean textchanged; /* $BJQ49%F%-%9%H$,JQ$o$C$?$+(B */
Boolean selectionending;/* $BA*Br%b!<%I$r=*N;$7$h$&$H$7$F$$$k$+(B */
Boolean sendbackevent; /* $B%$%Y%s%H$rAw$jJV$9$+(B */
Boolean fixperformed; /* $B3NDj=hM}$,9T$o$l$?$+(B */
ICString *symbollist;
int numsymbols;
int cursymbol; /* $B5-9fA*Br%b!<%I$N;~!"8=:_A*Br$5$l$F$$$k5-9f(B */
ICString *candlist;
int candlistsize;
wchar *strdata;
int strdatasize;
int numcand; /* $BA*Br%b!<%I$N;~!"8uJd?t(B */
int curcand; /* $B8uJdA*Br%b!<%I$N;~!"8=:_A*Br$5$l$F$$$k8uJd(B */
int fixcount;
enum {JIS_MODE, KUTEN_MODE, OTHERS} inputmode;
wchar *pendingdata;
int cont; /* $B8eB3$N%3%^%s%I$r<B9T$9$k$+(B */
Widget selwidget; /* $B%;%l%/%7%g%sMQ$NJd=u%&%#%8%'%C%H(B */
char *selyomi; /* $B%;%l%/%7%g%s$GJV$9!VFI$_!W(B */
char *selkanji; /* $B%;%l%/%7%g%s$GJV$9!V4A;z!W(B */
} CcWnnPart;
typedef struct _CcWnnRec {
ObjectPart object;
InputConvPart inputConv;
CcWnnPart ccWnn;
} CcWnnRec;
#endif
|