Kohei Yoshida wrote:
But, logically, it would make sense to store the ruby text together with the base text, because the ruby text is conceptually a property of the base text. Putting them together would also eliminate the synchronization problem because the ruby and the base texts would never be separate.
Conceptually, it's a property of a part of the text, not the whole cell content.
So, overall, introducing a new class named ScRubyStringCell as a child class of ScStringCell, and making changes to the EditEngine class (in svx) seems to be the most attractive choice. But I wonder what the level of difficulty is for this approach.
ScRubyStringCell would have to keep a list of character positions and associated ruby text. The cleaner solution might be to always use ScEditCell if ruby is present. How many cells with ruby text will there usually be in a spreadsheet anyway?
Niklas --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
