org.odftoolkit.odfdom.dom.element.style
Class OdfMasterPageElement
java.lang.Object
org.apache.xerces.dom.NodeImpl
org.apache.xerces.dom.ChildNode
org.apache.xerces.dom.ParentNode
org.apache.xerces.dom.ElementImpl
org.apache.xerces.dom.ElementNSImpl
org.odftoolkit.odfdom.dom.element.OdfElement
org.odftoolkit.odfdom.dom.element.OdfStylableElement
org.odftoolkit.odfdom.dom.element.style.OdfMasterPageElement
- All Implemented Interfaces:
- Serializable, Cloneable, OdfStylePropertySet, Element, EventTarget, Node, NodeList, TypeInfo
- Direct Known Subclasses:
- OdfMasterPage
public abstract class OdfMasterPageElement
- extends OdfStylableElement
DOM implementation of OpenDocument element style:master-page.
- See Also:
- Serialized Form
| Fields inherited from class org.apache.xerces.dom.NodeImpl |
DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_IS_CONTAINED, DOCUMENT_POSITION_PRECEDING, ELEMENT_DEFINITION_NODE, FIRSTCHILD, flags, HASSTRING, ID, IGNORABLEWS, NORMALIZED, OWNED, ownerNode, READONLY, SPECIFIED, SYNCCHILDREN, SYNCDATA, TREE_POSITION_ANCESTOR, TREE_POSITION_DESCENDANT, TREE_POSITION_DISCONNECTED, TREE_POSITION_EQUIVALENT, TREE_POSITION_FOLLOWING, TREE_POSITION_PRECEDING, TREE_POSITION_SAME_NODE |
| Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
|
Method Summary |
OdfAnimateColorElement |
createAnimateColorElement(String attributeName)
Create child element anim:animateColor. |
OdfAnimateElement |
createAnimateElement(String attributeName)
Create child element anim:animate. |
OdfAnimateMotionElement |
createAnimateMotionElement(String attributeName)
Create child element anim:animateMotion. |
OdfAnimateTransformElement |
createAnimateTransformElement(String attributeName,
OdfType type)
Create child element anim:animateTransform. |
OdfAudioElement |
createAudioElement()
Create child element anim:audio. |
OdfCaptionElement |
createCaptionElement()
Create child element draw:caption. |
OdfCircleElement |
createCircleElement()
Create child element draw:circle. |
OdfCommandElement |
createCommandElement(String command)
Create child element anim:command. |
OdfConnectorElement |
createConnectorElement(Integer viewBox)
Create child element draw:connector. |
OdfControlElement |
createControlElement(OdfId control)
Create child element draw:control. |
OdfCustomShapeElement |
createCustomShapeElement()
Create child element draw:custom-shape. |
OdfHyperlinkElement |
createdrawHyperlinkElement(OdfAnyURI href)
Create child element draw:a. |
OdfMeasureElement |
createdrawMeasureElement(OdfLength x1,
OdfLength y1,
OdfLength x2,
OdfLength y2)
Create child element draw:measure. |
OdfEllipseElement |
createEllipseElement()
Create child element draw:ellipse. |
OdfFooterElement |
createFooterElement()
Create child element style:footer. |
OdfFooterLeftElement |
createFooterLeftElement()
Create child element style:footer-left. |
OdfFormElement |
createFormElement()
Create child element form:form. |
OdfFrameElement |
createFrameElement()
Create child element draw:frame. |
OdfGroupElement |
createGroupElement()
Create child element draw:g. |
OdfHeaderElement |
createHeaderElement()
Create child element style:header. |
OdfHeaderLeftElement |
createHeaderLeftElement()
Create child element style:header-left. |
OdfIterateElement |
createIterateElement()
Create child element anim:iterate. |
OdfLayerSetElement |
createLayerSetElement()
Create child element draw:layer-set. |
OdfLineElement |
createLineElement(OdfLength x1,
OdfLength y1,
OdfLength x2,
OdfLength y2)
Create child element draw:line. |
OdfModelElement |
createModelElement()
Create child element xforms:model. |
OdfNotesElement |
createNotesElement()
Create child element presentation:notes. |
OdfPageThumbnailElement |
createPageThumbnailElement()
Create child element draw:page-thumbnail. |
OdfParElement |
createParElement()
Create child element anim:par. |
OdfPathElement |
createPathElement(String d,
Integer viewBox)
Create child element draw:path. |
OdfPolygonElement |
createPolygonElement(String points,
Integer viewBox)
Create child element draw:polygon. |
OdfPolylineElement |
createPolylineElement(String points,
Integer viewBox)
Create child element draw:polyline. |
OdfRectElement |
createRectElement()
Create child element draw:rect. |
OdfRegularPolygonElement |
createRegularPolygonElement(OdfBoolean concave,
OdfPositiveInteger corners)
Create child element draw:regular-polygon. |
OdfRegularPolygonElement |
createRegularPolygonElement(OdfPositiveInteger corners,
OdfBoolean concave)
Create child element draw:regular-polygon. |
OdfSceneElement |
createSceneElement()
Create child element dr3d:scene. |
OdfSeqElement |
createSeqElement()
Create child element anim:seq. |
OdfSetElement |
createSetElement(String attributeName)
Create child element anim:set. |
OdfStyleElement |
createStyleElement(OdfStyleName name)
Create child element style:style. |
OdfTransitionFilterElement |
createTransitionFilterElement(String type)
Create child element anim:transitionFilter. |
String |
getDisplayName()
Get value of attribute style:display-name. |
String |
getDrawStyleName()
Get value of attribute draw:style-name. |
String |
getName()
Get value of attribute style:name. |
String |
getNextStyleName()
Get value of attribute style:next-style-name. |
OdfName |
getOdfName()
Get the element name |
String |
getPageLayoutName()
Get value of attribute style:page-layout-name. |
void |
init(OdfStyleName name,
OdfStyleNameRef pageLayoutName)
Initialization of the mandatory attributes of OdfMasterPageElement |
void |
setDisplayName(String displayName)
Set value of attribute style:display-name. |
void |
setDrawStyleName(OdfStyleNameRef drawStyleName)
Set value of attribute draw:style-name. |
void |
setName(OdfStyleName name)
Set value of attribute style:name. |
void |
setNextStyleName(OdfStyleNameRef nextStyleName)
Set value of attribute style:next-style-name. |
void |
setPageLayoutName(OdfStyleNameRef pageLayoutName)
Set value of attribute style:page-layout-name. |
| Methods inherited from class org.odftoolkit.odfdom.dom.element.OdfStylableElement |
getAutomaticStyle, getAutomaticStyles, getDocumentStyle, getOrCreateUnqiueAutomaticStyle, getProperties, getProperty, getStrictProperties, getStyleFamily, getStyleName, hasAutomaticStyle, hasDocumentStyle, hasProperty, onInsertNode, onRemoveNode, removeProperty, reuseDocumentStyle, setAttributeNS, setDocumentStyle, setProperties, setProperty, setStyleName |
| Methods inherited from class org.odftoolkit.odfdom.dom.element.OdfElement |
cloneNode, equals, findFirstChildNode, findNextChildNode, findPreviousChildNode, getAncestorAs, getOdfAttribute, getParentAs, hasOdfAttribute, insertBefore, onInsertNode, onRemoveNode, removeChild, replaceChild, setOdfAttribute, toString |
| Methods inherited from class org.apache.xerces.dom.ElementImpl |
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getDefaultAttributes, getElementsByTagName, getElementsByTagNameNS, getNodeName, getNodeType, getSchemaTypeInfo, getTagName, getXercesAttribute, hasAttribute, hasAttributeNS, hasAttributes, isEqualNode, normalize, reconcileDefaultAttributes, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setOwnerDocument, setReadOnly, setupDefaultAttributes, setXercesAttributeNode, synchronizeData |
| Methods inherited from class org.apache.xerces.dom.ParentNode |
getChildNodes, getChildNodesUnoptimized, getFirstChild, getLastChild, getLength, getOwnerDocument, getTextContent, hasChildNodes, item, setTextContent, synchronizeChildren |
| Methods inherited from class org.apache.xerces.dom.NodeImpl |
addEventListener, appendChild, changed, changes, compareDocumentPosition, compareTreePosition, dispatchEvent, getContainer, getFeature, getNodeNumber, getNodeValue, getReadOnly, getUserData, getUserData, getUserDataRecord, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, needsSyncChildren, removeEventListener, setNodeValue, setUserData, setUserData |
| Methods inherited from interface org.w3c.dom.Node |
appendChild, compareDocumentPosition, getChildNodes, getFeature, getFirstChild, getLastChild, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, getTextContent, getUserData, hasChildNodes, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, setNodeValue, setTextContent, setUserData |
ELEMENT_NAME
public static final OdfName ELEMENT_NAME
OdfMasterPageElement
public OdfMasterPageElement(OdfFileDom aOwnerDoc)
- Create the instance of OdfMasterPageElement
- Parameters:
aOwnerDoc - The type is OdfFileDom
getOdfName
public OdfName getOdfName()
- Get the element name
- Specified by:
getOdfName in class OdfElement
- Returns:
- return the name of element style:master-page.
init
public void init(OdfStyleName name,
OdfStyleNameRef pageLayoutName)
- Initialization of the mandatory attributes of
OdfMasterPageElement
- Parameters:
name - The mandatory attribute style:name"pageLayoutName - The mandatory attribute style:page-layout-name"
getName
public String getName()
- Get value of attribute style:name.
- Returns:
- return the attribute which type is String
setName
public void setName(OdfStyleName name)
- Set value of attribute style:name.
- Parameters:
name - the attribute's type is OdfStyleName
getDisplayName
public String getDisplayName()
- Get value of attribute style:display-name.
- Returns:
- return the attribute which type is String
setDisplayName
public void setDisplayName(String displayName)
- Set value of attribute style:display-name.
- Parameters:
displayName - the attribute's type is String
getPageLayoutName
public String getPageLayoutName()
- Get value of attribute style:page-layout-name.
- Returns:
- return the attribute which type is String
setPageLayoutName
public void setPageLayoutName(OdfStyleNameRef pageLayoutName)
- Set value of attribute style:page-layout-name.
- Parameters:
pageLayoutName - the attribute's type is OdfStyleNameRef
getDrawStyleName
public String getDrawStyleName()
- Get value of attribute draw:style-name.
- Returns:
- return the attribute which type is String
setDrawStyleName
public void setDrawStyleName(OdfStyleNameRef drawStyleName)
- Set value of attribute draw:style-name.
- Parameters:
drawStyleName - the attribute's type is OdfStyleNameRef
getNextStyleName
public String getNextStyleName()
- Get value of attribute style:next-style-name.
- Returns:
- return the attribute which type is String
setNextStyleName
public void setNextStyleName(OdfStyleNameRef nextStyleName)
- Set value of attribute style:next-style-name.
- Parameters:
nextStyleName - the attribute's type is OdfStyleNameRef
createHeaderElement
public OdfHeaderElement createHeaderElement()
- Create child element style:header.
- Returns:
- return the element style:header
createHeaderLeftElement
public OdfHeaderLeftElement createHeaderLeftElement()
- Create child element style:header-left.
- Returns:
- return the element style:header-left
createFooterElement
public OdfFooterElement createFooterElement()
- Create child element style:footer.
- Returns:
- return the element style:footer
createFooterLeftElement
public OdfFooterLeftElement createFooterLeftElement()
- Create child element style:footer-left.
- Returns:
- return the element style:footer-left
createLayerSetElement
public OdfLayerSetElement createLayerSetElement()
- Create child element draw:layer-set.
- Returns:
- return the element draw:layer-set
createFormElement
public OdfFormElement createFormElement()
- Create child element form:form.
- Returns:
- return the element form:form
createModelElement
public OdfModelElement createModelElement()
- Create child element xforms:model.
- Returns:
- return the element xforms:model
createStyleElement
public OdfStyleElement createStyleElement(OdfStyleName name)
- Create child element style:style.
- Parameters:
name - the attribute's type is org.odftoolkit.odfdom.dom.type.OdfStyleName
- Returns:
- return the element style:style
createRectElement
public OdfRectElement createRectElement()
- Create child element draw:rect.
- Returns:
- return the element draw:rect
createLineElement
public OdfLineElement createLineElement(OdfLength x1,
OdfLength y1,
OdfLength x2,
OdfLength y2)
- Create child element draw:line.
- Parameters:
x1 - the attribute's type is org.odftoolkit.odfdom.dom.type.OdfLengthy1 - the attribute's type is org.odftoolkit.odfdom.dom.type.OdfLengthx2 - the attribute's type is org.odftoolkit.odfdom.dom.type.OdfLengthy2 - the attribute's type is org.odftoolkit.odfdom.dom.type.OdfLength
- Returns:
- return the element draw:line
createPolylineElement
public OdfPolylineElement createPolylineElement(String points,
Integer viewBox)
- Create child element draw:polyline.
- Parameters:
points - StringviewBox - Integer
- Returns:
- return the element draw:polyline
createPolygonElement
public OdfPolygonElement createPolygonElement(String points,
Integer viewBox)
- Create child element draw:polygon.
- Parameters:
points - StringviewBox - Integer
- Returns:
- return the element draw:polygon
createRegularPolygonElement
public OdfRegularPolygonElement createRegularPolygonElement(OdfPositiveInteger corners,
OdfBoolean concave)
- Create child element draw:regular-polygon.
- Parameters:
corners - the attribute's type is org.odftoolkit.odfdom.dom.type.OdfPositiveIntegerconcave - the attribute's type is Boolean
- Returns:
- return the element draw:regular-polygon
createRegularPolygonElement
public OdfRegularPolygonElement createRegularPolygonElement(OdfBoolean concave,
OdfPositiveInteger corners)
- Create child element draw:regular-polygon.
- Parameters:
concave - the attribute's type is Booleancorners - the attribute's type is org.odftoolkit.odfdom.dom.type.OdfPositiveInteger
- Returns:
- return the element draw:regular-polygon
createPathElement
public OdfPathElement createPathElement(String d,
Integer viewBox)
- Create child element draw:path.
- Parameters:
d - StringviewBox - Integer
- Returns:
- return the element draw:path
createCircleElement
public OdfCircleElement createCircleElement()
- Create child element draw:circle.
- Returns:
- return the element draw:circle
createEllipseElement
public OdfEllipseElement createEllipseElement()
- Create child element draw:ellipse.
- Returns:
- return the element draw:ellipse
createGroupElement
public OdfGroupElement createGroupElement()
- Create child element draw:g.
- Returns:
- return the element draw:g
createPageThumbnailElement
public OdfPageThumbnailElement createPageThumbnailElement()
- Create child element draw:page-thumbnail.
- Returns:
- return the element draw:page-thumbnail
createFrameElement
public OdfFrameElement createFrameElement()
- Create child element draw:frame.
- Returns:
- return the element draw:frame
createdrawMeasureElement
public OdfMeasureElement createdrawMeasureElement(OdfLength x1,
OdfLength y1,
OdfLength x2,
OdfLength y2)
- Create child element draw:measure.
- Parameters:
x1 - the attribute's type is Stringy1 - the attribute's type is Stringx2 - the attribute's type is Stringy2 - the attribute's type is String
- Returns:
- return the element draw:measure
createCaptionElement
public OdfCaptionElement createCaptionElement()
- Create child element draw:caption.
- Returns:
- return the element draw:caption
createConnectorElement
public OdfConnectorElement createConnectorElement(Integer viewBox)
- Create child element draw:connector.
- Parameters:
viewBox - Integer
- Returns:
- return the element draw:connector
createControlElement
public OdfControlElement createControlElement(OdfId control)
- Create child element draw:control.
- Parameters:
control - the attribute's type is org.odftoolkit.odfdom.dom.type.OdfId
- Returns:
- return the element draw:control
createSceneElement
public OdfSceneElement createSceneElement()
- Create child element dr3d:scene.
- Returns:
- return the element dr3d:scene
createCustomShapeElement
public OdfCustomShapeElement createCustomShapeElement()
- Create child element draw:custom-shape.
- Returns:
- return the element draw:custom-shape
createdrawHyperlinkElement
public OdfHyperlinkElement createdrawHyperlinkElement(OdfAnyURI href)
- Create child element draw:a.
- Parameters:
href - the attribute's type is URI
- Returns:
- return the element draw:a
createAnimateElement
public OdfAnimateElement createAnimateElement(String attributeName)
- Create child element anim:animate.
- Parameters:
attributeName - String
- Returns:
- return the element anim:animate
createSetElement
public OdfSetElement createSetElement(String attributeName)
- Create child element anim:set.
- Parameters:
attributeName - String
- Returns:
- return the element anim:set
createAnimateMotionElement
public OdfAnimateMotionElement createAnimateMotionElement(String attributeName)
- Create child element anim:animateMotion.
- Parameters:
attributeName - String
- Returns:
- return the element anim:animateMotion
createAnimateColorElement
public OdfAnimateColorElement createAnimateColorElement(String attributeName)
- Create child element anim:animateColor.
- Parameters:
attributeName - String
- Returns:
- return the element anim:animateColor
createAnimateTransformElement
public OdfAnimateTransformElement createAnimateTransformElement(String attributeName,
OdfType type)
- Create child element anim:animateTransform.
- Parameters:
attributeName - Stringtype - the attribute's type is OdfType, see svg:type at specification
- Returns:
- return the element anim:animateTransform
createTransitionFilterElement
public OdfTransitionFilterElement createTransitionFilterElement(String type)
- Create child element anim:transitionFilter.
- Parameters:
type - String
- Returns:
- return the element anim:transitionFilter
createParElement
public OdfParElement createParElement()
- Create child element anim:par.
- Returns:
- return the element anim:par
createSeqElement
public OdfSeqElement createSeqElement()
- Create child element anim:seq.
- Returns:
- return the element anim:seq
createIterateElement
public OdfIterateElement createIterateElement()
- Create child element anim:iterate.
- Returns:
- return the element anim:iterate
createAudioElement
public OdfAudioElement createAudioElement()
- Create child element anim:audio.
- Returns:
- return the element anim:audio
createCommandElement
public OdfCommandElement createCommandElement(String command)
- Create child element anim:command.
- Parameters:
command - String
- Returns:
- return the element anim:command
createNotesElement
public OdfNotesElement createNotesElement()
- Create child element presentation:notes.
- Returns:
- return the element presentation:notes
Copyright © 2009. All Rights Reserved.