public final class RtfStyleSheetTable extends 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(String name,
RtfAttributes attrs)
Adds a style to the table.
|
int |
addStyleToAttributes(String name,
RtfAttributes attr)
Adds the style attributes to the given attributes.
|
String |
getDefaultStyleName()
Gets the name of the default style.
|
static RtfStyleSheetTable |
getInstance()
Singelton.
|
void |
setDefaultStyle(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(String styleName)
styleName
- Name of the default style, defined in the stylesheetpublic String getDefaultStyleName()
public void addStyle(String name, RtfAttributes attrs)
name
- Name of style to addattrs
- Rtf attributes which defines the stylepublic int addStyleToAttributes(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 IOException
header
- Rtf header is the parentIOException
- On write errorCopyright © 2025 Apache Software Foundation. All rights reserved.