phpDocumentor OpenDocumentPHP
styles_properties
[ class tree: OpenDocumentPHP ] [ index: OpenDocumentPHP ] [ all elements ]

Source for file GraphicProperties.php

Documentation is available at GraphicProperties.php

  1. <?php
  2.  
  3. /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
  4.  
  5. /*
  6.  * Created on 03. Mar. 2007 by Norman Markgraf (nmarkgraf(at)user.sourceforge.net)
  7.  */
  8.  
  9. /**
  10.  * GraphicProperties class file.
  11.  * 
  12.  * This class handles the '<style:graphic-properties>' tag.
  13.  * 
  14.  * This is the basic class for all DOMDocuments used in this project.
  15.  * 
  16.  * PHP versions 5
  17.  *   
  18.  * LICENSE:
  19.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  20.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  21.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  22.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  23.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  24.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  25.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  26.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  27.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  28.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30.  *
  31.  * This software consists of voluntary contributions made by many individuals
  32.  * and is licensed under the GPL. For more information please see
  33.  * <http://opendocumentphp.org>.
  34.  * 
  35.  * $Id: GraphicProperties.php 256 2007-08-01 14:16:10Z nmarkgraf $
  36.  * 
  37.  * @category    File Formats
  38.  * @package     OpenDocumentPHP
  39.  * @subpackage  styles_properties
  40.  * @author      Norman Markgraf (nmarkgraf(at)user.sourceforge.net)
  41.  * @copyright   Copyright in 2006, 2007 by The OpenDocumentPHP Team
  42.  * @license     http://www.gnu.org/licenses/gpl.html GNU General Public License 2.0.
  43.  * @version     SVN: $Id: GraphicProperties.php 256 2007-08-01 14:16:10Z nmarkgraf $
  44.  * @link        http://opendocumentphp.org
  45.  * @since       0.5.2 - 04. Mar. 2007
  46.  */
  47.  
  48. /**
  49.  *
  50.  */
  51. require_once 'OpenDocumentPHP/util/ODPElement.php';
  52.  
  53. /**
  54.  * GraphicProperties class.
  55.  * 
  56.  * '<style:graphic-properties>'
  57.  *  
  58.  * @category    File Formats
  59.  * @package     OpenDocumentPHP
  60.  * @subpackage  style_properties
  61.  * @author      Norman Markgraf (nmarkgraf(at)user.sourceforge.net)
  62.  * @copyright   Copyright in 2006, 2007 by The OpenDocumentPHP Team
  63.  * @license     http://www.gnu.org/licenses/gpl.html GNU General Public License 2.0.
  64.  * @version     Release: @package_version@
  65.  * @link        http://opendocumentphp.org
  66.  * @since         0.5.2 - 04. Mar. 2007
  67.  */
  68. class GraphicProperties extends ODPElement 
  69. {
  70.     /**
  71.      * Constructor method.
  72.      * 
  73.      * @since       0.5.3 - 01. Aug. 2007
  74.      */
  75.     function __construct($elem=null
  76.     {         
  77.         if (is_null($elem)) {
  78.            parent::__construct('style:graphic-properties'''self::STYLE);
  79.         else {
  80.            parent::__construct($elem);         
  81.         }   
  82.     }
  83.  
  84.     /**
  85.      * style:flow-with-text="false"
  86.      * 
  87.      * @since     0.5.2 - 21. Mar. 2007
  88.      */
  89.     public function setMarginTop($value{
  90.         if (Validate::checkBoolean($value)) {
  91.             $this->putStyleAttribute('flow-with-text'''.$value);
  92.         }            
  93.     }            
  94.     
  95.     /**
  96.      * draw:shadow-offset-x="0.3cm"
  97.      * 
  98.      * @since     0.5.2 - 21. Mar. 2007
  99.      */
  100.     public function setShadowOffsetX($value{
  101.         //
  102.         $this->putDrawAttribute('shadow-offset-x'$value);
  103.     }
  104.     
  105.     /**
  106.      * draw:shadow-offset-y="0.3cm"
  107.      * 
  108.      * @since     0.5.2 - 21. Mar. 2007
  109.      */
  110.     public function setShadowOffsetY($value{
  111.         //
  112.         $this->putDrawAttribute('shadow-offset-y'$value);
  113.     }
  114.     
  115.     /**
  116.      * draw:start-line-spacing-horizontal="0.283cm"
  117.      * 
  118.      * @since     0.5.2 - 21. Mar. 2007
  119.      */
  120.     public function setStartLineSpacingHorizontal($value{
  121.         //
  122.         $this->putDrawAttribute('start-line-spacing-horizontal'$value);
  123.     }
  124.     
  125.     /**
  126.      * draw:start-line-spacing-vertical="0.283cm"
  127.      * 
  128.      * @since     0.5.2 - 21. Mar. 2007
  129.      */
  130.     public function setStartLineSpacingVertical($value{
  131.         //
  132.         $this->putDrawAttribute('start-line-spacing-vertical'$value);
  133.     }
  134.     
  135.     /**
  136.      * draw:end-line-spacing-horizontal="0.283cm"
  137.      * 
  138.      * @since     0.5.2 - 21. Mar. 2007
  139.      */
  140.     public function setEndLineSpacingHorizontal($value{
  141.         //
  142.         $this->putDrawAttribute('end-line-spacing-horizontal'$value);
  143.     }
  144.     
  145.     /**
  146.      * draw:end-line-spacing-vertical="0.283cm"
  147.      * 
  148.      * @since     0.5.2 - 21. Mar. 2007
  149.      */
  150.     public function setEndLineSpacingVertical($value{
  151.         //
  152.         $this->putDrawAttribute('end-line-spacing-vertical'$value);
  153.     }    
  154. }
  155. ?>

Documentation generated on Wed, 18 Jun 2008 06:28:55 +0200 by phpDocumentor 1.3.2