| 4251 | } |
| 4252 | |
| 4253 | void Editor::ClearAll() |
| 4254 | { |
| 4255 | { |
| 4256 | UndoGroup ug ( pdoc ); |
| 4257 | if ( 0 != pdoc->Length() ) { |
| 4258 | pdoc->DeleteChars ( 0, pdoc->Length() ); |
| 4259 | } |
| 4260 | if ( !pdoc->IsReadOnly() ) { |
| 4261 | cs.Clear(); |
| 4262 | pdoc->AnnotationClearAll(); |
| 4263 | pdoc->MarginClearAll(); |
| 4264 | } |
| 4265 | } |
| 4266 | sel.Clear(); |
| 4267 | SetTopLine ( 0 ); |
| 4268 | SetVerticalScrollPos(); |
| 4269 | InvalidateStyleRedraw(); |
| 4270 | } |
| 4271 | |
| 4272 | void Editor::ClearDocumentStyle() |
| 4273 | { |
no test coverage detected