|
||||||||||
| 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.dom.element.OdfElement
org.odftoolkit.odfdom.dom.element.OdfContainerElementBase
org.odftoolkit.odfdom.dom.element.office.OdfStylesElement
org.odftoolkit.odfdom.doc.element.office.OdfStyles
public class OdfStyles
| Field Summary |
|---|
| Fields inherited from class org.odftoolkit.odfdom.dom.element.office.OdfStylesElement |
|---|
ELEMENT_NAME |
| Fields inherited from class org.odftoolkit.odfdom.dom.element.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 interface org.w3c.dom.TypeInfo |
|---|
DERIVATION_EXTENSION, DERIVATION_LIST, DERIVATION_RESTRICTION, DERIVATION_UNION |
| Constructor Summary | |
|---|---|
OdfStyles(OdfFileDom _aOwnerDoc)
|
|
| Method Summary | |
|---|---|
OdfListStyle |
createListStyle(String name)
|
OdfStyle |
createStyle(String name,
OdfStyleFamily family)
|
OdfBooleanStyle |
getBooleanStyle(String name)
Returns the OdfBooleanStyle element with the given name. |
Iterable<OdfBooleanStyle> |
getBooleanStyles()
Returns an iterator for all OdfBooleanStyle elements. |
OdfCurrencyStyle |
getCurrencyStyle(String name)
Returns the OdfCurrencyStyle element with the given name. |
Iterable<OdfCurrencyStyle> |
getCurrencyStyles()
Returns an iterator for all OdfCurrencyStyle elements. |
OdfDateStyle |
getDateStyle(String name)
Returns the OdfDateStyle element with the given name. |
Iterable<OdfDateStyle> |
getDateStyles()
Returns an iterator for all OdfDateStyle elements. |
OdfDefaultStyle |
getDefaultStyle(OdfStyleFamily familyType)
Returns the OdfDefaultStyle element. |
Iterable<OdfDefaultStyle> |
getDefaultStyles()
Returns an iterator for all OdfDefaultStyle elements. |
OdfFillImage |
getFillImage(String name)
Returns the OdfFillImage element with the given name. |
Iterable<OdfFillImage> |
getFillImages()
Returns an iterator for all OdfFillImage elements. |
OdfGradient |
getGradient(String name)
Returns the OdfGradient element with the given name. |
Iterable<OdfGradient> |
getGradients()
Returns an iterator for all OdfGradient elements. |
OdfHatch |
getHatch(String name)
Returns the OdfHatch element with the given name. |
Iterable<OdfHatch> |
getHatches()
Returns an iterator for all OdfHatch elements. |
OdfListStyle |
getListStyle(String name)
Returns the OdfListStyle element with the given name. |
Iterable<OdfListStyle> |
getListStyles()
Returns an iterator for all OdfListStyle elements. |
Iterable<OdfMarker> |
getMarker()
Returns an iterator for all OdfMarker elements. |
OdfMarker |
getMarker(String name)
Returns the OdfMarker element with the given name. |
OdfNumberStyle |
getNumberStyle(String name)
Returns the OdfNumberStyle element with the given name. |
Iterable<OdfNumberStyle> |
getNumberStyles()
Returns an iterator for all OdfNumberStyle elements. |
OdfDefaultStyle |
getOrCreateDefaultStyle(OdfStyleFamily family)
|
OdfOutlineStyle |
getOrCreateOutlineStyle()
|
OdfOutlineStyle |
getOutlineStyle()
Returns the OdfOutlineStyle element. |
OdfPercentageStyle |
getPercentageStyle(String name)
Returns the OdfPercentageStyle element with the given name. |
Iterable<OdfPercentageStyle> |
getPercentageStyles()
Returns an iterator for all OdfPercentageStyle 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. |
OdfTextStyle |
getTextStyle(String name)
Returns the OdfTextStyle element with the given name. |
Iterable<OdfTextStyle> |
getTextStyles()
Returns an iterator for all OdfTextStyle elements. |
OdfTimeStyle |
getTimeStyle(String name)
Returns the OdfTimeStyle element with the given name. |
Iterable<OdfTimeStyle> |
getTimeStyles()
Returns an iterator for all OdfTimeStyle elements. |
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 |
| Methods inherited from class org.odftoolkit.odfdom.dom.element.OdfContainerElementBase |
|---|
insertBefore, removeChild, replaceChild |
| Methods inherited from class org.odftoolkit.odfdom.dom.element.OdfElement |
|---|
cloneNode, equals, findFirstChildNode, findNextChildNode, findPreviousChildNode, getAncestorAs, getOdfAttribute, getParentAs, hasOdfAttribute, onInsertNode, onInsertNode, onRemoveNode, onRemoveNode, setOdfAttribute, 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.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 OdfStyles(OdfFileDom _aOwnerDoc)
| Method Detail |
|---|
public OdfStyle createStyle(String name,
OdfStyleFamily family)
public OdfDefaultStyle getOrCreateDefaultStyle(OdfStyleFamily family)
public OdfListStyle createListStyle(String name)
public OdfOutlineStyle getOrCreateOutlineStyle()
public OdfOutlineStyle getOutlineStyle()
OdfOutlineStyle element.
public OdfDefaultStyle getDefaultStyle(OdfStyleFamily familyType)
OdfDefaultStyle element.
familyType - is the family for the default style
public Iterable<OdfDefaultStyle> getDefaultStyles()
OdfDefaultStyle elements.
OdfDefaultStyle elementspublic OdfMarker getMarker(String name)
OdfMarker element with the given name.
name - is the name of the marker
public Iterable<OdfMarker> getMarker()
OdfMarker elements.
OdfMarker elementspublic OdfGradient getGradient(String name)
OdfGradient element with the given name.
name - is the name of the gradient
public Iterable<OdfGradient> getGradients()
OdfGradient elements.
OdfGradient elementspublic OdfHatch getHatch(String name)
OdfHatch element with the given name.
name - is the name of the hatch
public Iterable<OdfHatch> getHatches()
OdfHatch elements.
OdfHatch elementspublic OdfFillImage getFillImage(String name)
OdfFillImage element with the given name.
name - is the name of the fill image
public Iterable<OdfFillImage> getFillImages()
OdfFillImage elements.
OdfFillImage elements
public 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 style
public Iterable<OdfStyle> getStylesForFamily(OdfStyleFamily familyType)
OdfStyle elements for the given family.
familyType -
OdfStyle elements for the given familypublic OdfListStyle getListStyle(String name)
OdfListStyle element with the given name.
name - is the name of the list style
public Iterable<OdfListStyle> getListStyles()
OdfListStyle elements.
OdfListStyle elementspublic OdfNumberStyle getNumberStyle(String name)
OdfNumberStyle element with the given name.
name - is the name of the number style
public Iterable<OdfNumberStyle> getNumberStyles()
OdfNumberStyle elements.
OdfNumberStyle elementspublic OdfDateStyle getDateStyle(String name)
OdfDateStyle element with the given name.
name - is the name of the date style
public Iterable<OdfDateStyle> getDateStyles()
OdfDateStyle elements.
OdfDateStyle elementspublic OdfPercentageStyle getPercentageStyle(String name)
OdfPercentageStyle element with the given name.
name - is the name of the percentage style
public Iterable<OdfPercentageStyle> getPercentageStyles()
OdfPercentageStyle elements.
OdfPercentageStyle elementspublic OdfCurrencyStyle getCurrencyStyle(String name)
OdfCurrencyStyle element with the given name.
name - is the name of the currency style
public Iterable<OdfCurrencyStyle> getCurrencyStyles()
OdfCurrencyStyle elements.
OdfCurrencyStyle elementspublic OdfTimeStyle getTimeStyle(String name)
OdfTimeStyle element with the given name.
name - is the name of the time style
public Iterable<OdfTimeStyle> getTimeStyles()
OdfTimeStyle elements.
OdfTimeStyle elementspublic OdfBooleanStyle getBooleanStyle(String name)
OdfBooleanStyle element with the given name.
name - is the name of the boolean style
public Iterable<OdfBooleanStyle> getBooleanStyles()
OdfBooleanStyle elements.
OdfBooleanStyle elementspublic OdfTextStyle getTextStyle(String name)
OdfTextStyle element with the given name.
name - is the name of the text style
public Iterable<OdfTextStyle> getTextStyles()
OdfTextStyle elements.
OdfTextStyle elements
protected void onOdfNodeInserted(OdfElement node,
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 | |||||||||