| 2374 | } |
| 2375 | |
| 2376 | void Document::AnnotationSetText(Sci::Line line, const char *text) { |
| 2377 | if (line >= 0 && line < LinesTotal()) { |
| 2378 | const Sci::Line linesBefore = AnnotationLines(line); |
| 2379 | Annotations()->SetText(line, text); |
| 2380 | const int linesAfter = AnnotationLines(line); |
| 2381 | DocModification mh(SC_MOD_CHANGEANNOTATION, LineStart(line), |
| 2382 | 0, 0, 0, line); |
| 2383 | mh.annotationLinesAdded = linesAfter - linesBefore; |
| 2384 | NotifyModified(mh); |
| 2385 | } |
| 2386 | } |
| 2387 | |
| 2388 | void Document::AnnotationSetStyle(Sci::Line line, int style) { |
| 2389 | Annotations()->SetStyle(line, style); |