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 TypeFieldDescriptionprivate final RtfAttributesstatic 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 -
Constructor Summary
ConstructorsConstructorDescriptionRtfPage(RtfPageArea parent, Writer w, RtfAttributes attrs) RtfPage creates new page attributes with the parent container, the writer and the attributes -
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, containsText, dump, findChildren, getChildCount, getChildren, getOptions, isEmpty, setChildren, setOptions, toStringMethods inherited from class RtfElement
close, getParentOfClass, getRtfAttributes, getRtfFile, isClosed, newLine, writeAttributes, writeControlWord, writeControlWordNS, writeExceptionInRtf, writeGroupMark, writeOneAttribute, writeOneAttributeNS, writeRtf, writeRtfPrefix, writeRtfSuffix, writeStarControlWord, writeStarControlWordNS
-
Field Details
-
attrib
-
PAGE_WIDTH
-
PAGE_HEIGHT
-
LANDSCAPE
-
MARGIN_TOP
-
MARGIN_BOTTOM
-
MARGIN_LEFT
-
MARGIN_RIGHT
-
HEADERY
-
FOOTERY
-
ITAP
-
PAGE_ATTR
String array of RtfPage attributes
-
-
Constructor Details
-
RtfPage
RtfPage(RtfPageArea parent, Writer w, RtfAttributes attrs) throws IOException RtfPage creates new page attributes with the parent container, the writer and the attributes- Throws:
IOException
-
-
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
-