SCIMBridge  0.4.x
scim-bridge-agent-panel-listener-protected.h
Go to the documentation of this file.
1 /*
2  * SCIM Bridge
3  *
4  * Copyright (c) 2006 Ryo Dairiki <ryo-dairiki@users.sourceforge.net>
5  *
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation and
10  * appearing in the file LICENSE.LGPL included in the package of this file.
11  * You can also redistribute it and/or modify it under the terms of
12  * the GNU General Public License as published by the Free Software Foundation and
13  * appearing in the file LICENSE.GPL included in the package of this file.
14  *
15  * This library is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18  */
19 
26 #ifndef SCIMBRIDGEAGENTPANELLISTENERPROTECTED_H_
27 #define SCIMBRIDGEAGENTPANELLISTENERPROTECTED_H_
28 
29 #define Uses_SCIM_PANEL_CLIENT
30 
31 #include <scim.h>
32 
33 #include <vector>
34 
35 #include "scim-bridge-imcontext.h"
36 
41 {
42 
43  public:
44 
49 
56  virtual void prepare (scim_bridge_imcontext_id_t imcontext_id) = 0;
57 
61  virtual void send () = 0;
62 
68  virtual void focus_in (const scim::String &factory_uuid) = 0;
69 
73  virtual void focus_out () = 0;
74 
78  virtual void update_screen () = 0;
79 
86  virtual void update_cursor_location (int x, int y) = 0;
87 
93  virtual void update_factory_info (const scim::PanelFactoryInfo &factory_info) = 0;
94 
98  virtual void turn_on () = 0;
99 
103  virtual void turn_off () = 0;
104 
111  virtual void set_aux_string (const scim::WideString &str, const scim::AttributeList &attrs) = 0;
112 
116  virtual void show_aux_string () = 0;
117 
121  virtual void hide_aux_string () = 0;
122 
128  virtual void set_lookup_table (const scim::LookupTable &table) = 0;
129 
133  virtual void show_lookup_table () = 0;
134 
138  virtual void hide_lookup_table () = 0;
139 
145  virtual void set_preedit_cursor_position (int cursor_pos) = 0;
146 
153  virtual void set_preedit_string (const scim::WideString &str, const scim::AttributeList &attrs) = 0;
154 
158  virtual void show_preedit () = 0;
159 
163  virtual void hide_preedit () = 0;
164 
170  virtual void start_helper (const scim::String &helper_uuid) = 0;
171 
177  virtual void stop_helper (const scim::String &helper_uuid) = 0;
178 
185  virtual void send_helper_event (const scim::String &helper_uuid, const scim::Transaction &trans) = 0;
186 
192  virtual void register_properties (const scim::PropertyList &properties) = 0;
193 
199  virtual void update_property (const scim::Property &property) = 0;
200 
206  virtual void show_factory_menu (const std::vector<scim::PanelFactoryInfo> &menu) = 0;
207 
213  virtual void show_help (const scim::String &string) = 0;
214 
220  virtual void register_input_context (const scim::String &factory_uuid) = 0;
221 
225  virtual void deregister_input_context () = 0;
226 
227  protected:
228 
233 
234 };
235 #endif /*SCIMBRIDGEAGENTPANELLISTENERPROTECTED_H_*/
Definition: scim-bridge-agent-panel-listener-protected.h:40
virtual void register_input_context(const scim::String &factory_uuid)=0
ScimBridgeAgentPanelListenerProtected()
Definition: scim-bridge-agent-panel-listener-protected.h:232
virtual void set_preedit_string(const scim::WideString &str, const scim::AttributeList &attrs)=0
virtual void start_helper(const scim::String &helper_uuid)=0
This header must be included by all the source codes which use IMContextes.
virtual void stop_helper(const scim::String &helper_uuid)=0
virtual void send_helper_event(const scim::String &helper_uuid, const scim::Transaction &trans)=0
virtual void show_help(const scim::String &string)=0
int scim_bridge_imcontext_id_t
Definition: scim-bridge-imcontext.h:47
virtual void focus_in(const scim::String &factory_uuid)=0
virtual void register_properties(const scim::PropertyList &properties)=0
virtual void set_aux_string(const scim::WideString &str, const scim::AttributeList &attrs)=0
virtual void update_property(const scim::Property &property)=0
virtual void set_lookup_table(const scim::LookupTable &table)=0
virtual void update_cursor_location(int x, int y)=0
virtual ~ScimBridgeAgentPanelListenerProtected()
Definition: scim-bridge-agent-panel-listener-protected.h:48
virtual void show_factory_menu(const std::vector< scim::PanelFactoryInfo > &menu)=0
virtual void prepare(scim_bridge_imcontext_id_t imcontext_id)=0
virtual void update_factory_info(const scim::PanelFactoryInfo &factory_info)=0
virtual void set_preedit_cursor_position(int cursor_pos)=0