public final class RtfStyleSheetTable
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
STATUS_DEFAULT
Status value for attribute handling, if the stylesheet not found and
the stylesheet set to the default stylesheet
|
static int |
STATUS_OK
OK status value for attribute handling
|
| Modifier and Type | Method and Description |
|---|---|
void |
addStyle(java.lang.String name,
RtfAttributes attrs)
Adds a style to the table.
|
int |
addStyleToAttributes(java.lang.String name,
RtfAttributes attr)
Adds the style attributes to the given attributes.
|
java.lang.String |
getDefaultStyleName()
Gets the name of the default style.
|
static RtfStyleSheetTable |
getInstance()
Singelton.
|
void |
setDefaultStyle(java.lang.String styleName)
Sets the default style.
|
void |
writeStyleSheet(org.apache.fop.render.rtf.rtflib.rtfdoc.RtfHeader header)
Writes the rtf style sheet table.
|
public static final int STATUS_OK
public static final int STATUS_DEFAULT
public static RtfStyleSheetTable getInstance()
public void setDefaultStyle(java.lang.String styleName)
styleName - Name of the default style, defined in the stylesheetpublic java.lang.String getDefaultStyleName()
public void addStyle(java.lang.String name,
RtfAttributes attrs)
name - Name of style to addattrs - Rtf attributes which defines the stylepublic int addStyleToAttributes(java.lang.String name,
RtfAttributes attr)
name - Name of style, of which the attributes will copied to attrattr - Default rtf attributespublic void writeStyleSheet(org.apache.fop.render.rtf.rtflib.rtfdoc.RtfHeader header)
throws java.io.IOException
header - Rtf header is the parentjava.io.IOException - On write errorCopyright 1999-2022 The Apache Software Foundation. All Rights Reserved.