| 128 | } |
| 129 | |
| 130 | void DecorationList::InsertSpace(int position, int insertLength) { |
| 131 | const bool atEnd = position == lengthDocument; |
| 132 | lengthDocument += insertLength; |
| 133 | for (Decoration *deco=root; deco; deco = deco->next) { |
| 134 | deco->rs.InsertSpace(position, insertLength); |
| 135 | if (atEnd) { |
| 136 | deco->rs.FillRange(position, 0, insertLength); |
| 137 | } |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | void DecorationList::DeleteRange(int position, int deleteLength) { |
| 142 | lengthDocument -= deleteLength; |