/************************************************************************
 *
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
 *
 * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
 *
 * Use is subject to license terms.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy
 * of the License at http://www.apache.org/licenses/LICENSE-2.0. You can also
 * obtain a copy of the License at http://odftoolkit.org/docs/license.txt
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 ************************************************************************/

/*
 * This file is automatically generated.
 * Don't edit manually.
 */    

package org.odftoolkit.odfdom.dom.element.style;

import org.odftoolkit.odfdom.dom.OdfName;
import org.odftoolkit.odfdom.dom.OdfNamespace;
import org.odftoolkit.odfdom.doc.OdfFileDom;
import org.odftoolkit.odfdom.dom.element.OdfStylePropertiesBase;
import org.odftoolkit.odfdom.dom.style.props.OdfStyleProperty;
import org.odftoolkit.odfdom.dom.style.props.OdfStylePropertiesSet;

import org.odftoolkit.odfdom.dom.type.style.OdfTabStopType;
import org.odftoolkit.odfdom.dom.element.office.OdfBinaryDataElement;

/**
 * DOM implementation of OpenDocument element  {@odfLink style:paragraph-properties}.
 *
 */
public abstract class OdfParagraphPropertiesElement extends OdfStylePropertiesBase
{        
    public static final OdfName ELEMENT_NAME = OdfName.get( OdfNamespace.STYLE, "paragraph-properties" );

    /**
     * Create the instance of OdfParagraphPropertiesElement 
     *
     *@param  aOwnerDoc     The type is OdfFileDom
     */
    public OdfParagraphPropertiesElement( OdfFileDom aOwnerDoc )
    {
        super( aOwnerDoc, ELEMENT_NAME );
    }

    /**
     * Get the element name 
     *
     *@return  return   the name of element {@odfLink style:paragraph-properties}.
     */
    public OdfName getOdfName()
    {
        return ELEMENT_NAME;
    }

