Package com.lowagie.text.rtf.style
Class RtfStylesheetList
- java.lang.Object
-
- com.lowagie.text.rtf.RtfElement
-
- com.lowagie.text.rtf.style.RtfStylesheetList
-
- All Implemented Interfaces:
RtfBasicElement,RtfExtendedElement,com.lowagie.text.RtfElementInterface
public class RtfStylesheetList extends RtfElement implements RtfExtendedElement
The RtfStylesheetList stores the RtfParagraphStyles that are used in the document.- Version:
- $Id: RtfStylesheetList.java 3580 2008-08-06 15:52:00Z howard_s $
- Author:
- Mark Hall (Mark.Hall@mail.room3b.eu), Thomas Bickel (tmb99@inode.at)
-
-
Field Summary
-
Fields inherited from class com.lowagie.text.rtf.RtfElement
document, inHeader, inTable
-
Fields inherited from interface com.lowagie.text.rtf.RtfBasicElement
CLOSE_GROUP, COMMA_DELIMITER, DELIMITER, OPEN_GROUP, TWIPS_FACTOR
-
-
Constructor Summary
Constructors Constructor Description RtfStylesheetList(RtfDocument doc)Constructs a new RtfStylesheetList for the RtfDocument.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RtfParagraphStylegetRtfParagraphStyle(java.lang.String styleName)Gets the RtfParagraphStyle with the given name.voidregisterParagraphStyle(RtfParagraphStyle rtfParagraphStyle)Register a RtfParagraphStyle with this RtfStylesheetList.voidwriteContent(java.io.OutputStream out)unusedvoidwriteDefinition(java.io.OutputStream result)Writes the definition of the stylesheet list.-
Methods inherited from class com.lowagie.text.rtf.RtfElement
intToByteArray, isInTable, setInHeader, setInTable, setRtfDocument
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.lowagie.text.rtf.RtfBasicElement
setInHeader, setInTable, setRtfDocument
-
-
-
-
Constructor Detail
-
RtfStylesheetList
public RtfStylesheetList(RtfDocument doc)
Constructs a new RtfStylesheetList for the RtfDocument.- Parameters:
doc- The RtfDocument this RtfStylesheetList belongs to.
-
-
Method Detail
-
writeContent
public void writeContent(java.io.OutputStream out) throws java.io.IOExceptionunused- Specified by:
writeContentin interfaceRtfBasicElement- Specified by:
writeContentin classRtfElement- Parameters:
out- TheOutputStreamto write the content to- Throws:
java.io.IOException
-
registerParagraphStyle
public void registerParagraphStyle(RtfParagraphStyle rtfParagraphStyle)
Register a RtfParagraphStyle with this RtfStylesheetList.- Parameters:
rtfParagraphStyle- The RtfParagraphStyle to add.
-
getRtfParagraphStyle
public RtfParagraphStyle getRtfParagraphStyle(java.lang.String styleName)
Gets the RtfParagraphStyle with the given name. Makes sure that the defaults have been loaded.- Parameters:
styleName- The name of the RtfParagraphStyle to get.- Returns:
- The RtfParagraphStyle with the given name or null.
-
writeDefinition
public void writeDefinition(java.io.OutputStream result) throws java.io.IOExceptionWrites the definition of the stylesheet list.- Specified by:
writeDefinitionin interfaceRtfExtendedElement- Parameters:
result- TheOutputStreamto write the element definition to- Throws:
java.io.IOException
-
-