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

Source for file ParagraphProperties.php

Documentation is available at ParagraphProperties.php

  1. <?php
  2. /*
  3.  * Created on 03.03.2007 by Norman Markgraf (nmarkgraf(at)user.sourceforge.net)
  4.  *
  5.  * PHP versions 5.2 or better.
  6.  *
  7.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  8.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  9.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  10.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  11.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  12.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  13.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  14.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  15.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  16.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  17.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  18.  *
  19.  * This software consists of voluntary contributions made by many individuals
  20.  * and is licensed under the GPL. For more information please see
  21.  * <http://opendocumentphp.org>.
  22.  * 
  23.  * $Id: ParagraphProperties.php 161 2007-03-19 09:35:16Z nmarkgraf $
  24.  */
  25. require_once 'OpenDocumentPHP/util/ODPElement.php';
  26. /**
  27.  * ParagraphProperties class.
  28.  * 
  29.  * @author         Norman Markgraf (nmarkgraf(at)user.sourceforge.net)
  30.  * @copyright     Copyright in 2006, 2007 by The OpenDocumentPHP Team
  31.  * @license     http://www.gnu.org/licenses/gpl.html GNU General Public License 2.0.
  32.  * @version        $Revision: 161 $
  33.  * @package        OpenDocumentPHP
  34.  * @since         0.5.2 - 03.03.2007
  35.  */
  36. class ParagraphProperties extends ODPElement {
  37.     /**
  38.      * fo:margin-top="0.423cm"
  39.      * @since     0.5.2 - 16.03.2007
  40.      */
  41.     public function setMarginTop($value{
  42.         //***FIX ME***: Check $value first!
  43.         $this->putFOAttribute('margin-top'$value);
  44.     }
  45.     /**
  46.      * fo:margin-bottom="0.212cm"
  47.      * @since     0.5.2 - 16.03.2007
  48.      */
  49.     public function setMarginBottom($value{
  50.         //***FIX ME***: Check $value first!
  51.         $this->putFOAttribute('margin-bottom'$value);
  52.     }
  53.     /**
  54.      * fo:keep-with-next="always"
  55.      * @since     0.5.2 - 16.03.2007
  56.      */
  57.     public function setKeepWithNext($value{
  58.         //***FIX ME***: Check $value first!
  59.         $this->putFOAttribute('keep-with-next'$value);
  60.     }
  61.     /**
  62.      * fo:text-align
  63.      * @since     0.5.2 - 16.03.2007
  64.      */
  65.     public function setTextAlign($value{
  66.         //***FIX ME***: Check $value first!
  67.         $this->putFOAttribute('text-align'$value);
  68.     }
  69.     /**
  70.      * fo:hyphenation-ladder-count="no-limit"
  71.      * @since     0.5.2 - 16.03.2007
  72.      */
  73.     public function setHyphenationLadderCount($value{
  74.         //***FIX ME***: Check $value first!
  75.         $this->putFOAttribute('hyphenation-ladder-count'$value);
  76.     }
  77.     /**
  78.      * style:justify-single-word
  79.      * @since     0.5.2 - 16.03.2007
  80.      */
  81.     public function setJustifySingleWord($value{
  82.         //***FIX ME***: Check $value first!
  83.         $this->putStyleAttribute('justify-single-word'$value);
  84.     }
  85.     /**
  86.      *    style:text-autospace="ideograph-alpha"
  87.      * @since     0.5.2 - 16.03.2007
  88.      */
  89.     public function setTextAutospace($value{
  90.         //***FIX ME***: Check $value first!
  91.         $this->putStyleAttribute('text-autospace'$value);
  92.     }
  93.     /**
  94.      * style:punctuation-wrap="hanging"
  95.      * @since     0.5.2 - 16.03.2007
  96.      */
  97.     public function setPunctuationWrap($value{
  98.         //***FIX ME***: Check $value first!
  99.         $this->putStyleAttribute('punctuation-wrap'$value);
  100.     }
  101.     /**
  102.      * style:line-break="strict"
  103.      * @since     0.5.2 - 16.03.2007
  104.      */
  105.     public function setLineBreak($value{
  106.         //***FIX ME***: Check $value first!
  107.         $this->putStyleAttribute('line-break'$value);
  108.     }
  109.     /**
  110.      * style:tab-stop-distance="1.251cm"
  111.      * @since     0.5.2 - 16.03.2007
  112.      */
  113.     public function setTabStopDistance($value{
  114.         //***FIX ME***: Check $value first!
  115.         $this->putStyleAttribute('tab-stop-distance'$value);
  116.     }
  117.     /**
  118.      * style:writing-mode="page"
  119.      * @since     0.5.2 - 16.03.2007
  120.      */
  121.     public function setWritingMode($value{
  122.         //***FIX ME***: Check $value first!
  123.         $this->putStyleAttribute('writing-mode'$value);
  124.     }
  125. }
  126. ?>

Documentation generated on Tue, 12 Jun 2007 10:00:35 +0200 by phpDocumentor 1.3.2