* Recursively expand a fold, making lines visible except where they have an unexpanded parent. */
| 7096 | * Recursively expand a fold, making lines visible except where they have an unexpanded parent. |
| 7097 | */ |
| 7098 | int Editor::ExpandLine ( int line ) |
| 7099 | { |
| 7100 | int lineMaxSubord = pdoc->GetLastChild ( line ); |
| 7101 | line++; |
| 7102 | while ( line <= lineMaxSubord ) { |
| 7103 | cs.SetVisible ( line, line, true ); |
| 7104 | int level = pdoc->GetLevel ( line ); |
| 7105 | if ( level & SC_FOLDLEVELHEADERFLAG ) { |
| 7106 | if ( cs.GetExpanded ( line ) ) { |
| 7107 | line = ExpandLine ( line ); |
| 7108 | } else { |
| 7109 | line = pdoc->GetLastChild ( line ); |
| 7110 | } |
| 7111 | } |
| 7112 | line++; |
| 7113 | } |
| 7114 | return lineMaxSubord; |
| 7115 | } |
| 7116 | |
| 7117 | void Editor::SetFoldExpanded ( int lineDoc, bool expanded ) |
| 7118 | { |
nothing calls this directly
no test coverage detected