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

Source for file TextProperties.php

Documentation is available at TextProperties.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: TextProperties.php 162 2007-03-19 10:37:22Z nmarkgraf $
  24.  */
  25. require_once 'OpenDocumentPHP/util/ODPElement.php';
  26. /**
  27.  * TextProperties 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: 162 $
  33.  * @package        OpenDocumentPHP
  34.  * @since         0.5.2 - 03.03.2007
  35.  */
  36. class TextProperties extends ODPElement {
  37.     /**
  38.      * fo:font-style="italic"
  39.      * @since     0.5.2 - 16.03.2007
  40.      */
  41.     public function setFontStyle($value{
  42.         //***FIX ME***: Check $value first!
  43.         $this->putFOAttribute('font-style'$value);
  44.     }
  45.     /**
  46.      * fo:font-weight="bold"
  47.      * @since     0.5.2 - 16.03.2007
  48.      */
  49.     public function setFontWeight($value{
  50.         //***FIX ME***: Check $value first!
  51.         $this->putFOAttribute('font-weight'$value);
  52.     }
  53.     /**
  54.      * fo:font-size="12pt"
  55.      * @since     0.5.2 - 16.03.2007
  56.      */
  57.     public function setFontSize($value{
  58.         //***FIX ME***: Check $value first!
  59.         $this->putFOAttribute('font-size'$value);
  60.     }
  61.     /**
  62.      * fo:language="de"
  63.      * @since     0.5.2 - 16.03.2007
  64.      */
  65.     public function setLanguage($value{
  66.         //***FIX ME***: Check $value first!
  67.         $this->putFOAttribute('language'$value);
  68.     }
  69.     /**
  70.      * fo:country="DE"
  71.      * @since     0.5.2 - 16.03.2007
  72.      */
  73.     public function setCountry($value{
  74.         //***FIX ME***: Check $value first!
  75.         $this->putFOAttribute('country'$value);
  76.     }
  77.     /**
  78.      * fo:hyphenate="false"
  79.      * @since     0.5.2 - 16.03.2007
  80.      */
  81.     public function setHyphenate($value{
  82.         //***FIX ME***: Check $value first!
  83.         $this->putFOAttribute('hyphenate'$value);
  84.     }
  85.     /**
  86.      * fo:hyphenation-remain-char-count="2"
  87.      * @since     0.5.2 - 16.03.2007
  88.      */
  89.     public function setHyphenationRemainCharCount($value{
  90.         //***FIX ME***: Check $value first!
  91.         $this->putFOAttribute('hyphenation-remain-char-count'$value);
  92.     }
  93.     /**
  94.      * fo:hyphenation-push-char-count="2"
  95.      * @since     0.5.2 - 16.03.2007
  96.      */
  97.     public function setHyphenationPushCharCount($value{
  98.         //***FIX ME***: Check $value first!
  99.         $this->putFOAttribute('hyphenation-push-char-count'$value);
  100.     }
  101.     /**
  102.      *     style:font-name="Arial"
  103.      * @since     0.5.2 - 16.03.2007
  104.      */
  105.     public function setFontName($value{
  106.         //***FIX ME***: Check $value first!
  107.         $this->putStyleAttribute('font-name'$value);
  108.     }
  109.     /**
  110.      * style:font-name-asian="MS Mincho"
  111.      * @since     0.5.2 - 16.03.2007
  112.      */
  113.     public function setFontNameAsian($value{
  114.         //***FIX ME***: Check $value first!
  115.         $this->putStyleAttribute('font-name-asian'$value);
  116.     }
  117.     /**
  118.      * style:font-size-asian="14pt"
  119.      * @since     0.5.2 - 16.03.2007
  120.      */
  121.     public function setFontSizeAsian($value{
  122.         //***FIX ME***: Check $value first!
  123.         $this->putStyleAttribute('font-size-asian'$value);
  124.     }
  125.     /**
  126.      * style:font-style-asian="italic"
  127.      * @since     0.5.2 - 16.03.2007
  128.      */
  129.     public function setFontWeightAsian($value{
  130.         //***FIX ME***: Check $value first!
  131.         $this->putStyleAttribute('font-style-asian'$value);
  132.     }
  133.     /**
  134.      * style:font-name-complex="MS Mincho"
  135.      * @since     0.5.2 - 16.03.2007
  136.      */
  137.     public function setFontNameComplex($value{
  138.         //***FIX ME***: Check $value first!
  139.         $this->putStyleAttribute('font-name-complex'$value);
  140.     }
  141.     /**
  142.      * style:font-size-complex="14pt"
  143.      * @since     0.5.2 - 16.03.2007
  144.      */
  145.     public function setFontSizeComplex($value{
  146.         //***FIX ME***: Check $value first!
  147.         $this->putStyleAttribute('font-size-complex'$value);
  148.     }
  149.     /**
  150.      * style:font-style-complex="italic"
  151.      * @since     0.5.2 - 16.03.2007
  152.      */
  153.     public function setFontStyleComplex($value{
  154.         //***FIX ME***: Check $value first!
  155.         $this->putStyleAttribute('font-style-complex'$value);
  156.     }
  157.     /**
  158.      * style:font-weight-complex="bold"
  159.      * @since     0.5.2 - 16.03.2007
  160.      */
  161.     public function setFontWeightComplex($value{
  162.         //***FIX ME***: Check $value first!
  163.         $this->putStyleAttribute('font-weight-complex'$value);
  164.     }
  165.     /*
  166.     style:use-window-font-color="true"
  167.     style:language-asian="none"
  168.     style:country-asian="none" 
  169.     style:language-complex="none"
  170.     style:country-complex="none"
  171.     */
  172.     
  173.     /**
  174.      * fo:font-style="italic"
  175.      * @since     0.5.2 - 19.03.2007
  176.      */
  177.     public function getFontStyle($value=null{
  178.         //***FIX ME***: Check $value first!
  179.         return $this->putFOAttribute('font-style'$value);
  180.     }
  181.     /**
  182.      * fo:font-weight="bold"
  183.      * @since     0.5.2 - 19.03.2007
  184.      */
  185.     public function getFontWeight($value=null{
  186.         //***FIX ME***: Check $value first!
  187.         return $this->putFOAttribute('font-weight'$value);
  188.     }
  189.     /**
  190.      * fo:font-size="12pt"
  191.      * @since     0.5.2 - 19.03.2007
  192.      */
  193.     public function getFontSize($value=null{
  194.         //***FIX ME***: Check $value first!
  195.         return $this->putFOAttribute('font-size'$value);
  196.     }
  197.     /**
  198.      * fo:language="de"
  199.      * @since     0.5.2 - 19.03.2007
  200.      */
  201.     public function getLanguage($value=null{
  202.         //***FIX ME***: Check $value first!
  203.         return $this->putFOAttribute('language'$value);
  204.     }
  205.     /**
  206.      * fo:country="DE"
  207.      * @since     0.5.2 - 19.03.2007
  208.      */
  209.     public function getCountry($value=null{
  210.         //***FIX ME***: Check $value first!
  211.         return $this->putFOAttribute('country'$value);
  212.     }
  213.     /**
  214.      * fo:hyphenate="false"
  215.      * @since     0.5.2 - 19.03.2007
  216.      */
  217.     public function getHyphenate($value=null{
  218.         //***FIX ME***: Check $value first!
  219.         return $this->putFOAttribute('hyphenate'$value);
  220.     }
  221.     /**
  222.      * fo:hyphenation-remain-char-count="2"
  223.      * @since     0.5.2 - 19.03.2007
  224.      */
  225.     public function getHyphenationRemainCharCount($value=null{
  226.         //***FIX ME***: Check $value first!
  227.         return $this->putFOAttribute('hyphenation-remain-char-count'$value);
  228.     }
  229.     /**
  230.      * fo:hyphenation-push-char-count="2"
  231.      * @since     0.5.2 - 19.03.2007
  232.      */
  233.     public function getHyphenationPushCharCount($value=null{
  234.         //***FIX ME***: Check $value first!
  235.         return $this->putFOAttribute('hyphenation-push-char-count'$value);
  236.     }
  237.     /**
  238.      *     style:font-name="Arial"
  239.      * @since     0.5.2 - 19.03.2007
  240.      */
  241.     public function getFontName($value=null{
  242.         //***FIX ME***: Check $value first!
  243.         return $this->getStyleAttribute('font-name'$value);
  244.     }
  245.     /**
  246.      * style:font-name-asian="MS Mincho"
  247.      * @since     0.5.2 - 19.03.2007
  248.      */
  249.     public function getFontNameAsian($value=null{
  250.         //***FIX ME***: Check $value first!
  251.         return $this->getStyleAttribute('font-name-asian'$value);
  252.     }
  253.     /**
  254.      * style:font-size-asian="14pt"
  255.      * @since     0.5.2 - 19.03.2007
  256.      */
  257.     public function getFontSizeAsian($value=null{
  258.         //***FIX ME***: Check $value first!
  259.         return $this->getStyleAttribute('font-size-asian'$value);
  260.     }
  261.     /**
  262.      * style:font-style-asian="italic"
  263.      * @since     0.5.2 - 19.03.2007
  264.      */
  265.     public function getFontWeightAsian($value=null{
  266.         //***FIX ME***: Check $value first!
  267.         return $this->getStyleAttribute('font-style-asian'$value);
  268.     }
  269.     /**
  270.      * style:font-name-complex="MS Mincho"
  271.      * @since     0.5.2 - 19.03.2007
  272.      */
  273.     public function getFontNameComplex($value=null{
  274.         //***FIX ME***: Check $value first!
  275.         return $this->getStyleAttribute('font-name-complex'$value);
  276.     }
  277.     /**
  278.      * style:font-size-complex="14pt"
  279.      * @since     0.5.2 - 19.03.2007
  280.      */
  281.     public function getFontSizeComplex($value=null{
  282.         //***FIX ME***: Check $value first!
  283.         return $this->getStyleAttribute('font-size-complex'$value);
  284.     }
  285.     /**
  286.      * style:font-style-complex="italic"
  287.      * @since     0.5.2 - 19.03.2007
  288.      */
  289.     public function getFontStyleComplex($value=null{
  290.         //***FIX ME***: Check $value first!
  291.         return $this->getStyleAttribute('font-style-complex'$value);
  292.     }
  293.     /**
  294.      * style:font-weight-complex="bold"
  295.      * @since     0.5.2 - 19.032007
  296.      */
  297.     public function getFontWeightComplex($value=null{
  298.         //***FIX ME***: Check $value first!
  299.         return $this->getStyleAttribute('font-weight-complex'$value);
  300.     }
  301. }
  302. ?>

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