@@ 244-251 (lines=8) @@ | ||
241 | if ($pAdvanced && isset($pStyles['borders'])) { |
|
242 | // 'allborders' is a shorthand property for 'outline' and 'inside' and |
|
243 | // it applies to components that have not been set explicitly |
|
244 | if (isset($pStyles['borders']['allborders'])) { |
|
245 | foreach (array('outline', 'inside') as $component) { |
|
246 | if (!isset($pStyles['borders'][$component])) { |
|
247 | $pStyles['borders'][$component] = $pStyles['borders']['allborders']; |
|
248 | } |
|
249 | } |
|
250 | unset($pStyles['borders']['allborders']); // not needed any more |
|
251 | } |
|
252 | // 'outline' is a shorthand property for 'top', 'right', 'bottom', 'left' |
|
253 | // it applies to components that have not been set explicitly |
|
254 | if (isset($pStyles['borders']['outline'])) { |
|
@@ 254-261 (lines=8) @@ | ||
251 | } |
|
252 | // 'outline' is a shorthand property for 'top', 'right', 'bottom', 'left' |
|
253 | // it applies to components that have not been set explicitly |
|
254 | if (isset($pStyles['borders']['outline'])) { |
|
255 | foreach (array('top', 'right', 'bottom', 'left') as $component) { |
|
256 | if (!isset($pStyles['borders'][$component])) { |
|
257 | $pStyles['borders'][$component] = $pStyles['borders']['outline']; |
|
258 | } |
|
259 | } |
|
260 | unset($pStyles['borders']['outline']); // not needed any more |
|
261 | } |
|
262 | // 'inside' is a shorthand property for 'vertical' and 'horizontal' |
|
263 | // it applies to components that have not been set explicitly |
|
264 | if (isset($pStyles['borders']['inside'])) { |
|
@@ 264-271 (lines=8) @@ | ||
261 | } |
|
262 | // 'inside' is a shorthand property for 'vertical' and 'horizontal' |
|
263 | // it applies to components that have not been set explicitly |
|
264 | if (isset($pStyles['borders']['inside'])) { |
|
265 | foreach (array('vertical', 'horizontal') as $component) { |
|
266 | if (!isset($pStyles['borders'][$component])) { |
|
267 | $pStyles['borders'][$component] = $pStyles['borders']['inside']; |
|
268 | } |
|
269 | } |
|
270 | unset($pStyles['borders']['inside']); // not needed any more |
|
271 | } |
|
272 | // width and height characteristics of selection, 1, 2, or 3 (for 3 or more) |
|
273 | $xMax = min($rangeEnd[0] - $rangeStart[0] + 1, 3); |
|
274 | $yMax = min($rangeEnd[1] - $rangeStart[1] + 1, 3); |