Examples of createInstanceWithArguments()


Examples of com.sun.star.lang.XMultiServiceFactory.createInstanceWithArguments()

        FilterChecker filter = new FilterChecker(log);
        Any arg = new Any(new Type(XDocumentHandler.class),filter);

        try {
            oObj = (XInterface) xMSF.createInstanceWithArguments(
                "com.sun.star.comp.Chart.XMLContentExporter",
                new Object[] {arg});
            XExporter xEx = (XExporter)
                UnoRuntime.queryInterface(XExporter.class,oObj);
            xEx.setSourceDocument(xChartDoc);
View Full Code Here

Examples of com.sun.star.lang.XMultiServiceFactory.createInstanceWithArguments()

        Filter = new MetaFilterChecker(log);
        Any arg = new Any(new Type(XDocumentHandler.class), Filter);

        try {
            oObj = (XInterface) xMSF.createInstanceWithArguments(
                "com.sun.star.comp.Writer.XMLMetaExporter",
                new Object[] {arg});
            XExporter xEx = (XExporter) UnoRuntime.queryInterface
                (XExporter.class,oObj);
            xEx.setSourceDocument(xTextDoc);
View Full Code Here

Examples of com.sun.star.lang.XMultiServiceFactory.createInstanceWithArguments()

            XMultiServiceFactory pMSF = (XMultiServiceFactory) UnoRuntime.queryInterface(
                                                XMultiServiceFactory.class,
                                                Provider);
            XNameAccess names = (XNameAccess) UnoRuntime.queryInterface(
                                        XNameAccess.class,
                                        pMSF.createInstanceWithArguments(
                                                "com.sun.star.configuration.ConfigurationAccess",
                                                nodeArgs));
            oObj = (XInterface) names.getByName(names.getElementNames()[0]);

            names = (XNameAccess) UnoRuntime.queryInterface(XNameAccess.class,
View Full Code Here

Examples of com.sun.star.lang.XMultiServiceFactory.createInstanceWithArguments()

            String[] theNames = names.getElementNames();

            log.println("Contains " + theNames.length + " elements");
           
            // create a changeable view on the element for XContainer interface
            names = (XNameAccess) UnoRuntime.queryInterface(XNameAccess.class, pMSF.createInstanceWithArguments(
                                "com.sun.star.configuration.ConfigurationUpdateAccess", nodeArgs));
            updateAccess = (XNameReplace) UnoRuntime.queryInterface(XNameReplace.class,
                                names.getByName(names.getElementNames()[0]));
           
        } catch (com.sun.star.uno.Exception e) {
View Full Code Here

Examples of com.sun.star.lang.XMultiServiceFactory.createInstanceWithArguments()

        FilterChecker filter = new FilterChecker(log) ;
        Any arg = new Any(new Type(XDocumentHandler.class),filter);

        try {
            oObj = (XInterface) xMSF.createInstanceWithArguments(
                "com.sun.star.comp.Draw.XMLSettingsExporter",
                new Object[] {arg});
            XExporter xEx = (XExporter)
                UnoRuntime.queryInterface(XExporter.class, oObj);
            xEx.setSourceDocument(xDrawDoc);
View Full Code Here

Examples of com.sun.star.lang.XMultiServiceFactory.createInstanceWithArguments()

            XMultiServiceFactory pMSF = (XMultiServiceFactory) UnoRuntime.queryInterface(
                                                XMultiServiceFactory.class,
                                                Provider);
           
            xHierachNameAccess = (XNameAccess) UnoRuntime.queryInterface(XNameAccess.class,
                                        pMSF.createInstanceWithArguments(
                                        "com.sun.star.configuration.ConfigurationAccess", nodeArgs));

            XInterface oInnerSetInfoAccess = (XInterface) xHierachNameAccess.getByName("New");
           
            XNameAccess names = (XNameAccess) UnoRuntime.queryInterface(XNameAccess.class,
View Full Code Here

Examples of com.sun.star.lang.XMultiServiceFactory.createInstanceWithArguments()

           
           
            log.println("create ConfigurationUpdateAccess to modify the object...");
           
            xHierachNameAccess = (XNameAccess) UnoRuntime.queryInterface(XNameAccess.class,
                                        pMSF.createInstanceWithArguments(
                                                 "com.sun.star.configuration.ConfigurationUpdateAccess",
                                                 nodeArgs));
           
            oInnerSetInfoAccess = (XInterface) xHierachNameAccess.getByName("New");
           
View Full Code Here

Examples of com.sun.star.lang.XMultiServiceFactory.createInstanceWithArguments()

        Any arg = new Any(new Type(XDocumentHandler.class), Filter);

        final String NAME = "XMLExporter";

        try {
            oObj = (XInterface) xMSF.createInstanceWithArguments(
                "com.sun.star.comp.Impress.XMLExporter", new Object[] {arg});

            //get draw pages
            XDrawPagesSupplier drawPagesSupplier = (XDrawPagesSupplier)
                UnoRuntime.queryInterface(XDrawPagesSupplier.class, xImpressDoc);
View Full Code Here

Examples of com.sun.star.lang.XMultiServiceFactory.createInstanceWithArguments()

        filter.addTag(new XMLTools.Tag ("office:meta"));
        filter.addCharactersEnclosed("TestDocument",
            new XMLTools.Tag ("dc:title"));

        try {
            oObj = (XInterface) xMSF.createInstanceWithArguments(
                "com.sun.star.comp.Calc.XMLMetaExporter", new Object[] {arg});
            XExporter xEx = (XExporter) UnoRuntime.queryInterface
                (XExporter.class,oObj);
            xEx.setSourceDocument(xSheetDoc);
View Full Code Here

Examples of com.sun.star.lang.XMultiServiceFactory.createInstanceWithArguments()

            XMultiServiceFactory pMSF = (XMultiServiceFactory) UnoRuntime.queryInterface(
                                                XMultiServiceFactory.class,
                                                Provider);
            xHierachNameAccess = (XHierarchicalNameAccess) UnoRuntime.queryInterface(
                                                    XHierarchicalNameAccess.class,
                                                    pMSF.createInstanceWithArguments(
                                                            "com.sun.star.configuration.ConfigurationUpdateAccess",
                                                            nodeArgs));

            oObj = (XInterface) xHierachNameAccess.getByHierarchicalName("Labels['Avery A4']");
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.