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

Method ClearDocumentStyle

scintilla/src/Editor.cxx:4272–4288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4270}
4271
4272void Editor::ClearDocumentStyle()
4273{
4274 Decoration *deco = pdoc->decorations.root;
4275 while ( deco ) {
4276 // Save next in case deco deleted
4277 Decoration *decoNext = deco->next;
4278 if ( deco->indicator < INDIC_CONTAINER ) {
4279 pdoc->decorations.SetCurrentIndicator ( deco->indicator );
4280 pdoc->DecorationFillRange ( 0, 0, pdoc->Length() );
4281 }
4282 deco = decoNext;
4283 }
4284 pdoc->StartStyling ( 0, '\377' );
4285 pdoc->SetStyleFor ( pdoc->Length(), 0 );
4286 cs.ShowAll();
4287 pdoc->ClearLevels();
4288}
4289
4290void Editor::CopyAllowLine()
4291{

Callers

nothing calls this directly

Calls 7

SetCurrentIndicatorMethod · 0.80
DecorationFillRangeMethod · 0.80
StartStylingMethod · 0.80
ShowAllMethod · 0.80
LengthMethod · 0.45
SetStyleForMethod · 0.45
ClearLevelsMethod · 0.45

Tested by

no test coverage detected