public class OdfOfficeStyles extends OfficeStylesElement
ELEMENT_NAME
mPackageDocument
localName, namespaceURI
attributes, name
firstChild, fNodeListCache, ownerDocument
nextSibling, previousSibling
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
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
DERIVATION_EXTENSION, DERIVATION_LIST, DERIVATION_RESTRICTION, DERIVATION_UNION
Constructor and Description |
---|
OdfOfficeStyles(OdfFileDom ownerDoc) |
Modifier and Type | Method and Description |
---|---|
NumberBooleanStyleElement |
getBooleanStyle(String name)
Returns the
NumberBooleanStyleElement element with the given name. |
Iterable<NumberBooleanStyleElement> |
getBooleanStyles()
Returns an iterator for all
NumberBooleanStyleElement elements. |
OdfNumberCurrencyStyle |
getCurrencyStyle(String name)
Returns the
OdfNumberCurrencyStyle element with the given name. |
Iterable<OdfNumberCurrencyStyle> |
getCurrencyStyles()
Returns an iterator for all
OdfNumberCurrencyStyle elements. |
OdfNumberDateStyle |
getDateStyle(String name)
Returns the
OdfNumberDateStyle element with the given name. |
Iterable<OdfNumberDateStyle> |
getDateStyles()
Returns an iterator for all
OdfNumberDateStyle elements. |
OdfDefaultStyle |
getDefaultStyle(OdfStyleFamily familyType)
Returns the
OdfStyleDefaultStyle element. |
Iterable<OdfDefaultStyle> |
getDefaultStyles()
Returns an iterator for all
OdfStyleDefaultStyle elements. |
DrawFillImageElement |
getFillImage(String name)
Returns the
DrawFillImageElement element with the given name. |
Iterable<DrawFillImageElement> |
getFillImages()
Returns an iterator for all
DrawFillImageElement elements. |
DrawGradientElement |
getGradient(String name)
Returns the
DrawGradientElement element with the given name. |
Iterable<DrawGradientElement> |
getGradients()
Returns an iterator for all
DrawGradientElement elements. |
DrawHatchElement |
getHatch(String name)
Returns the
DrawHatchElement element with the given name. |
Iterable<DrawHatchElement> |
getHatches()
Returns an iterator for all
DrawHatchElement elements. |
OdfTextListStyle |
getListStyle(String name)
Returns the
OdfTextListStyle element with the given name. |
Iterable<OdfTextListStyle> |
getListStyles()
Returns an iterator for all
OdfTextListStyle elements. |
Iterable<DrawMarkerElement> |
getMarker()
Returns an iterator for all
DrawMarkerElement elements. |
DrawMarkerElement |
getMarker(String name)
Returns the
DrawMarkerElement element with the given name. |
OdfNumberStyle |
getNumberStyle(String name)
Returns the
OdfNumberNumberStyle element with the given name. |
Iterable<OdfNumberStyle> |
getNumberStyles()
Returns an iterator for all
OdfNumberNumberStyle elements. |
OdfDefaultStyle |
getOrCreateDefaultStyle(OdfStyleFamily family)
Retrieve or create ODF default style
|
OdfTextOutlineStyle |
getOrCreateOutlineStyle()
Retrieve or create ODF OutlineStyle
|
OdfTextOutlineStyle |
getOutlineStyle()
Returns the
OdfTextOutlineStyle element. |
OdfNumberPercentageStyle |
getPercentageStyle(String name)
Returns the
OdfNumberPercentageStyle element with the given name. |
Iterable<OdfNumberPercentageStyle> |
getPercentageStyles()
Returns an iterator for all
OdfNumberPercentageStyle elements. |
OdfStyle |
getStyle(String name,
OdfStyleFamily familyType)
Returns the
OdfStyle element with the given name and family. |
Iterable<OdfStyle> |
getStylesForFamily(OdfStyleFamily familyType)
Returns an iterator for all
OdfStyle elements for the given family. |
NumberTextStyleElement |
getTextStyle(String name)
Returns the
OdfNumberTextStyle element with the given name. |
Iterable<NumberTextStyleElement> |
getTextStyles()
Returns an iterator for all
OdfNumberTextStyle elements. |
OdfNumberTimeStyle |
getTimeStyle(String name)
Returns the
OdfNumberTimeStyle element with the given name. |
Iterable<OdfNumberTimeStyle> |
getTimeStyles()
Returns an iterator for all
OdfNumberTimeStyle elements. |
OdfTextListStyle |
newListStyle(String name)
Create ODF TextListStyle
|
OdfStyle |
newStyle(String name,
OdfStyleFamily family)
Create an ODF style with style name and family
|
protected void |
onOdfNodeInserted(OdfElement node,
Node refNode)
override this method to get notified about element insertion
|
protected void |
onOdfNodeRemoved(OdfElement node)
override this method to get notified about element insertion
|
accept, getOdfName, newDrawFillImageElement, newDrawGradientElement, newDrawHatchElement, newDrawMarkerElement, newDrawOpacityElement, newDrawStrokeDashElement, newNumberBooleanStyleElement, newNumberCurrencyStyleElement, newNumberDateStyleElement, newNumberNumberStyleElement, newNumberPercentageStyleElement, newNumberTextStyleElement, newNumberTimeStyleElement, newStyleDefaultPageLayoutElement, newStyleDefaultStyleElement, newStylePresentationPageLayoutElement, newStyleStyleElement, newSvgLinearGradientElement, newSvgRadialGradientElement, newTableTableTemplateElement, newTextBibliographyConfigurationElement, newTextLinenumberingConfigurationElement, newTextListStyleElement, newTextNotesConfigurationElement, newTextOutlineStyleElement
insertBefore, removeChild, replaceChild
cloneNode, equals, findFirstChildNode, findNextChildNode, findPreviousChildNode, getAncestorAs, getOdfAttribute, getOdfAttribute, getOdfAttributeValue, getParentAs, hasOdfAttribute, onInsertNode, onInsertNode, onRemoveNode, onRemoveNode, setOdfAttribute, setOdfAttributeValue, toString
getBaseURI, getLocalName, getNamespaceURI, getPrefix, getTypeName, getTypeNamespace, isDerivedFrom, setPrefix, setType, setValues
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, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setOwnerDocument, setReadOnly, setupDefaultAttributes, setXercesAttributeNode, synchronizeData
getChildNodes, getChildNodesUnoptimized, getFirstChild, getLastChild, getLength, getOwnerDocument, getTextContent, hasChildNodes, item, setTextContent, synchronizeChildren
getNextSibling, getParentNode, getPreviousSibling
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
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
appendChild, compareDocumentPosition, getChildNodes, getFeature, getFirstChild, getLastChild, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, getTextContent, getUserData, hasChildNodes, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, setNodeValue, setTextContent, setUserData
public OdfOfficeStyles(OdfFileDom ownerDoc)
public OdfStyle newStyle(String name, OdfStyleFamily family)
name
- The style namefamily
- The style familyOdfStyle
elementpublic OdfDefaultStyle getOrCreateDefaultStyle(OdfStyleFamily family)
family
- The style familypublic OdfTextListStyle newListStyle(String name)
name
- The style namepublic OdfTextOutlineStyle getOrCreateOutlineStyle()
public OdfTextOutlineStyle getOutlineStyle()
OdfTextOutlineStyle
element.public OdfDefaultStyle getDefaultStyle(OdfStyleFamily familyType)
OdfStyleDefaultStyle
element.familyType
- is the family for the default stylepublic Iterable<OdfDefaultStyle> getDefaultStyles()
OdfStyleDefaultStyle
elements.OdfStyleDefaultStyle
elementspublic DrawMarkerElement getMarker(String name)
DrawMarkerElement
element with the given name.name
- is the name of the markerpublic Iterable<DrawMarkerElement> getMarker()
DrawMarkerElement
elements.DrawMarkerElement
elementspublic DrawGradientElement getGradient(String name)
DrawGradientElement
element with the given name.name
- is the name of the gradientpublic Iterable<DrawGradientElement> getGradients()
DrawGradientElement
elements.DrawGradientElement
elementspublic DrawHatchElement getHatch(String name)
DrawHatchElement
element with the given name.name
- is the name of the hatchpublic Iterable<DrawHatchElement> getHatches()
DrawHatchElement
elements.DrawHatchElement
elementspublic DrawFillImageElement getFillImage(String name)
DrawFillImageElement
element with the given name.name
- is the name of the fill imagepublic Iterable<DrawFillImageElement> getFillImages()
DrawFillImageElement
elements.DrawFillImageElement
elementspublic OdfStyle getStyle(String name, OdfStyleFamily familyType)
OdfStyle
element with the given name and family.name
- is the name of the stylefamilyType
- is the family of the stylepublic Iterable<OdfStyle> getStylesForFamily(OdfStyleFamily familyType)
OdfStyle
elements for the given family.familyType
- OdfStyle
elements for the given familypublic OdfTextListStyle getListStyle(String name)
OdfTextListStyle
element with the given name.name
- is the name of the list stylepublic Iterable<OdfTextListStyle> getListStyles()
OdfTextListStyle
elements.OdfTextListStyle
elementspublic OdfNumberStyle getNumberStyle(String name)
OdfNumberNumberStyle
element with the given name.name
- is the name of the number stylepublic Iterable<OdfNumberStyle> getNumberStyles()
OdfNumberNumberStyle
elements.OdfNumberNumberStyle
elementspublic OdfNumberDateStyle getDateStyle(String name)
OdfNumberDateStyle
element with the given name.name
- is the name of the date stylepublic Iterable<OdfNumberDateStyle> getDateStyles()
OdfNumberDateStyle
elements.OdfNumberDateStyle
elementspublic OdfNumberPercentageStyle getPercentageStyle(String name)
OdfNumberPercentageStyle
element with the given name.name
- is the name of the percentage stylepublic Iterable<OdfNumberPercentageStyle> getPercentageStyles()
OdfNumberPercentageStyle
elements.OdfNumberPercentageStyle
elementspublic OdfNumberCurrencyStyle getCurrencyStyle(String name)
OdfNumberCurrencyStyle
element with the given name.name
- is the name of the currency stylepublic Iterable<OdfNumberCurrencyStyle> getCurrencyStyles()
OdfNumberCurrencyStyle
elements.OdfNumberCurrencyStyle
elementspublic OdfNumberTimeStyle getTimeStyle(String name)
OdfNumberTimeStyle
element with the given name.name
- is the name of the time stylepublic Iterable<OdfNumberTimeStyle> getTimeStyles()
OdfNumberTimeStyle
elements.OdfNumberTimeStyle
elementspublic NumberBooleanStyleElement getBooleanStyle(String name)
NumberBooleanStyleElement
element with the given name.name
- is the name of the boolean stylepublic Iterable<NumberBooleanStyleElement> getBooleanStyles()
NumberBooleanStyleElement
elements.NumberBooleanStyleElement
elementspublic NumberTextStyleElement getTextStyle(String name)
OdfNumberTextStyle
element with the given name.name
- is the name of the text stylepublic Iterable<NumberTextStyleElement> getTextStyles()
OdfNumberTextStyle
elements.OdfNumberTextStyle
elementsprotected void onOdfNodeInserted(OdfElement node, Node refNode)
OdfContainerElementBase
onOdfNodeInserted
in class OdfContainerElementBase
protected void onOdfNodeRemoved(OdfElement node)
OdfContainerElementBase
onOdfNodeRemoved
in class OdfContainerElementBase
Copyright © 2008-2013 The Apache Software Foundation. All Rights Reserved.