org.apache.fop.render.rtf.rtflib.rtfdoc
Class RtfStyleSheetTable
java.lang.Objectorg.apache.fop.render.rtf.rtflib.rtfdoc.RtfStyleSheetTable
public class RtfStyleSheetTable
extends java.lang.Object
Singelton of the RTF style sheet table.
This class belongs to the tag processing.
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
|
STATUS_DEFAULT
public static final int STATUS_DEFAULT
Status value for attribute handling, if the stylesheet not found and
the stylesheet set to the default stylesheet
STATUS_OK
public static final int STATUS_OK
OK status value for attribute handling
addStyle
public void addStyle(String name,
RtfAttributes attrs) Adds a style to the table.
name - Name of style to addattrs - Rtf attributes which defines the style
addStyleToAttributes
public int addStyleToAttributes(String name,
RtfAttributes attr) Adds the style attributes to the given attributes.
name - Name of style, of which the attributes will copied to attrattr - Default rtf attributes
getDefaultStyleName
public String getDefaultStyleName()
Gets the name of the default style.
getInstance
public static RtfStyleSheetTable getInstance()
Singelton.
- The instance of RtfStyleSheetTable
setDefaultStyle
public void setDefaultStyle(String styleName)
Sets the default style.
styleName - Name of the default style, defined in the stylesheet
writeStyleSheet
public void writeStyleSheet(org.apache.fop.render.rtf.rtflib.rtfdoc.RtfHeader header)
throws IOException Writes the rtf style sheet table.
header - Rtf header is the parent
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.