File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
src/PhpPresentation/Writer/PowerPoint2007 Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -27,8 +27,10 @@ class PptProps extends AbstractPart
27
27
* @return string XML Output
28
28
* @throws \Exception
29
29
*/
30
- public function writePresProps ()
30
+ public function writePresProps (PhpPresentation $ pPhpPresentation )
31
31
{
32
+ $ presentationPpts = $ pPhpPresentation ->getPresentationProperties ();
33
+
32
34
// Create XML writer
33
35
$ objWriter = $ this ->getXMLWriter ();
34
36
@@ -40,6 +42,13 @@ public function writePresProps()
40
42
$ objWriter ->writeAttribute ('xmlns:a ' , 'http://schemas.openxmlformats.org/drawingml/2006/main ' );
41
43
$ objWriter ->writeAttribute ('xmlns:r ' , 'http://schemas.openxmlformats.org/officeDocument/2006/relationships ' );
42
44
$ objWriter ->writeAttribute ('xmlns:p ' , 'http://schemas.openxmlformats.org/presentationml/2006/main ' );
45
+
46
+ // p:presentationPr > p:showPr
47
+ if ($ presentationPpts ->isLoopContinuouslyUntilEsc ()) {
48
+ $ objWriter ->startElement ('p:showPr ' );
49
+ $ objWriter ->writeAttribute ('loop ' , '1 ' );
50
+ $ objWriter ->endElement ();
51
+ }
43
52
44
53
// p:extLst
45
54
$ objWriter ->startElement ('p:extLst ' );
You can’t perform that action at this time.
0 commit comments