00001 // 00002 // Unihan Input Method 00003 // 00004 // Copyright © 2002-2007 Sun Wah Linux Ltd. 00005 // 00006 // 00007 // This library is free software; you can redistribute it and/or modify 00008 // it under the terms of the GNU Lesser General Public License as 00009 // published by the Free Software Foundation; either version 2.1 of the 00010 // License, or (at your option) any later version. 00011 // 00012 // This library is distributed in the hope that it will be useful, but 00013 // WITHOUT ANY WARRANTY; without even the implied warranty of 00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 // Lesser General Public License for more details. 00016 // 00017 // You should have received a copy of the GNU Lesser General Public 00018 // License along with this program; if not, write to the Free Software 00019 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 00020 // USA 00021 // 00022 // $Id: phrase.h 796 2007-06-30 19:00:01Z roger $ 00023 // 00024 00025 #ifndef __PHRASE_H 00026 #define __PHRASE_H 00027 00028 #include <iml/SunIM.h> 00029 #include "unicode.h" 00030 00031 void phrase_matcher_init(iml_desktop_t *d); 00032 void phrase_matcher_done(iml_desktop_t *d); 00033 void phrase_matcher_create_session(iml_session_t *s); 00034 void phrase_matcher_destroy_session(iml_session_t *s); 00035 int phrase_matcher_search(iml_session_t *s, const UTF8CHAR *utf8); 00036 void phrase_matcher_show_results(iml_session_t *s); 00037 UTF8CHAR *phrase_matcher_get_result(iml_session_t *s, int row); 00038 void phrase_matcher_hide_results(iml_session_t *s); 00039 void phrase_matcher_next_page(iml_session_t *s); 00040 void phrase_matcher_prev_page(iml_session_t *s); 00041 void phrase_matcher_add_extra_cands(iml_session_t *s, char **cands, int num_cands, int source); 00042 00043 #endif /* __PHRASE_H */ 00044 00045 // vi:ts=4:sw=4:nowrap:cin:expandtab
1.5.2