|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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.OdfElement
org.odftoolkit.odfdom.OdfContainerElementBase
org.odftoolkit.odfdom.dom.element.office.OfficeStylesElement
org.odftoolkit.odfdom.doc.office.OdfOfficeStyles
public class OdfOfficeStyles
Convenient functionalty for the parent ODF OpenDocument element
| Field Summary |
|---|
| Fields inherited from class org.odftoolkit.odfdom.dom.element.office.OfficeStylesElement |
|---|
ELEMENT_NAME |
| Fields inherited from class org.odftoolkit.odfdom.OdfElement |
|---|
mOdfDocument |
| Fields inherited from class org.apache.xerces.dom.ElementNSImpl |
|---|
localName, namespaceURI |
| Fields inherited from class org.apache.xerces.dom.ElementImpl |
|---|
attributes, name |
| Fields inherited from class org.apache.xerces.dom.ParentNode |
|---|
firstChild, fNodeListCache, ownerDocument |
| Fields inherited from class org.apache.xerces.dom.ChildNode |
|---|
nextSibling, previousSibling |
| 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 |
| Fields inherited from interface org.w3c.dom.TypeInfo |
|---|
DERIVATION_EXTENSION, DERIVATION_LIST, DERIVATION_RESTRICTION, DERIVATION_UNION |
| Constructor Summary | |
|---|---|
OdfOfficeStyles(OdfFileDom ownerDoc)
|
|
| Method Summary | |
|---|---|
OdfNumberBooleanStyle |
getBooleanStyle(java.lang.String name)
Returns the OdfNumberBooleanStyle element with the given name. |
java.lang.Iterable<OdfNumberBooleanStyle> |
getBooleanStyles()
Returns an iterator for all OdfNumberBooleanStyle elements. |
OdfNumberCurrencyStyle |
getCurrencyStyle(java.lang.String name)
Returns the OdfNumberCurrencyStyle element with the given name. |
java.lang.Iterable<OdfNumberCurrencyStyle> |
getCurrencyStyles()
Returns an iterator for all OdfNumberCurrencyStyle elements. |
OdfNumberDateStyle |
getDateStyle(java.lang.String name)
Returns the OdfNumberDateStyle element with the given name. |
java.lang.Iterable<OdfNumberDateStyle> |
getDateStyles()
Returns an iterator for all OdfNumberDateStyle elements. |
OdfDefaultStyle |
getDefaultStyle(OdfStyleFamily familyType)
Returns the OdfStyleDefaultStyle element. |
java.lang.Iterable<OdfDefaultStyle> |
getDefaultStyles()
Returns an iterator for all OdfStyleDefaultStyle elements. |
OdfDrawFillImage |
getFillImage(java.lang.String name)
Returns the OdfDrawFillImage element with the given name. |
java.lang.Iterable<OdfDrawFillImage> |
getFillImages()
Returns an iterator for all OdfDrawFillImage elements. |
OdfDrawGradient |
getGradient(java.lang.String name)
Returns the OdfDrawGradient element with the given name. |
java.lang.Iterable<OdfDrawGradient> |
getGradients()
Returns an iterator for all OdfDrawGradient elements. |
OdfDrawHatch |
getHatch(java.lang.String name)
Returns the OdfDrawHatch element with the given name. |
java.lang.Iterable<OdfDrawHatch> |
getHatches()
Returns an iterator for all OdfDrawHatch elements. |
OdfTextListStyle |
getListStyle(java.lang.String name)
Returns the OdfTextListStyle element with the given name. |
java.lang.Iterable<OdfTextListStyle> |
getListStyles()
Returns an iterator for all OdfTextListStyle elements. |
java.lang.Iterable<OdfDrawMarker> |
getMarker()
Returns an iterator for all OdfDrawMarker elements. |
OdfDrawMarker |
getMarker(java.lang.String name)
Returns the OdfDrawMarker element with the given name. |
OdfNumberStyle |
getNumberStyle(java.lang.String name)
Returns the OdfNumberNumberStyle element with the given name. |
java.lang.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(java.lang.String name)
Returns the OdfNumberPercentageStyle element with the given name. |
java.lang.Iterable<OdfNumberPercentageStyle> |
getPercentageStyles()
Returns an iterator for all OdfNumberPercentageStyle elements. |
OdfStyle |
getStyle(java.lang.String name,
OdfStyleFamily familyType)
Returns the OdfStyle element with the given name and family. |
java.lang.Iterable<OdfStyle> |
getStylesForFamily(OdfStyleFamily familyType)
Returns an iterator for all OdfStyle elements for the given family. |
OdfNumberTextStyle |
getTextStyle(java.lang.String name)
Returns the OdfNumberTextStyle element with the given name. |
java.lang.Iterable<OdfNumberTextStyle> |
getTextStyles()
Returns an iterator for all OdfNumberTextStyle elements. |
OdfNumberTimeStyle |
getTimeStyle(java.lang.String name)
Returns the OdfNumberTimeStyle element with the given name. |
java.lang.Iterable<OdfNumberTimeStyle> |
getTimeStyles()
Returns an iterator for all OdfNumberTimeStyle elements. |
OdfTextListStyle |
newListStyle(java.lang.String name)
Create ODF TextListStyle |
OdfStyle |
newStyle(java.lang.String name,
OdfStyleFamily family)
Create an ODF style with style name and family |
protected void |
onOdfNodeInserted(OdfElement node,
org.w3c.dom.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 |
| Methods inherited from class org.odftoolkit.odfdom.OdfContainerElementBase |
|---|
insertBefore, removeChild, replaceChild |
| Methods inherited from class org.odftoolkit.odfdom.OdfElement |
|---|
cloneNode, equals, findFirstChildNode, findNextChildNode, findPreviousChildNode, getAncestorAs, getOdfAttribute, getOdfAttribute, getOdfAttributeValue, getParentAs, hasOdfAttribute, onInsertNode, onInsertNode, onRemoveNode, onRemoveNode, setOdfAttribute, setOdfAttributeValue, toString |
| Methods inherited from class org.apache.xerces.dom.ElementNSImpl |
|---|
getBaseURI, getLocalName, getNamespaceURI, getPrefix, getTypeName, getTypeNamespace, isDerivedFrom, setPrefix, setType, setValues |
| 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, setAttributeNS, 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.ChildNode |
|---|
getNextSibling, getParentNode, getPreviousSibling |
| 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 class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 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 |
| Constructor Detail |
|---|
public OdfOfficeStyles(OdfFileDom ownerDoc)
| Method Detail |
|---|
public OdfStyle newStyle(java.lang.String name,
OdfStyleFamily family)
name - The style namefamily - The style family
OdfStyle elementpublic OdfDefaultStyle getOrCreateDefaultStyle(OdfStyleFamily family)
family - The style family
public OdfTextListStyle newListStyle(java.lang.String name)
name - The style name
public OdfTextOutlineStyle getOrCreateOutlineStyle()
public OdfTextOutlineStyle getOutlineStyle()
OdfTextOutlineStyle element.
public OdfDefaultStyle getDefaultStyle(OdfStyleFamily familyType)
OdfStyleDefaultStyle element.
familyType - is the family for the default style
public java.lang.Iterable<OdfDefaultStyle> getDefaultStyles()
OdfStyleDefaultStyle elements.
OdfStyleDefaultStyle elementspublic OdfDrawMarker getMarker(java.lang.String name)
OdfDrawMarker element with the given name.
name - is the name of the marker
public java.lang.Iterable<OdfDrawMarker> getMarker()
OdfDrawMarker elements.
OdfDrawMarker elementspublic OdfDrawGradient getGradient(java.lang.String name)
OdfDrawGradient element with the given name.
name - is the name of the gradient
public java.lang.Iterable<OdfDrawGradient> getGradients()
OdfDrawGradient elements.
OdfDrawGradient elementspublic OdfDrawHatch getHatch(java.lang.String name)
OdfDrawHatch element with the given name.
name - is the name of the hatch
public java.lang.Iterable<OdfDrawHatch> getHatches()
OdfDrawHatch elements.
OdfDrawHatch elementspublic OdfDrawFillImage getFillImage(java.lang.String name)
OdfDrawFillImage element with the given name.
name - is the name of the fill image
public java.lang.Iterable<OdfDrawFillImage> getFillImages()
OdfDrawFillImage elements.
OdfDrawFillImage elements
public OdfStyle getStyle(java.lang.String name,
OdfStyleFamily familyType)
OdfStyle element with the given name and family.
name - is the name of the stylefamilyType - is the family of the style
public java.lang.Iterable<OdfStyle> getStylesForFamily(OdfStyleFamily familyType)
OdfStyle elements for the given family.
familyType -
OdfStyle elements for the given familypublic OdfTextListStyle getListStyle(java.lang.String name)
OdfTextListStyle element with the given name.
name - is the name of the list style
public java.lang.Iterable<OdfTextListStyle> getListStyles()
OdfTextListStyle elements.
OdfTextListStyle elementspublic OdfNumberStyle getNumberStyle(java.lang.String name)
OdfNumberNumberStyle element with the given name.
name - is the name of the number style
public java.lang.Iterable<OdfNumberStyle> getNumberStyles()
OdfNumberNumberStyle elements.
OdfNumberNumberStyle elementspublic OdfNumberDateStyle getDateStyle(java.lang.String name)
OdfNumberDateStyle element with the given name.
name - is the name of the date style
public java.lang.Iterable<OdfNumberDateStyle> getDateStyles()
OdfNumberDateStyle elements.
OdfNumberDateStyle elementspublic OdfNumberPercentageStyle getPercentageStyle(java.lang.String name)
OdfNumberPercentageStyle element with the given name.
name - is the name of the percentage style
public java.lang.Iterable<OdfNumberPercentageStyle> getPercentageStyles()
OdfNumberPercentageStyle elements.
OdfNumberPercentageStyle elementspublic OdfNumberCurrencyStyle getCurrencyStyle(java.lang.String name)
OdfNumberCurrencyStyle element with the given name.
name - is the name of the currency style
public java.lang.Iterable<OdfNumberCurrencyStyle> getCurrencyStyles()
OdfNumberCurrencyStyle elements.
OdfNumberCurrencyStyle elementspublic OdfNumberTimeStyle getTimeStyle(java.lang.String name)
OdfNumberTimeStyle element with the given name.
name - is the name of the time style
public java.lang.Iterable<OdfNumberTimeStyle> getTimeStyles()
OdfNumberTimeStyle elements.
OdfNumberTimeStyle elementspublic OdfNumberBooleanStyle getBooleanStyle(java.lang.String name)
OdfNumberBooleanStyle element with the given name.
name - is the name of the boolean style
public java.lang.Iterable<OdfNumberBooleanStyle> getBooleanStyles()
OdfNumberBooleanStyle elements.
OdfNumberBooleanStyle elementspublic OdfNumberTextStyle getTextStyle(java.lang.String name)
OdfNumberTextStyle element with the given name.
name - is the name of the text style
public java.lang.Iterable<OdfNumberTextStyle> getTextStyles()
OdfNumberTextStyle elements.
OdfNumberTextStyle elements
protected void onOdfNodeInserted(OdfElement node,
org.w3c.dom.Node refNode)
OdfContainerElementBase
onOdfNodeInserted in class OdfContainerElementBaseprotected void onOdfNodeRemoved(OdfElement node)
OdfContainerElementBase
onOdfNodeRemoved in class OdfContainerElementBase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||