Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: com :: sun :: star :: text ::

constants group ControlCharacter
Description
These constants are the codes for inserting control characters using XSimpleText::insertControlCharacter interface.
Developers Guide
Text - Editing Text - Control Characters

Constants
PARAGRAPH_BREAK This control character starts a new paragraph.  
LINE_BREAK This control character starts a new line in a paragraph.  
HARD_HYPHEN This control character equals a dash but prevents this position from being hyphenated.  
SOFT_HYPHEN This control character defines a special position as a hyphenation point. If a word containing a soft hyphen must be split at the end of a line, then this position is preferred.  
HARD_SPACE This control character is used to link two words and prevents this concatenation from being hyphenated. It is printed as a space.  
APPEND_PARAGRAPH This control character appends a new paragraph.  
Constants' Details
PARAGRAPH_BREAK
const short PARAGRAPH_BREAK = 0;
Description
This control character starts a new paragraph.
LINE_BREAK
const short LINE_BREAK = 1;
Description
This control character starts a new line in a paragraph.
HARD_HYPHEN
const short HARD_HYPHEN = 2;
Description
This control character equals a dash but prevents this position from being hyphenated.
SOFT_HYPHEN
const short SOFT_HYPHEN = 3;
Description
This control character defines a special position as a hyphenation point. If a word containing a soft hyphen must be split at the end of a line, then this position is preferred.
HARD_SPACE
const short HARD_SPACE = 4;
Description
This control character is used to link two words and prevents this concatenation from being hyphenated. It is printed as a space.
APPEND_PARAGRAPH
const short APPEND_PARAGRAPH = 5;
Description
This control character appends a new paragraph.
Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.