ExpandAnimations
ExpandAnimations copied to clipboard
"Appear" on text fragments (i.e. only a part of a tex box should appear)
When an "appear" effect concerns only a text fragment (i.e. only a part of a tex box must appear), this yields the error: Type: com.sun.star.lang.IllegalArgumentException Message: cannot coerce argument type during coreflection call!.
I've added some code to handle the animation of paragraphs in textbox. Maybe someone will be interested. The modified VBA can be found here https://gist.github.com/7hil/8362907
Thanks a lot!
Can you create a pull request then?
Best,
--Martin
Just tried ExpandAnimations for the first time, and immediately ran into this bug. If the mod works to fix this, could you please post an updated distribution?
Thanks, David
Hi, @dtkirsch . I havn't tried the modified code on other versions of Libreoffice (except for version 3.5.7) so I'm not sure whether it will work for you. You may try it by modifying the macro of ExpandAnimations in Libreoffice. @monperrus I never develop any extension for Libreoffice. It may take times for me to create a pull request. I will try it these days. Hope my contribution useful.
Thanks @7hil, I've modified the macro directly as you suggested, and confirm that it works well for a later version as well (LibreOffice 4.0.2.2).
One issue did jump out at me, and I'm not sure how to fix it. For over-full text boxes where LibreOffice has auto-reduced the text size to make the content fit, the text size does not remain consistent for the expanded slides (since the box is no longer overfull). This can be worked around as a user by manually reducing the font size so that no auto-reduction is necessary, but perhaps there's a way to make the macro aware of the rendered size in the full original slide?
Thanks again for the modified VBA, it's a big help.
@dtkirsch I have no idea about how to solve this problem. Seems that Libreoffice doesn't provide API for changing font color into transparent or geting rendered size of font.