Class OdfTextHeading

    • Constructor Detail

      • OdfTextHeading

        public OdfTextHeading​(OdfFileDom ownerDoc)
      • OdfTextHeading

        public OdfTextHeading​(OdfFileDom ownerDoc,
                              String styleName)
        Creates a new instance of this class with the given style name. If the style name is null or the null string, no style is added.
      • OdfTextHeading

        public OdfTextHeading​(OdfFileDom ownerDoc,
                              String styleName,
                              String content)
        Creates an instance of this class with the given styleName and content. If the style name is null or the null string, no style is added. If the content is null or the null string, no content is added.
        Parameters:
        ownerDoc - the owner document DOM
        styleName - the style:style-name value
        content - the heading content
    • Method Detail

      • addContent

        public OdfTextHeading addContent​(String content)
        Add the given content to the paragraph. If the content is null or the null string, no content is added.
        Parameters:
        content - the heading content
        Returns:
        the heading object
      • addContentWhitespace

        public OdfTextHeading addContentWhitespace​(String content)
        Add the given content to the heading. If the content is null or the null string, no content is added. Embedded \n are converted to <text:line-break> elements, and multiple blanks to <text:s
        Parameters:
        content - the heading content
        Returns:
        the heading object
      • addStyledContent

        public OdfTextHeading addStyledContent​(String styleName,
                                               String content)
        Set a heading to have the given styleName and add the given content. If the style name is null or the null string, no style is added.
        Parameters:
        styleName - the style:style-name value
        content - the heading content
        Returns:
        the heading object
      • addStyledContentWhitespace

        public OdfTextHeading addStyledContentWhitespace​(String styleName,
                                                         String content)
        Set a heading to have the given styleName and add the given content. If the style name is null or the null string, no style is added. Embedded \n are converted to <text:line-break> elements, and multiple blanks to <text:s
        Parameters:
        styleName - the style:style-name value
        content - the heading content
        Returns:
        the heading object
      • addStyledSpan

        public OdfTextHeading addStyledSpan​(String styleName,
                                            String content)
        Add a span with the given styleName and content to this heading. If the style name is null or the null string, no span is added. If the content is null or the null string, no span is added.
        Parameters:
        styleName -
        content -
        Returns:
        the heading object
      • addStyledSpanWhitespace

        public OdfTextHeading addStyledSpanWhitespace​(String styleName,
                                                      String content)
        Add a span with the given styleName and content to this paragraph. If the style name is null or the null string, no span is added. If the content is null or the null string, no span is added.
        Parameters:
        styleName -
        content -
        Returns:
        the heading object