| 1 |
Use cases section header adjustment |
| 2 |
=================================== |
| 3 |
|
| 4 |
Conditions |
| 5 |
---------- |
| 6 |
|
| 7 |
* **Pr**\e\ **f**\erences |
| 8 |
* **N**\o preferences |
| 9 |
* **P**\references exist |
| 10 |
|
| 11 |
* **Sel**\ection |
| 12 |
* **N**\o adornment around point |
| 13 |
* **E**\xisting adornment around point |
| 14 |
* **R**\egion |
| 15 |
|
| 16 |
* **Pr**\e\ **v**\ious header |
| 17 |
* **N**\o previous header |
| 18 |
* **D**\isadvised previous header (i.e. not in preferences) |
| 19 |
* **P**\references contain previous header |
| 20 |
|
| 21 |
* Current header in existing **hie**\rarchy |
| 22 |
* **N**\o hierarchy beyond current header |
| 23 |
* **M**\ultiple occurrence in the middle of existing hierarchy |
| 24 |
* **B**\reaking single entry in the middle of existing hierarchy |
| 25 |
* **L**\ast in existing hierarchy for given direction |
| 26 |
* **O**\nce in existing hierarchy at beginning or end of hierarchy |
| 27 |
|
| 28 |
* **Cur**\rent header in preferences |
| 29 |
* **D**\isadvised (i.e. not in preferences) |
| 30 |
* **S**\uccessor exists in preferences |
| 31 |
* **L**\ast in preferences |
| 32 |
|
| 33 |
* **Dir**\ection |
| 34 |
* **D**\ownward |
| 35 |
* **U**\pward |
| 36 |
|
| 37 |
* **Res**\ult |
| 38 |
* **N**\o next |
| 39 |
* **E**\rror |
| 40 |
* **P**\references give next including rotation |
| 41 |
* **H**\ierarchy gives next including rotation |
| 42 |
* **T**\op of hierarchy |
| 43 |
* **L**\ast of hierarchy |
| 44 |
|
| 45 |
* **Rem**\mark |
| 46 |
|
| 47 |
Use cases |
| 48 |
--------- |
| 49 |
|
| 50 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 51 |
|Prf|Sel|Prv|Hie |Cur|Dir|#|Res |Rem | |
| 52 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 53 |
|NP |NER|NDP|NMBLO|DSL|DU |#|NEPHTL| | |
| 54 |
+===+===+===+=====+===+===+-+======+===========================================+ |
| 55 |
|N> |? |<ND|? |<D |? | |<NEHTL|[No preferences] | |
| 56 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 57 |
|N> |N> |<N>|<N |<! |? | |E |Nothing there at all | |
| 58 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 59 |
|N> |N> |<N>|<! |<! |? | |T |At top use top | |
| 60 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 61 |
|N> |N> |<D>|<! |<! |? | |H |New section header in existing hierarchy | |
| 62 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 63 |
|N> |E |<N>|<N |<D |? | |E |One and only header | |
| 64 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 65 |
|N> |<E |<N>|<M |<D |? | |H |Top header matching medium level - continue| |
| 66 |
| | | | | | | | |reorganisation by a step | |
| 67 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 68 |
|N> |<E |<N>|<L |<D |? | |H |Top header matching extreme level - | |
| 69 |
| | | | | | | | |continue reorganisation by a rotation | |
| 70 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 71 |
|N> |<E |<N>|<O |<D |D | |T |Top header with exclusive level downwards -| |
| 72 |
| | | | | | | | |align to top of remaining hierarchy | |
| 73 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 74 |
|N> |<E |<N>|<O |<D |U | |L |Top header with exclusive level upwards - | |
| 75 |
| | | | | | | | |align to last of remaining hierarchy | |
| 76 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 77 |
|N> |<E |<D |<M |<D |? | |H |Standard step | |
| 78 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 79 |
|N> |<E |<D |<B |<D |? | |H |Align breaking header | |
| 80 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 81 |
|N> |<E |<D |<L |<D |? | |H |Step or rotate | |
| 82 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 83 |
|N> |<E |<D |<O |<D |? | |H |Step or rotate | |
| 84 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 85 |
|###|###|###|#####|###|###|#|######|###########################################| |
| 86 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 87 |
|P |N> |<N>|N> |<! |? | |P |Only preferences exist | |
| 88 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 89 |
|P |N> |N> |<! |<! |D | |T |At top downwards use top of hierarchy | |
| 90 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 91 |
|P |N> |N> |<! |<! |U | |P |At top upwards use top of preferences | |
| 92 |
| | | | | | | | |adding a title | |
| 93 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 94 |
|P |<E |D> |<M |D |? | |H |Prefer hierarchy over preferences | |
| 95 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 96 |
|P |<E |D> |<M |S |? | |H |Prefer hierarchy over preferences | |
| 97 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 98 |
|P |<E |D> |<M |L |? | |H |Prefer hierarchy over preferences | |
| 99 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 100 |
|P |<E |D> |<B |D |? | |H |Prefer hierarchy over preferences | |
| 101 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 102 |
|P |<E |D> |<B |S |? | |H |Prefer hierarchy over preferences | |
| 103 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 104 |
|P |<E |D> |<B |L |? | |H |Prefer hierarchy over preferences | |
| 105 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 106 |
|P |<E |D> |<L |D |D | |H |Wrap to top level | |
| 107 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 108 |
|P |<E |D> |<L |D |U | |P |Use first from preferences | |
| 109 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 110 |
|P |<E |D> |<L |S |D | |P |Prefer hierarchy | |
| 111 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 112 |
|P |<E |D> |<L |S |U | |P |Prefer preferences | |
| 113 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 114 |
|P |<E |D> |<L |L |? | |H |Prefer hierarchy | |
| 115 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 116 |
|P |<E |D> |<O |D |? | |H |Prefer hierarchy | |
| 117 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 118 |
|P |<E |D> |<O |S |? | |H |Prefer hierarchy | |
| 119 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 120 |
|P |<E |D> |<O |L |? | |H |Prefer hierarchy | |
| 121 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 122 |
|P |<E |P> |<M |D |? | |H |Prefer hierarchy | |
| 123 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 124 |
|P |<E |P> |<M |S |? | |H |Prefer hierarchy | |
| 125 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 126 |
|P |<E |P> |<M |L |? | |H |Prefer hierarchy | |
| 127 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 128 |
|P |<E |P> |<B |D |? | |H |Prefer hierarchy | |
| 129 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 130 |
|P |<E |P> |<B |S |? | |H |Prefer hierarchy | |
| 131 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 132 |
|P |<E |P> |<B |L |? | |H |Prefer hierarchy | |
| 133 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 134 |
|P |<E |P> |<L |D |? | |P |Prefer preferences | |
| 135 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 136 |
|P |<E |P> |<L |S |? | |P |Prefer preferences | |
| 137 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 138 |
|P |<E |P> |<L |L |? | |P |Prefer preferences | |
| 139 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 140 |
|P |<E |P> |<O |D |? | |H |Prefer hierarchy | |
| 141 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 142 |
|P |<E |P> |<O |S |? | |H |Prefer hierarchy | |
| 143 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 144 |
|P |<E |P> |<O |L |? | |H |Prefer hierarchy | |
| 145 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 146 |
| | | | | | | | | | |
| 147 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 148 |
| | | | | | | | | | |
| 149 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 150 |
| | | | | | | | | | |
| 151 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 152 |
| | | | | | | | |[CONSTRAINTS] | |
| 153 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 154 |
|N> |? |<ND|? |<D |? | |<NEHTL|Without preferences no header may relate to| |
| 155 |
| | | | | | | | |them | |
| 156 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 157 |
|? |N> |? |<N! |<! |? | | |Without a selection the current header may | |
| 158 |
| | | | | | | | |not relate to anything | |
| 159 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 160 |
|? |? |N> |<NMLO|? |? | | |Without a previous header only certain | |
| 161 |
| | | | | | | | |relations to hierarchy are possible | |
| 162 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 163 |
|? |? |D> |<MBLO|? |? | | |With a disadvised previous header only | |
| 164 |
| | | | | | | | |certain relations to hierarchy are possible| |
| 165 |
| | | | | | | | |for current header | |
| 166 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 167 |
|? |? |<N |N> |? |? | |<NPE |Without hierarchy there can be no previous | |
| 168 |
| | | | | | | | |header and result may not come from | |
| 169 |
| | | | | | | | |hierarchy | |
| 170 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 171 |
|? |<E | |MBLO>| | | | |If the header has a relation than it must | |
| 172 |
| | | | | | | | |exist | |
| 173 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 174 |
| | | | | | | | |REGION | |
| 175 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 176 |
|N> |R |<ND| |<D | | | | | |
| 177 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 178 |
| | | | | | | | | | |
| 179 |
+---+---+---+-----+---+---+-+------+-------------------------------------------+ |
| 180 |
|
| 181 |
* For each line in the table there should be an ert test named |
| 182 |
`rst-adjust-section-prf-_-sel-_-prv-_-hie-_-cur-_-dir-_` where the |
| 183 |
``_`` stand for the respective cell entries |
| 184 |
|
| 185 |
* In addition each operation should be reversible by using the |
| 186 |
opposite direction |
| 187 |
|
| 188 |
* Unless the information before reversion is lost by the first |
| 189 |
operation |
| 190 |
|
| 191 |
Legend |
| 192 |
------ |
| 193 |
|
| 194 |
* "X>" means "if X" |
| 195 |
|
| 196 |
* "<XY" means "X or Y follow from an if" |
| 197 |
|
| 198 |
* "-" means "irrelevant" |
| 199 |
|
| 200 |
* "!" means "does not apply" |
| 201 |
|
| 202 |
* "?" means "any" |
| 203 |
|
| 204 |
* "[X]" means "header for situation group X" |