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

Source for file StylesFragment.php

Documentation is available at StylesFragment.php

  1. <?php
  2. /*
  3.  * Created on 22.01.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: StylesFragment.php 161 2007-03-19 09:35:16Z nmarkgraf $
  24.  */
  25. require_once 'OpenDocumentPHP/styles/DefaultStyle.php';
  26. require_once 'OpenDocumentPHP/styles/Style.php';
  27. require_once 'OpenDocumentPHP/util/Fragment.php';
  28. /**
  29.  * SytlesFragment class.
  30.  *
  31.  * @author         Norman Markgraf (nmarkgraf(at)user.sourceforge.net)
  32.  * @copyright     Copyright in 2006, 2007 by The OpenDocumentPHP Team
  33.  * @license     http://www.gnu.org/licenses/gpl.html GNU General Public License 2.0.
  34.  * @version        $Revision: 161 $
  35.  * @package        OpenDocumentPHP
  36.  * @since         0.5.0 - 08.02.2007
  37.  */
  38. class StylesFragment extends Fragment {
  39.     /**
  40.      * Constructor method.
  41.      * 
  42.      * @since         0.5.0 - 08.02.2007
  43.      */
  44.     function __construct($domFragment{
  45.         parent :: __construct($domFragment);
  46.         $this->root = $this->createOfficeElement('styles');
  47.         $this->tables array ();
  48.     }
  49.     /**
  50.      * 
  51.      * @access         public
  52.      * @since         0.5.0 - 08.02.2007
  53.      */
  54.     function getStyle({
  55.         $ret $this->domFragment->createStyleStyleElement();
  56.         $this->root->appendChild($ret->getElement());
  57.         return $ret;
  58.     }
  59.     /**
  60.      * 
  61.      * @access         public
  62.      * @since         0.5.0 - 08.02.2007
  63.      */
  64.     function getDefaultStyle({
  65.         $ret $this->domFragment->createDefaultStyleElement();
  66.         $this->root->appendChild($ret->getElement());
  67.         return $ret;
  68.     }
  69. }
  70. ?>

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