Class OdfStyle

    • Constructor Detail

      • OdfStyle

        public OdfStyle​(OdfFileDom ownerDoc)
    • Method Detail

      • 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