21.08.2013 Views

OpenOffice.org BASIC Guide.pdf - OpenOffice.org wiki

OpenOffice.org BASIC Guide.pdf - OpenOffice.org wiki

OpenOffice.org BASIC Guide.pdf - OpenOffice.org wiki

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The Structure of Text Documents 93<br />

service does not provide any interfaces, but instead offers a range of properties through<br />

which character properties can be defined and called. A complete list of all character<br />

properties can be found in the <strong>OpenOffice</strong>.<strong>org</strong> API reference. The following list describes<br />

the most important properties:<br />

CharFontName (String)<br />

name of font type selected.<br />

CharColor (Long)<br />

text color.<br />

CharHeight (Float)<br />

character height in points (pt).<br />

CharUnderline (Constant group)<br />

type of underscore (constants in accordance with<br />

com.sun.star.awt.FontUnderline<br />

).<br />

CharWeight (Constant group)<br />

font weight (constants in accordance with<br />

com.sun.star.awt.FontWeight<br />

).<br />

CharBackColor (Long)<br />

background color.<br />

CharKeepTogether (Boolean)<br />

suppression of automatic line break.<br />

CharStyleName (String)<br />

name of character template.<br />

Paragraph Properties<br />

Formatting information that does not refer to individual characters, but to the entire<br />

paragraph is considered to be a paragraph property. This includes the distance of the<br />

paragraph from the edge of the page as well as line spacing. The paragraph properties are<br />

available through the<br />

service.<br />

com.sun.star.style.ParagraphProperties<br />

Even the paragraph properties are available in various objects. All objects that support the<br />

.<br />

com.sun.star.text.Paragraph<br />

service also provide support for the paragraph properties in<br />

com.sun.star.style.ParagraphProperties

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!