}
}
+void CSCLConnectionISF::get_surrounding_text(const sclchar *ic_uuid, sclint maxlen_before, sclint maxlen_after) const
+{
+ if (m_initialized) {
+ scim::String uuid;
+ if (ic_uuid) {
+ uuid = scim::String(ic_uuid);
+ }
+ m_helper_agent.get_surrounding_text(uuid, maxlen_before, maxlen_after);
+ }
+}
+
+void CSCLConnectionISF::delete_surrounding_text(sclint offset, sclint len) const
+{
+ if (m_initialized) {
+ m_helper_agent.delete_surrounding_text(offset, len);
+ }
+}
+
void CSCLConnectionISF::set_candidate_position(sclint left, sclint top)
{
if (m_initialized) {
void update_preedit_string(sclint ic, const sclchar *ic_uuid, const sclchar *str);
void update_aux_string(const sclchar *str);
void update_input_context(sclu32 type, sclu32 value);
+ void get_surrounding_text(const sclchar *ic_uuid, sclint maxlen_before, sclint maxlen_after) const;
+ void delete_surrounding_text(sclint offset, sclint len) const;
void set_candidate_position(sclint left, sclint top);
void candidate_hide(void);
void set_keyboard_ise_by_uuid(const sclchar *uuid);
}
}
+void CSCLConnection::get_surrounding_text(const sclchar *ic_uuid, sclint maxlen_before, sclint maxlen_after) const
+{
+ if (m_impl) {
+ m_impl->get_surrounding_text(ic_uuid, maxlen_before, maxlen_after);
+ }
+}
+
+void CSCLConnection::delete_surrounding_text(sclint offset, sclint len) const
+{
+ if (m_impl) {
+ m_impl->delete_surrounding_text(offset, len);
+ }
+}
+
void CSCLConnection::set_candidate_position(sclint left, sclint top)
{
if (m_impl) {
virtual void update_preedit_string(sclint ic, const sclchar *ic_uuid, const sclchar *str);
virtual void update_aux_string(const sclchar *str);
virtual void update_input_context(sclu32 type, sclu32 value);
+ virtual void get_surrounding_text(const sclchar *ic_uuid, sclint maxlen_before, sclint maxlen_after) const;
+ virtual void delete_surrounding_text(sclint offset, sclint len) const;
virtual void set_candidate_position(sclint left, sclint top);
virtual void candidate_hide(void);
virtual void set_keyboard_ise_by_uuid(const sclchar *uuid);
}
}
+void CSCLCore::get_surrounding_text(const sclchar *ic_uuid, sclint maxlen_before, sclint maxlen_after) const
+{
+ if (m_impl) {
+ m_impl->get_surrounding_text(ic_uuid, maxlen_before, maxlen_after);
+ }
+}
+
+void CSCLCore::delete_surrounding_text(sclint offset, sclint len) const
+{
+ if (m_impl) {
+ m_impl->delete_surrounding_text(offset, len);
+ }
+}
+
void CSCLCore::set_candidate_position(sclint left, sclint top)
{
if (m_impl) {
if (m_impl) {
m_impl->destroy_option_window(window);
}
-}
\ No newline at end of file
+}
/**
* @ brief Request to get surrounding text.
*
- * @param[in] uuid The helper ISE UUID.
+ * @param[in] ic_uuid The helper ISE UUID.
* @param[in] maxlen_before The max length of before.
* @param[in] maxlen_after The max length of after.
*/
- void get_surrounding_text(const sclchar *uuid, sclint maxlen_before, sclint maxlen_after) const;
+ void get_surrounding_text(const sclchar *ic_uuid, sclint maxlen_before, sclint maxlen_after) const;
/**
* @ brief Request to delete surrounding text.
* @param[in] offset The offset for cursor position.
* @param[in] len The length for delete text.
*/
- void delete_surrounding_text(int offset, int len) const;
+ void delete_surrounding_text(sclint offset, sclint len) const;
/**
* @ brief Set candidate position in screen.
m_connection.update_input_context(type, value);
}
+void CSCLCoreImpl::get_surrounding_text(const sclchar* ic_uuid, sclint maxlen_before, sclint maxlen_after) const
+{
+ m_connection.get_surrounding_text(ic_uuid, maxlen_before, maxlen_after);
+}
+
+void CSCLCoreImpl::delete_surrounding_text(sclint offset, sclint len) const
+{
+ m_connection.delete_surrounding_text(offset, len);
+}
+
void CSCLCoreImpl::set_candidate_position(sclint left, sclint top)
{
m_connection.set_candidate_position(left, top);
void CSCLCoreImpl::destroy_option_window(sclwindow window)
{
m_core_ui.destroy_option_window(window);
-}
\ No newline at end of file
+}
//void update_candidate_string (const LookupTable &table) const;
//void update_associate_string (const LookupTable &table) const;
void update_input_context(sclu32 type, sclu32 value);
- //void get_surrounding_text (const String &uuid,
- // int maxlen_before,
- // int maxlen_after) const;
- //void delete_surrounding_text (int offset,
- // int len) const;
+ void get_surrounding_text(const sclchar* ic_uuid, sclint maxlen_before, sclint maxlen_after) const;
+ void delete_surrounding_text(sclint offset, sclint len) const;
void set_candidate_position(sclint left, sclint top);
void candidate_hide(void);
//void get_candidate_window_geometry (const String &uuid) const;
//SCL_END_DECLS
-#endif //__SCL_CORE_IMPL_H__
\ No newline at end of file
+#endif //__SCL_CORE_IMPL_H__