Hi Ariel, On 11.11.2012 13:05, Ariel Constenla-Haile wrote: > On Fri, Nov 09, 2012 at 04:33:31PM +0100, Rony G. Flatscher wrote: >>> Another issue: how to set an animation for each paragraph? >> Hmm, good question! The xTextRange seems to only implement the >> services >> com.sun.star.style.CharacterProperties+com.sun.star.style.CharacterPropertiesComplex+com.s >> un.star.style.CharacterPropertiesAsian (in SvxUnoTextRange). >> >> Will have to start another research round, once I have settled and >> again a little bit of time on my hands. > > I've found my old animation example > http://openoffice.2283327.n4.nabble.com/UNO-Java-adding-a-motion-path-Animation-to-an-XShape-in-Impress-td2772586.html > with a motion path. > > Setting an animation effect to each numbering level in a shape's text is > posible with a com.sun.star.presentation.ParagraphTarget see > http://people.apache.org/~arielch/api/AnimationDemo.zip > > My original example (AnimationDemo.java in that zip) was SMIL-correct, > but the effect wasn't displayed on the UI; in order to display it I had > to add some extra parallel time containers; it looks like Impress UI > understands only > > <anim:par presentation:node-type="timing-root"> > <anim:seq presentation:node-type="main-sequence"> > <anim:par smil:begin="next"> > <anim:par smil:begin="0s"> > <anim:par <--- the actual effect > </anim:par> > </anim:par> > </anim:par> > </anim:seq> > </anim:par> > > I was simply adding a parallel time container to the main sequence. This > works and is SMIL-correct, but isn't displayed in the task panel. > > And if you look at the numbering level example, I use a simple text > shape and set the levels; this way, the levels are not displayed on the > Outline view (even if I set the text shape style to outline). I'll have > to investigate what is expecting Impress (it looks as if it wants us to > use predefined layouts). > > Another interesting thing: I was trying to create a custom style for the > text shape, it turns out that the document factory can't instantiate new > styles, like in Writer (and Calc?); you have to instantiate the style at > the document's style container, what contradict the current > documentation: > http://wiki.openoffice.org/wiki/Documentation/DevGuide/Drawings/Overall_Document_Features > > New styles can be created, as well. For this purpose, use > createInstance() at the document factory of a drawing document and ask > for a "com.sun.star.style.Style" service. Set the properties of the new > style, as required. Append the new style to the style family "graphics" > using insertByName() at its XNameContainer interface. > > Does anyone recall if this ever worked? Thank you very much for your *very useful* information, links and programs!
Ad your questions: sorry, cannot answer you, because I never was (yet) in those "dark" corners of Impress ... ---rony
