| 1802 | } |
| 1803 | |
| 1804 | void Document::AnnotationSetText(int line, const char *text) { |
| 1805 | if (line >= 0 && line < LinesTotal()) { |
| 1806 | const int linesBefore = AnnotationLines(line); |
| 1807 | static_cast<LineAnnotation *>(perLineData[ldAnnotation])->SetText(line, text); |
| 1808 | const int linesAfter = AnnotationLines(line); |
| 1809 | DocModification mh(SC_MOD_CHANGEANNOTATION, LineStart(line), 0, 0, 0, line); |
| 1810 | mh.annotationLinesAdded = linesAfter - linesBefore; |
| 1811 | NotifyModified(mh); |
| 1812 | } |
| 1813 | } |
| 1814 | |
| 1815 | void Document::AnnotationSetStyle(int line, int style) { |
| 1816 | static_cast<LineAnnotation *>(perLineData[ldAnnotation])->SetStyle(line, style); |