Class OdfStyle
java.lang.Object
- All Implemented Interfaces:
Serializable, Cloneable, Comparable<OdfStyleBase>, OdfStylePropertySet, Element, ElementTraversal, EventTarget, Node, NodeList, TypeInfo
Convenient functionality for the parent ODF OpenDocument element
- See Also:
-
Field Summary
Fields inherited from class StyleStyleElement
ELEMENT_NAMEFields inherited from class OdfContainerElementBase
mPackageDocumentFields inherited from class ElementNSImpl
localName, namespaceURIFields inherited from class ElementImpl
attributes, nameFields inherited from class ParentNode
firstChild, fNodeListCache, ownerDocumentFields inherited from class ChildNode
nextSibling, previousSiblingFields inherited from class 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_NODEFields inherited from interface 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_NODEFields inherited from interface TypeInfo
DERIVATION_EXTENSION, DERIVATION_LIST, DERIVATION_RESTRICTION, DERIVATION_UNION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic OdfStylableElementmergeSelectionWithSameRange(OdfStylableElement higherPrioSpan, OdfStylableElement lowerPrioSpan) Two spans having the same range will be provided, only one will remain, styles are being merged.toString()Methods inherited from class StyleStyleElement
accept, getOdfName, getStyleAutoUpdateAttribute, getStyleClassAttribute, getStyleDataStyleNameAttribute, getStyleDefaultOutlineLevelAttribute, getStyleDisplayNameAttribute, getStyleFamilyAttribute, getStyleListLevelAttribute, getStyleListStyleNameAttribute, getStyleMasterPageNameAttribute, getStyleNameAttribute, getStyleNextStyleNameAttribute, getStyleParentStyleNameAttribute, getStylePercentageDataStyleNameAttribute, newStyleChartPropertiesElement, newStyleDrawingPagePropertiesElement, newStyleGraphicPropertiesElement, newStyleMapElement, newStyleParagraphPropertiesElement, newStyleRubyPropertiesElement, newStyleSectionPropertiesElement, newStyleTableCellPropertiesElement, newStyleTableColumnPropertiesElement, newStyleTablePropertiesElement, newStyleTableRowPropertiesElement, newStyleTextPropertiesElement, setStyleAutoUpdateAttribute, setStyleClassAttribute, setStyleDataStyleNameAttribute, setStyleDefaultOutlineLevelAttribute, setStyleDisplayNameAttribute, setStyleFamilyAttribute, setStyleListLevelAttribute, setStyleListStyleNameAttribute, setStyleMasterPageNameAttribute, setStyleNameAttribute, setStyleNextStyleNameAttribute, setStyleParentStyleNameAttribute, setStylePercentageDataStyleNameAttributeMethods inherited from class OdfStyleBase
addStyleUser, compareTo, equals, getFamilyName, getOrCreatePropertiesElement, getProperties, getPropertiesElement, getProperty, getStrictProperties, getStyleProperties, getStylePropertiesDeep, getStyleUserCount, getStyleUsers, hashCode, hasProperty, onOdfNodeInserted, onOdfNodeRemoved, removeProperty, removeStyleUser, setProperties, setPropertyMethods inherited from class OdfContainerElementBase
insertBefore, removeChild, replaceChildMethods inherited from class OdfElement
appendChild, appendUsingWhitespaceHandling, cloneElement, cloneNode, cloneNode, cloneNode, cloneOdfElement, componentSize, copyAttributes, countChildComponents, countDescendantComponents, countPrecedingSiblingElements, delete, findFirstChildNode, findNextChildNode, findPreviousChildNode, getAncestorAs, getChildElement, getChildElement, getComponent, getComponentRoot, getFirstChildElement, getLastChildElement, getNextSiblingElement, getOdfAttribute, getOdfAttribute, getOdfAttribute, getOdfAttributeValue, getParentAs, getPreviousSiblingElement, getRepetition, getTextContent, hasAncestor, hasOdfAttribute, ignoredComponent, insert, insert, isComponentRoot, isIgnoredElement, isIgnoredElement, isRepeatable, markAsComponentRoot, markText, moveChildrenTo, onInsertNode, onInsertNode, onRemoveNode, onRemoveNode, receiveNode, receiveNode, removeContent, removeSingleElement, selfAndDescendantTextIgnoredAsComponent, setComponent, setOdfAttribute, setOdfAttribute, setOdfAttributeValue, setRepetition, splitMethods inherited from class ElementNSImpl
getLocalName, getNamespaceURI, getPrefix, getTypeName, getTypeNamespace, getXMLBaseAttribute, isDerivedFrom, setPrefix, setTypeMethods inherited from class ElementImpl
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getBaseURI, getChildElementCount, getDefaultAttributes, getElementsByTagName, getElementsByTagNameNS, getFirstElementChild, getLastElementChild, getNextElementSibling, getNodeName, getNodeType, getPreviousElementSibling, getSchemaTypeInfo, getTagName, getXercesAttribute, hasAttribute, hasAttributeNS, hasAttributes, isEqualNode, normalize, reconcileDefaultAttributes, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setOwnerDocument, setReadOnly, setupDefaultAttributes, setXercesAttributeNode, synchronizeDataMethods inherited from class ParentNode
getChildNodes, getChildNodesUnoptimized, getFirstChild, getLastChild, getLength, getOwnerDocument, hasChildNodes, item, setTextContent, synchronizeChildrenMethods inherited from class ChildNode
getNextSibling, getParentNode, getPreviousSiblingMethods inherited from class NodeImpl
addEventListener, changed, changes, compareDocumentPosition, compareTreePosition, dispatchEvent, getContainer, getFeature, getNodeNumber, getNodeValue, getReadOnly, getUserData, getUserData, getUserDataRecord, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, needsSyncChildren, removeEventListener, setNodeValue, setUserData, setUserDataMethods inherited from interface Node
compareDocumentPosition, getChildNodes, getFeature, getFirstChild, getLastChild, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, getUserData, hasChildNodes, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, setNodeValue, setTextContent, setUserData
-
Constructor Details
-
OdfStyle
-
-
Method Details
-
getParentStyle
- Overrides:
getParentStylein classOdfStyleBase- Returns:
- the style parent of the style or null if none existent
-
getFamily
- Overrides:
getFamilyin classOdfStyleBase- Returns:
- the style family of the style or null if none existent
-
hasPropertyAttribute
public boolean hasPropertyAttribute()- Returns:
- true if there is a property other than the style:family, style:name and style:parent-style-name with a value other than "null", or a similar attribute on the properties element
-
mergeSelectionWithSameRange
public static OdfStylableElement mergeSelectionWithSameRange(OdfStylableElement higherPrioSpan, OdfStylableElement lowerPrioSpan) Two spans having the same range will be provided, only one will remain, styles are being merged.Merges the automatic styles of the two given spans, uses one template style. The styles from the inner span have the higher priority. The outer span will be deleted afterwards.
- Returns:
- the remaining stylableElement of the two
-
toString
- Overrides:
toStringin classOdfElement
-