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
Specifies rtf control words. Is the container for page attributes. Overrides okToWriteRtf.
This work was authored by Christopher Scott (scottc@westinghouse.com).
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringconstant for footer positionstatic final Stringconstant for header positionstatic final Stringconstant for itap levelstatic final Stringconstant for landscape formatstatic final Stringconstant for bottom marginstatic final Stringconstant for left marginstatic final Stringconstant for right marginstatic final Stringconstant for top marginstatic final String[]String array of RtfPage attributesstatic final Stringconstant for page heightstatic final Stringconstant for page widthFields inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
parent, writer -
Method Summary
Modifier and TypeMethodDescriptionRtfPage - attributes accessorprotected booleanRtfPage - is overwritten here because page attributes have no content only attributes.protected voidRtfPage writes the attributes the attributes contained in the string PAGE_ATTR, if not nullMethods inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfContainer
addChild, findChildren, getChildCount, getChildren, isEmpty, setChildren, setOptions, toStringMethods 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 Details
-
PAGE_WIDTH
constant for page width- See Also:
-
PAGE_HEIGHT
constant for page height- See Also:
-
LANDSCAPE
constant for landscape format- See Also:
-
MARGIN_TOP
constant for top margin- See Also:
-
MARGIN_BOTTOM
constant for bottom margin- See Also:
-
MARGIN_LEFT
constant for left margin- See Also:
-
MARGIN_RIGHT
constant for right margin- See Also:
-
HEADERY
constant for header position- See Also:
-
FOOTERY
constant for footer position- See Also:
-
ITAP
constant for itap level- See Also:
-
PAGE_ATTR
String array of RtfPage attributes
-
-
Method Details
-
writeRtfContent
RtfPage writes the attributes the attributes contained in the string PAGE_ATTR, if not null- Overrides:
writeRtfContentin classRtfContainer- Throws:
IOException- for I/O problems
-
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
-