Skip to content

Commit b4e3a79

Browse files
committed
#218 : PowerPoint2007 : Support text direction in Alignment for Table
1 parent 735dbe5 commit b4e3a79

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

phpmd.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<!-- PptSlides needs more coupling (default: 13) -->
2121
<!-- Writer/Office2007/AbstractSlide needs more coupling (default: 13) -->
2222
<properties>
23-
<property name="minimum" value="32" />
23+
<property name="minimum" value="35" />
2424
</properties>
2525
</rule>
2626
<rule ref="rulesets/design.xml/NumberOfChildren">

samples/Sample_04_Table.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@
7979
->setStartColor(new Color('FFE06B20'))
8080
->setEndColor(new Color('FFE06B20'));
8181
$row->nextCell()->createTextRun('R2C1');
82-
$row->getCell()->getActiveParagraph()->getAlignment()->setMarginLeft(30);
82+
$row->getCell()->getActiveParagraph()->getAlignment()
83+
->setMarginLeft(30)
84+
->setTextDirection(\PhpOffice\PhpPresentation\Style\Alignment::TEXT_DIRECTION_VERTICAL_270);
8385
$row->nextCell()->createTextRun('R2C2');
8486
$row->nextCell()->createTextRun('R2C3');
8587

0 commit comments

Comments
 (0)