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

Source for file ParagraphProperties.php

Documentation is available at ParagraphProperties.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.  * ParagraphProperties class file.
  11.  *  
  12.  * PHP Version 5
  13.  *  
  14.  * LICENSE:
  15.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  16.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  17.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  18.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  19.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  20.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  23.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  24.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  25.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  26.  *
  27.  * This software consists of voluntary contributions made by many individuals
  28.  * and is licensed under the GPL. For more information please see
  29.  * <http://opendocumentphp.org>.
  30.  * 
  31.  * $Id: ParagraphProperties.php 256 2007-08-01 14:16:10Z nmarkgraf $
  32.  * 
  33.  * @category    File Formats
  34.  * @package     OpenDocumentPHP
  35.  * @subpackage  styles_properties
  36.  * @author      Norman Markgraf (nmarkgraf(at)user.sourceforge.net)
  37.  * @copyright   Copyright in 2006, 2007 by The OpenDocumentPHP Team
  38.  * @license     http://www.gnu.org/licenses/gpl.html GNU General Public License 2.0.
  39.  * @version     SVN: $Id: ParagraphProperties.php 256 2007-08-01 14:16:10Z nmarkgraf $
  40.  * @link        http://opendocumentphp.org
  41.  * @link        http://www.oasis-open.org/committees/download.php/20493/UCR.pdf OpenDocument Metadata Use Cases and Requirements
  42.  * @since       0.5.2 - 03. Mar. 2007
  43.  */
  44.  
  45. /**
  46.  * 
  47.  */
  48. require_once 'OpenDocumentPHP/util/ODPElement.php';
  49.  
  50. /**
  51.  * ParagraphProperties class.
  52.  * 
  53.  * '<style:paragraph-properties>'
  54.  * 
  55.  * @category    File Formats
  56.  * @package     OpenDocumentPHP
  57.  * @subpackage  styles_properties
  58.  * @author      Norman Markgraf (nmarkgraf(at)user.sourceforge.net)
  59.  * @copyright   Copyright in 2006, 2007 by The OpenDocumentPHP Team
  60.  * @license     http://www.gnu.org/licenses/gpl.html GNU General Public License 2.0.
  61.  * @version     Release: @package_version@
  62.  * @link        http://opendocumentphp.org
  63.  * @since       0.5.2 - 03. Mar. 2007
  64.  */
  65. class ParagraphProperties extends ODPElement 
  66. {
  67.     /**
  68.      * Constructor method.
  69.      * 
  70.      * @since       0.5.3 - 01. Aug. 2007
  71.      */
  72.     function __construct($elem=null
  73.     {         
  74.         if (is_null($elem)) {
  75.            parent::__construct('style:paragraph-properties'''self::STYLE);
  76.         else {
  77.            parent::__construct($elem);         
  78.         }   
  79.     }
  80.  
  81.     /**
  82.      * fo:margin-top="0.423cm"
  83.      * @since     0.5.2 - 16.03.2007
  84.      */
  85.     public function setMarginTop($value
  86.     {
  87.         //***FIX ME***: Check $value first!
  88.         $this->putFOAttribute('margin-top'$value);
  89.     }
  90.     /**
  91.      * fo:margin-bottom="0.212cm"
  92.      * @since     0.5.2 - 16.03.2007
  93.      */
  94.     public function setMarginBottom($value
  95.     {
  96.         //***FIX ME***: Check $value first!
  97.         $this->putFOAttribute('margin-bottom'$value);
  98.     }
  99.     /**
  100.      * fo:keep-with-next="always"
  101.      * @since     0.5.2 - 16.03.2007
  102.      */
  103.     public function setKeepWithNext($value
  104.     {
  105.         //***FIX ME***: Check $value first!
  106.         $this->putFOAttribute('keep-with-next'$value);
  107.     }
  108.     /**
  109.      * fo:text-align
  110.      * @since     0.5.2 - 16.03.2007
  111.      */
  112.     public function setTextAlign($value
  113.     {
  114.         //***FIX ME***: Check $value first!
  115.         $this->putFOAttribute('text-align'$value);
  116.     }
  117.     /**
  118.      * fo:hyphenation-ladder-count="no-limit"
  119.      * @since     0.5.2 - 16.03.2007
  120.      */
  121.     public function setHyphenationLadderCount($value
  122.     {
  123.         //***FIX ME***: Check $value first!
  124.         $this->putFOAttribute('hyphenation-ladder-count'$value);
  125.     }
  126.     /**
  127.      * style:justify-single-word
  128.      * @since     0.5.2 - 16.03.2007
  129.      */
  130.     public function setJustifySingleWord($value
  131.     {
  132.         //***FIX ME***: Check $value first!
  133.         $this->putStyleAttribute('justify-single-word'$value);
  134.     }
  135.     /**
  136.      *    style:text-autospace="ideograph-alpha"
  137.      * @since     0.5.2 - 16.03.2007
  138.      */
  139.     public function setTextAutospace($value
  140.     {
  141.         //***FIX ME***: Check $value first!
  142.         $this->putStyleAttribute('text-autospace'$value);
  143.     }
  144.     /**
  145.      * style:punctuation-wrap="hanging"
  146.      * @since     0.5.2 - 16.03.2007
  147.      */
  148.     public function setPunctuationWrap($value
  149.     {
  150.         //***FIX ME***: Check $value first!
  151.         $this->putStyleAttribute('punctuation-wrap'$value);
  152.     }
  153.     /**
  154.      * style:line-break="strict"
  155.      * @since     0.5.2 - 16.03.2007
  156.      */
  157.     public function setLineBreak($value
  158.     {
  159.         //***FIX ME***: Check $value first!
  160.         $this->putStyleAttribute('line-break'$value);
  161.     }
  162.     /**
  163.      * style:tab-stop-distance="1.251cm"
  164.      * @since     0.5.2 - 16.03.2007
  165.      */
  166.     public function setTabStopDistance($value
  167.     {
  168.         //***FIX ME***: Check $value first!
  169.         $this->putStyleAttribute('tab-stop-distance'$value);
  170.     }
  171.     /**
  172.      * style:writing-mode="page"
  173.      * @since     0.5.2 - 16.03.2007
  174.      */
  175.     public function setWritingMode($value
  176.     {
  177.         //***FIX ME***: Check $value first!
  178.         $this->putStyleAttribute('writing-mode'$value);
  179.     }
  180. }
  181. ?>

Documentation generated on Wed, 18 Jun 2008 06:31:36 +0200 by phpDocumentor 1.3.2