Changeset View
Changeset View
Standalone View
Standalone View
plugins/flake/textshape/kotext/KoSectionModel.h
Show All 16 Lines | |||||
17 | * pointers to KoSection and KoSectionEnd in the KoParagraphStyles | 17 | * pointers to KoSection and KoSectionEnd in the KoParagraphStyles | ||
18 | * properties SectionEndings and SectionStartings are consistent. | 18 | * properties SectionEndings and SectionStartings are consistent. | ||
19 | * Handling on this level is provided on the level of text editing | 19 | * Handling on this level is provided on the level of text editing | ||
20 | * commands: DeleteCommand, NewSectionCommand | 20 | * commands: DeleteCommand, NewSectionCommand | ||
21 | * We can't move it to another place, because we should know the | 21 | * We can't move it to another place, because we should know the | ||
22 | * semantics of operation to handle it right way. | 22 | * semantics of operation to handle it right way. | ||
23 | * 2) Model(Tree) Level: on this level we should update KoSectionModel | 23 | * 2) Model(Tree) Level: on this level we should update KoSectionModel | ||
24 | * right way, so it in any moment represents the actual tree | 24 | * right way, so it in any moment represents the actual tree | ||
25 | * of sections. Tree is builded easily: | 25 | * of sections. Tree is built easily: | ||
26 | * One section is son of another, if it is directly nested in it. | 26 | * One section is son of another, if it is directly nested in it. | ||
27 | * As text editing commands have access to change Formatting Level, | 27 | * As text editing commands have access to change Formatting Level, | ||
28 | * they are declared as friend classes of KoSectionModel to be able | 28 | * they are declared as friend classes of KoSectionModel to be able | ||
29 | * affect Model structure without changing something on Formatting | 29 | * affect Model structure without changing something on Formatting | ||
30 | * Level. Also affected by RenameSectionCommand. | 30 | * Level. Also affected by RenameSectionCommand. | ||
31 | * | 31 | * | ||
32 | * Also we need to look at the consistency of some section properties: | 32 | * Also we need to look at the consistency of some section properties: | ||
33 | * | 33 | * | ||
▲ Show 20 Lines • Show All 109 Lines • Show Last 20 Lines |