@@ 1212-1217 (lines=6) @@ | ||
1209 | if ($xmlSheet && $xmlSheet->headerFooter && !$this->readDataOnly) { |
|
1210 | $docHeaderFooter = $docSheet->getHeaderFooter(); |
|
1211 | ||
1212 | if (isset($xmlSheet->headerFooter["differentOddEven"]) && |
|
1213 | self::boolean((string)$xmlSheet->headerFooter["differentOddEven"])) { |
|
1214 | $docHeaderFooter->setDifferentOddEven(true); |
|
1215 | } else { |
|
1216 | $docHeaderFooter->setDifferentOddEven(false); |
|
1217 | } |
|
1218 | if (isset($xmlSheet->headerFooter["differentFirst"]) && |
|
1219 | self::boolean((string)$xmlSheet->headerFooter["differentFirst"])) { |
|
1220 | $docHeaderFooter->setDifferentFirst(true); |
|
@@ 1218-1223 (lines=6) @@ | ||
1215 | } else { |
|
1216 | $docHeaderFooter->setDifferentOddEven(false); |
|
1217 | } |
|
1218 | if (isset($xmlSheet->headerFooter["differentFirst"]) && |
|
1219 | self::boolean((string)$xmlSheet->headerFooter["differentFirst"])) { |
|
1220 | $docHeaderFooter->setDifferentFirst(true); |
|
1221 | } else { |
|
1222 | $docHeaderFooter->setDifferentFirst(false); |
|
1223 | } |
|
1224 | if (isset($xmlSheet->headerFooter["scaleWithDoc"]) && |
|
1225 | !self::boolean((string)$xmlSheet->headerFooter["scaleWithDoc"])) { |
|
1226 | $docHeaderFooter->setScaleWithDocument(false); |
|
@@ 1224-1229 (lines=6) @@ | ||
1221 | } else { |
|
1222 | $docHeaderFooter->setDifferentFirst(false); |
|
1223 | } |
|
1224 | if (isset($xmlSheet->headerFooter["scaleWithDoc"]) && |
|
1225 | !self::boolean((string)$xmlSheet->headerFooter["scaleWithDoc"])) { |
|
1226 | $docHeaderFooter->setScaleWithDocument(false); |
|
1227 | } else { |
|
1228 | $docHeaderFooter->setScaleWithDocument(true); |
|
1229 | } |
|
1230 | if (isset($xmlSheet->headerFooter["alignWithMargins"]) && |
|
1231 | !self::boolean((string)$xmlSheet->headerFooter["alignWithMargins"])) { |
|
1232 | $docHeaderFooter->setAlignWithMargins(false); |
|
@@ 1230-1235 (lines=6) @@ | ||
1227 | } else { |
|
1228 | $docHeaderFooter->setScaleWithDocument(true); |
|
1229 | } |
|
1230 | if (isset($xmlSheet->headerFooter["alignWithMargins"]) && |
|
1231 | !self::boolean((string)$xmlSheet->headerFooter["alignWithMargins"])) { |
|
1232 | $docHeaderFooter->setAlignWithMargins(false); |
|
1233 | } else { |
|
1234 | $docHeaderFooter->setAlignWithMargins(true); |
|
1235 | } |
|
1236 | ||
1237 | $docHeaderFooter->setOddHeader((string) $xmlSheet->headerFooter->oddHeader); |
|
1238 | $docHeaderFooter->setOddFooter((string) $xmlSheet->headerFooter->oddFooter); |