Class MathConverterFactories

    • Method Detail

      • register

        public static void register​(MathConverterFactory factory)
        Registers specified factory.
      • createMathConverter

        public static MathConverter createMathConverter​(Element oMath)
        Convenience method: returns a converter allowing to convert specified OpenXML math element.

        Each registered factory is tested in turn, starting from the last registered ones.

        Parameters:
        oMath - a m:oMathPara or m:oMath element to be converted
        Returns:
        a factory if found; null otherwise
      • convertMath

        public static Element convertMath​(Element oMath)
        Convenience method: convert specified m:oMathPara or m:oMath element to a mml:math element.
        Parameters:
        oMath - a m:oMathPara or m:oMath element to be converted
        Returns:
        converted mm:math or null if for any reason the conversion fails