Abdelrazak Younes <[EMAIL PROTECTED]> writes:

> OK, then we just need some interface methods that would give that
> information by looking up the inner independent ranges, ex:
>
> struct AttributeRange {
>       pos_type start;
>       pos_type end;
>       FontInfo font;
>       Change change;
>       Language * language;
>       vector<AttributeRange *> nested;
> }

Hmm, now I am not even sure of what would be best... I guess only
propagating the changes tho the whole code will tell. I'll let you be judge.

> AttributeRange Paragraph::getAttributeRange(
>       pos_type pos, // the position we're interested in.
>       bool lookup_nested) // whether to look for nested range or not.
> {
>       AttributeRange att;
>       // lookup here the innermost range that will enclose pos
>       // att.start <= pos < att.end
>       // att.nested will be empty if there's no nested range
>       // between start and end.
> }
>
> Does that sound interesting?

I am not sure I understand how this thing works.

JMarc

Reply via email to