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