Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
monperrus opened this issue May 22, 2011 · 6 comments

Comments

@monperrus
Copy link
Owner

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

@7hil
Copy link
Contributor

7hil commented Jan 10, 2014

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

@monperrus
Copy link
Owner Author

Thanks a lot!

Can you create a pull request then?

Best,

--Martin

@dtkirsch
Copy link

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

@7hil
Copy link
Contributor

7hil commented Jan 14, 2014

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.

@dtkirsch
Copy link

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.

@7hil
Copy link
Contributor

7hil commented Jan 15, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants