Source for file Style.php
Documentation is available at Style.php
* Created on 21.01.2007 by Norman Markgraf (nmarkgraf(at)user.sourceforge.net)
* PHP versions 5.2 or better.
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* This software consists of voluntary contributions made by many individuals
* and is licensed under the GPL. For more information please see
* <http://opendocumentphp.org>.
* $Id: Style.php 162 2007-03-19 10:37:22Z nmarkgraf $
require_once 'OpenDocumentPHP/styles/DefaultStyle.php';
require_once 'OpenDocumentPHP/util/Validator.php';
* @author Norman Markgraf (nmarkgraf(at)user.sourceforge.net)
* @copyright Copyright in 2006, 2007 by The OpenDocumentPHP Team
* @license http://www.gnu.org/licenses/gpl.html GNU General Public License 2.0.
* @version $Revision: 162 $
* @package OpenDocumentPHP
* @since 0.5.0 - 08.02.2007
* Set element to 'style:style'.
* @since 0.5.0 - 08.02.2007
* @deprecated 0.5.2 - 19.03.2007 No longer needed!
$this->root = $this->domFragment->createElementNS(self :: STYLE, 'style:style');
* @since 0.5.0 - 08.02.2007
* @since 0.5.0 - 08.02.2007
* @since 0.5.0 - 08.02.2007
* @since 0.5.0 - 08.02.2007
* @since 0.5.0 - 08.02.2007
* @since 0.5.0 - 08.02.2007
* @since 0.5.0 - 08.02.2007
* @since 0.5.0 - 08.02.2007
* @todo We need a set/getListStyleName() function here. It should match:
* <define name="style-style-attlist" combine="interleave">
* <attribute name="style:list-style-name">
* <ref name="styleName"/>
* @since 0.5.0 - 08.02.2007
* @since 0.5.0 - 08.02.2007
/* -------------------- */
/* Automatically Update */
/* -------------------- */
* @todo We need a set/getAutoUpdate function here, that matches:
* <define name="style-style-attlist" combine="interleave">
* <attribute name="style:auto-update" a:defaultValue="false">
* Set the value of the 'style:data-style-name' attribute.
* @since 0.5.0 - 08.02.2007
* @param string $value The new data style name.
* Retrieve the value of the 'style:data-style-name' attribute.
* @return string Value of the 'style:data-style-name' attribute.
* @since 0.5.0 - 08.02.2007
* @since 0.5.0 - 08.02.2007
* @since 0.5.0 - 08.02.2007
/* ------------------- */
/* DefaultOutlineLevel */
/* ------------------- */
* Set the 'style:default-outline-level' attribute.
* @since 0.5.0 - 08.02.2007
* @param int $value The new default outline level.
* Retrieve the value of the 'style:default-outline-level' attribute.
* @todo Make the return type to be an integer not a string.
* @since 0.5.0 - 08.02.2007
* @return string The value of the 'style:default-outline-level' attribute.
|