Page 1 of 1

Set "Word wrap text in shape" in Draw with Java

Posted: Sat Apr 29, 2017 8:07 pm
by pmass20
Hello community,

I have create a shape with text in LibreOffice Draw with java.
But the text is longer as the width of the shape.

I want a break the text in the shape. I found the function in the Draw program "Format" -> "Text ..." -> "Word wrap text in space"

But how can I set this parameter of my xShape with java?

Thank you very much!
Michael

Re: Set "Word wrap text in shape" in Draw with Java

Posted: Sat Apr 29, 2017 8:27 pm
by Zizi64
I found the function in the Draw program "Format" -> "Text ..." -> "Word wrap text in space"
Try to use the object styles. You can control and apply the styles by a program code usind the API functions.

And you can use the API functions for direct formatting of the shapes.

Re: Set "Word wrap text in shape" in Draw with Java

Posted: Sat Apr 29, 2017 8:36 pm
by pmass20
Thank you for the quick answer.

Have you a documentation link, that I can see java sample code to use this object styles?

Re: Set "Word wrap text in shape" in Draw with Java

Posted: Sat Apr 29, 2017 8:45 pm
by Zizi64
Sorry, i am using the StarBasic for controling the office suite (styles and other properties) by the API functions.

You need study the API functions first. See Andrew Pitonyak's books.
http://www.pitonyak.org/oo.php
You can use all of the supported programming languages fof calling the API functions.

Re: Set "Word wrap text in shape" in Draw with Java

Posted: Tue May 30, 2017 9:01 am
by Shawndev
Hello community,

I have create a shape with text in LibreOffice Draw with java.
But the text is longer as the width of the shape.

I want a break the text in the shape. I found the function in the Draw program "Format" -> "Text ..." -> "Word wrap text in space"

But how can I set this parameter of my xShape with java?

Thank you very much!
Michael

Sorry, i am using the StarBasic for controling the office suite (styles and other properties) by the API functions.

You need study the API functions first. See Andrew Pitonyak's books.
http://www.pitonyak.org/oo.php
You can use all of the supported programming languages fo calling the API functions.
I would like to say thanks Zizi64 as it has been helped me. I had same issue then find your answer which is very useful.