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

Java, C++, C#, Delphi... - Using the UNO bridges
Post Reply
pmass20
Posts: 3
Joined: Sat Apr 29, 2017 6:32 pm

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

Post 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
Libre Office 5.2.6
User avatar
Zizi64
Volunteer
Posts: 11421
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

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

Post 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.
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
pmass20
Posts: 3
Joined: Sat Apr 29, 2017 6:32 pm

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

Post 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?
Libre Office 5.2.6
User avatar
Zizi64
Volunteer
Posts: 11421
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

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

Post 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.
Last edited by Zizi64 on Tue May 30, 2017 3:05 pm, edited 1 time in total.
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
Shawndev
Posts: 1
Joined: Tue May 30, 2017 8:57 am

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

Post 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.
OpenOffice version 4.1.3 and Windows 7
Post Reply