Class RtfPage
- java.lang.Object
-
- org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
-
- org.apache.fop.render.rtf.rtflib.rtfdoc.RtfContainer
-
- org.apache.fop.render.rtf.rtflib.rtfdoc.RtfPage
-
public class RtfPage extends RtfContainer
Specifies rtf control words. Is the container for page attributes. Overrides okToWriteRtf.
This work was authored by Christopher Scott (scottc@westinghouse.com).
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringFOOTERYconstant for footer positionstatic java.lang.StringHEADERYconstant for header positionstatic java.lang.StringITAPconstant for itap levelstatic java.lang.StringLANDSCAPEconstant for landscape formatstatic java.lang.StringMARGIN_BOTTOMconstant for bottom marginstatic java.lang.StringMARGIN_LEFTconstant for left marginstatic java.lang.StringMARGIN_RIGHTconstant for right marginstatic java.lang.StringMARGIN_TOPconstant for top marginstatic java.lang.String[]PAGE_ATTRString array of RtfPage attributesstatic java.lang.StringPAGE_HEIGHTconstant for page heightstatic java.lang.StringPAGE_WIDTHconstant for page width-
Fields inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
parent, writer
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RtfAttributesgetAttributes()RtfPage - attributes accessorprotected booleanokToWriteRtf()RtfPage - is overwritten here because page attributes have no content only attributes.protected voidwriteRtfContent()RtfPage writes the attributes the attributes contained in the string PAGE_ATTR, if not null-
Methods inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfContainer
addChild, findChildren, getChildCount, getChildren, isEmpty, setChildren, setOptions, toString
-
Methods inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
close, getParentOfClass, getRtfAttributes, newLine, writeAttributes, writeControlWord, writeControlWordNS, writeExceptionInRtf, writeGroupMark, writeOneAttribute, writeOneAttributeNS, writeRtf, writeRtfPrefix, writeRtfSuffix, writeStarControlWord, writeStarControlWordNS
-
-
-
-
Field Detail
-
PAGE_WIDTH
public static final java.lang.String PAGE_WIDTH
constant for page width- See Also:
- Constant Field Values
-
PAGE_HEIGHT
public static final java.lang.String PAGE_HEIGHT
constant for page height- See Also:
- Constant Field Values
-
LANDSCAPE
public static final java.lang.String LANDSCAPE
constant for landscape format- See Also:
- Constant Field Values
-
MARGIN_TOP
public static final java.lang.String MARGIN_TOP
constant for top margin- See Also:
- Constant Field Values
-
MARGIN_BOTTOM
public static final java.lang.String MARGIN_BOTTOM
constant for bottom margin- See Also:
- Constant Field Values
-
MARGIN_LEFT
public static final java.lang.String MARGIN_LEFT
constant for left margin- See Also:
- Constant Field Values
-
MARGIN_RIGHT
public static final java.lang.String MARGIN_RIGHT
constant for right margin- See Also:
- Constant Field Values
-
HEADERY
public static final java.lang.String HEADERY
constant for header position- See Also:
- Constant Field Values
-
FOOTERY
public static final java.lang.String FOOTERY
constant for footer position- See Also:
- Constant Field Values
-
ITAP
public static final java.lang.String ITAP
constant for itap level- See Also:
- Constant Field Values
-
PAGE_ATTR
public static final java.lang.String[] PAGE_ATTR
String array of RtfPage attributes
-
-
Method Detail
-
writeRtfContent
protected void writeRtfContent() throws java.io.IOExceptionRtfPage writes the attributes the attributes contained in the string PAGE_ATTR, if not null- Overrides:
writeRtfContentin classRtfContainer- Throws:
java.io.IOException- for I/O problems
-
getAttributes
public RtfAttributes getAttributes()
RtfPage - attributes accessor- Returns:
- attributes
-
okToWriteRtf
protected boolean okToWriteRtf()
RtfPage - is overwritten here because page attributes have no content only attributes. RtfContainer is defined not to write when empty. Therefore must make this true to print.- Overrides:
okToWriteRtfin classRtfContainer- Returns:
- true
-
-