Skip to content

Commit a93d525

Browse files
committed
Merge pull request #187 from Progi1984/develop
PowerPoint2007 Writer : Move to Design Pattern Decorator
2 parents 30a3fc8 + 55e805e commit a93d525

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+2428
-2715
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55
### Bugfix
66
- Fixed the image project - @mvargasmoran GH-177
77

8+
### Changes
9+
- PhpOffice\PhpPresentation\Writer\PowerPoint2007 : Move to Design Pattern Decorator - @Progi1984
10+
11+
### Features
12+
- ODPresentation Writer : Thumbnail of the presentation - @Progi1984 GH-125
13+
- PowerPoint2007 Writer : Thumbnail of the presentation - @Progi1984 GH-125
14+
815
## 0.6.0 - 2016-01-24
916

1017
### Bugfix

src/PhpPresentation/AbstractShape.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,10 @@ public function __construct()
121121

122122
$this->border->setLineStyle(Style\Border::LINE_NONE);
123123
}
124-
124+
125+
/**
126+
* Magic Method : clone
127+
*/
125128
public function __clone()
126129
{
127130
$this->container = null;

src/PhpPresentation/DocumentLayout.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ public function setDocumentLayout($pValue = self::LAYOUT_SCREEN_4X3, $isLandscap
150150
/**
151151
* Get Document Layout cx
152152
*
153+
* @param float $unit
153154
* @return integer
154155
*/
155156
public function getCX($unit = self::UNIT_EMU)
@@ -160,6 +161,7 @@ public function getCX($unit = self::UNIT_EMU)
160161
/**
161162
* Get Document Layout cy
162163
*
164+
* @param float $unit
163165
* @return integer
164166
*/
165167
public function getCY($unit = self::UNIT_EMU)
@@ -170,6 +172,8 @@ public function getCY($unit = self::UNIT_EMU)
170172
/**
171173
* Get Document Layout cx
172174
*
175+
* @param float $value
176+
* @param float $unit
173177
* @return integer
174178
*/
175179
public function setCX($value, $unit = self::UNIT_EMU)
@@ -182,6 +186,8 @@ public function setCX($value, $unit = self::UNIT_EMU)
182186
/**
183187
* Get Document Layout cy
184188
*
189+
* @param float $value
190+
* @param float $unit
185191
* @return integer
186192
*/
187193
public function setCY($value, $unit = self::UNIT_EMU)
@@ -193,7 +199,7 @@ public function setCY($value, $unit = self::UNIT_EMU)
193199

194200
/**
195201
* Convert EMUs to differents units
196-
* @param $value
202+
* @param float $value
197203
* @param string $fromUnit
198204
* @param string $toUnit
199205
*/

src/PhpPresentation/Shape/Group.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function __construct()
6363
/**
6464
* Get collection of shapes
6565
*
66-
* @return \ArrayObject|\PhpOffice\PhpPresentation\AbstractShape[]
66+
* @return \ArrayObject
6767
*/
6868
public function getShapeCollection()
6969
{

src/PhpPresentation/Writer/ODPresentation/Manifest.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,12 @@ private function getImageMimeType($pFile = '')
161161
$pImgFile = substr($pFile, strpos($pFile, '#') + 1);
162162
$oArchive = new \ZipArchive();
163163
$oArchive->open($pZIPFile);
164-
$image = getimagesizefromstring($oArchive->getFromName($pImgFile));
164+
if (!function_exists('getimagesizefromstring')) {
165+
$uri = 'data://application/octet-stream;base64,' . base64_encode($oArchive->getFromName($pImgFile));
166+
$image = getimagesize($uri);
167+
} else {
168+
$image = getimagesizefromstring($oArchive->getFromName($pImgFile));
169+
}
165170
} else {
166171
$image = getimagesize($pFile);
167172
}

src/PhpPresentation/Writer/PowerPoint2007.php

Lines changed: 81 additions & 305 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)