Class PresentationStyleConverter


  • public class PresentationStyleConverter
    extends FrameStyleConverter
    This class converts OpenDocument presentation styles to CSS2 styles. Presentation styles are special frame styles, used to style the standard elements in a presentation (title, subtitle and textbox)
    • Constructor Detail

      • PresentationStyleConverter

        public PresentationStyleConverter​(OfficeReader ofr,
                                          XhtmlConfig config,
                                          Converter converter,
                                          int nType)
        Create a new PresentationStyleConverter
        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

      • getClassNamePrefix

        public java.lang.String getClassNamePrefix()
        Return a prefix to be used in generated css class names
        Overrides:
        getClassNamePrefix in class FrameStyleConverter
        Returns:
        the prefix
      • getStyleDeclarations

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

        Convert style information for used styles

        Overrides:
        getStyleDeclarations in class FrameStyleConverter
        Parameters:
        sIndent - a String of spaces to add before each line
      • enterOutline

        public void enterOutline​(java.lang.String sStyleName)
      • exitOutline

        public void exitOutline()
      • applyOutlineStyle

        public void applyOutlineStyle​(int nLevel,
                                      StyleInfo info)