@@ 1159-1164 (lines=6) @@ | ||
1156 | if ($xmlSheet && $xmlSheet->headerFooter && !$this->readDataOnly) { |
|
1157 | $docHeaderFooter = $docSheet->getHeaderFooter(); |
|
1158 | ||
1159 | if (isset($xmlSheet->headerFooter['differentOddEven']) && |
|
1160 | self::boolean((string) $xmlSheet->headerFooter['differentOddEven'])) { |
|
1161 | $docHeaderFooter->setDifferentOddEven(true); |
|
1162 | } else { |
|
1163 | $docHeaderFooter->setDifferentOddEven(false); |
|
1164 | } |
|
1165 | if (isset($xmlSheet->headerFooter['differentFirst']) && |
|
1166 | self::boolean((string) $xmlSheet->headerFooter['differentFirst'])) { |
|
1167 | $docHeaderFooter->setDifferentFirst(true); |
|
@@ 1165-1170 (lines=6) @@ | ||
1162 | } else { |
|
1163 | $docHeaderFooter->setDifferentOddEven(false); |
|
1164 | } |
|
1165 | if (isset($xmlSheet->headerFooter['differentFirst']) && |
|
1166 | self::boolean((string) $xmlSheet->headerFooter['differentFirst'])) { |
|
1167 | $docHeaderFooter->setDifferentFirst(true); |
|
1168 | } else { |
|
1169 | $docHeaderFooter->setDifferentFirst(false); |
|
1170 | } |
|
1171 | if (isset($xmlSheet->headerFooter['scaleWithDoc']) && |
|
1172 | !self::boolean((string) $xmlSheet->headerFooter['scaleWithDoc'])) { |
|
1173 | $docHeaderFooter->setScaleWithDocument(false); |
|
@@ 1171-1176 (lines=6) @@ | ||
1168 | } else { |
|
1169 | $docHeaderFooter->setDifferentFirst(false); |
|
1170 | } |
|
1171 | if (isset($xmlSheet->headerFooter['scaleWithDoc']) && |
|
1172 | !self::boolean((string) $xmlSheet->headerFooter['scaleWithDoc'])) { |
|
1173 | $docHeaderFooter->setScaleWithDocument(false); |
|
1174 | } else { |
|
1175 | $docHeaderFooter->setScaleWithDocument(true); |
|
1176 | } |
|
1177 | if (isset($xmlSheet->headerFooter['alignWithMargins']) && |
|
1178 | !self::boolean((string) $xmlSheet->headerFooter['alignWithMargins'])) { |
|
1179 | $docHeaderFooter->setAlignWithMargins(false); |
|
@@ 1177-1182 (lines=6) @@ | ||
1174 | } else { |
|
1175 | $docHeaderFooter->setScaleWithDocument(true); |
|
1176 | } |
|
1177 | if (isset($xmlSheet->headerFooter['alignWithMargins']) && |
|
1178 | !self::boolean((string) $xmlSheet->headerFooter['alignWithMargins'])) { |
|
1179 | $docHeaderFooter->setAlignWithMargins(false); |
|
1180 | } else { |
|
1181 | $docHeaderFooter->setAlignWithMargins(true); |
|
1182 | } |
|
1183 | ||
1184 | $docHeaderFooter->setOddHeader((string) $xmlSheet->headerFooter->oddHeader); |
|
1185 | $docHeaderFooter->setOddFooter((string) $xmlSheet->headerFooter->oddFooter); |