Source for file PHPPowerpoint.php
Documentation is available at PHPPowerpoint.php
* Copyright (c) 2009 - 2010 PHPPowerPoint
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
* @category PHPPowerPoint
* @copyright Copyright (c) 2009 - 2010 PHPPowerPoint (http://www.codeplex.com/PHPPowerPoint)
* @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
* @version 0.1.0, 2009-04-27
/** PHPPowerPoint_Slide */
require_once 'PHPPowerPoint/Slide.php';
/** PHPPowerPoint_DocumentProperties */
require_once 'PHPPowerPoint/DocumentProperties.php';
/** PHPPowerPoint_Shared_ZipStreamWrapper */
require_once 'PHPPowerPoint/Shared/ZipStreamWrapper.php';
/** PHPPowerPoint_SlideIterator */
require_once 'PHPPowerPoint/SlideIterator.php';
* @category PHPPowerPoint
* @copyright Copyright (c) 2009 - 2010 PHPPowerPoint (http://www.codeplex.com/PHPPowerPoint)
* @var PHPPowerPoint_DocumentProperties
* Collection of Slide objects
* @var PHPPowerPoint_Slide[]
* Create a new PHPPowerPoint with one Slide
// Initialise slide collection and add one slide
// Create document properties
* @return PHPPowerPoint_DocumentProperties
* @param PHPPowerPoint_DocumentProperties $value
public function setProperties(PHPPowerPoint_DocumentProperties $value)
* @return PHPPowerPoint_Slide
* Create slide and add it to this presentation
* @return PHPPowerPoint_Slide
* @param PHPPowerPoint_Slide $slide
public function addSlide(PHPPowerPoint_Slide $slide = null)
* @param int $index Slide index
throw new Exception("Slide index is out of bounds.");
* @param int $index Slide index
* @return PHPPowerPoint_Slide
throw new Exception("Slide index is out of bounds.");
* @return PHPPowerPoint_Slide[]
* @param PHPPowerPoint_Slide $slide
public function getIndex(PHPPowerPoint_Slide $slide)
if ($value->getHashCode() == $slide->getHashCode()) {
* @return int Active slide index
* @param int $index Active slide index
throw new Exception("Active slide index is out of bounds.");
* @param PHPPowerPoint_Slide $slide External slide to add
$slide->rebindParent($this);
* @return PHPPowerPoint_SlideIterator
* Copy presentation (!= clone!)
for ($i = 0; $i < $slideCount; ++ $i) {
* Implement PHP __clone to create a deep clone, not just a shallow copy.
foreach ($vars as $key => $value) {
$this->$key = clone $value;
|