1 /* Copyright 1992 NEC Corporation, Tokyo, Japan. 2 * 3 * Permission to use, copy, modify, distribute and sell this software 4 * and its documentation for any purpose is hereby granted without 5 * fee, provided that the above copyright notice appear in all copies 6 * and that both that copyright notice and this permission notice 7 * appear in supporting documentation, and that the name of NEC 8 * Corporation not be used in advertising or publicity pertaining to 9 * distribution of the software without specific, written prior 10 * permission. NEC Corporation makes no representations about the 11 * suitability of this software for any purpose. It is provided "as 12 * is" without express or implied warranty. 13 * 14 * NEC CORPORATION DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 15 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN 16 * NO EVENT SHALL NEC CORPORATION BE LIABLE FOR ANY SPECIAL, INDIRECT OR 17 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF 18 * USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 19 * OTHER TORTUOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 20 * PERFORMANCE OF THIS SOFTWARE. 21 */ 22 23 #if !defined(lint) && !defined(__CODECENTER__) 24 static char onoffmap_id[] = "@(#) 102.1 $Id: onoffmap.h,v 1.1.1.1 2002/10/19 08:27:50 aida_s Exp $"; 25 #endif /* lint */ 26 27 #ifdef NO_EXTEND_MENU 28 static struct funccfunc onoff_funcs[] = {{0, 0},}; 29 #else 30 extern DoFuncSequence(),UseOtherKeymap(); 31 extern IchiranForwardKouho(), IchiranBackwardKouho(), IchiranNextKouhoretsu(); 32 extern IchiranPreviousKouhoretsu(), IchiranBeginningOfKouho(); 33 extern IchiranEndOfKouho(), IchiranQuit(), IchiranNop(); 34 35 static struct funccfunc onoff_funcs[] = { 36 {CANNA_FN_Forward ,IchiranForwardKouho }, 37 {CANNA_FN_Backward ,IchiranBackwardKouho }, 38 {CANNA_FN_Next ,IchiranNextKouhoretsu }, 39 {CANNA_FN_Prev ,IchiranPreviousKouhoretsu }, 40 {CANNA_FN_BeginningOfLine ,IchiranBeginningOfKouho }, 41 {CANNA_FN_EndOfLine ,IchiranEndOfKouho }, 42 {CANNA_FN_DeletePrevious ,IchiranQuit }, 43 {CANNA_FN_Henkan ,OnOffSelect }, 44 {CANNA_FN_HenkanOrInsert ,OnOffSelect }, 45 {CANNA_FN_HenkanOrNothing ,OnOffSelect }, 46 {CANNA_FN_Kakutei ,OnOffKakutei }, 47 {CANNA_FN_Quit ,IchiranQuit }, 48 {CANNA_FN_Nop ,IchiranNop }, 49 {CANNA_FN_FuncSequence ,DoFuncSequence }, 50 {CANNA_FN_UseOtherKeymap ,UseOtherKeymap }, 51 {0 ,0 }, 52 }; 53 #endif /* NO_EXTEND_MENU */ 54 55 KanjiModeRec onoff_mode = { 56 searchfunc, 57 default_kmap, 58 CANNA_KANJIMODE_TABLE_SHARED, 59 onoff_funcs, 60 }; 61