Hello Thorsten, > Jason Vanhoy wrote: > > "chiming in" usually means "to break suddenly and WELCOMELY..." rather > > than unwelcomely...meaning, we appreciated your assistance. :) > > Hi Ariel, > > yes, definitely that meaning - true gratefullness for answering this > question! :)
then thanks :-) [quoting now myself:] > @John > > I attach a Java version of the OOo Basic code (yes, much more code :-( ) ups: > XAnimationNode xRootNode = xNodeSupplier.getAnimationNode(); > XTimeContainer xRootTimeContainer = (XTimeContainer) > UnoRuntime.queryInterface( XTimeContainer.class, xRootNode); > > XTimeContainer xSeq = createSequenceTimeContainer(m_xContext); > xRootTimeContainer.appendChild(xSeq); > > XTimeContainer xPar = createParallelTimeContainer(m_xContext); > xSeq.appendChild(xPar); > > setUserData(xRootNode, here must be setUserData(xPar, ...) [blame it on NB code completion] and: > public static XComponent createNewDoc( > XComponentContext xContext, > PropertyValue[] > aMediaDescriptor, String sType) { > XComponent xComponent = null; > try { > XComponentLoader xDesktopLoader = (XComponentLoader) > createUnoService( xContext, "com.sun.star.frame.Desktop", > XComponentLoader.class ); xComponent = (XComponent) > UnoRuntime.queryInterface( > XComponent.class, > xDesktopLoader.loadComponentFromURL( > "private:factory/" + sType, "_default", > FrameSearchFlag.ALL, aMediaDescriptor ) ); > } catch (Exception ex) { > ex.printStackTrace(); > } > return xComponent; > } no need to query for css.lang.XComponent: XComponentLoader.loadComponentFromURL returns already a reference. > XAudio xAudio = createAudioEffect( > m_xContext, getRandomAudioURL(m_xContext), 1.0); > // I have no idea what's expected under volume, > // anyway: does setting the volume work? > // at least the slideshow engine does not seem to take this > into accout: // slideshow/source/inc/soundplayer.hxx > // slideshow/source/engine/soundplayer.cxx > // > slideshow/source/engine/animationnodes/animationaudionode.cxx yes, researching a little more shows that XAudio.setVolume() has no effect at all on the SlideShow engine, not even is the value stored by the xml filter. Don't know if this is going to be implemented, but for now we can ommit it, all it matters is just the audio file URL. Regards -- Ariel Constenla-Haile La Plata, Argentina "Aus der Kriegsschule des Lebens - Was mich nicht umbringt, macht mich härter." Nietzsche Götzendämmerung, Sprüche und Pfeile, 8. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org For additional commands, e-mail: dev-h...@api.openoffice.org