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

Source for file TextProperties.php

Documentation is available at TextProperties.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.  * TextProperties 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: TextProperties.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: TextProperties.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.  * TextProperties class.
  52.  * 
  53.  * @category    File Formats
  54.  * @package     OpenDocumentPHP
  55.  * @subpackage  styles_properties
  56.  * @author      Norman Markgraf (nmarkgraf(at)user.sourceforge.net)
  57.  * @copyright   Copyright in 2006, 2007 by The OpenDocumentPHP Team
  58.  * @license     http://www.gnu.org/licenses/gpl.html GNU General Public License 2.0.
  59.  * @version     Release: @package_version@
  60.  * @link        http://opendocumentphp.org
  61.  * @since       0.5.2 - 03. Mar. 2007
  62.  * 
  63.  */
  64. class TextProperties extends ODPElement 
  65. {
  66.     /**
  67.      * Constructor method.
  68.      * 
  69.      * @since       0.5.2 - 26. Feb. 2007
  70.      */
  71.     function __construct($elem=null
  72.     {         
  73.         if (is_null($elem)) {        
  74.            parent::__construct('styles:text-properties'''self::STYLE);
  75.         else {
  76.            parent::__construct($elem);         
  77.         }   
  78.     }
  79.  
  80.     /**
  81.      * fo:font-style="italic"
  82.      * @since     0.5.2 - 16. Mar. 2007
  83.      */
  84.     public function setFontStyle($value
  85.     {
  86.         //***FIX ME***: Check $value first!
  87.         $this->putFOAttribute('font-style'$value);
  88.     }
  89.     /**
  90.      * fo:font-weight="bold"
  91.      * @since     0.5.2 - 16. Mar. 2007
  92.      */
  93.     public function setFontWeight($value
  94.     {
  95.         //***FIX ME***: Check $value first!
  96.         $this->putFOAttribute('font-weight'$value);
  97.     }
  98.     /**
  99.      * fo:font-size="12pt"
  100.      * @since     0.5.2 - 16. Mar. 2007
  101.      */
  102.     public function setFontSize($value
  103.     {
  104.         //***FIX ME***: Check $value first!
  105.         $this->putFOAttribute('font-size'$value);
  106.     }
  107.     /**
  108.      * fo:language="de"
  109.      * @since     0.5.2 - 16. Mar. 2007
  110.      */
  111.     public function setLanguage($value
  112.     {
  113.         //***FIX ME***: Check $value first!
  114.         $this->putFOAttribute('language'$value);
  115.     }
  116.     /**
  117.      * fo:country="DE"
  118.      * @since     0.5.2 - 16. Mar. 2007
  119.      */
  120.     public function setCountry($value
  121.     {
  122.         //***FIX ME***: Check $value first!
  123.         $this->putFOAttribute('country'$value);
  124.     }
  125.     /**
  126.      * fo:hyphenate="false"
  127.      * @since     0.5.2 - 16. Mar. 2007
  128.      */
  129.     public function setHyphenate($value
  130.     {
  131.         //***FIX ME***: Check $value first!
  132.         $this->putFOAttribute('hyphenate'$value);
  133.     }
  134.     /**
  135.      * fo:hyphenation-remain-char-count="2"
  136.      * @since     0.5.2 - 16. Mar. 2007
  137.      */
  138.     public function setHyphenationRemainCharCount($value
  139.     {
  140.         //***FIX ME***: Check $value first!
  141.         $this->putFOAttribute('hyphenation-remain-char-count'$value);
  142.     }
  143.     /**
  144.      * fo:hyphenation-push-char-count="2"
  145.      * @since     0.5.2 - 16. Mar. 2007
  146.      */
  147.     public function setHyphenationPushCharCount($value
  148.     {
  149.         //***FIX ME***: Check $value first!
  150.         $this->putFOAttribute('hyphenation-push-char-count'$value);
  151.     }
  152.     /**
  153.      *     style:font-name="Arial"
  154.      * @since     0.5.2 - 16. Mar. 2007
  155.      */
  156.     public function setFontName($value
  157.     {
  158.         //***FIX ME***: Check $value first!
  159.         $this->putStyleAttribute('font-name'$value);
  160.     }
  161.     /**
  162.      * style:font-name-asian="MS Mincho"
  163.      * @since     0.5.2 - 16. Mar. 2007
  164.      */
  165.     public function setFontNameAsian($value
  166.     {
  167.         //***FIX ME***: Check $value first!
  168.         $this->putStyleAttribute('font-name-asian'$value);
  169.     }
  170.     /**
  171.      * style:font-size-asian="14pt"
  172.      * @since     0.5.2 - 16. Mar. 2007
  173.      */
  174.     public function setFontSizeAsian($value
  175.     {
  176.         //***FIX ME***: Check $value first!
  177.         $this->putStyleAttribute('font-size-asian'$value);
  178.     }
  179.     /**
  180.      * style:font-style-asian="italic"
  181.      * @since     0.5.2 - 16. Mar. 2007
  182.      */
  183.     public function setFontWeightAsian($value
  184.     {
  185.         //***FIX ME***: Check $value first!
  186.         $this->putStyleAttribute('font-style-asian'$value);
  187.     }
  188.     /**
  189.      * style:font-name-complex="MS Mincho"
  190.      * @since     0.5.2 - 16. Mar. 2007
  191.      */
  192.     public function setFontNameComplex($value
  193.     {
  194.         //***FIX ME***: Check $value first!
  195.         $this->putStyleAttribute('font-name-complex'$value);
  196.     }
  197.     /**
  198.      * style:font-size-complex="14pt"
  199.      * @since     0.5.2 - 16. Mar. 2007
  200.      */
  201.     public function setFontSizeComplex($value
  202.     {
  203.         //***FIX ME***: Check $value first!
  204.         $this->putStyleAttribute('font-size-complex'$value);
  205.     }
  206.     /**
  207.      * style:font-style-complex="italic"
  208.      * @since     0.5.2 - 16. Mar. 2007
  209.      */
  210.     public function setFontStyleComplex($value
  211.     {
  212.         //***FIX ME***: Check $value first!
  213.         $this->putStyleAttribute('font-style-complex'$value);
  214.     }
  215.     /**
  216.      * style:font-weight-complex="bold"
  217.      * @since     0.5.2 - 16. Mar. 2007
  218.      */
  219.     public function setFontWeightComplex($value
  220.     {
  221.         //***FIX ME***: Check $value first!
  222.         $this->putStyleAttribute('font-weight-complex'$value);
  223.     }
  224.     /*
  225.     style:use-window-font-color="true"
  226.     style:language-asian="none"
  227.     style:country-asian="none" 
  228.     style:language-complex="none"
  229.     style:country-complex="none"
  230.     */
  231.     
  232.     /**
  233.      * fo:font-style="italic"
  234.      * @since     0.5.2 - 19. Mar. 2007
  235.      */
  236.     public function getFontStyle($value=null
  237.     {
  238.         //***FIX ME***: Check $value first!
  239.         return $this->putFOAttribute('font-style'$value);
  240.     }
  241.     /**
  242.      * fo:font-weight="bold"
  243.      * @since     0.5.2 - 19. Mar. 2007
  244.      */
  245.     public function getFontWeight($value=null
  246.     {    
  247.         //***FIX ME***: Check $value first!
  248.         return $this->putFOAttribute('font-weight'$value);
  249.     }
  250.     /**
  251.      * fo:font-size="12pt"
  252.      * @since     0.5.2 - 19. Mar. 2007
  253.      */
  254.     public function getFontSize($value=null
  255.     {
  256.         //***FIX ME***: Check $value first!
  257.         return $this->putFOAttribute('font-size'$value);
  258.     }
  259.     /**
  260.      * fo:language="de"
  261.      * @since     0.5.2 - 19. Mar. 2007
  262.      */
  263.     public function getLanguage($value=null
  264.     {
  265.         //***FIX ME***: Check $value first!
  266.         return $this->putFOAttribute('language'$value);
  267.     }
  268.     /**
  269.      * fo:country="DE"
  270.      * @since     0.5.2 - 19. Mar. 2007
  271.      */
  272.     public function getCountry($value=null
  273.     {
  274.         //***FIX ME***: Check $value first!
  275.         return $this->putFOAttribute('country'$value);
  276.     }
  277.     /**
  278.      * fo:hyphenate="false"
  279.      * @since     0.5.2 - 19. Mar. 2007
  280.      */
  281.     public function getHyphenate($value=null
  282.     {
  283.         //***FIX ME***: Check $value first!
  284.         return $this->putFOAttribute('hyphenate'$value);
  285.     }
  286.     /**
  287.      * fo:hyphenation-remain-char-count="2"
  288.      * @since     0.5.2 - 19. Mar. 2007
  289.      */
  290.     public function getHyphenationRemainCharCount($value=null
  291.     {
  292.         //***FIX ME***: Check $value first!
  293.         return $this->putFOAttribute('hyphenation-remain-char-count'$value);
  294.     }
  295.     /**
  296.      * fo:hyphenation-push-char-count="2"
  297.      * @since     0.5.2 - 19. Mar. 2007
  298.      */
  299.     public function getHyphenationPushCharCount($value=null
  300.     {
  301.     
  302.         //***FIX ME***: Check $value first!
  303.         return $this->putFOAttribute('hyphenation-push-char-count'$value);
  304.     }
  305.     /**
  306.      *     style:font-name="Arial"
  307.      * @since     0.5.2 - 19. Mar. 2007
  308.      */
  309.     public function getFontName($value=null
  310.     {
  311.         //***FIX ME***: Check $value first!
  312.         return $this->getStyleAttribute('font-name'$value);
  313.     }
  314.     /**
  315.      * style:font-name-asian="MS Mincho"
  316.      * @since     0.5.2 - 19. Mar. 2007
  317.      */
  318.     public function getFontNameAsian($value=null
  319.     {
  320.         //***FIX ME***: Check $value first!
  321.         return $this->getStyleAttribute('font-name-asian'$value);
  322.     }
  323.     /**
  324.      * style:font-size-asian="14pt"
  325.      * @since     0.5.2 - 19. Mar. 2007
  326.      */
  327.     public function getFontSizeAsian($value=null
  328.     {
  329.         //***FIX ME***: Check $value first!
  330.         return $this->getStyleAttribute('font-size-asian'$value);
  331.     }
  332.     /**
  333.      * style:font-style-asian="italic"
  334.      * @since     0.5.2 - 19. Mar. 2007
  335.      */
  336.     public function getFontWeightAsian($value=null
  337.     {
  338.         //***FIX ME***: Check $value first!
  339.         return $this->getStyleAttribute('font-style-asian'$value);
  340.     }
  341.     /**
  342.      * style:font-name-complex="MS Mincho"
  343.      * @since     0.5.2 - 19. Mar. 2007
  344.      */
  345.     public function getFontNameComplex($value=null
  346.     {
  347.         //***FIX ME***: Check $value first!
  348.         return $this->getStyleAttribute('font-name-complex'$value);
  349.     }
  350.     /**
  351.      * style:font-size-complex="14pt"
  352.      * @since     0.5.2 - 19. Mar. 2007
  353.      */
  354.     public function getFontSizeComplex($value=null
  355.     {
  356.         //***FIX ME***: Check $value first!
  357.         return $this->getStyleAttribute('font-size-complex'$value);
  358.     }
  359.     /**
  360.      * style:font-style-complex="italic"
  361.      * @since     0.5.2 - 19. Mar. 2007
  362.      */
  363.     public function getFontStyleComplex($value=null{
  364.     
  365.         //***FIX ME***: Check $value first!
  366.         return $this->getStyleAttribute('font-style-complex'$value);
  367.     }
  368.     /**
  369.      * style:font-weight-complex="bold"
  370.      * @since     0.5.2 - 19.032007
  371.      */
  372.     public function getFontWeightComplex($value=null
  373.     {
  374.         //***FIX ME***: Check $value first!
  375.         return $this->getStyleAttribute('font-weight-complex'$value);
  376.     }
  377. }
  378. ?>

Documentation generated on Wed, 18 Jun 2008 06:33:45 +0200 by phpDocumentor 1.3.2