PreEditorにもgetAttributeListメソッドを追加。
1 parent 9c9516b commit 800dfa37d11664a61ffd4150f4a98d68e1a0ceff
@tamra tamra authored on 6 Apr 2005
Showing 3 changed files
View
9
scim-wnn/src/preeditor.cpp
text = t;
}
 
 
 
/*!
\fn PreEditor::getAttributeList()
*/
AttributeList PreEditor::getAttributeList()
{
return(AttributeList());
}
View
2
■■■
scim-wnn/src/preeditor.h
#include <map>
#include <scim.h>
#include <scim_iconv.h>
#include <scim_event.h>
#include <scim_attribute.h>
 
#define HIRA_START 0
#define HIRA_END 1
#define KATA_START 2
virtual String getPropertyName() {return(String("PreEditor"));};
virtual void setText(const WideString &t);
virtual void toWide();
virtual void toHalf();
virtual AttributeList getAttributeList();
 
protected:
static WideString text;
static int pos;
View
6
scim-wnn/src/scim_wnn_imengine.cpp
if (auto_conversion && (m_preeditor->getTextLength() == m_preeditor->getPos()))
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)) {
m_convList = wnn->getYosokuList(m_preeditor->getText());
if (!wnn->connect()) {
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;
}
}
if (wnn->ren_conversion() == -1) {
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;
}