API/Samples/Java/Writer/TextFormatting

From Apache OpenOffice Wiki
< API‎ | Samples‎ | Java
Jump to: navigation, search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Some formatting properties pertain to paragraphs, others to text nodes.

Formatting a Paragraph

Here are some examples of the properties for formatting paragraphs in OpenOffice Writer using JAVA.


Formatting a text node

Here are some examples of the properties for formatting text nodes in OpenOffice Writer using JAVA.


Sample Project

Here is a sample project to download and install as a plugin, showcasing the code examples given above. Feel free to take a look at the source code and play around with it, so that you can get a feel for the methods used for formatting text in OpenOffice.

Personal tools