PHPPowerPoint_RichText
[ class tree: PHPPowerPoint_RichText ] [ index: PHPPowerPoint_RichText ] [ all elements ]

Source for file Break.php

Documentation is available at Break.php

  1. <?php
  2. /**
  3.  * PHPPowerPoint
  4.  *
  5.  * This library is free software; you can redistribute it and/or
  6.  * modify it under the terms of the GNU Lesser General Public
  7.  * License as published by the Free Software Foundation; either
  8.  * version 2.1 of the License, or (at your option) any later version.
  9.  * 
  10.  * This library is distributed in the hope that it will be useful,
  11.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  13.  * Lesser General Public License for more details.
  14.  * 
  15.  * You should have received a copy of the GNU Lesser General Public
  16.  * License along with this library; if not, write to the Free Software
  17.  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  18.  *
  19.  * @category   PHPPowerPoint
  20.  * @package    PHPPowerPoint_RichText
  21.  * @copyright  Copyright (c) 2009 - 2010 PHPPowerPoint (http://www.codeplex.com/PHPPowerPoint)
  22.  * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt    LGPL
  23.  * @version    0.1.0, 2009-04-27
  24.  */
  25.  
  26.  
  27. /** PHPPowerPoint_Shape_RichText_ITextElement */
  28. require_once 'PHPPowerPoint/Shape/RichText/ITextElement.php';
  29.  
  30. /** PHPPowerPoint_Style_Font */
  31. require_once 'PHPPowerPoint/Style/Font.php';
  32.  
  33.  
  34. /**
  35.  * PHPPowerPoint_Shape_RichText_Break
  36.  *
  37.  * @category   PHPPowerPoint
  38.  * @package    PHPPowerPoint_Shape
  39.  * @copyright  Copyright (c) 2009 - 2010 PHPPowerPoint (http://www.codeplex.com/PHPPowerPoint)
  40.  */
  41. class PHPPowerPoint_Shape_RichText_Break implements PHPPowerPoint_Shape_RichText_ITextElement
  42. {
  43.     /**
  44.      * Create a new PHPPowerPoint_Shape_RichText_Break instance
  45.      */
  46.     public function __construct()
  47.     {
  48.     }
  49.     
  50.     /**
  51.      * Get text
  52.      *
  53.      * @return string    Text
  54.      */    
  55.     public function getText(
  56.     {
  57.         return "\r\n";
  58.     }
  59.     
  60.     /**
  61.      * Set text
  62.      *
  63.      * @param     $pText string    Text
  64.      */    
  65.     public function setText($pText ''
  66.     {
  67.     }
  68.     
  69.     /**
  70.      * Get font
  71.      *
  72.      * @return PHPPowerPoint_Style_Font 
  73.      */    
  74.     public function getFont({
  75.         return null;
  76.     }
  77.     
  78.     /**
  79.      * Get hash code
  80.      *
  81.      * @return string    Hash code
  82.      */    
  83.     public function getHashCode({
  84.         return md5(
  85.               __CLASS__
  86.         );
  87.     }
  88. }

Documentation generated on Sat, 25 Apr 2009 11:36:47 +0200 by phpDocumentor 1.4.1