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
Modifier and TypeFieldDescriptionstatic final String
constant for footer positionstatic final String
constant for header positionstatic final String
constant for itap levelstatic final String
constant for landscape formatstatic final String
constant for bottom marginstatic final String
constant for left marginstatic final String
constant for right marginstatic final String
constant for top marginstatic final String[]
String array of RtfPage attributesstatic final String
constant for page heightstatic final String
constant for page widthFields inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
parent, writer
-
Method Summary
Modifier and TypeMethodDescriptionRtfPage - attributes accessorprotected boolean
RtfPage - is overwritten here because page attributes have no content only attributes.protected void
RtfPage 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, 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 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:
writeRtfContent
in 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:
okToWriteRtf
in classRtfContainer
- Returns:
- true
-