Interface Writer

All Superinterfaces:
BorderPropertiesWriter, CharacterPropertiesWriter, DocumentWriter, FieldWriter, FootnoteWriter, HeaderFooterWriter, PageSetupWriter, ParagraphPropertiesWriter, TableStateWriter
All Known Implementing Classes:
AbstractWriter, XMLDOMWriter

Writer interface.

The converter uses a Writer to create the result document, and apply character and paragraph properties to it successively.

  • Method Details

    • getCharacterProperties

      CharacterProperties getCharacterProperties()
      Retrieves the CharacterProperties object that represents the current state data of the Writer.
      Returns:
      The character properties.
    • getParagraphProperties

      ParagraphProperties getParagraphProperties()
      Retrieves the ParagraphProperties object that represents the current state data of the Writer.
      Returns:
      The paragraph properties.
    • popParagraphProperties

      void popParagraphProperties(ParagraphProperties value)
    • popCharacterProperties

      void popCharacterProperties(CharacterProperties value)
    • resetCharacterAttributes

      void resetCharacterAttributes()
      Resets the character attributes of the current document writer. This method can be used to remove any special formatting applied to the text. It sets the character properties to their default values.
    • setDefaultFont

      void setDefaultFont(FontDescriptor value)
    • getDefaultFontName

      String getDefaultFontName()
      Returns the default font name of the Writer.
      Returns:
      The default font name.
    • resetParagraphAttributes

      void resetParagraphAttributes()
      Reset the paragraph attributes to their default values. This method is used to remove any special formatting applied to the paragraph. Invoked when the RTF token \pard appears.
    • applyTextProperties

      void applyTextProperties()
      Applies the text properties to the current document writer. This method should be called after any text property is changed. The properties include font style, color, background color, underline, highlight color, etc. The current document writer is responsible for applying these properties to the document.
    • applyParagraphProperties

      void applyParagraphProperties()
      Applies the paragraph properties to the document.
    • intToChar

      char intToChar(int value)
    • setNodeCharset

      void setNodeCharset(int value)
    • setNumberingStyle

      void setNumberingStyle(boolean value)
    • setNumberingLevel

      void setNumberingLevel(NumberingLevel value)
    • getListHeaderInfo

      ListHeaderInfo getListHeaderInfo()
    • setListLevel

      void setListLevel(int value)
    • setListOverrideIndex

      void setListOverrideIndex(int paramValue)
    • addPicture

      void addPicture(EmbeddedPicture value)
    • getTableWriter

      TableWriter getTableWriter()