diff --git a/scim-wnn/src/romkan.cpp b/scim-wnn/src/romkan.cpp index 405a95e..45f19f6 100644 --- a/scim-wnn/src/romkan.cpp +++ b/scim-wnn/src/romkan.cpp @@ -587,3 +587,17 @@ } + + +/*! + \fn Romkan::getAttributeList() + */ +AttributeList Romkan::getAttributeList() +{ + AttributeList l; + if (buf.length()) { + Attribute a(pos - buf.length(),buf.length(),SCIM_ATTR_FOREGROUND,SCIM_RGB_COLOR(255,0,0)); + l.push_back(a); + } + return(l); +} diff --git a/scim-wnn/src/romkan.h b/scim-wnn/src/romkan.h index a946759..e27279d 100644 --- a/scim-wnn/src/romkan.h +++ b/scim-wnn/src/romkan.h @@ -70,6 +70,7 @@ virtual String getName(); virtual String getPropertyName() {return(String("Romkan"));}; virtual void setText(const WideString &t); + virtual AttributeList getAttributeList(); protected: WideString eval();