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
Set "Word wrap text in shape" in Draw with Java
Set "Word wrap text in shape" in Draw with Java
Libre Office 5.2.6
Re: Set "Word wrap text in shape" in Draw with Java
Try to use the object styles. You can control and apply the styles by a program code usind the API functions.I found the function in the Draw program "Format" -> "Text ..." -> "Word wrap text in space"
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.
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.
Re: Set "Word wrap text in shape" in Draw with Java
Thank you for the quick answer.
Have you a documentation link, that I can see java sample code to use this object styles?
Have you a documentation link, that I can see java sample code to use this object styles?
Libre Office 5.2.6
Re: Set "Word wrap text in shape" in Draw with Java
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.
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.
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.
Re: Set "Word wrap text in shape" in Draw with Java
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.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.
OpenOffice version 4.1.3 and Windows 7