MCPcopy Create free account
hub / github.com/ProgerXP/Notepad2e / ClearAll

Method ClearAll

scintilla/src/Editor.cxx:4253–4270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4251}
4252
4253void 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
4272void Editor::ClearDocumentStyle()
4273{

Callers 2

MarginClearAllMethod · 0.45
AnnotationClearAllMethod · 0.45

Calls 6

AnnotationClearAllMethod · 0.80
MarginClearAllMethod · 0.80
LengthMethod · 0.45
DeleteCharsMethod · 0.45
IsReadOnlyMethod · 0.45
ClearMethod · 0.45

Tested by

no test coverage detected