Back to index

im-sdk  12.3.91
koif_prv.h
Go to the documentation of this file.
00001 /*
00002  * Copyright 2003 Sun Microsystems Inc.
00003  *
00004  * This is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU Lesser General Public
00006  * License as published by the Free Software Foundation; either
00007  * version 2 of the License, or (at your option) any later version.
00008  *
00009  * This library is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * Lesser General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU Lesser General Public
00015  * License along with this library; if not, write to the
00016  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00017  * Boston, MA 02111-1307, USA.
00018  *
00019  * Authors: Karl Park <karl.park@sun.com>
00020  */
00021 
00022 #ifndef KOIF_PRV_H
00023 #define KOIF_PRV_H
00024 /*
00025 #include <IMProtocolStruct.h>
00026 */
00027 #include "koinput.h"
00028 #include "composer.h"
00029 #include "lookupbuf.h"
00030 
00031 
00032 typedef enum _INPUT_COMMAND_TYPE_T {
00033   INPUT_COMMAND_NOTHING,
00034   INPUT_COMMAND_IGNORE,
00035   INPUT_COMMAND_REGULAR_HANGUL,
00036   INPUT_COMMAND_COMMIT,
00037   INPUT_COMMAND_HANJA_DO_LOOKUP,
00038   INPUT_COMMAND_LOOKUP_DO_NEXT_PAGE,
00039   INPUT_COMMAND_LOOKUP_DO_PREVIOUS_PAGE,
00040   INPUT_COMMAND_LOOKUP_DO_SCROLL,
00041   INPUT_COMMAND_LOOKUP_SELECT_CANDIDATE,
00042   INPUT_COMMAND_CANCEL_LOOKUP,
00043   INPUT_COMMAND_SYMBOL_MENU_LOOKUP,
00044   INPUT_COMMAND_TOGGLE_FULL_HALF_WIDTH,
00045   INPUT_COMMAND_SWITCH_KEYBOARD_LAYOUT,
00046   INPUT_COMMAND_SWITCH_COMMIT_METHOD,
00047   INPUT_COMMAND_SWITCH_CODESET,
00048   INPUT_COMMAND_TURN_OFF_CONVERSION,
00049   INPUT_COMMAND_TURN_ON_CONVERSION,
00050 } INPUT_COMMAND_TYPE_H;
00051 
00052 struct _IMEBufferRec {
00053   int  session_id;    
00054   int  engine_id;
00055   Config config;
00056   struct _IMEBufferWhatToDo what_to_do;
00057   INPUT_MODE_T       input_mode;
00058   UTFCHAR *commit_string;
00059   LookupBufferStruct *lookup_buffer;
00060   HANGULBuffer composer_buffer;
00061 };
00062 
00063 
00064 #endif /* KOIF_PRV_H */