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, inTableCLOSE_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, setRtfDocumentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetInHeader, setInTable, setRtfDocumentprivate 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 RtfBasicElementwriteContent in class RtfElementout - The OutputStream to write the content tojava.io.IOExceptionpublic 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 RtfExtendedElementresult - The OutputStream to write the element definition tojava.io.IOException