public class RtfDocumentSettings
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private boolean |
alwaysGenerateSoftLinebreaks
Whether to always generate soft linebreaks for \n in Chunks.
|
private boolean |
alwaysUseUnicode
Whether to always translate characters past 'z' into unicode representations.
|
private RtfDocument |
document
The RtfDocument this RtfDocumentSettings belongs to.
|
private boolean |
outputDebugLineBreaks
Whether to output the line breaks that make the rtf document source more readable.
|
private boolean |
outputTableRowDefinitionAfter
Whether to also output the table row definition after the cell content.
|
Constructor and Description |
---|
RtfDocumentSettings(RtfDocument document)
Constructs a new RtfDocumentSettings object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isAlwaysGenerateSoftLinebreaks()
Gets whether all linebreaks inside Chunks are generated as soft linebreaks.
|
boolean |
isAlwaysUseUnicode()
Gets whether all characters bigger than 'z' are represented as unicode.
|
boolean |
isOutputDebugLineBreaks()
Gets whether to output the line breaks for increased rtf document readability.
|
boolean |
isOutputTableRowDefinitionAfter()
Gets whether the table row definition should also be written after the cell content.
|
void |
registerParagraphStyle(RtfParagraphStyle rtfParagraphStyle)
Registers the RtfParagraphStyle for further use in the document.
|
void |
setAlwaysGenerateSoftLinebreaks(boolean alwaysGenerateSoftLinebreaks)
Sets whether to always generate soft linebreaks.
|
void |
setAlwaysUseUnicode(boolean alwaysUseUnicode)
Sets whether to represent all characters bigger than 'z' as unicode.
|
void |
setOutputDebugLineBreaks(boolean outputDebugLineBreaks)
Sets whether to output the line breaks for increased rtf document readability.
|
void |
setOutputTableRowDefinitionAfter(boolean outputTableRowDefinitionAfter)
Sets whether the table row definition should also be written after the cell content.
|
private RtfDocument document
private boolean outputTableRowDefinitionAfter
private boolean outputDebugLineBreaks
private boolean alwaysGenerateSoftLinebreaks
private boolean alwaysUseUnicode
public RtfDocumentSettings(RtfDocument document)
document
- The RtfDocument this RtfDocumentSettings belong to.public boolean isOutputDebugLineBreaks()
public void setOutputDebugLineBreaks(boolean outputDebugLineBreaks)
outputDebugLineBreaks
- The outputDebugLineBreaks to set.public boolean isOutputTableRowDefinitionAfter()
public void setOutputTableRowDefinitionAfter(boolean outputTableRowDefinitionAfter)
true
if you need Word2000 compatiblity and
false
if the document should be opened in OpenOffice.org Writer.outputTableRowDefinitionAfter
- The outputTableRowDefinitionAfter to set.public boolean isAlwaysGenerateSoftLinebreaks()
True
if soft linebreaks are generated, false
for hard linebreaks.public void setAlwaysGenerateSoftLinebreaks(boolean alwaysGenerateSoftLinebreaks)
alwaysGenerateSoftLinebreaks
- Whether to always generate soft linebreaks.public boolean isAlwaysUseUnicode()
True
if unicode representation is used, false
otherwise.public void setAlwaysUseUnicode(boolean alwaysUseUnicode)
alwaysUseUnicode
- True
to use unicode representation, false
otherwise.public void registerParagraphStyle(RtfParagraphStyle rtfParagraphStyle)
rtfParagraphStyle
- The RtfParagraphStyle to register.