diff --git a/scim-wnn/src/preeditor.cpp b/scim-wnn/src/preeditor.cpp index dca4f68..39f65f4 100644 --- a/scim-wnn/src/preeditor.cpp +++ b/scim-wnn/src/preeditor.cpp @@ -342,3 +342,12 @@ text = t; } + + +/*! + \fn PreEditor::getAttributeList() + */ +AttributeList PreEditor::getAttributeList() +{ + return(AttributeList()); +} diff --git a/scim-wnn/src/preeditor.h b/scim-wnn/src/preeditor.h index 0444ffd..3762877 100644 --- a/scim-wnn/src/preeditor.h +++ b/scim-wnn/src/preeditor.h @@ -27,6 +27,7 @@ #include #include #include +#include #define HIRA_START 0 #define HIRA_END 1 @@ -88,6 +89,7 @@ virtual void setText(const WideString &t); virtual void toWide(); virtual void toHalf(); + virtual AttributeList getAttributeList(); protected: static WideString text; diff --git a/scim-wnn/src/scim_wnn_imengine.cpp b/scim-wnn/src/scim_wnn_imengine.cpp index 90052d5..fd0bc55 100644 --- a/scim-wnn/src/scim_wnn_imengine.cpp +++ b/scim-wnn/src/scim_wnn_imengine.cpp @@ -383,7 +383,7 @@ autoConversion(); else { show_preedit_string(); - update_preedit_string(m_preeditor->getText()); + update_preedit_string(m_preeditor->getText(),m_preeditor->getAttributeList()); update_preedit_caret(m_preeditor->getPos()); } if ((!m_conversion) && yosoku && wnn->isConnected() && (sType == "Wnn7") && (!auto_conversion)) { @@ -945,7 +945,7 @@ update_aux_string(utf8_mbstowcs(String(_("could not connect to jserver.")))); show_aux_string(); show_preedit_string(); - update_preedit_string(m_preeditor->getText()); + update_preedit_string(m_preeditor->getText(),m_preeditor->getAttributeList()); update_preedit_caret(m_preeditor->getPos()); return; } @@ -957,7 +957,7 @@ update_aux_string(utf8_mbstowcs(String(_("could not connect to jserver.")))); show_aux_string(); show_preedit_string(); - update_preedit_string(m_preeditor->getText()); + update_preedit_string(m_preeditor->getText(),m_preeditor->getAttributeList()); update_preedit_caret(m_preeditor->getPos()); return; }