    public final static OdfStyleProperty LineHeight = 
        OdfStyleProperty.get(OdfStylePropertiesSet.ParagraphProperties, OdfName.get(OdfNamespace.FO, "line-height"));
    public final static OdfStyleProperty LineHeightAtLeast = 
        OdfStyleProperty.get(OdfStylePropertiesSet.ParagraphProperties, OdfName.get(OdfNamespace.STYLE, "line-height-at-least"));
    public final static OdfStyleProperty LineSpacing = 
        OdfStyleProperty.get(OdfStylePropertiesSet.ParagraphProperties, OdfName.get(OdfNamespace.STYLE, "line-spacing"));
    public final static OdfStyleProperty FontIndependentLineSpacing = 
        OdfStyleProperty.get(OdfStylePropertiesSet.ParagraphProperties, OdfName.get(OdfNamespace.STYLE, "font-independent-line-spacing"));
    public final static OdfStyleProperty TextAlign = 
        OdfStyleProperty.get(OdfStylePropertiesSet.ParagraphProperties, OdfName.get(OdfNamespace.FO, "text-align"));
    public final static OdfStyleProperty TextAlignLast = 
        OdfStyleProperty.get(OdfStylePropertiesSet.ParagraphProperties, OdfName.get(OdfNamespace.FO, "text-align-last"));
    public final static OdfStyleProperty JustifySingleWord = 
        OdfStyleProperty.get(OdfStylePropertiesSet.ParagraphProperties, OdfName.get(OdfNamespace.STYLE, "justify-single-word"));
    public final static OdfStyleProperty KeepTogether = 
        OdfStyleProperty.get(OdfStylePropertiesSet.ParagraphProperties, OdfName.get(OdfNamespace.FO, "keep-together"));
    public final static OdfStyleProperty Widows = 
        OdfStyleProperty.get(OdfStylePropertiesSet.ParagraphProperties, OdfName.get(OdfNamespace.FO, "widows"));
    public final static OdfStyleProperty Orphans = 
        OdfStyleProperty.get(OdfStylePropertiesSet.ParagraphProperties, OdfName.get(OdfNamespace.FO, "orphans"));
    public final static OdfStyleProperty TabStopDistance = 
        OdfStyleProperty.get(OdfStylePropertiesSet.ParagraphProperties, OdfName.get(OdfNamespace.STYLE, "tab-stop-distance"));
    public final static OdfStyleProperty HyphenationKeep = 
        OdfStyleProperty.get(OdfStylePropertiesSet.ParagraphProperties, OdfName.get(OdfNamespace.FO, "hyphenation-keep"));
    public final static OdfStyleProperty HyphenationLadderCount = 
        OdfStyleProperty.get(OdfStylePropertiesSet.ParagraphProperties, OdfName.get(OdfNamespace.FO, "hyphenation-ladder-count"));
    public final static OdfStyleProperty RegisterTrue = 
        OdfStyleProperty.get(OdfStylePropertiesSet.ParagraphProperties, OdfName.get(OdfNamespace.STYLE, "register-true"));
    public final static OdfStyleProperty MarginLeft = 
        OdfStyleProperty.get(OdfStylePropertiesSet.ParagraphProperties, OdfName.get(OdfNamespace.FO, "margin-left"));
    public final static OdfStyleProperty MarginRight = 
        OdfStyleProperty.get(OdfStylePropertiesSet.ParagraphProperties, OdfName.get(OdfNamespace.FO, "margin-right"));
    public final static OdfStyleProperty TextIndent = 
        OdfStyleProperty.get(OdfStylePropertiesSet.ParagraphProperties, OdfName.get(OdfNamespace.FO, "text-indent"));
    public final static OdfStyleProperty AutoTextIndent = 
        OdfStyleProperty.get(OdfStylePropertiesSet.ParagraphProperties, OdfName.get(OdfNamespace.STYLE, "auto-text-indent"));
    public final static OdfStyleProperty MarginTop = 
        OdfStyleProperty.get(OdfStylePropertiesSet.ParagraphProperties, OdfName.get(OdfNamespace.FO, "margin-top"));
    public final static OdfStyleProperty MarginBottom = 
        OdfStyleProperty.get(OdfStylePropertiesSet.ParagraphProperties, OdfName.get(OdfNamespace.FO, "margin-bottom"));
    public final static OdfStyleProperty Margin = 
        OdfStyleProperty.get(OdfStylePropertiesSet.ParagraphProperties, OdfName.get(OdfNamespace.FO, "margin"));
    public final static OdfStyleProperty BreakBefore = 
        OdfStyleProperty.get(OdfStylePropertiesSet.ParagraphProperties, OdfName.get(OdfNamespace.FO, "break-before"));
    public final static OdfStyleProperty BreakAfter = 
        OdfStyleProperty.get(OdfStylePropertiesSet.ParagraphProperties, OdfName.get(OdfNamespace.FO, "break-after"));
    public final static OdfStyleProperty BackgroundColor = 
        OdfStyleProperty.get(OdfStylePropertiesSet.ParagraphProperties, OdfName.get(OdfNamespace.FO, "background-color"));
    public final static OdfStyleProperty Border = 
        OdfStyleProperty.get(OdfStylePropertiesSet.ParagraphProperties, OdfName.get(OdfNamespace.FO, "border"));
    public final static OdfStyleProperty BorderTop = 
        OdfStyleProperty.get(OdfStylePropertiesSet.ParagraphProperties, OdfName.get(OdfNamespace.FO, "border-top"));
    public final static OdfStyleProperty BorderBottom = 
        OdfStyleProperty.get(OdfStylePropertiesSet.ParagraphProperties, OdfName.get(OdfNamespace.FO, "border-bottom"));
    public final static OdfStyleProperty BorderLeft = 
        OdfStyleProperty.get(OdfStylePropertiesSet.ParagraphProperties, OdfName.get(OdfNamespace.FO, "border-left"));
    public final static OdfStyleProperty BorderRight = 
        OdfStyleProperty.get(OdfStylePropertiesSet.ParagraphProperties, OdfName.get(OdfNamespace.FO, "border-right"));
    public final static OdfStyleProperty BorderLineWidth = 
        OdfStyleProperty.get(OdfStylePropertiesSet.ParagraphProperties, OdfName.get(OdfNamespace.STYLE, "border-line-width"));
    public final static OdfStyleProperty BorderLineWidthTop = 
        OdfStyleProperty.get(OdfStylePropertiesSet.ParagraphProperties, OdfName.get(OdfNamespace.STYLE, "border-line-width-top"));
    public final static OdfStyleProperty BorderLineWidthBottom = 
        OdfStyleProperty.get(OdfStylePropertiesSet.ParagraphProperties, OdfName.get(OdfNamespace.STYLE, "border-line-width-bottom"));
    public final static OdfStyleProperty BorderLineWidthLeft = 
        OdfStyleProperty.get(OdfStylePropertiesSet.ParagraphProperties, OdfName.get(OdfNamespace.STYLE, "border-line-width-left"));
    public final static OdfStyleProperty BorderLineWidthRight = 
        OdfStyleProperty.get(OdfStylePropertiesSet.ParagraphProperties, OdfName.get(OdfNamespace.STYLE, "border-line-width-right"));
    public final static OdfStyleProperty JoinBorder = 
        OdfStyleProperty.get(OdfStylePropertiesSet.ParagraphProperties, OdfName.get(OdfNamespace.STYLE, "join-border"));
    public final static OdfStyleProperty Padding = 
        OdfStyleProperty.get(OdfStylePropertiesSet.ParagraphProperties, OdfName.get(OdfNamespace.FO, "padding"));
    public final static OdfStyleProperty PaddingTop = 
        OdfStyleProperty.get(OdfStylePropertiesSet.ParagraphProperties, OdfName.get(OdfNamespace.FO, "padding-top"));
    public final static OdfStyleProperty PaddingBottom = 
        OdfStyleProperty.get(OdfStylePropertiesSet.ParagraphProperties, OdfName.get(OdfNamespace.FO, "padding-bottom"));
    public final static OdfStyleProperty PaddingLeft = 
        OdfStyleProperty.get(OdfStylePropertiesSet.ParagraphProperties, OdfName.get(OdfNamespace.FO, "padding-left"));
    public final static OdfStyleProperty PaddingRight = 
        OdfStyleProperty.get(OdfStylePropertiesSet.ParagraphProperties, OdfName.get(OdfNamespace.FO, "padding-right"));
    public final static OdfStyleProperty Shadow = 
        OdfStyleProperty.get(OdfStylePropertiesSet.ParagraphProperties, OdfName.get(OdfNamespace.STYLE, "shadow"));
    public final static OdfStyleProperty KeepWithNext = 
        OdfStyleProperty.get(OdfStylePropertiesSet.ParagraphProperties, OdfName.get(OdfNamespace.FO, "keep-with-next"));
    public final static OdfStyleProperty NumberLines = 
        OdfStyleProperty.get(OdfStylePropertiesSet.ParagraphProperties, OdfName.get(OdfNamespace.TEXT, "number-lines"));
    public final static OdfStyleProperty LineNumber = 
        OdfStyleProperty.get(OdfStylePropertiesSet.ParagraphProperties, OdfName.get(OdfNamespace.TEXT, "line-number"));
    public final static OdfStyleProperty TextAutospace = 
        OdfStyleProperty.get(OdfStylePropertiesSet.ParagraphProperties, OdfName.get(OdfNamespace.STYLE, "text-autospace"));
    public final static OdfStyleProperty PunctuationWrap = 
        OdfStyleProperty.get(OdfStylePropertiesSet.ParagraphProperties, OdfName.get(OdfNamespace.STYLE, "punctuation-wrap"));
    public final static OdfStyleProperty LineBreak = 
        OdfStyleProperty.get(OdfStylePropertiesSet.ParagraphProperties, OdfName.get(OdfNamespace.STYLE, "line-break"));
    public final static OdfStyleProperty VerticalAlign = 
        OdfStyleProperty.get(OdfStylePropertiesSet.ParagraphProperties, OdfName.get(OdfNamespace.STYLE, "vertical-align"));
    public final static OdfStyleProperty WritingMode = 
        OdfStyleProperty.get(OdfStylePropertiesSet.ParagraphProperties, OdfName.get(OdfNamespace.STYLE, "writing-mode"));
    public final static OdfStyleProperty WritingModeAutomatic = 
        OdfStyleProperty.get(OdfStylePropertiesSet.ParagraphProperties, OdfName.get(OdfNamespace.STYLE, "writing-mode-automatic"));
    public final static OdfStyleProperty SnapToLayoutGrid = 
        OdfStyleProperty.get(OdfStylePropertiesSet.ParagraphProperties, OdfName.get(OdfNamespace.STYLE, "snap-to-layout-grid"));
    public final static OdfStyleProperty PageNumber = 
        OdfStyleProperty.get(OdfStylePropertiesSet.ParagraphProperties, OdfName.get(OdfNamespace.STYLE, "page-number"));
    public final static OdfStyleProperty BackgroundTransparency = 
        OdfStyleProperty.get(OdfStylePropertiesSet.ParagraphProperties, OdfName.get(OdfNamespace.STYLE, "background-transparency"));

    /**
    * Create child element {@odfLink style:tab-stop}.
    *
    *@param type   the attribute's type is OdfTabStopType, see {@attributeName  style:tab-stop} at specification
    *@param position  the attribute's type is org.odftoolkit.odfdom.dom.type.OdfLength
    *@return   return  the element {@odfLink style:tab-stop}
    */
    public OdfTabStopElement createTabStopElement(OdfTabStopType   type, org.odftoolkit.odfdom.dom.type.OdfLength   position)
    {
        OdfTabStopElement  nTabStop = ((OdfFileDom)this.ownerDocument).createOdfElement(OdfTabStopElement.class);
        nTabStop.setType( type);
        nTabStop.setPosition( position);
        this.appendChild( nTabStop);
        return  nTabStop;      
    }
    
    /**
    * Create child element {@odfLink office:binary-data}.
    *
    *@return   return  the element {@odfLink office:binary-data}
    */
    public OdfBinaryDataElement createBinaryDataElement()
    {
        OdfBinaryDataElement  nBinaryData = ((OdfFileDom)this.ownerDocument).createOdfElement(OdfBinaryDataElement.class);
        this.appendChild( nBinaryData);
        return  nBinaryData;
    }                   
               
}
