public class RtfStylesheetList extends RtfElement implements RtfExtendedElement
Modifier and Type | Field and Description |
---|---|
private boolean |
defaultsLoaded
Whether the default settings have been loaded.
|
private java.util.HashMap |
styleMap
The HashMap containing the RtfParagraphStyles.
|
document, inHeader, inTable
CLOSE_GROUP, COMMA_DELIMITER, DELIMITER, OPEN_GROUP, TWIPS_FACTOR
Constructor and Description |
---|
RtfStylesheetList(RtfDocument doc)
Constructs a new RtfStylesheetList for the RtfDocument.
|
Modifier and Type | Method and Description |
---|---|
RtfParagraphStyle |
getRtfParagraphStyle(java.lang.String styleName)
Gets the RtfParagraphStyle with the given name.
|
private void |
registerDefaultStyles()
Registers all default styles.
|
void |
registerParagraphStyle(RtfParagraphStyle rtfParagraphStyle)
Register a RtfParagraphStyle with this RtfStylesheetList.
|
void |
writeContent(java.io.OutputStream out)
unused
|
void |
writeDefinition(java.io.OutputStream result)
Writes the definition of the stylesheet list.
|
intToByteArray, isInTable, setInHeader, setInTable, setRtfDocument
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setInHeader, setInTable, setRtfDocument
private java.util.HashMap styleMap
private boolean defaultsLoaded
public RtfStylesheetList(RtfDocument doc)
doc
- The RtfDocument this RtfStylesheetList belongs to.public void writeContent(java.io.OutputStream out) throws java.io.IOException
writeContent
in interface RtfBasicElement
writeContent
in class RtfElement
out
- The OutputStream
to write the content tojava.io.IOException
public void registerParagraphStyle(RtfParagraphStyle rtfParagraphStyle)
rtfParagraphStyle
- The RtfParagraphStyle to add.private void registerDefaultStyles()
public RtfParagraphStyle getRtfParagraphStyle(java.lang.String styleName)
styleName
- The name of the RtfParagraphStyle to get.public void writeDefinition(java.io.OutputStream result) throws java.io.IOException
writeDefinition
in interface RtfExtendedElement
result
- The OutputStream
to write the element definition tojava.io.IOException