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