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