Class StyleConverterHelper

    • Field Detail

      • bConvertStyles

        protected boolean bConvertStyles
      • bConvertHard

        protected boolean bConvertHard
      • nType

        protected int nType
    • Constructor Detail

      • StyleConverterHelper

        public StyleConverterHelper​(OfficeReader ofr,
                                    XhtmlConfig config,
                                    Converter converter,
                                    int nType)
        Create a new StyleConverterHelper
        Parameters:
        ofr - an OfficeReader to read style information from
        config - the configuration to use
        converter - the main Converter class
        nType - the type of xhtml to use
    • Method Detail

      • scale

        protected java.lang.String scale​(java.lang.String s)
      • colScale

        protected java.lang.String colScale​(java.lang.String s)
      • applyDirection

        protected static void applyDirection​(StyleWithProperties style,
                                             StyleInfo info)
        Apply the writing direction (ltr or rtl) attribute from a style
        Parameters:
        style - the OpenDocument style to use
        info - the StyleInfo object to add information to
      • applyLang

        protected static void applyLang​(StyleWithProperties style,
                                        StyleInfo info)
        Apply language+country from a style
        Parameters:
        style - the OpenDocument style to use
        info - the StyleInfo object to add information to
      • getStyles

        public abstract OfficeStyleFamily getStyles()
        Get the OpenDocument style family associated with this StyleConverterHelper
        Returns:
        the style family
      • getStyleDeclarations

        public abstract java.lang.String getStyleDeclarations​(java.lang.String sIndent)

        Convert style information for used styles

        Parameters:
        sIndent - a String of spaces to add before each line