@@ 1170-1175 (lines=6) @@ | ||
1167 | if ($xmlSheet && $xmlSheet->headerFooter && !$this->readDataOnly) { |
|
1168 | $docHeaderFooter = $docSheet->getHeaderFooter(); |
|
1169 | ||
1170 | if (isset($xmlSheet->headerFooter['differentOddEven']) && |
|
1171 | self::boolean((string) $xmlSheet->headerFooter['differentOddEven'])) { |
|
1172 | $docHeaderFooter->setDifferentOddEven(true); |
|
1173 | } else { |
|
1174 | $docHeaderFooter->setDifferentOddEven(false); |
|
1175 | } |
|
1176 | if (isset($xmlSheet->headerFooter['differentFirst']) && |
|
1177 | self::boolean((string) $xmlSheet->headerFooter['differentFirst'])) { |
|
1178 | $docHeaderFooter->setDifferentFirst(true); |
|
@@ 1176-1181 (lines=6) @@ | ||
1173 | } else { |
|
1174 | $docHeaderFooter->setDifferentOddEven(false); |
|
1175 | } |
|
1176 | if (isset($xmlSheet->headerFooter['differentFirst']) && |
|
1177 | self::boolean((string) $xmlSheet->headerFooter['differentFirst'])) { |
|
1178 | $docHeaderFooter->setDifferentFirst(true); |
|
1179 | } else { |
|
1180 | $docHeaderFooter->setDifferentFirst(false); |
|
1181 | } |
|
1182 | if (isset($xmlSheet->headerFooter['scaleWithDoc']) && |
|
1183 | !self::boolean((string) $xmlSheet->headerFooter['scaleWithDoc'])) { |
|
1184 | $docHeaderFooter->setScaleWithDocument(false); |
|
@@ 1182-1187 (lines=6) @@ | ||
1179 | } else { |
|
1180 | $docHeaderFooter->setDifferentFirst(false); |
|
1181 | } |
|
1182 | if (isset($xmlSheet->headerFooter['scaleWithDoc']) && |
|
1183 | !self::boolean((string) $xmlSheet->headerFooter['scaleWithDoc'])) { |
|
1184 | $docHeaderFooter->setScaleWithDocument(false); |
|
1185 | } else { |
|
1186 | $docHeaderFooter->setScaleWithDocument(true); |
|
1187 | } |
|
1188 | if (isset($xmlSheet->headerFooter['alignWithMargins']) && |
|
1189 | !self::boolean((string) $xmlSheet->headerFooter['alignWithMargins'])) { |
|
1190 | $docHeaderFooter->setAlignWithMargins(false); |
|
@@ 1188-1193 (lines=6) @@ | ||
1185 | } else { |
|
1186 | $docHeaderFooter->setScaleWithDocument(true); |
|
1187 | } |
|
1188 | if (isset($xmlSheet->headerFooter['alignWithMargins']) && |
|
1189 | !self::boolean((string) $xmlSheet->headerFooter['alignWithMargins'])) { |
|
1190 | $docHeaderFooter->setAlignWithMargins(false); |
|
1191 | } else { |
|
1192 | $docHeaderFooter->setAlignWithMargins(true); |
|
1193 | } |
|
1194 | ||
1195 | $docHeaderFooter->setOddHeader((string) $xmlSheet->headerFooter->oddHeader); |
|
1196 | $docHeaderFooter->setOddFooter((string) $xmlSheet->headerFooter->oddFooter); |