Package com.sun.star.lang

Examples of com.sun.star.lang.XSingleComponentFactory.createInstanceWithContext()


            XSingleComponentFactory.class, xImpLoader.activate(
                "com.sun.star.comp.servicemanager.ServiceManager", null, null, null ) );
       
    // Create an instance of the ServiceManager
    XMultiComponentFactory xSMgr = (XMultiComponentFactory)UnoRuntime.queryInterface(
            XMultiComponentFactory.class, smgr_fac.createInstanceWithContext( null ) );
       
    // post init loader
    XInitialization xInit = (XInitialization)UnoRuntime.queryInterface(
            XInitialization.class, xImpLoader );
    Object[] args = new Object [] { xSMgr };
View Full Code Here


        {
            XSingleComponentFactory xCompFac = (XSingleComponentFactory)UnoRuntime.queryInterface(
                XSingleComponentFactory.class, fac );
            if (xCompFac != null)
            {
                return xCompFac.createInstanceWithContext( xContext );
            }
            else
            {
                XSingleServiceFactory xServiceFac = (XSingleServiceFactory)UnoRuntime.queryInterface(
                    XSingleServiceFactory.class, fac );
View Full Code Here

                                    "com.sun.star.test.bridges.testequals.impl",
                                    "", "testequals.uno", null));
                        XTestInterface test = (XTestInterface)
                            UnoRuntime.queryInterface(
                                XTestInterface.class,
                                factory2.createInstanceWithContext(context));
                        // allow client to start accepting:
                        Thread.sleep(3000);
                        test.connect(CONNECTION_DESCRIPTION,
                                     PROTOCOL_DESCRIPTION);
View Full Code Here

            // Creating an instance of the instance inspector with arguments
 
            XSingleComponentFactory xFactory = Inspector.__getComponentFactory(Inspector._Inspector.class.getName());
            Object obj= null;
            if (xFactory != null) {
                obj = xFactory.createInstanceWithContext(xContext);                
            }
            org.openoffice.XInstanceInspector xInstInspector = null;
            if (obj != null) {
                xInstInspector = (org.openoffice.XInstanceInspector)UnoRuntime.queryInterface(org.openoffice.XInstanceInspector.class, obj);                
            }
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.