|
||||||||||
| 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.pkg.OdfElement
org.odftoolkit.odfdom.pkg.OdfContainerElementBase
org.odftoolkit.odfdom.dom.element.office.OfficeAutomaticStylesElement
org.odftoolkit.odfdom.incubator.doc.office.OdfOfficeAutomaticStyles
public class OdfOfficeAutomaticStyles
Convenient functionalty for the parent ODF OpenDocument element
| Field Summary |
|---|
| Fields inherited from class org.odftoolkit.odfdom.dom.element.office.OfficeAutomaticStylesElement |
|---|
ELEMENT_NAME |
| Fields inherited from class org.odftoolkit.odfdom.pkg.OdfContainerElementBase |
|---|
mPackageDocument |
| 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 | |
|---|---|
OdfOfficeAutomaticStyles(OdfFileDom ownerDoc)
|
|
| Method Summary | |
|---|---|
Iterable<OdfStyle> |
getAllStyles()
Returns an iterator for all OdfStyleStyle elements. |
NumberBooleanStyleElement |
getBooleanStyle(String name)
Returns the NumberBooleanStyleElement element with the given name. |
Iterable<NumberBooleanStyleElement> |
getBooleanStyles()
Returns an iterator for all OdfNumberBooleanStyle 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. |
OdfTextListStyle |
getListStyle(String name)
Returns the OdfTextListStyle element with the given name. |
Iterable<OdfTextListStyle> |
getListStyles()
Returns an iterator for all OdfTextListStyle elements. |
OdfNumberStyle |
getNumberStyle(String name)
Returns the OdfNumberNumberStyle element with the given name. |
Iterable<OdfNumberStyle> |
getNumberStyles()
Returns an iterator for all OdfNumberNumberStyle elements. |
OdfStylePageLayout |
getPageLayout(String name)
Returns the OdfStylePageLayout element with the given name. |
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 OdfStyleStyle element with the given name and family. |
Iterable<OdfStyle> |
getStylesForFamily(OdfStyleFamily familyType)
Returns an iterator for all OdfStyleStyle elements for the given family. |
NumberTextStyleElement |
getTextStyle(String name)
Returns the NumberTextStyleElement element with the given name. |
Iterable<NumberTextStyleElement> |
getTextStyles()
Returns an iterator for all NumberTextStyleElement elements. |
OdfNumberTimeStyle |
getTimeStyle(String name)
Returns the OdfNumberTimeStyle element with the given name. |
Iterable<OdfNumberTimeStyle> |
getTimeStyles()
Returns an iterator for all OdfNumberTimeStyle elements. |
OdfStyle |
makeStyleUnique(OdfStyle referenceStyle)
This method makes the style unique |
OdfTextListStyle |
newListStyle()
Create an OdfTextListStyle element |
OdfStyle |
newStyle(OdfStyleFamily styleFamily)
Create an OdfStyle element with style 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 |
void |
optimize()
This methods removes all automatic styles that are currently not used by any styleable element. |
| Methods inherited from class org.odftoolkit.odfdom.dom.element.office.OfficeAutomaticStylesElement |
|---|
accept, getOdfName, newNumberBooleanStyleElement, newNumberCurrencyStyleElement, newNumberDateStyleElement, newNumberNumberStyleElement, newNumberPercentageStyleElement, newNumberTextStyleElement, newNumberTimeStyleElement, newStylePageLayoutElement, newStyleStyleElement, newTextListStyleElement |
| Methods inherited from class org.odftoolkit.odfdom.pkg.OdfContainerElementBase |
|---|
insertBefore, removeChild, replaceChild |
| Methods inherited from class org.odftoolkit.odfdom.pkg.OdfElement |
|---|
cloneNode, cloneOdfElement, 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.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 OdfOfficeAutomaticStyles(OdfFileDom ownerDoc)
| Method Detail |
|---|
public OdfStyle newStyle(OdfStyleFamily styleFamily)
OdfStyle element with style family
styleFamily - The OdfStyleFamily element
OdfStyle elementpublic OdfTextListStyle newListStyle()
OdfTextListStyle element
OdfTextListStyle elementpublic OdfStylePageLayout getPageLayout(String name)
OdfStylePageLayout element with the given name.
name - is the name of the page layout
public OdfStyle getStyle(String name,
OdfStyleFamily familyType)
OdfStyleStyle 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)
OdfStyleStyle elements for the given family.
familyType -
OdfStyleStyle elements for the given familypublic Iterable<OdfStyle> getAllStyles()
OdfStyleStyle elements.
OdfStyleStyle elementspublic OdfTextListStyle getListStyle(String name)
OdfTextListStyle element with the given name.
name - is the name of the list style
public Iterable<OdfTextListStyle> getListStyles()
OdfTextListStyle elements.
OdfTextListStyle elementspublic OdfNumberStyle getNumberStyle(String name)
OdfNumberNumberStyle element with the given name.
name - is the name of the number style
public Iterable<OdfNumberStyle> getNumberStyles()
OdfNumberNumberStyle elements.
OdfNumberNumberStyle elementspublic OdfNumberDateStyle getDateStyle(String name)
OdfNumberDateStyle element with the given name.
name - is the name of the date style
public Iterable<OdfNumberDateStyle> getDateStyles()
OdfNumberDateStyle elements.
OdfNumberDateStyle elementspublic OdfNumberPercentageStyle getPercentageStyle(String name)
OdfNumberPercentageStyle element with the given name.
name - is the name of the percentage style
public Iterable<OdfNumberPercentageStyle> getPercentageStyles()
OdfNumberPercentageStyle elements.
OdfNumberPercentageStyle elementspublic OdfNumberCurrencyStyle getCurrencyStyle(String name)
OdfNumberCurrencyStyle element with the given name.
name - is the name of the currency style
public Iterable<OdfNumberCurrencyStyle> getCurrencyStyles()
OdfNumberCurrencyStyle elements.
OdfNumberCurrencyStyle elementspublic OdfNumberTimeStyle getTimeStyle(String name)
OdfNumberTimeStyle element with the given name.
name - is the name of the time style
public Iterable<OdfNumberTimeStyle> getTimeStyles()
OdfNumberTimeStyle elements.
OdfNumberTimeStyle elementspublic NumberBooleanStyleElement getBooleanStyle(String name)
NumberBooleanStyleElement element with the given name.
name - is the name of the boolean style
public Iterable<NumberBooleanStyleElement> getBooleanStyles()
OdfNumberBooleanStyle elements.
OdfNumberBooleanStyle elementspublic NumberTextStyleElement getTextStyle(String name)
NumberTextStyleElement element with the given name.
name - is the name of the text style
public Iterable<NumberTextStyleElement> getTextStyles()
NumberTextStyleElement elements.
NumberTextStyleElement elements
protected void onOdfNodeInserted(OdfElement node,
Node refNode)
OdfContainerElementBase
onOdfNodeInserted in class OdfContainerElementBaseprotected void onOdfNodeRemoved(OdfElement node)
OdfContainerElementBase
onOdfNodeRemoved in class OdfContainerElementBasepublic void optimize()
public OdfStyle makeStyleUnique(OdfStyle referenceStyle)
referenceStyle - The reference OdfStyle element
OdfStyle element
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||