|
fop 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.render.rtf.rtflib.rtfdoc.RtfStyleSheetTable
public final class RtfStyleSheetTable
Singelton of the RTF style sheet table.
This class belongs to the
This work was authored by Andreas Putz (a.putz@skynamics.com).
Field Summary | |
---|---|
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 |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int STATUS_OK
public static final int STATUS_DEFAULT
Method Detail |
---|
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 attributes
public void writeStyleSheet(org.apache.fop.render.rtf.rtflib.rtfdoc.RtfHeader header) throws java.io.IOException
header
- Rtf header is the parent
java.io.IOException
- On write error
|
fop 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |