File tree Expand file tree Collapse file tree 8 files changed +12
-36
lines changed Expand file tree Collapse file tree 8 files changed +12
-36
lines changed Original file line number Diff line number Diff line change 4
4
5
5
include_once 'Sample_Header.php ' ;
6
6
7
- use PhpOffice \PhpPresentation \PhpPresentation ;
8
- use PhpOffice \PhpPresentation \DocumentLayout ;
9
7
use PhpOffice \PhpPresentation \IOFactory ;
10
- use PhpOffice \PhpPresentation \Style \Alignment ;
11
- use PhpOffice \PhpPresentation \Style \Color ;
12
8
use PhpOffice \PhpPresentation \Slide ;
13
- use PhpOffice \PhpPresentation \AbstractShape ;
14
- use PhpOffice \PhpPresentation \Shape \MemoryDrawing ;
15
9
use PhpOffice \PhpPresentation \Shape \RichText ;
16
- use PhpOffice \PhpPresentation \Shape \Group ;
17
10
18
11
$ pptReader = IOFactory::createReader ('ODPresentation ' );
19
12
$ oPHPPresentation = $ pptReader ->load ('resources/Sample_12.odp ' );
Original file line number Diff line number Diff line change 4
4
5
5
include_once 'Sample_Header.php ' ;
6
6
7
- use PhpOffice \PhpPresentation \PhpPresentation ;
8
- use PhpOffice \PhpPresentation \DocumentLayout ;
9
7
use PhpOffice \PhpPresentation \IOFactory ;
10
- use PhpOffice \PhpPresentation \Style \Alignment ;
11
- use PhpOffice \PhpPresentation \Style \Color ;
12
8
use PhpOffice \PhpPresentation \Slide ;
13
- use PhpOffice \PhpPresentation \AbstractShape ;
14
- use PhpOffice \PhpPresentation \Shape \MemoryDrawing ;
15
9
use PhpOffice \PhpPresentation \Shape \RichText ;
16
- use PhpOffice \PhpPresentation \Shape \Group ;
17
10
18
11
$ pptReader = IOFactory::createReader ('PowerPoint2007 ' );
19
12
$ oPHPPresentation = $ pptReader ->load ('resources/Sample_12.pptx ' );
Original file line number Diff line number Diff line change 4
4
5
5
include_once 'Sample_Header.php ' ;
6
6
7
- use PhpOffice \PhpPresentation \PhpPresentation ;
8
- use PhpOffice \PhpPresentation \DocumentLayout ;
9
7
use PhpOffice \PhpPresentation \IOFactory ;
10
- use PhpOffice \PhpPresentation \Style \Alignment ;
11
- use PhpOffice \PhpPresentation \Style \Color ;
12
8
use PhpOffice \PhpPresentation \Slide ;
13
- use PhpOffice \PhpPresentation \AbstractShape ;
14
- use PhpOffice \PhpPresentation \Shape \MemoryDrawing ;
15
9
use PhpOffice \PhpPresentation \Shape \RichText ;
16
- use PhpOffice \PhpPresentation \Shape \Group ;
17
10
18
- $ pptReader = PhpOffice \ PhpPresentation \ IOFactory::createReader ('PowerPoint97 ' );
11
+ $ pptReader = IOFactory::createReader ('PowerPoint97 ' );
19
12
$ oPHPPresentation = $ pptReader ->load ('resources/Sample_12.ppt ' );
20
13
21
14
$ oTree = new PhpPptTree ($ oPHPPresentation );
Original file line number Diff line number Diff line change 10
10
use PhpOffice \PhpPresentation \AbstractShape ;
11
11
use PhpOffice \PhpPresentation \DocumentLayout ;
12
12
use PhpOffice \PhpPresentation \Shape \Drawing ;
13
- use PhpOffice \PhpPresentation \Shape \MemoryDrawing ;
14
13
use PhpOffice \PhpPresentation \Shape \RichText ;
15
14
use PhpOffice \PhpPresentation \Shape \RichText \BreakElement ;
16
15
use PhpOffice \PhpPresentation \Shape \RichText \TextElement ;
@@ -325,7 +324,7 @@ protected function displayShapeInfo(AbstractShape $oShape)
325
324
$ this ->append ('<dt>Fill</dt><dd>@Todo</dd> ' );
326
325
$ this ->append ('<dt>Border</dt><dd>@Todo</dd> ' );
327
326
$ this ->append ('<dt>IsPlaceholder</dt><dd> ' . ($ oShape ->isPlaceholder () ? 'true ' : 'false ' ) . '</dd> ' );
328
- if ($ oShape instanceof MemoryDrawing ) {
327
+ if ($ oShape instanceof Drawing \Gd ) {
329
328
$ this ->append ('<dt>Name</dt><dd> ' .$ oShape ->getName ().'</dd> ' );
330
329
$ this ->append ('<dt>Description</dt><dd> ' .$ oShape ->getDescription ().'</dd> ' );
331
330
ob_start ();
Original file line number Diff line number Diff line change 18
18
namespace PhpOffice \PhpPresentation \Reader ;
19
19
20
20
use PhpOffice \Common \Microsoft \OLERead ;
21
- use PhpOffice \PhpPresentation \ Shape \ Drawing ;
21
+ use PhpOffice \Common \ Text ;
22
22
use PhpOffice \PhpPresentation \PhpPresentation ;
23
- use PhpOffice \PhpPresentation \Style \Alignment ;
24
- use PhpOffice \PhpPresentation \Style \Color ;
25
- use PhpOffice \PhpPresentation \Shape \RichText ;
26
23
use PhpOffice \PhpPresentation \AbstractShape ;
27
- use PhpOffice \PhpPresentation \Style \Bullet ;
24
+ use PhpOffice \PhpPresentation \Shape ;
25
+ use PhpOffice \PhpPresentation \Shape \Drawing ;
26
+ use PhpOffice \PhpPresentation \Shape \Group ;
28
27
use PhpOffice \PhpPresentation \Shape \Hyperlink ;
29
28
use PhpOffice \PhpPresentation \Shape \Line ;
30
- use PhpOffice \Common \Text ;
31
- use PhpOffice \PhpPresentation \Shape \Group ;
32
- use PhpOffice \PhpPresentation \Shape \PhpOffice \PhpPresentation \Shape ;
29
+ use PhpOffice \PhpPresentation \Shape \RichText ;
30
+ use PhpOffice \PhpPresentation \Style \Alignment ;
31
+ use PhpOffice \PhpPresentation \Style \Color ;
32
+ use PhpOffice \PhpPresentation \Style \Bullet ;
33
33
34
34
/**
35
35
* Serialized format reader
Original file line number Diff line number Diff line change 21
21
use PhpOffice \PhpPresentation \GeometryCalculator ;
22
22
use PHPOffice \PhpPresentation \ShapeContainerInterface ;
23
23
use PhpOffice \PhpPresentation \Shape \Drawing ;
24
- use PhpOffice \PhpPresentation \Shape \Line ;
25
24
use PhpOffice \PhpPresentation \Shape \RichText ;
26
25
use PhpOffice \PhpPresentation \Shape \Table ;
27
26
Original file line number Diff line number Diff line change 3
3
namespace PhpOffice \PhpPresentation \Writer \ODPresentation ;
4
4
5
5
use PhpOffice \Common \Adapter \Zip \ZipInterface ;
6
- use PhpOffice \Common \File ;
7
6
use PhpOffice \Common \XMLWriter ;
8
7
use PhpOffice \PhpPresentation \Shape \Drawing as ShapeDrawing ;
9
8
use PhpOffice \PhpPresentation \Slide \Background \Image ;
Original file line number Diff line number Diff line change 2
2
3
3
namespace PhpOffice \PhpPresentation \Writer \PowerPoint2007 ;
4
4
5
- use PhpOffice \PhpPresentation \Shape \Drawing ;
5
+ use PhpOffice \PhpPresentation \Shape \Drawing \ AbstractDrawingAdapter ;
6
6
7
7
class PptMedia extends AbstractDecoratorWriter
8
8
{
@@ -13,7 +13,7 @@ public function render()
13
13
{
14
14
for ($ i = 0 ; $ i < $ this ->getDrawingHashTable ()->count (); ++$ i ) {
15
15
$ shape = $ this ->getDrawingHashTable ()->getByIndex ($ i );
16
- if (!$ shape instanceof Drawing \ AbstractDrawingAdapter) {
16
+ if (!$ shape instanceof AbstractDrawingAdapter) {
17
17
continue ;
18
18
}
19
19
$ this ->getZip ()->addFromString ('ppt/media/ ' . $ shape ->getIndexedFilename (), $ shape ->getContents ());
You can’t perform that action at this time.
0 commit comments