Examples of XMultiComponentFactory


Examples of com.sun.star.lang.XMultiComponentFactory

            XTextDocument xTextDoc = (XTextDocument)UnoRuntime.queryInterface(XTextDocument.class,
                    xFrame.getController().getModel());

            myLogger.log(
                    Level.FINE, "xTextDoc "+xTextDoc);
            XMultiComponentFactory xServiceManager =
                    m_xContext.getServiceManager();

            /* create expression, select expression and move focus to the
             formula edit field */
            if ( aURL.Path.compareTo("CreateExpression") == 0 ){
                /* This is just a button for "insert - object - formula "*/
                XDispatchProvider xDP =
                        (XDispatchProvider)UnoRuntime.queryInterface(
                        XDispatchProvider.class, xFrame);
                XURLTransformer xParser =
                        (XURLTransformer) UnoRuntime.queryInterface(
                        XURLTransformer.class,
                        xServiceManager.createInstanceWithContext(
                        "com.sun.star.util.URLTransformer",m_xContext));
                com.sun.star.util.URL[] aParseURL = new com.sun.star.util.URL[1];
                aParseURL[0] = new com.sun.star.util.URL();
                aParseURL[0].Complete = ".uno:InsertObjectStarMath";
                xParser.parseStrict (aParseURL);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.