Skip to content

Commit

Permalink
Refactored the PowerPoint97 Reader for managing the group shape and …
Browse files Browse the repository at this point in the history
…improving evolutions - @Progi1984 GH-110
  • Loading branch information
Progi1984 committed Jul 1, 2015
1 parent b9ff9fc commit 7f6cbfd
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 24 deletions.
26 changes: 12 additions & 14 deletions composer.lock

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

20 changes: 10 additions & 10 deletions src/PhpPowerpoint/Reader/PowerPoint97.php
Original file line number Diff line number Diff line change
Expand Up @@ -1215,13 +1215,13 @@ private function readRecordOfficeArtClientTextbox($stream, $pos)
case self::RT_INTERACTIVEINFO:
//@link : http://msdn.microsoft.com/en-us/library/dd948623(v=office.12).aspx
if ($rhChild['recInstance'] == 0x0000) {
$mouseClickInteractiveInfo = $this->readRecordMouseClickInteractiveInfoContainer($stream, $pos + $arrayReturn['length']);
$arrayReturn['length'] += $mouseClickInteractiveInfo['length'];
$arrayReturn['hyperlink'][]['id'] = $mouseClickInteractiveInfo['exHyperlinkIdRef'];
$mouseClickInfo = $this->readRecordMouseClickInteractiveInfoContainer($stream, $pos + $arrayReturn['length']);
$arrayReturn['length'] += $mouseClickInfo['length'];
$arrayReturn['hyperlink'][]['id'] = $mouseClickInfo['exHyperlinkIdRef'];
}
if ($rhChild['recInstance'] == 0x0001) {
$mouseOverInteractiveInfo = $this->readRecordMouseOverInteractiveInfoContainer($stream, $pos + $arrayReturn['length']);
$arrayReturn['length'] += $mouseOverInteractiveInfo['length'];
$mouseOverInfo = $this->readRecordMouseOverInteractiveInfoContainer($stream, $pos + $arrayReturn['length']);
$arrayReturn['length'] += $mouseOverInfo['length'];
}
break;
case self::RT_STYLETEXTPROPATOM:
Expand Down Expand Up @@ -2186,12 +2186,12 @@ private function readRecordOfficeArtClientData($stream, $pos)
$arrayReturn['length'] += $dataAnimationInfo['length'];

// mouseClickInteractiveInfo (variable)
$mouseClickInteractiveInfo = $this->readRecordMouseClickInteractiveInfoContainer($stream, $pos + $arrayReturn['length']);
$arrayReturn['length'] += $mouseClickInteractiveInfo['length'];
$mouseClickInfo = $this->readRecordMouseClickInteractiveInfoContainer($stream, $pos + $arrayReturn['length']);
$arrayReturn['length'] += $mouseClickInfo['length'];

// mouseOverInteractiveInfo (variable)
$mouseOverInteractiveInfo = $this->readRecordMouseOverInteractiveInfoContainer($stream, $pos + $arrayReturn['length']);
$arrayReturn['length'] += $mouseOverInteractiveInfo['length'];
$mouseOverInfo = $this->readRecordMouseOverInteractiveInfoContainer($stream, $pos + $arrayReturn['length']);
$arrayReturn['length'] += $mouseOverInfo['length'];

// placeholderAtom (16 bytes)
$dataPlaceholderAtom = $this->readRecordPlaceholderAtom($stream, $pos + $arrayReturn['length']);
Expand Down Expand Up @@ -2576,7 +2576,7 @@ private function readRecordSlideContainer($stream, $pos)
$pos += $perSlideHFContainer['length'];

// *** rtSlideSyncInfo12 (variable) : optional
$rtSlideSyncInfo12 = $this->readRecordRoundTripSlideSyncInfo12Container ($stream, $pos);
$rtSlideSyncInfo12 = $this->readRecordRoundTripSlideSyncInfo12Container($stream, $pos);
$pos += $rtSlideSyncInfo12['length'];

// *** drawing (variable)
Expand Down

0 comments on commit 7f6cbfd

Please sign in to comment.