ExpandAnimations icon indicating copy to clipboard operation
ExpandAnimations copied to clipboard

"Appear" on text fragments (i.e. only a part of a tex box should appear)

Open monperrus opened this issue 13 years ago • 6 comments

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!.

monperrus avatar May 22 '11 19:05 monperrus

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

7hil avatar Jan 10 '14 21:01 7hil

Thanks a lot!

Can you create a pull request then?

Best,

--Martin

monperrus avatar Jan 13 '14 08:01 monperrus

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

dtkirsch avatar Jan 14 '14 15:01 dtkirsch

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.

7hil avatar Jan 14 '14 19:01 7hil

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 avatar Jan 14 '14 20:01 dtkirsch

@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.

7hil avatar Jan 15 '14 16:01 7hil