Class CharPropConfiguration

    • Constructor Detail

      • CharPropConfiguration

        public CharPropConfiguration()
    • Method Detail

      • setConvertFontBGColor

        public void setConvertFontBGColor​(boolean newValue)
        Set ConvertFontBGColor to true to enable conversion of text background colors. Code Example:

         // switch off background color conversion
         scrooge.setConvertBGColor(false);
         // switch off highlight color conversion
         scrooge.setConvertHLColor(false);
         
        Parameters:
        newValue - The new convertFontBGColor value
        See Also:
        isConvertFontBGColor()
        Default value:
        true
        Note:
        in RTF documents, background colors may also be defined as 'highlight colors'. If the background colors do not appear in the output document, try setting the ConvertFontHLColor property.
      • setConvertFontColor

        public void setConvertFontColor​(boolean newValue)
        Set this property to true to enable conversion of font colors.
        Parameters:
        newValue - The new convertFontColor value
        See Also:
        isConvertFontColor()
        Default value:
        true
      • setConvertFontHLColor

        public void setConvertFontHLColor​(boolean newValue)
        Set ConvertFontHLColor to true to enable conversion of text highlight colors. Code Example:

         // switch off background color conversion
         scrooge.setConvertBGColor(false);
         // switch off higlight color conversion
         scrooge.setConvertHLColor(false);
         

        Parameters:
        newValue - The new convertFontHLColor value
        See Also:
        isConvertFontHLColor()
        Default value:
        true
        Note:
        in RTF documents, highlight colors may also be defined as 'background colors'. If the highlight colors do not appear in the output document, try setting the ConvertFontBGColor property.
      • setConvertFontName

        public void setConvertFontName​(boolean newValue)
        Set this property to true to enable conversion of font names.
        Parameters:
        newValue - The new convertFontName value
        See Also:
        isConvertFontName()
        Default value:
        true
      • setConvertFontSize

        public void setConvertFontSize​(boolean newValue)
        Set this property to true to enable conversion of font sizes.
        Parameters:
        newValue - The new convertFontSize value
        See Also:
        isConvertFontSize()
        Default value:
        true
      • setConvertFontStyle

        public void setConvertFontStyle​(boolean newValue)
        Set this property to true to enable conversion of font styles (bold, italic, strike, underline, subscript, superscript).
        Parameters:
        newValue - The new convertFontStyle value
        See Also:
        isConvertFontStyle()
        Default value:
        true
      • setConvertLanguage

        public void setConvertLanguage​(boolean newValue)
        Set this property to true to enable generation of lang attributes.
        Parameters:
        newValue - The new convertLanguage value
        See Also:
        isConvertLanguage()
        Default value:
        false
      • isConvertFontBGColor

        public boolean isConvertFontBGColor()
      • isConvertFontColor

        public boolean isConvertFontColor()
      • isConvertFontHLColor

        public boolean isConvertFontHLColor()
      • isConvertFontName

        public boolean isConvertFontName()
      • isConvertFontSize

        public boolean isConvertFontSize()
      • isConvertFontStyle

        public boolean isConvertFontStyle()
      • isConvertLanguage

        public boolean isConvertLanguage()