11 AlignmentStyles::VERTICAL_BOTTOM,
12 AlignmentStyles::VERTICAL_TOP,
13 AlignmentStyles::VERTICAL_CENTER,
14 AlignmentStyles::VERTICAL_JUSTIFY,
18 AlignmentStyles::HORIZONTAL_GENERAL,
19 AlignmentStyles::HORIZONTAL_LEFT,
20 AlignmentStyles::HORIZONTAL_RIGHT,
21 AlignmentStyles::HORIZONTAL_CENTER,
22 AlignmentStyles::HORIZONTAL_CENTER_CONTINUOUS,
23 AlignmentStyles::HORIZONTAL_JUSTIFY,
30 foreach ($styleAttributes as $styleAttributeKey => $styleAttributeValue) {
31 $styleAttributeValue = (string) $styleAttributeValue;
32 switch ($styleAttributeKey) {
34 if (self::identifyFixedStyleValue(self::VERTICAL_ALIGNMENT_STYLES, $styleAttributeValue)) {
35 $style[
'alignment'][
'vertical'] = $styleAttributeValue;
40 if (self::identifyFixedStyleValue(self::HORIZONTAL_ALIGNMENT_STYLES, $styleAttributeValue)) {
41 $style[
'alignment'][
'horizontal'] = $styleAttributeValue;
46 $style[
'alignment'][
'wrapText'] =
true;
50 $style[
'alignment'][
'textRotation'] = $styleAttributeValue;
parseStyle(SimpleXMLElement $styleAttributes)
const VERTICAL_ALIGNMENT_STYLES
const HORIZONTAL_ALIGNMENT_STYLES