1 | <?php |
||
11 | abstract class AbstractWriter |
||
12 | { |
||
13 | /** |
||
14 | * Private unique hash table |
||
15 | * |
||
16 | * @var \PhpOffice\PhpPresentation\HashTable |
||
17 | */ |
||
18 | protected $oDrawingHashTable; |
||
19 | |||
20 | /** |
||
21 | * Private PhpPresentation |
||
22 | * |
||
23 | * @var PhpPresentation |
||
24 | */ |
||
25 | protected $oPresentation; |
||
26 | |||
27 | /** |
||
28 | * @var ZipInterface |
||
29 | */ |
||
30 | protected $oZipAdapter; |
||
31 | |||
32 | /** |
||
33 | * Get drawing hash table |
||
34 | * |
||
35 | * @return \PhpOffice\PhpPresentation\HashTable |
||
36 | */ |
||
37 | 177 | public function getDrawingHashTable() |
|
41 | |||
42 | /** |
||
43 | * Get PhpPresentation object |
||
44 | * |
||
45 | * @return PhpPresentation |
||
46 | * @throws \Exception |
||
47 | */ |
||
48 | 188 | public function getPhpPresentation() |
|
55 | |||
56 | /** |
||
57 | * Get PhpPresentation object |
||
58 | * |
||
59 | * @param PhpPresentation $pPhpPresentation PhpPresentation object |
||
60 | * @throws \Exception |
||
61 | * @return \PhpOffice\PhpPresentation\Writer\ODPresentation |
||
62 | */ |
||
63 | 197 | public function setPhpPresentation(PhpPresentation $pPhpPresentation = null) |
|
68 | |||
69 | |||
70 | /** |
||
71 | * @param ZipInterface $oZipAdapter |
||
72 | * @return $this |
||
73 | */ |
||
74 | 197 | public function setZipAdapter(ZipInterface $oZipAdapter) |
|
79 | |||
80 | /** |
||
81 | * @return ZipInterface |
||
82 | */ |
||
83 | 180 | public function getZipAdapter() |
|
87 | |||
88 | /** |
||
89 | * Get an array of all drawings |
||
90 | * |
||
91 | * @return \PhpOffice\PhpPresentation\Shape\AbstractDrawing[] All drawings in PhpPresentation |
||
92 | * @throws \Exception |
||
93 | */ |
||
94 | 177 | protected function allDrawings() |
|
107 | |||
108 | 177 | private function iterateCollection(\ArrayIterator $oIterator) |
|
129 | } |
||
130 |