1/* 2 * Author: Yoichiro Ueno (ueno@cs.titech.ac.jp) 3 * 4 * Copyright (C) 1991, 1992, Yoichiro Ueno. 5 * 6 * Permission to use, copy, modify, and distribute this software and 7 * its documentation for any purpose is hereby granted by the Author without 8 * fee, provided that the above copyright notice appear in all copies and 9 * that both the copyright notice and this permission notice appear in 10 * supporting documentation, and that the name of the Author not be used 11 * in advertising or publicity pertaining to distribution of the software 12 * without specific, written prior permission. The Author makes no 13 * representations about the suitability of this software for any purpose. 14 * It is provided "as is" without express or implied warranty. 15 * 16 * THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 17 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 18 * EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT OR 19 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF 20 * USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 21 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 22 * PERFORMANCE OF THIS SOFTWARE. 23 * 24 * @(#)$Header: /mm2/home/cvs/bc-src/tgif/convkinput.e,v 1.1 2004/06/18 23:19:08 william Exp $ 25 */ 26 27#ifndef _NO_KINPUT 28 29#ifndef _CONVKINPUT_E_ 30#define _CONVKINPUT_E_ 31 32/* protocol of input method */ 33#define IM_NONE 0 34#define IM_KINPUT 1 35#define IM_XIM 2 36 37extern int imProtocol; 38extern int copyAndPasteJIS; 39extern char kinputConvSelName[]; 40 41#ifdef _INCLUDE_FROM_CONVKINPUT_C_ 42#undef extern 43#define extern 44#endif /*_INCLUDE_FROM_CONVKINPUT_C_*/ 45 46extern void KinputSetConvOverSpot ARGS_DECL((int nConvOverSpot)); 47extern void KinputTellCursorPosition ARGS_DECL((Display*, Window, 48 int X, int Y)); 49extern void KinputBeginConversion ARGS_DECL((Display*, Window)); 50extern void KinputCheckClientMessage ARGS_DECL((Display*, Window, 51 XClientMessageEvent *)); 52extern void CvtCompoundTextToEuc ARGS_DECL((char *dest, char *src)); 53extern char * KinputCheckConvProperty ARGS_DECL((Display*, Window, 54 XPropertyEvent *)); 55extern void KinputEndConversion ARGS_DECL((Display*, Window)); 56 57extern void CvtJisToEuc ARGS_DECL((char *dest, char *src)); 58extern int CvtEucToJis ARGS_DECL((char *dest, char *src)); 59 60#ifdef _INCLUDE_FROM_CONVKINPUT_C_ 61#undef extern 62#ifndef _NO_RECURSIVE_EXTERN 63#define extern extern 64#endif /* ~_NO_RECURSIVE_EXTERN */ 65#endif /*_INCLUDE_FROM_CONVKINPUT_C_*/ 66 67#endif /*_CONVKINPUT_E_*/ 68 69#endif /* ~_NO_KINPUT */ 70