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 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 RtfContainer
addChild, findChildren, getChildCount, getChildren, isEmpty, setChildren, setOptions, toStringMethods inherited from class RtfElement
close, getParentOfClass, getRtfAttributes, newLine, writeAttributes, writeControlWord, writeControlWordNS, writeExceptionInRtf, writeGroupMark, writeOneAttribute, writeOneAttributeNS, writeRtf, writeRtfPrefix, writeRtfSuffix, writeStarControlWord, writeStarControlWordNS
-
Field Details
-
PAGE_WIDTH
-
PAGE_HEIGHT
-
LANDSCAPE
-
MARGIN_TOP
-
MARGIN_BOTTOM
-
MARGIN_LEFT
-
MARGIN_RIGHT
-
HEADERY
-
FOOTERY
-
ITAP
-
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
-
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
-