Package com.sun.star.lang

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


                    XSingleServiceFactory.class, fac );
                if (xServiceFac != null)
                {
                    if (DEBUG)
                        System.err.println( "### ignoring context raising service \"" + rServiceSpecifier + "\"!" );
                    return xServiceFac.createInstanceWithArguments( rArguments );
                }
                else
                {
                    throw new com.sun.star.uno.Exception(
                        "retrieved service factory object for \"" + rServiceSpecifier +
View Full Code Here


                    XSingleServiceFactory.class, fac );
                if (xServiceFac != null)
                {
                    if (DEBUG)
                        System.err.println( "### ignoring context raising service \"" + rServiceSpecifier + "\"!" );
                    return xServiceFac.createInstanceWithArguments( rArguments );
                }
                else
                {
                    throw new com.sun.star.uno.Exception(
                        "retrieved service factory object for \"" + rServiceSpecifier +
View Full Code Here

                    XSingleServiceFactory.class, fac );
                if (xServiceFac != null)
                {
                    if (DEBUG)
                        System.err.println( "### ignoring context raising service \"" + rServiceSpecifier + "\"!" );
                    return xServiceFac.createInstanceWithArguments( rArguments );
                }
                else
                {
                    throw new com.sun.star.uno.Exception(
                        "retrieved service factory object for \"" + rServiceSpecifier +
View Full Code Here

            XSingleServiceFactory xSSF = (XSingleServiceFactory)UnoRuntime.queryInterface(
            XSingleServiceFactory.class, o);
            Object[] props = new Object[2];
            props[0] = deleteCfg;
            props[1] = new Integer(ElementModes.READWRITE);
            XStorage xRootStorage = (XStorage)UnoRuntime.queryInterface(XStorage.class, xSSF.createInstanceWithArguments(props));
            xSubStorage = xRootStorage.openStorageElement("Configurations2", ElementModes.READWRITE);
           
            XUIConfigurationStorage xConfigStorage =(XUIConfigurationStorage)UnoRuntime.queryInterface(XUIConfigurationStorage.class, xManager);
            xConfigStorage.setStorage(xSubStorage);
            tEnv.addObjRelation("XUIConfigurationStorage.Storage", xSubStorage);
View Full Code Here

            String aFile = util.utils.getOfficeTempDir(xMSF) + "dummyFile.dat";
            log.println("storage file : '"+ aFile + "'");
           
            props[0] = aFile;
            props[1] = new Integer(ElementModes.READWRITE);
            xStore = (XStorage)UnoRuntime.queryInterface(XStorage.class, xStorageService.createInstanceWithArguments(props));

            PropertyValue[] initProps = new PropertyValue[4];
            PropertyValue propVal = new PropertyValue();
            propVal.Name = "DefaultConfigStorage";
            propVal.Value = xStore;
View Full Code Here

        {
          Object aArgs[] = new Object[2];
          aArgs[0] = aFileURI;
          aArgs[1] = new Integer( ElementModes.ELEMENT_READWRITE );

          Object oStorage = xStorageFactory.createInstanceWithArguments( aArgs );
          XStorage xTargetStorage = (XStorage)UnoRuntime.queryInterface( XStorage.class, oStorage );

          PropertyValue aProps[] = { new PropertyValue() };
          aProps[0].Name = "StoreVisualReplacement";
          aProps[0].Value = new Boolean( m_bStoreVisRepl );
View Full Code Here

                                            oStorageFactory );
      Object aArgs[] = new Object[2];
      aArgs[0] = aFileURI;
      aArgs[1] = new Integer( ElementModes.ELEMENT_READWRITE );

      Object oStorage = xStorageFactory.createInstanceWithArguments( aArgs );
      XStorage xTargetStorage = (XStorage)UnoRuntime.queryInterface( XStorage.class, oStorage );

      Object oEmbedCreator = m_xServiceFactory.createInstance( "com.sun.star.embed.EmbeddedObjectCreator" );
      XEmbedObjectCreator xEmbedCreator = (XEmbedObjectCreator)UnoRuntime.queryInterface(
                                          XEmbedObjectCreator.class,
View Full Code Here

      {
        Object aArgs[] = new Object[2];
        aArgs[0] = aFileURI;
        aArgs[1] = new Integer( ElementModes.ELEMENT_READWRITE );

        Object oStorage = xStorageFactory.createInstanceWithArguments( aArgs );
        XStorage xTargetStorage = (XStorage)UnoRuntime.queryInterface( XStorage.class, oStorage );

        XComponent xComponent = (XComponent)UnoRuntime.queryInterface( XComponent.class, m_xStorage );
        xComponent.dispose();
View Full Code Here

                    XSingleServiceFactory.class, fac );
                if (xServiceFac != null)
                {
                    if (DEBUG)
                        System.err.println( "### ignoring context raising service \"" + rServiceSpecifier + "\"!" );
                    return xServiceFac.createInstanceWithArguments( rArguments );
                }
                else
                {
                    throw new com.sun.star.uno.Exception(
                        "retrieved service factory object for \"" + rServiceSpecifier +
View Full Code Here

          XSingleServiceFactory.class,
          xFactory.createInstance( "com.sun.star.embed.BitmapCreator" ) );

      xResult = (XBitmap)UnoRuntime.queryInterface(
          XBitmap.class,
          xBitmapFactory.createInstanceWithArguments( aArgs ) );
    }
    catch( Exception e )
    {
      System.out.println( "Could not create VCL bitmap based on sequence," );
      System.out.println( "exception: " + e );
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.