File tree Expand file tree Collapse file tree 3 files changed +30
-2
lines changed Expand file tree Collapse file tree 3 files changed +30
-2
lines changed Original file line number Diff line number Diff line change 10
10
### Bugfix
11
11
- PowerPoint2007 Writer : Powerpoint Repair Error in Office 2010 - @Progi1984 GH-39
12
12
- PowerPoint2007 Writer : BUG: Repair Error / Wrong anchor if you don't set vertical alignment different to VERTICAL_BASE - @fregge GH-42
13
- - PowerPoint2007 Writer : Keynote incompatibility - @catrane CP #237322
13
+ - PowerPoint2007 Writer : Keynote incompatibility - @catrane CP #237322 / @ Progi1984 GH- 46
14
14
15
15
### Miscellaneous
16
16
- QA : Move AbstractType for Chart - @Progi1984
Original file line number Diff line number Diff line change @@ -216,6 +216,7 @@ public function save($pFilename)
216
216
// Add PPT properties and styles to ZIP file - Required for Apple Keynote compatibility.
217
217
$ objZip ->addFromString ('ppt/presProps.xml ' , $ wPptProps ->writePresProps ());
218
218
$ objZip ->addFromString ('ppt/tableStyles.xml ' , $ wPptProps ->writeTableStyles ());
219
+ $ objZip ->addFromString ('ppt/viewProps.xml ' , $ wPptProps ->writeViewProps ());
219
220
220
221
// Add relationships to ZIP file
221
222
$ objZip ->addFromString ('_rels/.rels ' , $ wPartRels ->writeRelationships ());
Original file line number Diff line number Diff line change 21
21
22
22
class PptProps extends AbstractPart
23
23
{
24
- /**
24
+ /**
25
25
* Write ppt/presProps.xml to XML format
26
26
*
27
27
* @param PhpPowerpoint $pPHPPowerPoint
@@ -98,6 +98,33 @@ public function writeTableStyles()
98
98
$ objWriter ->writeAttribute ('def ' , '{5C22544A-7EE6-4342-B048-85BDC9FD1C3A} ' );
99
99
$ objWriter ->endElement ();
100
100
101
+ return $ objWriter ->getData ();
102
+ }
103
+ /**
104
+ * Write ppt/viewProps.xml to XML format
105
+ *
106
+ * @param PhpPowerpoint $pPHPPowerPoint
107
+ * @return string XML Output
108
+ * @throws \Exception
109
+ */
110
+ public function writeViewProps ()
111
+ {
112
+ // Create XML writer
113
+ $ objWriter = $ this ->getXMLWriter ();
114
+
115
+ // XML header
116
+ $ objWriter ->startDocument ('1.0 ' , 'UTF-8 ' , 'yes ' );
117
+
118
+ // p:viewPr
119
+ $ objWriter ->startElement ('p:viewPr ' );
120
+ $ objWriter ->writeAttribute ('xmlns:a ' , 'http://schemas.openxmlformats.org/drawingml/2006/main ' );
121
+ $ objWriter ->writeAttribute ('xmlns:r ' , 'http://schemas.openxmlformats.org/officeDocument/2006/relationships ' );
122
+ $ objWriter ->writeAttribute ('xmlns:p ' , 'http://schemas.openxmlformats.org/presentationml/2006/main ' );
123
+ $ objWriter ->writeAttribute ('showComments ' , '0 ' );
124
+
125
+ // > p:viewPr
126
+ $ objWriter ->endElement ();
127
+
101
128
return $ objWriter ->getData ();
102
129
}
103
130
}
You can’t perform that action at this time.
0 commit comments