Skip to content

Commit

Permalink
Some parts of code shared between PHPOffice projects have been moved …
Browse files Browse the repository at this point in the history
…to PhpOffice/Common
  • Loading branch information
Progi1984 committed Jun 24, 2015
1 parent 326c6c3 commit 11aa225
Show file tree
Hide file tree
Showing 31 changed files with 299 additions and 1,341 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -33,6 +33,7 @@

### Miscellaneous
- Improved the sample 04-Table for having a Text Run in a Cell - @Progi1984 GH-84
- Some parts of code shared between PHPOffice projects have been moved to PhpOffice/Common - @Progi1984

## 0.3.0 - 2014-09-22

Expand Down
3 changes: 2 additions & 1 deletion composer.json
Expand Up @@ -21,7 +21,8 @@
"require": {
"php": ">=5.3.0",
"ext-xml": "*",
"ext-zip": "*"
"ext-zip": "*",
"phpoffice/common": "0.1.*"
},
"require-dev": {
"phpunit/phpunit": "3.7.*",
Expand Down
135 changes: 96 additions & 39 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/PhpPowerpoint/DocumentLayout.php
Expand Up @@ -17,7 +17,7 @@

namespace PhpOffice\PhpPowerpoint;

use PhpOffice\PhpPowerpoint\Shared\Drawing;
use PhpOffice\Common\Drawing;

/**
* \PhpOffice\PhpPowerpoint\DocumentLayout
Expand Down
20 changes: 10 additions & 10 deletions src/PhpPowerpoint/Reader/PowerPoint97.php
Expand Up @@ -17,7 +17,7 @@

namespace PhpOffice\PhpPowerpoint\Reader;

use PhpOffice\PhpPowerpoint\Shared\OLERead;
use PhpOffice\Common\Microsoft\OLERead;
use PhpOffice\PhpPowerpoint\Shape\Drawing;
use PhpOffice\PhpPowerpoint\PhpPowerpoint;
use PhpOffice\PhpPowerpoint\Shape\MemoryDrawing;
Expand Down Expand Up @@ -901,22 +901,22 @@ private function readRTSlide($pos)
case 0x0081:
// Text : dxTextLeft
//@link : http://msdn.microsoft.com/en-us/library/dd953234(v=office.12).aspx
$arrShpPrimaryOpt['insetLeft'] = \PhpOffice\PhpPowerpoint\Shared\Drawing::emuToPixels($opt['op']);
$arrShpPrimaryOpt['insetLeft'] = \PhpOffice\Common\Drawing::emuToPixels($opt['op']);
break;
case 0x0082:
// Text : dyTextTop
//@link : http://msdn.microsoft.com/en-us/library/dd925068(v=office.12).aspx
$arrShpPrimaryOpt['insetTop'] = \PhpOffice\PhpPowerpoint\Shared\Drawing::emuToPixels($opt['op']);
$arrShpPrimaryOpt['insetTop'] = \PhpOffice\Common\Drawing::emuToPixels($opt['op']);
break;
case 0x0083:
// Text : dxTextRight
//@link : http://msdn.microsoft.com/en-us/library/dd906782(v=office.12).aspx
$arrShpPrimaryOpt['insetRight'] = \PhpOffice\PhpPowerpoint\Shared\Drawing::emuToPixels($opt['op']);
$arrShpPrimaryOpt['insetRight'] = \PhpOffice\Common\Drawing::emuToPixels($opt['op']);
break;
case 0x0084:
// Text : dyTextBottom
//@link : http://msdn.microsoft.com/en-us/library/dd772858(v=office.12).aspx
$arrShpPrimaryOpt['insetBottom'] = \PhpOffice\PhpPowerpoint\Shared\Drawing::emuToPixels($opt['op']);
$arrShpPrimaryOpt['insetBottom'] = \PhpOffice\Common\Drawing::emuToPixels($opt['op']);
break;
case 0x0085:
// Text : WrapText
Expand Down Expand Up @@ -1044,12 +1044,12 @@ private function readRTSlide($pos)
case 0x0193:
// Fill : fillRectRight
//@link : http://msdn.microsoft.com/en-us/library/dd951294(v=office.12).aspx
// echo 'fillRectRight : '.\PhpOffice\PhpPowerpoint\Shared\Drawing::emuToPixels($opt['op']).EOL;
// echo 'fillRectRight : '.\PhpOffice\Common\Drawing::emuToPixels($opt['op']).EOL;
break;
case 0x0194:
// Fill : fillRectBottom
//@link : http://msdn.microsoft.com/en-us/library/dd910194(v=office.12).aspx
// echo 'fillRectBottom : '.\PhpOffice\PhpPowerpoint\Shared\Drawing::emuToPixels($opt['op']).EOL;
// echo 'fillRectBottom : '.\PhpOffice\Common\Drawing::emuToPixels($opt['op']).EOL;
break;
case 0x01BF:
// Fill : Fill Style Boolean Properties
Expand Down Expand Up @@ -1080,7 +1080,7 @@ private function readRTSlide($pos)
case 0x01CB:
// Line Style : lineWidth
//@link : http://msdn.microsoft.com/en-us/library/dd926964(v=office.12).aspx
$arrShpPrimaryOpt['lineWidth'] = \PhpOffice\PhpPowerpoint\Shared\Drawing::emuToPixels($opt['op']);
$arrShpPrimaryOpt['lineWidth'] = \PhpOffice\Common\Drawing::emuToPixels($opt['op']);
break;
case 0x01D6:
// Line Style : lineJoinStyle
Expand All @@ -1105,12 +1105,12 @@ private function readRTSlide($pos)
case 0x0205:
// Shadow Style : shadowOffsetX
//@link : http://msdn.microsoft.com/en-us/library/dd945280(v=office.12).aspx
$arrShpPrimaryOpt['shadowOffsetX'] = \PhpOffice\PhpPowerpoint\Shared\Drawing::emuToPixels($opt['op']);
$arrShpPrimaryOpt['shadowOffsetX'] = \PhpOffice\Common\Drawing::emuToPixels($opt['op']);
break;
case 0x0206:
// Shadow Style : shadowOffsetY
//@link : http://msdn.microsoft.com/en-us/library/dd907855(v=office.12).aspx
$arrShpPrimaryOpt['shadowOffsetY'] = \PhpOffice\PhpPowerpoint\Shared\Drawing::emuToPixels($opt['op']);
$arrShpPrimaryOpt['shadowOffsetY'] = \PhpOffice\Common\Drawing::emuToPixels($opt['op']);
break;
case 0x023F:
// Shadow Style : Shadow Style Boolean Properties
Expand Down

0 comments on commit 11aa225

Please sign in to comment.