application patch page_order
This commit is contained in:
parent
85e9740971
commit
519f341a44
@ -517,6 +517,10 @@ final class FileSystemHelper implements FileSystemWithRootFolderHelperInterface
|
|||||||
$xml .= " paperSize=\"{$pageSetup->paperSize->value}\"";
|
$xml .= " paperSize=\"{$pageSetup->paperSize->value}\"";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (null !== $pageSetup->pageOrder) {
|
||||||
|
$xml .= " pageOrder=\"{$pageSetup->pageOrder->value}\"";
|
||||||
|
}
|
||||||
|
|
||||||
if (null !== $pageSetup->fitToHeight) {
|
if (null !== $pageSetup->fitToHeight) {
|
||||||
$xml .= " fitToHeight=\"{$pageSetup->fitToHeight}\"";
|
$xml .= " fitToHeight=\"{$pageSetup->fitToHeight}\"";
|
||||||
}
|
}
|
||||||
|
11
openspout4/src/Writer/XLSX/Options/PageOrder.php
Normal file
11
openspout4/src/Writer/XLSX/Options/PageOrder.php
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace OpenSpout\Writer\XLSX\Options;
|
||||||
|
|
||||||
|
enum PageOrder: string
|
||||||
|
{
|
||||||
|
case DOWN_THEN_OVER = 'downThenOver';
|
||||||
|
case OVER_THEN_DOWN = 'overThenDown';
|
||||||
|
}
|
@ -13,6 +13,7 @@ final readonly class PageSetup
|
|||||||
public ?PaperSize $paperSize,
|
public ?PaperSize $paperSize,
|
||||||
public ?int $fitToHeight = null,
|
public ?int $fitToHeight = null,
|
||||||
public ?int $fitToWidth = null,
|
public ?int $fitToWidth = null,
|
||||||
|
public ?PageOrder $pageOrder = null,
|
||||||
) {
|
) {
|
||||||
$this->fitToPage = null !== $fitToHeight || null !== $fitToWidth;
|
$this->fitToPage = null !== $fitToHeight || null !== $fitToWidth;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user