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

Java, C++, C#, Delphi, ??? - Using the UNO bridges

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

Postby pmass20 » Sat Apr 29, 2017 8:07 pm

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
pmass20
 
Posts: 3
Joined: Sat Apr 29, 2017 6:32 pm

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

Postby Zizi64 » Sat Apr 29, 2017 8:27 pm

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; LO6.1.6 on Win7-10 x64Prof.
PortableApps, winPenPack: LO3.3.0-6.3.2; AOO4.1.6
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.
User avatar
Zizi64
Volunteer
 
Posts: 8460
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

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

Postby pmass20 » Sat Apr 29, 2017 8:36 pm

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
pmass20
 
Posts: 3
Joined: Sat Apr 29, 2017 6:32 pm

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

Postby Zizi64 » Sat Apr 29, 2017 8:45 pm

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; LO6.1.6 on Win7-10 x64Prof.
PortableApps, winPenPack: LO3.3.0-6.3.2; AOO4.1.6
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.
User avatar
Zizi64
Volunteer
 
Posts: 8460
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

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

Postby Shawndev » Tue May 30, 2017 9:01 am

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
Shawndev
 
Posts: 1
Joined: Tue May 30, 2017 8:57 am


Return to External Programs

Who is online

Users browsing this forum: No registered users and 1 guest