11
11
use PhpOffice \PhpPresentation \Slide ;
12
12
use PhpOffice \PhpPresentation \Slide \SlideMaster ;
13
13
use PhpOffice \PhpPresentation \Style \SchemeColor ;
14
- use PhpOffice \PhpPresentation \Slide \Background \Image ;
15
14
16
15
class PptSlideMasters extends AbstractSlide
17
16
{
@@ -25,13 +24,6 @@ public function render()
25
24
$ this ->oZip ->addFromString ('ppt/slideMasters/_rels/slideMaster ' . $ oMasterSlide ->getRelsIndex () . '.xml.rels ' , $ this ->writeSlideMasterRelationships ($ oMasterSlide ));
26
25
// Add the information from the masterSlide to the ZIP file
27
26
$ this ->oZip ->addFromString ('ppt/slideMasters/slideMaster ' . $ oMasterSlide ->getRelsIndex () . '.xml ' , $ this ->writeSlideMaster ($ oMasterSlide ));
28
-
29
- // Add background image slide
30
- $ oBkgImage = $ oMasterSlide ->getBackground ();
31
- if ($ oBkgImage instanceof Image) {
32
- $ this ->oZip ->addFromString ('ppt/media/ ' . $ oBkgImage ->getIndexedFilename ($ oMasterSlide ->getRelsIndex ()), file_get_contents ($ oBkgImage ->getPath ()));
33
- }
34
-
35
27
}
36
28
37
29
return $ this ->oZip ;
@@ -66,13 +58,6 @@ public function writeSlideMasterRelationships(SlideMaster $oMasterSlide)
66
58
// Write drawing relationships?
67
59
$ relId = $ this ->writeDrawingRelations ($ oMasterSlide , $ objWriter , ++$ relId );
68
60
69
- // Write background relationships?
70
- $ oBackground = $ oMasterSlide ->getBackground ();
71
- if ($ oBackground instanceof Image) {
72
- $ this ->writeRelationship ($ objWriter , ++$ relId , 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/image ' , '../media/ ' . $ oBackground ->getIndexedFilename ($ oMasterSlide ->getRelsIndex ()));
73
- $ oBackground ->relationId = 'rId ' . $ relId ;
74
- }
75
-
76
61
// TODO: Write hyperlink relationships?
77
62
// TODO: Write comment relationships
78
63
// Relationship theme/theme1.xml
0 commit comments