Source for file Heading.php
Documentation is available at Heading.php
* Created on 19.01.2007 by Norman Markgraf (nmarkgraf(at)user.sourceforge.net)
* 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: Heading.php 145 2007-03-04 12:43:08Z nmarkgraf $
require_once 'OpenDocumentPHP/content/body/text/Paragraph.php';
* Heading class extends Paragraph class.
* @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: 145 $
* @package OpenDocumentPHP
* @subpackage content_body_text
* @since 0.5.0 - 02.08.2007
* Set element to 'text:h'.
* @since 0.5.0 - 08.02.2007
* Set heading level ('text:outline-level') attribute.
* @since 0.5.0 - 08.02.2007
* @param int $level A positive integer for the new heading level.
* Retrieve heading level ('text:outline-level') attribute.
* @since 0.5.0 - 08.02.2007
* @return int The heading/outline level as a positive integer.
* @since 0.5.0 - 08.02.2007
$this->setAttributeNS(self :: TEXT, 'text:restart-numbering', 'true');
* @since 0.5.0 - 08.02.2007
$this->setAttributeNS(self :: TEXT, 'text:restart-numbering', 'false');
* @since 0.5.0 - 08.02.2007
if ($tmp !== false || $tmp != 'false') {
* @since 0.5.0 - 08.02.2007
$startValue = (int) $startValue;
* @since 0.5.0 - 08.02.2007
/* ------------------------ */
/* Supress Heading Numering */
/* ------------------------ */
* Supress Header Numbering.
* It is sometimes desired to have a specific heading which should not be numbered.
* @since 0.5.0 - 08.02.2007
* @since 0.5.0 - 08.02.2007
* @since 0.5.0 - 08.02.2007
if ($tmp !== false || $tmp != 'false') {
/* ------------------------ */
/* Formatted Heading Number */
/* ------------------------ */
|